2024-02-01 18:04:55 |
Erlon R. Cruz |
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, juju generates the folder with the 'released' stream and creates the metadata pointing to version '22.04', instead of 'centos7'. |
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 |
|