pega-helm-charts icon indicating copy to clipboard operation
pega-helm-charts copied to clipboard

Cassandra containers are deployed when action=install

Open maracle6 opened this issue 4 years ago • 4 comments

Describe the bug When using Pega’s helm charts, we can pass an action: install, deploy, or install-deploy. If I pass in install, the intention is to create an installation job only but not deploy runtime containers. Currently this works for tomcat and elasticsearch containers, however the Cassandra containers are still deployed if Cassandra is set to true.

Charts should check for and skip deployment of Cassandra if action is install or upgrade.

To Reproduce Use actions: execute: "install"

and

cassandra: enabled: true

Expected behavior Only the installation pod should be deployed

Chart version Latest, no customizations

maracle6 avatar May 08 '20 15:05 maracle6

@dcasavant this is the same issue we were seeing internally. Tried disabling cassandra but that didn't seem to work.

@maracle6 did you try passing along the pega.cassandra.enabled = false flag to the helm-cli?

cdancy avatar Jun 12 '20 00:06 cdancy

@maracle6 confirmed this does work as expected. @dcasavant we may want to add some logic to disable cassandra if "action = install" so that folks don't have to provide it at runtime.

cdancy avatar Jun 16 '20 15:06 cdancy

@maracle6 is this still an issue?

APegaDavis avatar Jun 05 '23 18:06 APegaDavis

I don't think so, but I haven't use the install image in quite a while

maracle6 avatar Jun 06 '23 17:06 maracle6

This issue is no more observed. I have verified the helm deployment with action install. Other than pega-db-install no other work loads are getting deployed. One should make sure to set cassandra.enabled to false.

kishorv10 avatar Apr 18 '24 12:04 kishorv10

Cassandra is a subchart of Pega. Deployment of it is controlled via cassandra.enabled flag. Writing conditions based on the deployment action is complex. As it is a simple configuration to overcome the issue, we are proceeding with the closure of it.

Recommendation: Set cassandra.enabled to false while performing fresh installation (deployment action install)

kishorv10 avatar Apr 22 '24 11:04 kishorv10