IBT-FMI / gebuilder

Gentoo System and Image Builder
GNU General Public License v3.0
11 stars 0 forks source link

No image with an ID of '' exists. #27

Closed TheChymera closed 5 years ago

TheChymera commented 5 years ago

So I ran into this issue:

Deleting old image with uuid                                                                            
No image with an ID of '' exists.                                                                       
Exiting                                                                                                 
Cleaning up                                                                                             
executing losetup -d /dev/loop0                                                                         
Cleaning up after error  

which could be solved by:

rm /usr/share/gebuilder/roots/stemgentoo/registry/openstack_image

Apparently this was caused by a previous attempt at gebuild stemgentoo openstack_image which failed without writing to but after creating the <ID>/registry/openstack_image file. Any idea why this can happen at all? As I understand the relevant code the file should only be created when we write to it.

Doeme commented 5 years ago

Ah, ok, yes, the file file is created as soon as the glance-command is executed, independant of its success or failure (or if something is written to it)

It probably would be best to write the information to another file, and mv it on success

TheChymera commented 5 years ago

Thanks :)