There seems to be an issue with the value of the file path of kernel and ramdisk images
~~~
(undercloud) [stack@undercloud repos]$ openstack overcloud image upload --update-existing --image-path /home/stack/
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.
> /usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_image.py(207)get_image_property()
-> if os.path.exists(path):
(Pdb) path
'file:///var/lib/ironic/images/overcloud-full.vmlinuz'
(Pdb) os.path.exists(path)
False
(Pdb) os.path.exists("/var/lib/ironic/images/overcloud-full.vmlinuz")
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.
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.