Unable to import image to cinder store when using glance multistore

Bug #1981671 reported by swogat pradhan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
New
Undecided
Unassigned

Bug Description

Openstack wallaby tripleo on centos 8 stream

Description of problem:
Unable to import image to cinder store when using glance multistore functionality

Version-Release number of selected component (if applicable):

How reproducible:
deploy glance multistore, try importing a new image or an existing image to all stores available

Steps to Reproduce:
1. Configure glance multistore (rbd and cinder)
2. Try importing a image using direct or web-download or copy-image option
3. Image import fails

Actual results:
Image property shows os_glance_failed_import : cinder1_store
and image status staus queued forever

Expected results:
Image should be successfully imported to other stores

Additional info:
Openstack wallaby tripleo.

Glance parameters used:
parameter_defaults:
  GlanceBackend: rbd
  GlanceMultistoreConfig:
    cinder1_store:
      GlanceBackend: cinder
      GlanceCinderVolumeType: LenovoDM
      GlanceStoreDescription: 'First cinder store'
  GlanceCinderVolumeType: LenovoDM
  GlanceEnabledImportMethods: glance-direct,web-download,copy-image

Cindervolumetype LenovoDM backend is configured via netapp_iscsi

Glance config:
[default_backend]
rbd_store_ceph_conf=/etc/ceph/ceph.conf
rbd_store_user=openstack
rbd_store_pool=images
rbd_thin_provisioning=False
store_description=Default glance store backend.

[cinder1_store]
cinder_store_auth_address=http://172.25.201.250:5000/v3
cinder_store_project_name=service
cinder_store_user_name=glance
cinder_store_password=JuIC4SSy2Y1snvDHEQVpA2X9k
cinder_os_region_name=regionOne
cinder_volume_type=LenovoDM
cinder_mount_point_base=/var/lib/glance/mnt
store_description=Default glance store backend.

When tried copy-image of a virtio image:
cinder-volume logs:
2022-06-16 11:34:30.871 231 INFO cinder.volume.flows.manager.create_volume [req-56e679e0-12b6-43b0-b5bd-4ec0c3ba8888 f7f2375b7e144286abce179c1cf8011e 7c9659572662449da4906cc77b33f21b - - -] Volume 62c36860-15ae-487f-bae6-6d9de3f57446: being created as raw with specification: {'status': 'creating', 'volume_name': 'volume-62c36860-15ae-487f-bae6-6d9de3f57446', 'volume_size': 1}
2022-06-16 11:34:31.008 231 INFO cinder.volume.flows.manager.create_volume [req-56e679e0-12b6-43b0-b5bd-4ec0c3ba8888 f7f2375b7e144286abce179c1cf8011e 7c9659572662449da4906cc77b33f21b - - -] Volume volume-62c36860-15ae-487f-bae6-6d9de3f57446 (62c36860-15ae-487f-bae6-6d9de3f57446): created successfully
2022-06-16 11:34:31.040 231 INFO cinder.volume.manager [req-56e679e0-12b6-43b0-b5bd-4ec0c3ba8888 f7f2375b7e144286abce179c1cf8011e 7c9659572662449da4906cc77b33f21b - - -] Created volume successfully.
2022-06-16 11:34:34.397 231 INFO cinder.volume.manager [req-dd6cc0d8-07c9-4088-8150-f0abd9423a0b f7f2375b7e144286abce179c1cf8011e 7c9659572662449da4906cc77b33f21b - - -] attachment_update completed successfully.
2022-06-16 11:34:35.136 231 INFO cinder.volume.manager [req-1273537b-9de5-4e50-b070-d65f9c2339f9 f7f2375b7e144286abce179c1cf8011e 7c9659572662449da4906cc77b33f21b - - -] Terminate volume connection completed successfully.
2022-06-16 11:34:37.261 231 INFO cinder.volume.manager [req-eeb885a6-a8a2-432e-85f2-d089c683c3f0 f7f2375b7e144286abce179c1cf8011e 7c9659572662449da4906cc77b33f21b - - -] Deleted volume successfully.

** No error's or whatsoever in glance api logs

Glance parameters used:
parameter_defaults:
  GlanceBackend: rbd
  GlanceMultistoreConfig:
    cinder1_store:
      GlanceBackend: cinder
      GlanceCinderVolumeType: LenovoDM
      GlanceStoreDescription: 'First cinder store'
  GlanceCinderVolumeType: LenovoDM
  GlanceEnabledImportMethods: glance-direct,web-download,copy-image

Cindervolumetype LenovoDM backend is configured via netapp_iscsi

Glance config:
[default_backend]
rbd_store_ceph_conf=/etc/ceph/ceph.conf
rbd_store_user=openstack
rbd_store_pool=images
rbd_thin_provisioning=False
store_description=Default glance store backend.

[cinder1_store]
cinder_store_auth_address=http://172.25.201.250:5000/v3
cinder_store_project_name=service
cinder_store_user_name=glance
cinder_store_password=JuIC4SSy2Y1snvDHEQVpA2X9k
cinder_os_region_name=regionOne
cinder_volume_type=LenovoDM
cinder_mount_point_base=/var/lib/glance/mnt
store_description=Default glance store backend.

When tried copy-image of a virtio image:
cinder-volume logs:
2022-06-16 11:34:30.871 231 INFO cinder.volume.flows.manager.create_volume [req-56e679e0-12b6-43b0-b5bd-4ec0c3ba8888 f7f2375b7e144286abce179c1cf8011e 7c9659572662449da4906cc77b33f21b - - -] Volume 62c36860-15ae-487f-bae6-6d9de3f57446: being created as raw with specification: {'status': 'creating', 'volume_name': 'volume-62c36860-15ae-487f-bae6-6d9de3f57446', 'volume_size': 1}
2022-06-16 11:34:31.008 231 INFO cinder.volume.flows.manager.create_volume [req-56e679e0-12b6-43b0-b5bd-4ec0c3ba8888 f7f2375b7e144286abce179c1cf8011e 7c9659572662449da4906cc77b33f21b - - -] Volume volume-62c36860-15ae-487f-bae6-6d9de3f57446 (62c36860-15ae-487f-bae6-6d9de3f57446): created successfully
2022-06-16 11:34:31.040 231 INFO cinder.volume.manager [req-56e679e0-12b6-43b0-b5bd-4ec0c3ba8888 f7f2375b7e144286abce179c1cf8011e 7c9659572662449da4906cc77b33f21b - - -] Created volume successfully.
2022-06-16 11:34:34.397 231 INFO cinder.volume.manager [req-dd6cc0d8-07c9-4088-8150-f0abd9423a0b f7f2375b7e144286abce179c1cf8011e 7c9659572662449da4906cc77b33f21b - - -] attachment_update completed successfully.
2022-06-16 11:34:35.136 231 INFO cinder.volume.manager [req-1273537b-9de5-4e50-b070-d65f9c2339f9 f7f2375b7e144286abce179c1cf8011e 7c9659572662449da4906cc77b33f21b - - -] Terminate volume connection completed successfully.
2022-06-16 11:34:37.261 231 INFO cinder.volume.manager [req-eeb885a6-a8a2-432e-85f2-d089c683c3f0 f7f2375b7e144286abce179c1cf8011e 7c9659572662449da4906cc77b33f21b - - -] Deleted volume successfully.

** No error's or whatsoever in glance api logs

when i try direct-method and web-download method the image stays in queued forever

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.