hook-ansible miss caused AttributeError

Bug #1436740 reported by Haiwei Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Heat Templates
Fix Committed
Undecided
Unassigned

Bug Description

When testing the software-config example-ansible-template.yaml, got this error in os-collect-config.log

03-26 08:35:51,310] (heat-config) [DEBUG] Running ansible-playbook -i localhost, /var/lib/heat-config/heat-config-ansible/a9c3193d-d71a-4576-b4cd-875477bd21fe_playbook.yaml --extra-vars @/var/lib/heat-config/heat-config-ansible/a9c3193d-d71a-4576-b4cd-875477bd21fe_variables.json
Mar 26 08:35:51 ansible-inst os-collect-config: Traceback (most recent call last):
Mar 26 08:35:51 ansible-inst os-collect-config: File "/var/lib/heat-config/hooks/ansible", line 117, in <module>
Mar 26 08:35:51 ansible-inst os-collect-config: sys.exit(main(sys.argv))
Mar 26 08:35:51 ansible-inst os-collect-config: File "/var/lib/heat-config/hooks/ansible", line 79, in main
Mar 26 08:35:51 ansible-inst os-collect-config: stderr=subprocess.PIPE)
Mar 26 08:35:51 ansible-inst os-collect-config: File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
Mar 26 08:35:51 ansible-inst os-collect-config: errread, errwrite)
Mar 26 08:35:51 ansible-inst os-collect-config: File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
Mar 26 08:35:51 ansible-inst os-collect-config: raise child_exception
Mar 26 08:35:51 ansible-inst os-collect-config: AttributeError: 'list' object has no attribute 'rfind'
Mar 26 08:35:51 ansible-inst os-collect-config:
Mar 26 08:35:51 ansible-inst os-collect-config: [2015-03-26 08:35:51,363] (heat-config) [ERROR] Error running /var/lib/heat-config/hooks/ansible. [1]

This is caused by the hook-ansible.py's miss in heat-config-ansible element

Haiwei Xu (xu-haiwei)
affects: heat → heat-templates
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat-templates (master)

Reviewed: https://review.openstack.org/167920
Committed: https://git.openstack.org/cgit/openstack/heat-templates/commit/?id=faaf253b2fc5531dfe17a3f325a736ba0b2f4b47
Submitter: Jenkins
Branch: master

commit faaf253b2fc5531dfe17a3f325a736ba0b2f4b47
Author: Haiwei Xu <email address hidden>
Date: Thu Mar 26 17:28:19 2015 +0900

    Fix AttributeError caused by hook-ansible

    Currently a python miss in hook-ansible causes AttributeError,
    which will stop the ansible config being deployed.

    Change-Id: I33918424d664dfbe1d9471f0ac80b2a3c974f4d0
    Closes-Bug: #1436740

Changed in heat-templates:
status: New → Fix Committed
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.