ceph-client failing on "Retrieve keyrings for openstack clients from ceph cluster"

Bug #1608775 reported by Logan V
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Jesse Pretorius

Bug Description

TASK [ceph_client : Retrieve keyrings for openstack clients from ceph cluster] *
task path: /home/ubuntu/openstack-ansible-overlay/openstack-ansible/playbooks/roles/ceph_client/tasks/ceph_auth.yml:21
An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
  File "/opt/ansible-runtime/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 96, in run
    item_results = self._run_loop(items)
  File "/opt/ansible-runtime/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 252, in _run_loop
    res = self._execute(variables=task_vars)
  File "/opt/ansible-runtime/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 427, in _execute
    retries = self._task.retries + 1
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

fatal: [aio1_glance_container-735c0070]: FAILED! => {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""}

I found that this was being caused by the task not having a retries attribute defined. Once I defined retries on the task it succeeded.

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

Fix proposed to branch: master
Review: https://review.openstack.org/349780

Changed in openstack-ansible:
assignee: nobody → Logan V (logan2211)
status: New → In Progress
Changed in openstack-ansible:
assignee: Logan V (logan2211) → Jesse Pretorius (jesse-pretorius)
Revision history for this message
Nish Patwa (nishpatwa) wrote :

Hi Logan,

I am new to openstack-ansible and I am trying to reproduce your bug.
It would be great if you can help me reproduce the bug.

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

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

commit b2629de0a27be9a15d4ffc1d08a05bda28f364df
Author: Logan V <email address hidden>
Date: Mon Aug 1 23:07:48 2016 -0500

    Define retries on ceph keyring fetch task

    See the bug for more information however the task was failing due
    to the lack of retries being defined. I am only experiencing this
    on the master branch currently so it seems to be isolated to newer
    ansible versions.

    Change-Id: Iaff07adec857cf4f1084109ed0ecfc6d716c4e40
    Closes-Bug: #1608775

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 14.0.0.0b3

This issue was fixed in the openstack/openstack-ansible 14.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.