Machine constraint to target a cluster member when deploying to LXD
Bug #1971190 reported by
Simon Déziel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
When launching instances on a LXD cluster, one can either let the cluster decide on the instance's placement or request a specific cluster member to be the target. Here is how to do the explicit targeting with `lxc`:
```
lxc launch images:ubuntu/jammy my-lxd-cluster: --target nodeA
```
Having a Juju machine constraint to accomplish the same would be useful.
tags: | added: lxd-cloud |
tags: | added: constraints |
Changed in juju: | |
importance: | Undecided → Wishlist |
tags: | added: feature |
Changed in juju: | |
status: | New → Triaged |
summary: |
- Machine constrain to target a cluster member when deploying to LXD + Machine constraint to target a cluster member when deploying to LXD |
description: | updated |
To post a comment you must log in.
Not a constraint but you can use the availability zones to achieve this.
root@juju01:~# juju add-machine zone=cluster05
created machine 3
root@juju01:~# juju status
Model Controller Cloud/Region Version SLA Timestamp
default nsec-default nsec/default 2.9.29 unsupported 17:32:00Z
Machine State DNS Inst id Series AZ Message
3 pending 240.28.0.167 juju-378e3e-3 focal Running
root@cluster01:~# lxc list juju-378e3e-3 ------- --+---- -----+- ------- ------- ------+ ------+ ------- ----+-- ------- --+---- ------- + ------- --+---- -----+- ------- ------- ------+ ------+ ------- ----+-- ------- --+---- ------- + ------- --+---- -----+- ------- ------- ------+ ------+ ------- ----+-- ------- --+---- ------- +
+------
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | LOCATION |
+------
| juju-378e3e-3 | RUNNING | 240.28.0.167 (eth0) | | CONTAINER | 0 | cluster05 |
+------