raxmon-all playbook fails in juno (10.1.10)

Bug #1472688 reported by Bjoern
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Invalid
Undecided
Unassigned
Juno
Fix Released
Undecided
Bjoern
Trunk
Invalid
Undecided
Unassigned

Bug Description

raxmon-all playbook fails in juno (10.1.10) to install the admin role for the maas user

TASK: [Add monitoring keystone user to admin role] ****************************
<172.29.238.145> ESTABLISH CONNECTION FOR USER: root
<172.29.238.145> REMOTE_MODULE keystone command=ensure_user_role token="xxxx" endpoint="http://172.29.236.10:35357/v2.0" user_name="maas" tenant_name=admin
<172.29.238.145> EXEC ['ssh', '-C', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'StrictHostKeyChecking=no', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=120', u'172.29.238.145', u"/bin/sh -c 'LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8 /usr/bin/python'"]
failed: [617564-infra03_keystone_container-d8ec4047] => {"err": "Missing [ role_name ] from Task or found a None value", "failed": true, "rc": 0}
msg: variables ['user_name', 'tenant_name', 'role_name'] - available params [ {'endpoint': 'http://172.29.236.10:35357/v2.0', 'description': None, 'service_name': None, 'adminurl': None, 'tenant_name': 'admin', 'login_password': None, 'return_code': ['0'], 'email': None, 'login_tenant_name': None, 'token': 'xxxx', 'role_name': None, 'command': 'ensure_user_role', 'publicurl': None, 'login_user': None, 'service_type': None, 'password': None, 'user_name': 'maas', 'internalurl': None, 'region_name': None} ]

The issue seem to be present inside the raxmon_agent.yml playbook and can be fixed:

rpc_deployment/playbooks/monitoring/raxmon_agent.yml
+++ b/rpc_deployment/playbooks/monitoring/raxmon_agent.yml
@@ -46,6 +46,7 @@
       endpoint="{{ auth_admin_uri }}"
       user_name="{{ maas_keystone_user }}"
       tenant_name=admin
+ role_name=admin

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

Fix proposed to branch: juno
Review: https://review.openstack.org/199639

Changed in openstack-ansible:
status: New → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-ansible-deployment (juno)

Reviewed: https://review.openstack.org/199639
Committed: https://git.openstack.org/cgit/stackforge/os-ansible-deployment/commit/?id=9c32b0160247c907b3b923f2c05774501266fab5
Submitter: Jenkins
Branch: juno

commit 9c32b0160247c907b3b923f2c05774501266fab5
Author: Bjoern Teipel <email address hidden>
Date: Wed Jul 8 12:30:16 2015 -0500

    Adding missing role for maas user creation

    Closes-Bug: #1472688
    Change-Id: I0753a5041525417742357a275de1ec135f8975f6

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.