cinder volume creation failed because glance round-robin

Bug #1571128 reported by Serguei Bezverkhi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
High
Steven Dake
Liberty
Won't Fix
High
Unassigned
Mitaka
Won't Fix
High
Steven Dake

Bug Description

currently cinder config point to VIP for glance api server which breaks cinder volume creation in a multinode HA configuration.

Here are steps to reproduce it:

1. Add image to glance
    glance image-create --name ubuntu-14.04.4-server --container bare --disk-format iso --file ubuntu-14.04.4-server-amd64.iso
glance image-list
+--------------------------------------+-----------------------+
| ID | Name |
+--------------------------------------+-----------------------+
| 90546163-3b61-455a-93ad-e040fd0be1eb | ubuntu-14.04.4-server |
+--------------------------------------+-----------------------+
2. create cinder volume using glance image just created.
   cinder create --name ubuntu-14.04.4-server-cd-1 --image 90546163-3b61-455a-93ad-e040fd0be1eb 1
   This step should succeed.
| eead3df3-68bd-4ef6-80d6-243d1d623056 | available | ubuntu-14.04.4-server-cd-1 | 1 | - | true | |

3. create another cinder volume using the same image, but different volume name
cinder create --name ubuntu-14.04.4-server-cd-2 --image 90546163-3b61-455a-93ad-e040fd0be1eb 1
| 123bc251-9699-4fcd-a370-5333053b787a | error | | 1 | - | false | |

This step will fail because cinder will try to contact glance API by its configured VIP address and due to round-robin, this request will be redirected to one of controllers, since there is no by default replication of glance images, the server where the request landed will not be able to satisfy it and volume creation operation fails.

Steven Dake (sdake)
Changed in kolla:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Steven Dake (sdake)
milestone: none → newton-1
Changed in kolla:
status: Confirmed → In Progress
Changed in kolla:
milestone: newton-1 → newton-2
Changed in kolla:
milestone: newton-2 → newton-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/306662
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=aebb1997a1fe0267906905e931c83bf20dd01b23
Submitter: Jenkins
Branch: master

commit aebb1997a1fe0267906905e931c83bf20dd01b23
Author: Steven Dake <email address hidden>
Date: Fri Apr 15 16:42:36 2016 -0700

    Make Cinder access glance in round robin fashion

    In the old rendition of this code, Cinder would attempt
    one access to glance, fail, and then cinder would fail. Now
    it accesses all servers in round robin fashion.

    Change-Id: I4759b0b586919b33f49b974312072820062f35c2
    Closes-Bug: #1571128

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 3.0.0.0b3

This issue was fixed in the openstack/kolla 3.0.0.0b3 development milestone.

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.