deploy --to [lxd|lxc]:N fails to validate if machine N exists

Bug #1574773 reported by Andreas Hasenack
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Medium
Unassigned

Bug Description

This correctly fails, because machine 1 does not exist:
andreas@nsn7:~$ juju deploy ubuntu ubuntu-to-machine --to 1
Added charm "cs:ubuntu-0" to the model.
Deploying charm "cs:ubuntu-0" with the default charm metadata series "xenial".
ERROR cannot deploy "ubuntu-to-machine" to machine 1: machine 1 not found

But this proceeds:
andreas@nsn7:~$ juju deploy ubuntu ubuntu-to-machine --to lxc:1
Added charm "cs:ubuntu-0" to the model.
Deploying charm "cs:ubuntu-0" with the default charm metadata series "xenial".
andreas@nsn7:~$

And gets stuck in "allocating".

provider is MAAS 1.9.1
juju is 2.0-beta5-xenial-amd64

Same with lxd:
andreas@nsn7:~$ juju deploy ubuntu another-ubuntu-to-lxd --to lxd:999
Added charm "cs:ubuntu-0" to the model.
Deploying charm "cs:ubuntu-0" with the default charm metadata series "xenial".
andreas@nsn7:~$

Martin Packman (gz)
tags: added: placement
summary: - bootstrap --to [lxd|lxc]:N fails to validate if machine N exists
+ deploy --to [lxd|lxc]:N fails to validate if machine N exists
Martin Packman (gz)
Changed in juju-core:
importance: Undecided → High
status: New → Triaged
Changed in juju-core:
milestone: none → 2.1.0
affects: juju-core → juju
Changed in juju:
milestone: 2.1.0 → none
milestone: none → 2.1.0
tags: added: lxd
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Removing 2.1 milestone as we will not be addressing this issue in 2.1.

Changed in juju:
milestone: 2.1-rc2 → none
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Validation if machine exist does happen but it could be done earlier in the process. I am lowering the Importance.

Changed in juju:
importance: High → Medium
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.