juju export-bundle fails to show that applications are on the same lxd machine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Unassigned |
Bug Description
If you deploy a bundle where two applications are on the same lxd machine:
-------
$ cat bundle.yaml
designate-bind:
...
to:
- memcached/0
- memcached/1
...
memcached:
...
to:
- lxd:0
- lxd:1
-------
Juju export-bundle fails to show that they are on the same lxd machine:
-------
$ juju export-bundle
designate-bind:
...
to:
- lxd:0
- lxd:1
...
memcached:
...
to:
- lxd:0
- lxd:1
-------
The exported bundle only shows that designate-bind and memcached are both lxd containers on 0 and 1, not that they are on the same lxd container. Since designate-bind and memcached share subordinates in the original bundle, deploying the exported bundle would result in a failing deployment.
The desired result would be:
-------
$ juju export-bundle
designate-bind:
...
to:
- memcached/0
- memcached/1
...
memcached:
...
to:
- lxd:0
- lxd:1
-------
Changed in juju: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in juju: | |
status: | New → Triaged |
Juju has no concept of a bundle once it is deployed. The contents are saved in juju as individual charms, applications relations etc. Therefore exporting a bundle including specific units which should be co-located is not feasible.
However an exported bundle should produce the same results as the bundle used to deploy. Can you please provide the full bundle used to deploy?