From aaec00275ae607aabda47aac191d01155b338a18 Mon Sep 17 00:00:00 2001 From: cid Date: Mon, 26 Aug 2024 19:58:11 +0100 Subject: [PATCH] Replace reference to ari/aki Replace 'ari' and 'aki' with correct values for kernel/ramdisk artifacts. Closes-Bug: #2074090 Change-Id: I5b5bcf7e081fc0865ec43ccf6a988280ec7c9273 --- devstack/lib/ironic | 8 ++++---- doc/source/admin/anaconda-deploy-interface.rst | 12 ++++++------ doc/source/install/configure-glance-images.rst | 8 ++++---- ...mdisk-artifacts-delineation-15a7d652d34b196f.yaml | 5 +++++ 4 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 releasenotes/notes/update-kernel-ramdisk-artifacts-delineation-15a7d652d34b196f.yaml diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 43f9cec6b1..9a1d1cb65b 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -3228,8 +3228,8 @@ function upload_baremetal_ironic_deploy { IRONIC_DEPLOY_KERNEL_ID=$(openstack --os-cloud devstack-admin \ image create \ $ironic_deploy_kernel_name \ - --public --disk-format=aki \ - --container-format=aki \ + --public --disk-format=raw \ + --container-format=bare \ --file $(readlink -f $IRONIC_DEPLOY_KERNEL) | \ grep ' id ' | get_field 2) die_if_not_set $LINENO IRONIC_DEPLOY_KERNEL_ID "Failed to load kernel image into glance" @@ -3237,8 +3237,8 @@ function upload_baremetal_ironic_deploy { IRONIC_DEPLOY_RAMDISK_ID=$(openstack --os-cloud devstack-admin \ image create \ $ironic_deploy_ramdisk_name \ - --public --disk-format=ari \ - --container-format=ari \ + --public --disk-format=raw \ + --container-format=bare \ --file $(readlink -f $IRONIC_DEPLOY_RAMDISK) | \ grep ' id ' | get_field 2) die_if_not_set $LINENO IRONIC_DEPLOY_RAMDISK_ID "Failed to load ramdisk image into glance" diff --git a/doc/source/admin/anaconda-deploy-interface.rst b/doc/source/admin/anaconda-deploy-interface.rst index 5038810c6d..cd57fcc7aa 100644 --- a/doc/source/admin/anaconda-deploy-interface.rst +++ b/doc/source/admin/anaconda-deploy-interface.rst @@ -121,12 +121,12 @@ glance: .. code-block:: shell - openstack image create --file ./vmlinuz --container-format aki \ - --disk-format aki --shared anaconda-kernel- - openstack image create --file ./initrd.img --container-format ari \ - --disk-format ari --shared anaconda-ramdisk- - openstack image create --file ./squashfs.img --container-format ari \ - --disk-format ari --shared anaconda-stage- + openstack image create --file ./vmlinuz --container-format bare \ + --disk-format raw --shared anaconda-kernel- + openstack image create --file ./initrd.img --container-format bare \ + --disk-format raw --shared anaconda-ramdisk- + openstack image create --file ./squashfs.img --container-format bare \ + --disk-format raw --shared anaconda-stage- openstack image create --file ./os-image.tar.gz \ --container-format bare --disk-format raw --shared \ --property kernel_id= \ diff --git a/doc/source/install/configure-glance-images.rst b/doc/source/install/configure-glance-images.rst index 5cdecfad2c..b800b54095 100644 --- a/doc/source/install/configure-glance-images.rst +++ b/doc/source/install/configure-glance-images.rst @@ -39,14 +39,14 @@ the Image service for each one as it is generated. .. code-block:: console $ openstack image create my-kernel --public \ - --disk-format aki --container-format aki --file my-image.vmlinuz + --disk-format raw --container-format bare --file my-image.vmlinuz Store the image uuid obtained from the above step as ``MY_VMLINUZ_UUID``. .. code-block:: console $ openstack image create my-image.initrd --public \ - --disk-format ari --container-format ari --file my-image.initrd + --disk-format raw --container-format bare --file my-image.initrd Store the image UUID obtained from the above step as ``MY_INITRD_UUID``. @@ -80,7 +80,7 @@ Deploy ramdisk images .. code-block:: console $ openstack image create deploy-vmlinuz --public \ - --disk-format aki --container-format aki \ + --disk-format raw --container-format bare \ --file ironic-python-agent.vmlinuz Store the image UUID obtained from the above step as ``DEPLOY_VMLINUZ_UUID`` @@ -89,7 +89,7 @@ Deploy ramdisk images .. code-block:: console $ openstack image create deploy-initrd --public \ - --disk-format ari --container-format ari \ + --disk-format raw --container-format bare \ --file ironic-python-agent.initramfs Store the image UUID obtained from the above step as ``DEPLOY_INITRD_UUID`` diff --git a/releasenotes/notes/update-kernel-ramdisk-artifacts-delineation-15a7d652d34b196f.yaml b/releasenotes/notes/update-kernel-ramdisk-artifacts-delineation-15a7d652d34b196f.yaml new file mode 100644 index 0000000000..97fb3e2178 --- /dev/null +++ b/releasenotes/notes/update-kernel-ramdisk-artifacts-delineation-15a7d652d34b196f.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Replaces `ari/aki` format references with appropriate artifacts + for kernel and ramdisk in the documentation and Ironic DevStack plugin.