Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1453895 Details for
Bug 1594454
Glance does not protect qcow2 base images stored on Ceph
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
transcript of my reproducer lab
glance_test.txt (text/plain), 26.37 KB, created by
Cody Swanson
on 2018-06-23 05:25:37 UTC
(
hide
)
Description:
transcript of my reproducer lab
Filename:
MIME Type:
Creator:
Cody Swanson
Created:
2018-06-23 05:25:37 UTC
Size:
26.37 KB
patch
obsolete
>[stack@undercloud-0 ~]$ qemu-img info cirros-0.4.0-x86_64-disk.img >image: cirros-0.4.0-x86_64-disk.img >file format: qcow2 >virtual size: 44M (46137344 bytes) >disk size: 12M >cluster_size: 65536 >Format specific information: > compat: 1.1 > lazy refcounts: false > refcount bits: 16 > corrupt: false >[stack@undercloud-0 ~]$ qemu-img info cirros-0.4.0-x86_64-disk.raw >image: cirros-0.4.0-x86_64-disk.raw >file format: raw >virtual size: 44M (46137344 bytes) >disk size: 13M > >[stack@undercloud-0 ~]$ openstack image create --file cirros-0.4.0-x86_64-disk.img --disk-format qcow2 --public cirros_qcow > >+------------------+----------------------------------------------------------------------------------------------------------------+ >| Field | Value | >+------------------+----------------------------------------------------------------------------------------------------------------+ >| checksum | 443b7623e27ecf03dc9e01ee93f67afe | >| container_format | bare | >| created_at | 2018-06-23T03:52:40Z | >| disk_format | qcow2 | >| file | /v2/images/f7593a43-5674-4b26-933a-5aa74821dd21/file | >| id | f7593a43-5674-4b26-933a-5aa74821dd21 | >| min_disk | 0 | >| min_ram | 0 | >| name | cirros_qcow | >| owner | 373bd13ac03548698e6884af7c4b4805 | >| properties | direct_url='rbd://0073b6fe-1005-11e8-a4af-525400dc863e/images/f7593a43-5674-4b26-933a-5aa74821dd21/snap', | >| | locations='[{u'url': u'rbd://0073b6fe-1005-11e8-a4af-525400dc863e/images/f7593a43-5674-4b26-933a- | >| | 5aa74821dd21/snap', u'metadata': {}}]' | >| protected | False | >| schema | /v2/schemas/image | >| size | 12716032 | >| status | active | >| tags | | >| updated_at | 2018-06-23T03:52:41Z | >| virtual_size | None | >| visibility | public | >+------------------+----------------------------------------------------------------------------------------------------------------+ >[stack@undercloud-0 ~]$ >[stack@undercloud-0 ~]$ openstack image create --file cirros-0.4.0-x86_64-disk.raw --disk-format raw --public cirros_raw >+------------------+----------------------------------------------------------------------------------------------------------------+ >| Field | Value | >+------------------+----------------------------------------------------------------------------------------------------------------+ >| checksum | ba3cd24377dde5dfdd58728894004abb | >| container_format | bare | >| created_at | 2018-06-23T03:52:51Z | >| disk_format | raw | >| file | /v2/images/de715483-b95d-4983-b148-d3c3e751933d/file | >| id | de715483-b95d-4983-b148-d3c3e751933d | >| min_disk | 0 | >| min_ram | 0 | >| name | cirros_raw | >| owner | 373bd13ac03548698e6884af7c4b4805 | >| properties | direct_url='rbd://0073b6fe-1005-11e8-a4af-525400dc863e/images/de715483-b95d-4983-b148-d3c3e751933d/snap', | >| | locations='[{u'url': u'rbd://0073b6fe-1005-11e8-a4af- | >| | 525400dc863e/images/de715483-b95d-4983-b148-d3c3e751933d/snap', u'metadata': {}}]' | >| protected | False | >| schema | /v2/schemas/image | >| size | 46137344 | >| status | active | >| tags | | >| updated_at | 2018-06-23T03:52:53Z | >| virtual_size | None | >| visibility | public | >+------------------+----------------------------------------------------------------------------------------------------------------+ >[stack@undercloud-0 ~]$ openstack server create --image cirros_raw --flavor m1.tiny --min 3 --max 3 cirros_test_raw >+--------------------------------------+---------------------------------------------------+ >| Field | Value | >+--------------------------------------+---------------------------------------------------+ >| OS-DCF:diskConfig | MANUAL | >| OS-EXT-AZ:availability_zone | | >| OS-EXT-SRV-ATTR:host | None | >| OS-EXT-SRV-ATTR:hypervisor_hostname | None | >| OS-EXT-SRV-ATTR:instance_name | | >| OS-EXT-STS:power_state | NOSTATE | >| OS-EXT-STS:task_state | scheduling | >| OS-EXT-STS:vm_state | building | >| OS-SRV-USG:launched_at | None | >| OS-SRV-USG:terminated_at | None | >| accessIPv4 | | >| accessIPv6 | | >| addresses | | >| adminPass | mo7s9To9WrgY | >| config_drive | | >| created | 2018-06-23T03:54:53Z | >| flavor | m1.tiny (6ff7133a-d8cc-400b-8137-a2f629c13e12) | >| hostId | | >| id | bd7229f5-3f6c-42d9-81dd-39faf7a06c6f | >| image | cirros_raw (de715483-b95d-4983-b148-d3c3e751933d) | >| key_name | None | >| name | cirros_test_raw-1 | >| os-extended-volumes:volumes_attached | [] | >| progress | 0 | >| project_id | 373bd13ac03548698e6884af7c4b4805 | >| properties | | >| security_groups | [{u'name': u'default'}] | >| status | BUILD | >| updated | 2018-06-23T03:54:53Z | >| user_id | c07b0e34c0314d9f9f8713640f08c8c4 | >+--------------------------------------+---------------------------------------------------+ >[stack@undercloud-0 ~]$ openstack server create --image cirros_qcow --flavor m1.tiny --min 3 --max 3 cirros_test_qcow2 >+--------------------------------------+----------------------------------------------------+ >| Field | Value | >+--------------------------------------+----------------------------------------------------+ >| OS-DCF:diskConfig | MANUAL | >| OS-EXT-AZ:availability_zone | | >| OS-EXT-SRV-ATTR:host | None | >| OS-EXT-SRV-ATTR:hypervisor_hostname | None | >| OS-EXT-SRV-ATTR:instance_name | | >| OS-EXT-STS:power_state | NOSTATE | >| OS-EXT-STS:task_state | scheduling | >| OS-EXT-STS:vm_state | building | >| OS-SRV-USG:launched_at | None | >| OS-SRV-USG:terminated_at | None | >| accessIPv4 | | >| accessIPv6 | | >| addresses | | >| adminPass | r3rdZEMjTa73 | >| config_drive | | >| created | 2018-06-23T03:55:20Z | >| flavor | m1.tiny (6ff7133a-d8cc-400b-8137-a2f629c13e12) | >| hostId | | >| id | 74076683-1c07-45b0-b712-f24496cb3b0d | >| image | cirros_qcow (f7593a43-5674-4b26-933a-5aa74821dd21) | >| key_name | None | >| name | cirros_test_qcow2-1 | >| os-extended-volumes:volumes_attached | [] | >| progress | 0 | >| project_id | 373bd13ac03548698e6884af7c4b4805 | >| properties | | >| security_groups | [{u'name': u'default'}] | >| status | BUILD | >| updated | 2018-06-23T03:55:20Z | >| user_id | c07b0e34c0314d9f9f8713640f08c8c4 | >+--------------------------------------+----------------------------------------------------+ >[stack@undercloud-0 ~]$ openstack server list >+--------------------------------------+---------------------+--------+----------+-------------+ >| ID | Name | Status | Networks | Image Name | >+--------------------------------------+---------------------+--------+----------+-------------+ >| 332d5e73-d056-4625-a1df-8eae908c89cf | cirros_test_qcow2-3 | ACTIVE | | cirros_qcow | >| 41d9acef-a76f-4503-b591-c7244d5e7d0d | cirros_test_qcow2-2 | ACTIVE | | cirros_qcow | >| 74076683-1c07-45b0-b712-f24496cb3b0d | cirros_test_qcow2-1 | ACTIVE | | cirros_qcow | >| 377c527e-4693-4bf4-956b-741c82d6bc39 | cirros_test_raw-3 | ACTIVE | | cirros_raw | >| 16d733e6-f955-462c-af09-f42cd45a204d | cirros_test_raw-2 | ACTIVE | | cirros_raw | >| bd7229f5-3f6c-42d9-81dd-39faf7a06c6f | cirros_test_raw-1 | ACTIVE | | cirros_raw | >+--------------------------------------+---------------------+--------+----------+-------------+ >[stack@undercloud-0 ~]$ openstack image list >+--------------------------------------+-------------+--------+ >| ID | Name | Status | >+--------------------------------------+-------------+--------+ >| de715483-b95d-4983-b148-d3c3e751933d | cirros_raw | active | >| f7593a43-5674-4b26-933a-5aa74821dd21 | cirros_qcow | active | >+--------------------------------------+-------------+--------+ >[stack@undercloud-0 ~]$ openstack image show de715483-b95d-4983-b148-d3c3e751933d >+------------------+----------------------------------------------------------------------------------------------------------------+ >| Field | Value | >+------------------+----------------------------------------------------------------------------------------------------------------+ >| checksum | ba3cd24377dde5dfdd58728894004abb | >| container_format | bare | >| created_at | 2018-06-23T03:52:51Z | >| disk_format | raw | >| file | /v2/images/de715483-b95d-4983-b148-d3c3e751933d/file | >| id | de715483-b95d-4983-b148-d3c3e751933d | >| min_disk | 0 | >| min_ram | 0 | >| name | cirros_raw | >| owner | 373bd13ac03548698e6884af7c4b4805 | >| properties | direct_url='rbd://0073b6fe-1005-11e8-a4af-525400dc863e/images/de715483-b95d-4983-b148-d3c3e751933d/snap', | >| | locations='[{u'url': u'rbd://0073b6fe-1005-11e8-a4af- | >| | 525400dc863e/images/de715483-b95d-4983-b148-d3c3e751933d/snap', u'metadata': {}}]' | >| protected | False | >| schema | /v2/schemas/image | >| size | 46137344 | >| status | active | >| tags | | >| updated_at | 2018-06-23T03:52:53Z | >| virtual_size | None | >| visibility | public | >+------------------+----------------------------------------------------------------------------------------------------------------+ >[stack@undercloud-0 ~]$ openstack image show f7593a43-5674-4b26-933a-5aa74821dd21 >+------------------+----------------------------------------------------------------------------------------------------------------+ >| Field | Value | >+------------------+----------------------------------------------------------------------------------------------------------------+ >| checksum | 443b7623e27ecf03dc9e01ee93f67afe | >| container_format | bare | >| created_at | 2018-06-23T03:52:40Z | >| disk_format | qcow2 | >| file | /v2/images/f7593a43-5674-4b26-933a-5aa74821dd21/file | >| id | f7593a43-5674-4b26-933a-5aa74821dd21 | >| min_disk | 0 | >| min_ram | 0 | >| name | cirros_qcow | >| owner | 373bd13ac03548698e6884af7c4b4805 | >| properties | direct_url='rbd://0073b6fe-1005-11e8-a4af-525400dc863e/images/f7593a43-5674-4b26-933a-5aa74821dd21/snap', | >| | locations='[{u'url': u'rbd://0073b6fe-1005-11e8-a4af-525400dc863e/images/f7593a43-5674-4b26-933a- | >| | 5aa74821dd21/snap', u'metadata': {}}]' | >| protected | False | >| schema | /v2/schemas/image | >| size | 12716032 | >| status | active | >| tags | | >| updated_at | 2018-06-23T03:52:41Z | >| virtual_size | None | >| visibility | public | >+------------------+----------------------------------------------------------------------------------------------------------------+ >[stack@undercloud-0 ~]$ openstack server list --long -c ID -c Name -c Host -c "Image Name" > >+--------------------------------------+---------------------+-------------+-----------------------+ >| ID | Name | Image Name | Host | >+--------------------------------------+---------------------+-------------+-----------------------+ >| 332d5e73-d056-4625-a1df-8eae908c89cf | cirros_test_qcow2-3 | cirros_qcow | compute-0.localdomain | >| 41d9acef-a76f-4503-b591-c7244d5e7d0d | cirros_test_qcow2-2 | cirros_qcow | compute-2.localdomain | >| 74076683-1c07-45b0-b712-f24496cb3b0d | cirros_test_qcow2-1 | cirros_qcow | compute-1.localdomain | >| 377c527e-4693-4bf4-956b-741c82d6bc39 | cirros_test_raw-3 | cirros_raw | compute-0.localdomain | >| 16d733e6-f955-462c-af09-f42cd45a204d | cirros_test_raw-2 | cirros_raw | compute-1.localdomain | >| bd7229f5-3f6c-42d9-81dd-39faf7a06c6f | cirros_test_raw-1 | cirros_raw | compute-2.localdomain | >+--------------------------------------+---------------------+-------------+-----------------------+ >[stack@undercloud-0 ~]$ >[stack@undercloud-0 ~]$ nova image-create --poll 332d5e73-d056-4625-a1df-8eae908c89cf cirros_test_qcow2-3-snap1 > >Server snapshotting... 100% complete >Finished >[stack@undercloud-0 ~]$ nova image-create --poll 377c527e-4693-4bf4-956b-741c82d6bc39 cirros_test_raw-3-snap1 > >Server snapshotting... 100% complete >Finished >[stack@undercloud-0 ~]$ openstack image delete de715483-b95d-4983-b148-d3c3e751933d >Failed to delete image with name or ID 'de715483-b95d-4983-b148-d3c3e751933d': 409 Conflict >Image de715483-b95d-4983-b148-d3c3e751933d could not be deleted because it is in use: The image cannot be deleted because it is in use through the backend store outside of Glance. > (HTTP 409) >Failed to delete 1 of 1 images. >[stack@undercloud-0 ~]$ openstack image delete f7593a43-5674-4b26-933a-5aa74821dd21 >[stack@undercloud-0 ~]$ nova image-create --poll 332d5e73-d056-4625-a1df-8eae908c89cf cirros_test_qcow2-3-snap2 > >Server snapshotting... 100% complete >Finished >[stack@undercloud-0 ~]$ nova image-create --poll 377c527e-4693-4bf4-956b-741c82d6bc39 cirros_test_raw-3-snap2 > >Server snapshotting... 100% complete >Finished > >nova-compute.log from the compute host: > >2018-06-22 22:14:55.016 183819 INFO nova.compute.manager [req-5b709da1-b3d4-45e6-989e-2d4540bb6be3 - - - - -] [instance: 332d5e73-d056-4625-a1df-8eae908c89cf] During sync_power_state the instance has a pending task (image_snapshot). Skip. >2018-06-22 22:14:55.328 183819 INFO nova.virt.libvirt.driver [req-e7807498-c507-4cf6-a63b-a17a5be6b2cd c07b0e34c0314d9f9f8713640f08c8c4 373bd13ac03548698e6884af7c4b4805 - - -] [instance: 332d5e73-d056-4625-a1df-8eae908c89cf] Beginning cold snapshot process >2018-06-22 22:14:55.880 183819 WARNING nova.virt.libvirt.driver [req-e7807498-c507-4cf6-a63b-a17a5be6b2cd c07b0e34c0314d9f9f8713640f08c8c4 373bd13ac03548698e6884af7c4b4805 - - -] Performing standard snapshot because direct snapshot failed: Cannot determine the parent storage pool for f7593a43-5674-4b26-933a-5aa74821dd21; cannot determine where to store images >2018-06-22 22:14:56.089 183819 DEBUG oslo_concurrency.processutils [req-e7807498-c507-4cf6-a63b-a17a5be6b2cd c07b0e34c0314d9f9f8713640f08c8c4 373bd13ac03548698e6884af7c4b4805 - - -] Running cmd (subprocess): qemu-img convert -O raw rbd:vms/332d5e73-d056-4625-a1df-8eae908c89cf_disk:id=openstack:conf=/etc/ceph/ceph.conf /var/lib/nova/instances/snapshots/tmpnUlCAo/832fc5decbb44a3995548ec52a1e6914 -f raw execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:349 >2018-06-22 22:14:57.206 183819 DEBUG oslo_concurrency.processutils [req-e7807498-c507-4cf6-a63b-a17a5be6b2cd c07b0e34c0314d9f9f8713640f08c8c4 373bd13ac03548698e6884af7c4b4805 - - -] CMD "qemu-img convert -O raw rbd:vms/332d5e73-d056-4625-a1df-8eae908c89cf_disk:id=openstack:conf=/etc/ceph/ceph.conf /var/lib/nova/instances/snapshots/tmpnUlCAo/832fc5decbb44a3995548ec52a1e6914 -f raw" returned: 0 in 1.116s execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:379 >2018-06-22 22:14:57.512 183819 INFO nova.virt.libvirt.driver [req-e7807498-c507-4cf6-a63b-a17a5be6b2cd c07b0e34c0314d9f9f8713640f08c8c4 373bd13ac03548698e6884af7c4b4805 - - -] [instance: 332d5e73-d056-4625-a1df-8eae908c89cf] Snapshot extracted, beginning image upload >2018-06-22 22:15:29.734 183819 INFO nova.virt.libvirt.driver [req-e7807498-c507-4cf6-a63b-a17a5be6b2cd c07b0e34c0314d9f9f8713640f08c8c4 373bd13ac03548698e6884af7c4b4805 - - -] [instance: 332d5e73-d056-4625-a1df-8eae908c89cf] Snapshot image upload complete >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1594454
: 1453895 |
1453896