scripts/bootstrap-ansible.sh creates openstack-ansible without support for unprivileged users

Bug #1435597 reported by Dolph Mathews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Low
Dolph Mathews

Bug Description

scripts/bootstrap-ansible.sh is used to establish the openstack-ansible wrapper for ansible-playbook and requires root.

According to the documentation in the README, you can use ~/.openstack_deploy/ to configure openstack-ansible as an unprivileged user, but scripts/bootstrap-ansible.sh sets up openstack-ansible using a fixed reference to /etc/openstack_deploy/ anyway.

Either scripts/bootstrap-ansible.sh needs to be fixed to set things up properly for the user running sudo, or support for ~/.openstack_deploy/ should just be dropped. Given that the machine is likely a dedicated ansible runner, I can't think of a strong use case for maintaining the additional complexity of housing config outside of /etc/

Dolph Mathews (dolph)
summary: - scripts/bootstrap-ansible.sh doesn't support unprivileged users
+ scripts/bootstrap-ansible.sh creates openstack-ansible without support
+ for unprivileged users
Revision history for this message
Kevin Carter (kevin-carter) wrote :
Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Dolph Mathews (dolph)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-ansible-deployment (master)

Reviewed: https://review.openstack.org/167010
Committed: https://git.openstack.org/cgit/stackforge/os-ansible-deployment/commit/?id=923f1b226378014657b028f6e4785cd18b3f1b45
Submitter: Jenkins
Branch: master

commit 923f1b226378014657b028f6e4785cd18b3f1b45
Author: Dolph Mathews <email address hidden>
Date: Mon Mar 23 21:05:33 2015 +0000

    Remove support for ~/.openstack_deploy/

    The README documents support for housing openstack_deploy/ in an
    unprivildged user's home directory, but then the script for creating
    openstack-ansible immediately requires root privileges, meaning that you
    can't setup openstack_deploy/ in an unpriviledged user's home dir at
    all.

    This removes support for the feature instead of trying to fix it,
    because I don't see a use case in keeping it, and there are many
    additional fixed references to /etc/keystone_deploy/ that would have to
    be made dynamic.

    Change-Id: I19c6a568d1d52c33b3c13e9c007ca59e44d8c1dd
    Closes-Bug: 1435597

Changed in openstack-ansible:
status: In Progress → Fix Committed
Changed in openstack-ansible:
status: Fix Committed → Fix Released
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.