"Add in cinder devices types" task failing

Bug #1510990 reported by Tiago
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Medium
Hugh Saunders
Kilo
Won't Fix
Medium
Unassigned
Liberty
Fix Released
Medium
Hugh Saunders
Trunk
Fix Released
Medium
Hugh Saunders

Bug Description

The "Add in cinder devices types" task is failing with an "ERROR: Service Unavailable (HTTP 503)" error.

It looks like that the test on the task before "Increase delay for waiting for cinder api" is not enough to verify that the service is ready.

When I run the cinder playbook again, this time succeeds though.

I looked into the logs of every cinder service and the only thing that catched my eye was the cinder-volume log, with shows a "caught SIGTERM, stopping children" message. Not sure whether it matters.

I am using HAProxy, if that is relevant.

Revision history for this message
Tiago (tiago-avv) wrote :
Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :

We need to implement a better API up check, and perhaps implement some retries or a more configurable delay.

Revision history for this message
git-harry (git-harry) wrote :

@Tiago - the relevant logs for this error are from cinder-api. The cinder-volume service is not required by the cinder type-create/type-key tasks in the task 'Add in cinder devices types'.

Revision history for this message
Hugh Saunders (hughsaunders) wrote :

I am attempting to address this bug in: https://review.openstack.org/256414

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master)

Reviewed: https://review.openstack.org/256414
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=eab4b15aeb1204989355705fe2ecdf184d8bbb8b
Submitter: Jenkins
Branch: master

commit eab4b15aeb1204989355705fe2ecdf184d8bbb8b
Author: Hugh Saunders <email address hidden>
Date: Fri Dec 11 13:10:41 2015 +0000

    Use http request to check cinder api availability

    Using a port open check is not reliable when going through a load
    balancer.

    httplib2 is added as it is required by the Ansible uri module.

    Change-Id: I0e489e8f671b262c56c1442e7af85fd53c061598
    Closes-bug: #1525208
    Closes-Bug: #1510990

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (liberty)

Reviewed: https://review.openstack.org/276784
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=9d03db957aca27f28af994131dd25a1a70bd05c8
Submitter: Jenkins
Branch: liberty

commit 9d03db957aca27f28af994131dd25a1a70bd05c8
Author: Hugh Saunders <email address hidden>
Date: Fri Dec 11 13:10:41 2015 +0000

    Use http request to check cinder api availability

    Using a port open check is not reliable when going through a load
    balancer.

    httplib2 is added as it is required by the Ansible uri module.

    Change-Id: I0e489e8f671b262c56c1442e7af85fd53c061598
    Closes-bug: #1525208
    Closes-Bug: #1510990
    (cherry picked from commit eab4b15aeb1204989355705fe2ecdf184d8bbb8b)

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 12.0.8

This issue was fixed in the openstack/openstack-ansible 12.0.8 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 12.0.9

This issue was fixed in the openstack/openstack-ansible 12.0.9 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 13.0.0

This issue was fixed in the openstack/openstack-ansible 13.0.0 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

This issue was fixed in the openstack/openstack-ansible 13.0.0 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 12.0.11

This issue was fixed in the openstack/openstack-ansible 12.0.11 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.