Comment 1 for bug 1896262

Revision history for this message
Yadnesh Kulkarni (ykulkarn) wrote :

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.