nova-api reporting missing images after upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned | ||
nova (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
After upgrading Openstack from the packaged version in Oneiric to the packaged version in Precise I have found that some images are being reported as missing, but not all.
I am using nova-api, glance and swift with deprecated_auth.
Please let me know if you need any further information?
Software versions:
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
$ dpkg-query --show nova-*
nova-api 2012.1~
nova-common 2012.1~
nova-doc 2012.1~
nova-network 2012.1~
nova-objectstore 2012.1~
nova-scheduler 2012.1~
Swift reports the image exists:
$ swift -A https:/
Account: AUTH_glance
Container: glance
Object: 209
Content Type: text/plain
Content Length: 13
Last Modified: Wed, 12 Oct 2011 19:41:42 GMT
ETag: b9886512afafc0d
Accept-Ranges: bytes
Vary: Accept-Encoding
glance db shows that it exists:
sqlite> select * from images where location like '%/209';
c9d4eed5-
glance client:
$ glance show c9d4eed5-
URI: http://
Id: c9d4eed5-
Public: Yes
Protected: No
Name: None
Status: active
Size: 1476395008
Disk format: ami
Container format: ami
Minimum Ram Required (MB): 0
Minimum Disk Required (GB): 0
Property 'image_location': xxxxxx-
Property 'image_state': available
Property 'kernel_id': 158
Property 'min_ram': 0
Property 'ramdisk_id': 159
Property 'owner': None
Property 'architecture': x86_64
Property 'min_disk': 0
Property 'project_id': xxxxxx_project
euca2ools reports the image doesn't exist:
$ euca-describe-
ImageNotFound: Image ami-000000d1 could not be found.
On Wed 15-02-2012 19:02 ›, Andrew Glen-Young wrote: 2ecc-4fa5- 9ae1-0da4a0f0c0 66 0.0.0.0: 9292/v1/ images/ c9d4eed5- 2ecc-4fa5- 9ae1-0da4a0f0c0 66 2ecc-4fa5- 9ae1-0da4a0f0c0 66 cloud-images/ ubuntu- lucid-10. 04-amd64- server- 20110930. man
>
> glance client:
>
> $ glance show c9d4eed5-
> URI: http://
> Id: c9d4eed5-
> Public: Yes
> Protected: No
> Name: None
> Status: active
> Size: 1476395008
> Disk format: ami
> Container format: ami
> Minimum Ram Required (MB): 0
> Minimum Disk Required (GB): 0
> Property 'image_location': xxxxxx-
> Property 'image_state': available
> Property 'kernel_id': 158
> Property 'min_ram': 0
> Property 'ramdisk_id': 159
> Property 'owner': None
> Property 'architecture': x86_64
> Property 'min_disk': 0
> Property 'project_id': xxxxxx_project
>
A quick update.
It looks like the 'kernel_id' and 'ramdisk_id' properties for the image were images seems to work.
not updated to use UUIDs. Once we updated these IDs to the correct UUIDs for
the relevant images, euca-describe-
This workaround is non-optimal for someone upgrading their Openstack
cluster.
--
Regards.
Andrew Glen-Young