vsphere machine provisioning error, "The name 'juju-template-...' already exists."

Bug #1930761 reported by George Kraft
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Heather Lanigan

Bug Description

Juju 2.9.3

My Juju controller on vSphere is failing to provision new machines:

$ juju status
Model Controller Cloud/Region Version SLA Timestamp
test gkk-vsphere vsphere/Boston 2.9.3 unsupported 15:56:58-05:00

Machine State DNS Inst id Series AZ Message
0 down pending focal The name 'juju-template-51345475823e73b240844546fc8a361a35d6464f68b13b76b26aab229945a067' already exists.
1 down pending focal The name 'juju-template-51345475823e73b240844546fc8a361a35d6464f68b13b76b26aab229945a067' already exists.

The same behavior occurs in newly created models as well.

This looks similar to https://bugs.launchpad.net/juju/+bug/1880720 but I think slightly different - in my case, it appears to be failing to create a template VM, as opposed to the linked bug where it's failing to clone it.

Revision history for this message
George Kraft (cynerva) wrote :
Revision history for this message
George Kraft (cynerva) wrote :
Revision history for this message
George Kraft (cynerva) wrote :
Revision history for this message
George Kraft (cynerva) wrote :

This controller was originally deployed with Juju 2.8.10, then upgraded via `juju upgrade-juju` to 2.9.3.

Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.9.6
importance: Undecided → High
status: New → Triaged
Revision history for this message
George Kraft (cynerva) wrote :

I'm consistently able to reproduce this by upgrading Juju controllers on vSphere from 2.8.10 to 2.9.3. If I bootstrap with 2.9.3 then the problem does not occur.

Reproduction steps:

sudo snap refresh juju --channel 2.8/stable
juju bootstrap vsphere
sudo snap refresh juju --channel latest/stable
juju upgrade-juju -m controller
juju add-machine

Changed in juju:
assignee: nobody → Heather Lanigan (hmlanigan)
Revision history for this message
Heather Lanigan (hmlanigan) wrote :

This occurs because the VM templates created by juju pre-2.9, do not have arch tags. A fix is in the works.

A workaround is to log into the vSphere and delete the templates located in a folder under the controller folder. Juju will then recreate the template when provisioning a machine.

Changed in juju:
status: Triaged → In Progress
Revision history for this message
Heather Lanigan (hmlanigan) wrote :
Changed in juju:
milestone: 2.9.6 → 2.9.5
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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