actual machine numbers don't match machine numbers from bundle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
New
|
Undecided
|
Unassigned |
Bug Description
I deployed a bundle via "juju deploy ./bundle.yaml" (http://
After the deploy, I removed an application and tried to redeploy it via "juju deploy ./bundle.yaml --map-machines existing", thinking the bundle would add the application's units back to the machines they were on the first time.
It didn't, because the machine IDs in my model didn't match the machine IDs from my bundle. They aren't related at all. This makes --map-machines existing not very useful for this use case, and means I have to go and manually figure out mapping between machines in the bundle and machines in the model. It means I can't just update the bundle and run ./deploy again, like I could with juju-deployer.
http://
This is with juju 2.3.3+2.3-811c0a3.
Changed in juju: | |
status: | New → Incomplete |
Changed in juju: | |
status: | Expired → New |
We've never allowed machine IDs to be reused, or AFAIK specified by a
client. So as soon as you, say, destroy a machine and create a new one, the
IDs would no longer match.
I'm guessing the issue is that juju-deplpyer was more careful to create the
machines in exactly the order specified (though I'm rather surprised if
"juju deploy" doesn't).
As an example, imagine you had a model and decided to play around with the
Ubuntu charm, then destroy that machine (burning ID 0) then deploying the
bundle would have all IDs shifted by 1.
Or something happens and one machine fails in the middle and you have to
kill it and try again.
It seems like a more stable option would be to have "juju deploy" somehow
generate the map of logical bundle IDs to concrete model IDs so you can
feed it back in.
John
=:->
On Jan 23, 2018 20:00, "Jason Hobbs" <email address hidden> wrote:
> Public bug reported: paste.ubuntu. com/26444907/) which used placement directives to paste.ubuntu. com/26444925/ /bugs.launchpad .net/bugs/ 1744964 /bugs.launchpad .net/juju/ +bug/1744964/ +subscriptions
>
> I deployed a bundle via "juju deploy ./bundle.yaml"
> (http://
> put services on specific machines, with machines numbered 0-22.
>
> After the deploy, I removed an application and tried to redeploy it via
> "juju deploy ./bundle.yaml --map-machines existing", thinking the bundle
> would add the application's units back to the machines they were on the
> first time.
>
> It didn't, because the machine IDs in my model didn't match the machine
> IDs from my bundle. They aren't related at all. This makes --map-
> machines existing not very useful for this use case, and means I have to
> go and manually figure out mapping between machines in the bundle and
> machines in the model. It means I can't just update the bundle and run
> ./deploy again, like I could with juju-deployer.
>
> http://
>
> This is with juju 2.3.3+2.3-811c0a3.
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
>
> ** Tags: cdo-qa cdo-qa-blocker foundations-engine
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https:/
>
> Title:
> actual machine numbers don't match machine numbers from bundle
>
> To manage notifications about this bug go to:
> https:/
>