OSTF test for Glance failed because of bug in Ceph backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Invalid
|
High
|
Kairat Kushaev | ||
8.0.x |
Invalid
|
High
|
MOS Maintenance | ||
9.x |
Invalid
|
High
|
Kairat Kushaev |
Bug Description
Detailed bug description:
OSTF test "Launch instance, create snapshot, launch instance from snapshot" failed at the step 3. Make snapshot of the created instance.
Steps to reproduce:
1. Install MOS 8.0 with standalone-ceph plugin
https:/
2. Deploy environment with 3 controllers, 3 Ceph controllers (plugin), 3 Ceph storage, Mongo for Ceilometer, compute.
3. Run OSTF.
Expected results:
Successfull finish of OSTF testing.
Actual result:
OSTF run failed.
Description of the environment:
- Network model: Neutron with tunneling segmentation
Additional information:
After OSTF test fails, there is a VM snapshot, that left in Glance:
# glance image-list
+------
| ID | Name |
+------
| c9396969-
| cb94978e-
+------
# glance -d image-show ost1_test-
Request returned failure status 404.
Traceback (most recent call last):
File "/usr/lib/
args.
File "/usr/lib/
image = gc.images.
File "/usr/lib/
resp, body = self.http_
File "/usr/lib/
return self.request(url, 'GET', **kwargs)
File "/usr/lib/
return self._handle_
File "/usr/lib/
raise exc.from_
HTTPNotFound: 404 Not Found: No image found with ID ost1_test-
404 Not Found: No image found with ID ost1_test-
# glance -d image-delete ost1_test-
Request returned failure status 404.
No image with an ID of 'ost1_test-
But I can check image's details in Horizon:
Image Details: ost1_test-
Image Overview
Information
Name ost1_test-
ID c9396969-
Owner 6abccf8c0b2f45a
Status Active
Public No
Protected No
Checksum 6b7a6d92ad4f87d
Created July 21, 2016, 9:42 a.m.
Updated July 21, 2016, 9:44 a.m.
Specs
Size 39.2 MB
Container Format BARE
Disk Format RAW
Min RAM 64MB
Custom Properties
base_image_ref cb94978e-
image_location snapshot
image_state available
image_type snapshot
instance_uuid 79cce771-
owner_id 6abccf8c0b2f45a
user_id 881bbbf93d3d4b0
If I check Ceph for that snapshot directly, I can see this:
# rbd -p images list
4284f796-
5180c7f4-
64e036e8-
c9396969-
cb94978e-
# rbd snap ls -p images c9396969-
SNAPID NAME SIZE
16 snap 40162 kB
# rbd children images/
compute/
There is no VMs, running at this moment, so I don't know why there is a compute/..._disk still in Ceph.
If I'll try to do everything manually (run a VM from image, make a snapshot from VM, run another Vm from snapshot, check that second VM works well, delete second VM, delete snapshot), there is no errors at all.
So glance v2 shows images only by ID. The same is applicable for image-delete.
That's why you got 404 errors: "No image found with ID...".
Could you please provide the following info:
what tests failed?
glance api log files
ostf logs.