Bug 1382737
Summary: | Nova snapshot fails in ceph direct image setup | |||
---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Attila Fazekas <afazekas> | |
Component: | openstack-tripleo-heat-templates | Assignee: | Erno Kuvaja <ekuvaja> | |
Status: | CLOSED ERRATA | QA Contact: | Attila Fazekas <afazekas> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 10.0 (Newton) | CC: | ekuvaja, gfidente, jomurphy, jschluet, mburns, pgrist, rhel-osp-director-maint, scohen, tshefi, twilkins | |
Target Milestone: | rc | Keywords: | Automation, AutomationBlocker, Triaged | |
Target Release: | 10.0 (Newton) | Flags: | scohen:
needinfo+
|
|
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | openstack-tripleo-heat-templates-5.0.0-0.5.0rc3.el7ost | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1500265 (view as bug list) | Environment: | ||
Last Closed: | 2016-12-14 16:13:58 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1500265 |
Description
Attila Fazekas
2016-10-07 14:30:22 UTC
Setting the show_multiple_locations=True in the glance-api.conf on the controller nodes can help. I can't remember to the full history, but the issue might be related to moving to glance v2. show_image_direct_url itself leads to some security concerns, I did not checked what will be consequences of using show_multiple_locations. Similar issue solved with devstack-plugin-ceph: https://review.openstack.org/#/c/279630/ Taking over from Giulio. This is likely indeed related to how Glance-api gets configured and what Nova tries to do during snapshot. *** Bug 1388119 has been marked as a duplicate of this bug. *** Verified, on: openstack-tripleo-heat-templates-5.0.0-1.6.el7ost.noarch Image from an instance created successfully. Glance uses CEPH default_store = rbd glance --os-image-api-version 2 image-show 02003428-a88b-4798-a350-b4965a99ea15 ... | locations | [{"url": "rbd://118c1c40-a9bf- | | | 11e6-9924-525400cbcb06/images/02003428-a88b-4798- Nova also uses CEPH [root@compute-0 ~]# grep -i rbd /etc/nova/nova.conf images_rbd_pool=vms rbd_secret_uuid=118c1c40-a9bf-11e6-9924-525400cbcb06 images_type=rbd images_rbd_ceph_conf=/etc/ceph/ceph.conf rbd_user=openstack Booted an instance called: server1 [stack@undercloud-0 ~]$ nova list .. | 8c556a44-d190-4c53-bab0-bb20884a8f63 | server1 | ACTIVE | - | Running | public=10.0.0.211 | Created an image from server1: [stack@undercloud-0 ~]$ openstack server image create 8c556a44-d190-4c53-bab0-bb20884a8f63 +------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | created_at | 2016-11-14T06:25:12.000000 | | deleted | False | | id | c03d0614-05e5-458a-ab82-d472ff3c301b | | is_public | False | | min_disk | 2 | | min_ram | 0 | | name | server1 | | owner | 30c8fba5b4f34392b738e10a48457233 | | properties | base_image_ref='02003428-a88b-4798-a350-b4965a99ea15', image_type='snapshot', instance_uuid='8c556a44-d190-4c53-bab0-bb20884a8f63', | | | user_id='6c1c70bc084b45d88d117eabab491c7a' | | protected | False | | status | queued | | updated_at | 2016-11-14T06:25:12.000000 | +------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Image is created from server1 successfully. Before this image-list only showed initial cirros.raw image. [stack@undercloud-0 ~]$ openstack image list +--------------------------------------+------------+--------+ | ID | Name | Status | +--------------------------------------+------------+--------+ | c03d0614-05e5-458a-ab82-d472ff3c301b | server1 | active | | 02003428-a88b-4798-a350-b4965a99ea15 | cirros.raw | active | +--------------------------------------+------------+--------+ I've also booted a second instance (FromServer1Image) from this new image to verify it - also works. [stack@undercloud-0 ~]$ nova boot FromServer1Image --flavor good --image server1 ... [stack@undercloud-0 ~]$ nova list +--------------------------------------+------------------+--------+------------+-------------+-------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------------------+--------+------------+-------------+-------------------+ | 3081811c-478d-4f89-8ccb-9092b9831de9 | FromServer1Image | ACTIVE | - | Running | public=10.0.0.215 | | 8c556a44-d190-4c53-bab0-bb20884a8f63 | server1 | ACTIVE | - | Running | public=10.0.0.211 | +--------------------------------------+------------------+--------+------------+-------------+-------------------+ This bz appears to focus on the inability to snapshot in the undercloud. Can it also prevent nova from creating a snapshot (nova image-create) in the overcloud? (In reply to Tim Wilkinson from comment #12) > Can it also prevent nova from creating a snapshot (nova image-create) in the > overcloud? Erno supplied the answer that resolved the issue for me. I was able to make the necessary change to the glance config files and restart the services. Thanks. #c14, Erno answered Tim. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-2948.html |