Failed to create share server cause of image not found

Bug #1844046 reported by Eric Xie on 2019-09-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Manila
Undecided
Eric Xie

Bug Description

I used 'manila-service-image-master' image to create share. The configurations in manila.conf:
[generic]
...
service_image_name = manila-service-image-master

root@ctl01:~# openstack image list | grep manila-service-image-master
| db986e3c-1a27-4506-9d00-6f2dc0abcccb | manila-service-image-master | active |
root@ctl01:~# openstack image show manila-service-image-master
+------------------+----------------------------------------------------------------------------------------------------------+
| Field | Value |
+------------------+----------------------------------------------------------------------------------------------------------+
| checksum | a06f83f16b89ea3b3a1d1bea037cc446 |
| container_format | bare |
| created_at | 2019-08-05T09:04:50Z |
| disk_format | raw |
| file | /v2/images/db986e3c-1a27-4506-9d00-6f2dc0abcccb/file |
| id | db986e3c-1a27-4506-9d00-6f2dc0abcccb |
| min_disk | 0 |
| min_ram | 0 |
| name | manila-service-image-master |
| owner | 187e1165ec2a40e9a72efab673e940d9 |
| properties | direct_url='rbd://dda6d394-a64a-4fda-aacc-01de3e9e7724/images/db986e3c-1a27-4506-9d00-6f2dc0abcccb/snap' |
| protected | False |
| schema | /v2/schemas/image |
| size | 2032992256 |
| status | active |
| tags | |
| updated_at | 2019-09-15T10:11:29Z |
| virtual_size | None |
| visibility | public |
+------------------+----------------------------------------------------------------------------------------------------------+

But share was error cause that this image was not found.
LOG:
2019-09-14 15:03:57.265 21426 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/dist-packages/manila/share/drivers/service_instance.py", line 493, in _get_service_image
2019-09-14 15:03:57.265 21426 ERROR oslo_messaging.rpc.server "'active' state.") % service_image_name)
2019-09-14 15:03:57.265 21426 ERROR oslo_messaging.rpc.server ServiceInstanceException: Image with name 'manila-service-image-master' was not found or is not in 'active' state.

I downloaded this image and upload it again. It works.

Version:
# apt list --installed | grep manila

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

manila-common/xenial,xenial,now 1:6.0.2-2~u16.04 all [installed,automatic]
manila-share/xenial,xenial,now 1:6.0.2-2~u16.04 all [installed]
python-manila/xenial,xenial,now 1:6.0.2-2~u16.04 all [installed,automatic]

Tom Barron (tpb) wrote :

Eric, offhand this seems like a case where the image had not fully uploaded when you attempted the create of the share (if e.g. your openstack-image-show command above was issued after the create attempt that would be possible). If you are sure this isn't the case, please provide instructions how to reproduce the issue since I'm not seeing it using upstream code.

Eric Xie (eric-xie) wrote :

@Tom, no, the image had been uploaded.
I confirmed that the 'self.compute_api.image_list(context)' can not list all images.
Because 'limit_param_default = 25' was in glance-api.conf.
So i think if can use get not list for image.

Changed in manila:
assignee: nobody → Eric Xie (eric-xie)
status: New → In Progress
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers