Discussion:
EC2 availability zones and bundles
George Kraft
2018-06-15 17:57:41 UTC
Permalink
Hey folks,

Is there a way to assign units or machines to specific availability zones
on EC2 when deploying from a bundle?

I see there's a way to do it for standalone machines/units with either of
the following:

juju add-machine zone=us-east-1c
juju deploy ubuntu --to zone=us-east-1c

But I'm having trouble finding any way to do it in a bundle. For example, I
can't use the above placement directive in a bundle:

$ cat test.yaml
services:
ubuntu:
charm: "cs:ubuntu"
num_units: 1
to:
- "zone=us-east-1c"
$ juju deploy ./test.yaml
ERROR cannot deploy bundle: the provided bundle has the following errors:
invalid placement syntax "zone=us-east-1c"

Anyone know if there's a way to do it?

Thanks,
George Kraft
Tim Penhey
2018-06-17 23:28:20 UTC
Permalink
I don't believe this is possible with bundles at the moment.

The only placement directives that is currently supported in bundles are:
<machine-id>
new
lxd:new
lxd:<machine-id>
kvm:new
kvm:<machine-id>

I *think* that is it.

Tim
Post by George Kraft
Hey folks,
Is there a way to assign units or machines to specific availability
zones on EC2 when deploying from a bundle?
I see there's a way to do it for standalone machines/units with either
juju add-machine zone=us-east-1c
juju deploy ubuntu --to zone=us-east-1c
But I'm having trouble finding any way to do it in a bundle. For
$ cat test.yaml
    charm: "cs:ubuntu"
    num_units: 1
    - "zone=us-east-1c"
$ juju deploy ./test.yaml
invalid placement syntax "zone=us-east-1c"
Anyone know if there's a way to do it?
Thanks,
George Kraft
--
Juju mailing list
***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/m
George Kraft
2018-06-18 17:18:33 UTC
Permalink
Thanks Tim. I went ahead and opened a bug for this:
https://bugs.launchpad.net/juju/+bug/1777487

Cheers,
George Kraft
Post by Tim Penhey
I don't believe this is possible with bundles at the moment.
<machine-id>
new
lxd:new
lxd:<machine-id>
kvm:new
kvm:<machine-id>
I *think* that is it.
Tim
Post by George Kraft
Hey folks,
Is there a way to assign units or machines to specific availability
zones on EC2 when deploying from a bundle?
I see there's a way to do it for standalone machines/units with either
juju add-machine zone=us-east-1c
juju deploy ubuntu --to zone=us-east-1c
But I'm having trouble finding any way to do it in a bundle. For
$ cat test.yaml
charm: "cs:ubuntu"
num_units: 1
- "zone=us-east-1c"
$ juju deploy ./test.yaml
invalid placement syntax "zone=us-east-1c"
Anyone know if there's a way to do it?
Thanks,
George Kraft
--
Juju mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/
mailman/listinfo/juju
Loading...