repo install fails when limiting to one controller node

Bug #1659962 reported by Gnanasekar Velu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Gnanasekar Velu

Bug Description

openstack-ansible repo install fails when limiting to one node

Failed when running "openstack-ansible repo-install.yml --limit host1*"

Below is the error:
TASK [repo_server : Create authorized keys file from host vars] ****************
fatal: [host1_repo_container-89ff87ab]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: Unable to look up a name or access an attribute in template string ({{ hostvars[item]['repo_pubkey'] | b64decode }}).\nMake sure your variable name does not contain invalid characters like '-': a2b_base64() argument 1 must be convertible to a buffer, not StrictUndefined\n\nThe error appears to have been in '/etc/ansible/roles/repo_server/tasks/repo_key_distribute.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Create authorized keys file from host vars\n ^ here\n"}

Gnanasekar Velu (gvelu)
Changed in openstack-ansible:
assignee: nobody → Gnanasekar Velu (gvelu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-repo_server (master)

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

Changed in openstack-ansible:
assignee: Gnanasekar Velu (gvelu) → Gnanasekar Velu (gnanasekarkas)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-repo_server (master)

Reviewed: https://review.openstack.org/426416
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-repo_server/commit/?id=9d21a73fb2244258aa4a751d1afa5b9d2faddf86
Submitter: Jenkins
Branch: master

commit 9d21a73fb2244258aa4a751d1afa5b9d2faddf86
Author: Gnanasekar Velu <email address hidden>
Date: Fri Jan 27 14:05:24 2017 -0800

    Fix for installing repo-server with limit

    This fix will help in installing repo container limiting
    to nodes

    Closes-Bug: 1659962
    Change-Id: I0e50e2b1861fa7944aebfefcbcbee58207426a00

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-repo_server (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/426426

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-repo_server 15.0.0.0rc1

This issue was fixed in the openstack/openstack-ansible-repo_server 15.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-repo_server (stable/newton)

Reviewed: https://review.openstack.org/426426
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-repo_server/commit/?id=3de29afd1206559c21c906a73854e15f0d30bf9f
Submitter: Jenkins
Branch: stable/newton

commit 3de29afd1206559c21c906a73854e15f0d30bf9f
Author: Gnanasekar Velu <email address hidden>
Date: Fri Jan 27 14:05:24 2017 -0800

    Fix for installing repo-server with limit

    This fix is required if we rebuild a repo container and install
    openstack-ansible only to that host. Without this fix we need to run
    openstack-service against all nodes.

    Closes-Bug: 1659962
    Change-Id: I0e50e2b1861fa7944aebfefcbcbee58207426a00

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-repo_server 14.1.0

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

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.