Fresh install of the undercloud (master)
(undercloud) [centos@undercloud images]$ openstack overcloud image upload
Image "file:///var/lib/ironic/images/overcloud-full.vmlinuz" was copied.
+------------------------------------------------------+----------------+---------+
| Path | Name | Size |
+------------------------------------------------------+----------------+---------+
| file:///var/lib/ironic/images/overcloud-full.vmlinuz | overcloud-full | 6734016 |
+------------------------------------------------------+----------------+---------+
Image "file:///var/lib/ironic/images/overcloud-full.initrd" was copied.
+-----------------------------------------------------+----------------+----------+
| Path | Name | Size |
+-----------------------------------------------------+----------------+----------+
| file:///var/lib/ironic/images/overcloud-full.initrd | overcloud-full | 52612030 |
+-----------------------------------------------------+----------------+----------+
Image "file:///var/lib/ironic/images/overcloud-full.raw" was copied.
+--------------------------------------------------+----------------+------------+
| Path | Name | Size |
+--------------------------------------------------+----------------+------------+
| file:///var/lib/ironic/images/overcloud-full.raw | overcloud-full | 4073717760 |
+--------------------------------------------------+----------------+------------+
Link overcloud image to it's initrd and kernel images is MISSING OR leads to OLD image. You can keep it or fix it manually.
(undercloud) [centos@undercloud images]$ openstack overcloud image upload --update-existing
Image "/var/lib/ironic/images/overcloud-full.vmlinuz" is up-to-date, skipping.
Image "/var/lib/ironic/images/overcloud-full.initrd" is up-to-date, skipping.
Image "/var/lib/ironic/images/overcloud-full.raw" is up-to-date, skipping.
Link overcloud image to it's initrd and kernel images is MISSING OR leads to OLD image. You can keep it or fix it manually.
Image file "/var/lib/ironic/httpboot/agent.kernel" is up-to-date, skipping.
Image file "/var/lib/ironic/httpboot/agent.ramdisk" is up-to-date, skipping.
There seems to be an issue with the value of the file path of kernel and ramdisk images ironic/ images/ overcloud- full.vmlinuz" is up-to-date, skipping. ironic/ images/ overcloud- full.initrd" is up-to-date, skipping. ironic/ images/ overcloud- full.raw" is up-to-date, skipping. python3. 6/site- packages/ tripleoclient/ v1/overcloud_ image.py( 207)get_ image_property( ) exists( path): //var/lib/ ironic/ images/ overcloud- full.vmlinuz' exists( path) exists( "/var/lib/ ironic/ images/ overcloud- full.vmlinuz" )
~~~
(undercloud) [stack@undercloud repos]$ openstack overcloud image upload --update-existing --image-path /home/stack/
Image "/var/lib/
Image "/var/lib/
Image "/var/lib/
> /usr/lib/
-> if os.path.
(Pdb) path
'file:/
(Pdb) os.path.
False
(Pdb) os.path.
True
(Pdb)
~~~
The os module fails to check whether the file exists or not when it the path has "file://" prepended to it and returns None which further sets the img_kernel_id & img_ramdisk_id vars to None.