Comment 3 for bug 1925838

Revision history for this message
Yoshi Kadokawa (yoshikadokawa) wrote :

For now, I have managed to workaround this by creating the Octavia disk image with the following manual steps.

# Download stock ubuntu image
sudo wget -O ubuntu-20.04-server-cloudimg-amd64.img \
https://<INTERNAL_MIRROR_URL>/ubuntu-20.04-server-cloudimg-amd64.img

# Create amphora image
amphora_img_name="amphora-haproxy-ubuntu-20.04"
sudo octavia-diskimage-retrofit -d \
  -m 'deb http://<INTERNAL_MIRROR_URL> focal multiverse main restricted universe' \
  -c 'deb http://<INTERNAL_MIRROR_URL> focal-updates multiverse main restricted universe' \
  -u ussuri \
  ubuntu-20.04-server-cloudimg-amd64.img \
  ${amphora_img_name}.qcow2

# Convert the image to RAW format
sudo qemu-img convert \
  -f qcow2 -O raw \
  ${amphora_img_name}.qcow2 \
  ${amphora_img_name}.raw

# Upload the image to Glance
mkdir -p $HOME/octavia-images/
openstack image create --tag octavia-amphora \
  --container-format bare \
  --disk-format raw \
  --protected \
  --file ${amphora_img_name}.raw \
  ${amphora_img_name}