vsphere: juju does not honor user parameters

Bug #2051969 reported by Erlon R. Cruz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Jack Shaw

Bug Description

During the metadata generation, even when we specify some parameters the metadata generated does not have those.

Juju version:
3.2.4-ubuntu-amd64

How to reproduce:

DATA_STORE="SharedImages"
ENDPOINT="10.230.61.251"
STREAM="proposed"
METADATA_DIR="vsphere7-simplestreams-$STREAM"
JUJUD_BIN_FOLDER="/home/ubuntu/internal_git/juju/_build/linux_amd64/bin"
DC="10.230.61.240"
REGION="DC1"

rm -rf $METADATA_DIR
mkdir -p $HOME/$METADATA_DIR/tools/$STREAM
cp $JUJUD_BIN_FOLDER/jujud $HOME/$METADATA_DIR/tools/$STREAM
pushd $HOME/$METADATA_DIR/tools/$STREAM
tar czf juju-`./jujud version`.tgz ./jujud
rm -rf ./jujud
popd

juju metadata generate-image -r $REGION -u $ENDPOINT \
    -d $HOME/$METADATA_DIR/ \
    -i "centos-from-disk" \
    --base centos@7 --storage $DATA_STORE --stream $STREAM

As a result [1], juju generates the folder with the 'released' stream and creates the metadata pointing to version '22.04', instead of 'centos7'.

[1] https://gist.github.com/sombrafam/a612d4f259eccf9d2c6a0c0747f05adb

description: updated
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Jack Shaw (jack-shaw)
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.