concourse / concourse-bosh-deployment

A toolchain for deploying Concourse with BOSH.
Apache License 2.0
84 stars 154 forks source link

have a AZs become parameterized [#171196475] #212

Closed kcboyle closed 4 years ago

kcboyle commented 4 years ago

Signed-off-by: Kira Boyle kboyle@pivotal.io Co-authored-by: Kira Boyle kboyle@pivotal.io

cirocosta commented 4 years ago

Hey @kcboyle ,

Thanks for the PR!

Please correct me if I'm wrong, but I think we'd need to update ./cluster/README.md to include the default z1 availability zone as part of the set of environment variables for a seamless deployment - is that right?

Thanks!

cirocosta commented 4 years ago

(oh, one more question: what's [#171196475] about? 🤔)

jtarchie commented 4 years ago

Some teams at Pivotal use a tool call Pivotal Tracker for story and product management. :trollface:

making commented 4 years ago

Hi, this commit is a breaking change and can make existing users who use default az value unhappy. How about providing the following ops file instead?

- type: replace
  path: /instance_groups/name=web/azs
  value: ((availability_zones))

- type: replace
  path: /instance_groups/name=db/azs
  value: ((availability_zones))

- type: replace
  path: /instance_groups/name=worker/azs
  value: ((availability_zones))
jtarchie commented 4 years ago

We've discussed with @cirocosta, that we will update the README.md, so the bosh deploy command has -v availability_zones="[z1]" in the example.

For example, arrays can be passed via -v (or vars files):

→ echo "azs: ((azs))" | bosh int - -v azs="[z1]"
azs:
- z1

Succeeded

This won't break deployments as the bosh deploy will fail fast on the missing value.

making commented 4 years ago

This won't break deployments as the bosh deploy will fail fast on the missing value.

OK. I was thinking this was a breaking change. I'm aware that some users have a script (deploy-concourse.sh) and they usually update concourse by cd concourse-bosh-deployment (submodule) && git pull origin master && cd .. && ./deploy-concourse.sh I just worried the users will be surprised to see deploy fails because of the lack of variables.

jtarchie commented 4 years ago

@making, we are working on different definitions of failures for deployment here. When I say, "deployed failed", it is because the deployment went through and a VM didn't come up. This bosh deploy command will fail because a variable is missing. I don't consider that a failure, just an update to the configuration.

making commented 4 years ago

@jtarchie Thanks for the clarification.

jtarchie commented 4 years ago

I am renaming this from availability_zones to azs so it is similarly named like external-worker.yml