← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1898168] Re: Cannot create more than one instance when using RAW image with rbd imagebackend

 

Thank you Tony, I'm closing this as Invalid based on your findings.
Please feel free to reopen if you find there is an issue with nova.
Cheers.

** Changed in: nova
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1898168

Title:
  Cannot create more than one instance when using RAW image with rbd
  imagebackend

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  Description
  ===========
  When using rbd as the nova and glance store backend with a RAW image, creating an instance will directly clone the image from glance. It is then impossible to create a second instance from this RAW image.

  I don't know if it's a bug or a configuration error on my part.

  Note with the image property 'img_linked_clone' I could have worked around this problem
  image property named 'img_linked_clone' => https://bugs.launchpad.net/nova/+bug/1697391

  Steps to reproduce
  ==================
  A chronological list of steps which will bring off the
  issue you noticed:
  1. Use rbd as the nova and glance backend.
  2. Upload a RAW image.
  3. Use this image to create a first instance
  4. Use this image again to create a second instance

  Expected result
  ===============
  The second instance should be active like the first

  Actual result
  =============
  Creation of second instance fails. 
  The first instance has directly cloned the image.

  
  * Glance rbd image information :

  rbd info glance/86ae5d55-afc7-48d4-8298-f5d974662922
  	size 10 GiB in 1280 objects
  	order 23 (8 MiB objects)
  	snapshot_count: 1
  	id: e504021b348f19
  	block_name_prefix: rbd_data.e504021b348f19
  	format: 2
  	features: layering, exclusive-lock, object-map, fast-diff, deep-flatten, operations
  	op_features: clone-parent, snap-trash
  	flags: 
  	create_timestamp: Fri Oct  2 08:04:13 2020
  	access_timestamp: Fri Oct  2 08:04:13 2020
  	modify_timestamp: Fri Oct  2 08:07:16 2020

  * Nova rbd image information :

  rbd info vms/cabe736a-ce62-437e-b56b-e073ba001c35_disk
  	size 20 GiB in 2560 objects
  	order 23 (8 MiB objects)
  	snapshot_count: 0
  	id: e51e01344f07ed
  	block_name_prefix: rbd_data.e51e01344f07ed
  	format: 2
  	features: layering, exclusive-lock, object-map, fast-diff, deep-flatten, operations
  	op_features: clone-child
  	flags: 
  	create_timestamp: Fri Oct  2 08:08:26 2020
  	access_timestamp: Fri Oct  2 09:42:02 2020
  	modify_timestamp: Fri Oct  2 09:49:42 2020
  	parent: glance-images/86ae5d55-afc7-48d4-8298-f5d974662922@cdb63293-4620-4e50-b0e8-eb5386c4208d
  	overlap: 10 GiB

  Environment
  ===========
  1. Exact version of OpenStack you are running. See the following
     list for all releases: http://docs.openstack.org/releases/

     "Train" with a kolla-ansible deployment

  2. Which hypervisor did you use?

     libvirt + kvm + rbd

  2. Which storage type did you use?

     ceph

  3. Which networking type did you use?

     N/A

  Kolla-ansible with rbd(Train)

  Logs & Configs
  ==============

  [libvirt]
  connection_uri = qemu+tcp://192.168.1.14/system
  live_migration_inbound_addr = 192.168.1.14
  rbd_secret_uuid = 1706e3a9-c53e-4b2b-8474-b1d601db4770
  virt_type = kvm
  images_rbd_pool = vms
  images_type = rbd
  images_rbd_ceph_conf = /etc/ceph/ceph.conf
  rbd_user = nova
  disk_cachemodes = network=writeback
  hw_disk_discard = unmap
  live_migration_bandwidth = 1000
  inject_key = false
  inject_password = False
  inject_partition = -2

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1898168/+subscriptions


References