ansible-playbook-3 symlink missing on RHEL8

Bug #1817365 reported by Emilien Macchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Emilien Macchi

Bug Description

Deploying the undercloud on RHEL8:

FileNotFoundError: [Errno 2] No such file or directory: 'ansible-playbook-3': 'ansible-playbook-3'
None

I thought we fixed it but apparently not it broke again.

Revision history for this message
Emilien Macchi (emilienm) wrote :
Changed in tripleo:
milestone: none → stein-3
importance: Undecided → High
status: New → Triaged
Revision history for this message
Cédric Jeanneret (cjeanner) wrote :

Hey,

So, if we're not root, no symlink - looks like a bad thing to do. We'd probably run a subprocess.call() with sudo in case we need that access. Will try to provide a patch on that.

Changed in tripleo:
assignee: nobody → Cédric Jeanneret (cjeanner)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

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

Changed in tripleo:
status: Triaged → In Progress
Changed in tripleo:
assignee: Cédric Jeanneret (cjeanner) → Emilien Macchi (emilienm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.openstack.org/639077
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=88d3dfd5e74ab738983d8d79b6a1b0eb88a9e167
Submitter: Zuul
Branch: master

commit 88d3dfd5e74ab738983d8d79b6a1b0eb88a9e167
Author: Cédric Jeanneret <email address hidden>
Date: Mon Feb 25 13:16:28 2019 +0100

    Ensure created symlink is in $PATH

    With "sudo", the $PATH is overriden an really basic:
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    It doesn't list the /usr/local/(s)bin, hence the created
    symlink wasn't seen by the script.

    It also push that symlink creation in the __new__ special
    method in order to make it cleaner.

    Finaly, it takes care of lint/pep8 failures, not related to
    this change (how is that even possible?!)

    Co-Authored-By: Natal Ngétal <email address hidden>
    Closes-Bug: 1817365
    Partial-Bug: 1816446

    Change-Id: If09eb32f43b2c26c8cd8a89f2e862db1dd91dfed

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 11.3.0

This issue was fixed in the openstack/python-tripleoclient 11.3.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.