cannot save cloud image metadata

Bug #1691884 reported by David Ames
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

Running the snap edge version of juju:
Name Version Rev Developer Notes
juju 2.2-rc1+develop-139a6ae 1876 canonical classic

Against an openstack cloud. After we updated our images with simplestreams we started to see some odd behavior. Juju either tries to use a non-existent image id or it just states no matching image can be found.

 no "xenial" images in serverstack with arches [amd64]

Yet the image-stream json has a matching image.

Juju controller machine log shows the following:

2017-05-18 23:25:15 WARNING juju.apiserver.provisioner provisioninginfo.go:534 encountered index file has no data for cloud {serverstack http://10.245.161.156:5000/v3} not found while getting published images metadata from default ubuntu cloud images
2017-05-18 23:25:15 WARNING juju.apiserver.provisioner provisioninginfo.go:549 failed to save published image metadata: cannot save cloud image metadata: state changing too quickly; try again soon
2017-05-18 23:25:19 WARNING juju.provisioner provisioner_task.go:739 failed to start instance (no "xenial" images in serverstack with arches [amd64]), retrying in 10s (10 more attempts)
2017-05-18 23:25:29 WARNING juju.provisioner provisioner_task.go:739 failed to start instance (no "xenial" images in serverstack with arches [amd64]), retrying in 10s (9 more attempts)
2017-05-18 23:25:40 WARNING juju.provisioner provisioner_task.go:739 failed to start instance (no "xenial" images in serverstack with arches [amd64]), retrying in 10s (8 more attempts)
2017-05-18 23:25:51 WARNING juju.provisioner provisioner_task.go:739 failed to start instance (no "xenial" images in serverstack with arches [amd64]), retrying in 10s (7 more attempts)
2017-05-18 23:26:02 WARNING juju.provisioner provisioner_task.go:739 failed to start instance (no "xenial" images in serverstack with arches [amd64]), retrying in 10s (6 more attempts)
2017-05-18 23:26:12 WARNING juju.provisioner provisioner_task.go:739 failed to start instance (no "xenial" images in serverstack with arches [amd64]), retrying in 10s (5 more attempts)

Tags: uosci
Revision history for this message
Ian Booth (wallyworld) wrote :

Would it be possible to attach a dump of the cloudimagemetadata collection, as well as the simplestreams json files which were updated, so we can see why the save error occurs?

Changed in juju:
milestone: none → 2.2-rc1
importance: Undecided → High
status: New → Triaged
Changed in juju:
status: Triaged → Incomplete
Revision history for this message
James Page (james-page) wrote :

daily image stream from the impacted cloud:

http://paste.ubuntu.com/24603822/

Revision history for this message
James Page (james-page) wrote :

not quite sure how to 'dump of the cloudimagemetadata'

Changed in juju:
status: Incomplete → New
Revision history for this message
James Page (james-page) wrote :
Download full text (3.6 KiB)

Bumped debug log up a bit:

>> This part is normal <<
2017-05-19 10:31:35 DEBUG juju.environs.simplestreams simplestreams.go:454 skipping index "http://cloud-images.ubuntu.com/daily/streams/v1/index.sjson" because of missing information: index file has no data for cloud {serverstack http://10.245.161.156:5000/v3} not found
2017-05-19 10:31:35 WARNING juju.apiserver.provisioner provisioninginfo.go:534 encountered index file has no data for cloud {serverstack http://10.245.161.156:5000/v3} not found while getting published images metadata from default ubuntu cloud images

>> Pickup of stream data from cloud <<

2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:amd64:lxd::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:i386:lxd::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:amd64:kvm::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:i386:lxd::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:i386:kvm::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:amd64:lxd::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:amd64:lxd::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:i386:lxd::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:amd64:kvm::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:i386:lxd::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:i386:kvm::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:amd64:lxd::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:amd64:lxd::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:i386:lxd::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:amd64:kvm::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metadata for daily:serverstack:xenial:i386:lxd::keystone catalog
2017-05-19 10:31:35 DEBUG juju.state.cloudimagemetadata image.go:66 inserting cloud image metad...

Read more...

Revision history for this message
James Page (james-page) wrote :

OK scratched away at this a bit further - turns out this was due to the fact that we where syncing both squashfs and root.tar.gz format images for some ubuntu series into the cloud; this resulted in multiple entry types for the lxd virt type for a particular image, which appears to have been the caused of the error in juju being unable to save the cloud image metadata.

Ryan Beisner (1chb1n)
tags: added: uosci
Revision history for this message
Ian Booth (wallyworld) wrote :

@James, thanks for the extra info - Juju clearly needs to handle this better and surface a clear explanation of what went wrong.

Changed in juju:
assignee: nobody → Ian Booth (wallyworld)
status: New → Triaged
Revision history for this message
Ian Booth (wallyworld) wrote :
Revision history for this message
Ian Booth (wallyworld) wrote :

Improved the error message when attempting to save duplicate records.

Changed in juju:
status: Triaged → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.