vsphere: juju ignores local images and download from the internet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Nicolas Vinuesa |
Bug Description
While trying to bootstrap a vsphere cloud controller, I hit a problem where Juju does not pick up the images and binaries pointed in the image metadata folder. Regardless of what I put into the metadata folder, or what parameters are used, Juju always downloads and boots Ubuntu.
Juju version:
2.9.46-ubuntu-amd64
Steps to reproduce:
juju add-cloud
# Enter a name for your vsphere cloud: vsphere
# Enter the vCenter address or URL: 10.230.65.170
# Enter datacenter name: segmaas
juju add-credential vsphere
# Enter user: <email address hidden>
# Enter password:
# Enter vmfolder (optional): vmfolder01
DATA_STORE=
ENDPOINT=
STREAM="released"
METADATA_
JUJUD_BIN_
DC="10.230.xx.xxx"
REGION="DC1"
rm -rf $METADATA_DIR
mkdir -p $HOME/$
cp $JUJUD_
pushd $HOME/$
tar czf juju-`./jujud version`.tgz ./jujud
popd
## juju 2.9 procedure
juju metadata generate-agents -d $METADATA_DIR --stream $STREAM
juju metadata generate-image -r $REGION -u $ENDPOINT \
-d $HOME/$
-i "cloud-
-s focal --storage $DATA_STORE --stream $STREAM
juju metadata generate-image -r $REGION -u $ENDPOINT \
-d $HOME/$
-i "cloud-
-s centos7 --storage $DATA_STORE --stream $STREAM
juju --debug bootstrap vcenter7 --metadata-source $HOME/vsphere7-
The results for this commands can be seen here[1]. See that, juju complains about a missing image-downloads field, but image-ids is what Juju should really be searching for since this is a local image. Also if I change that to image-downloads, it doesn't work as well[2].
[1] https:/
[2] after changing image-ids for image-downloads: https:/
[3] metadata index: https:/
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Nicolas Vinuesa (nvinuesa) |