proxy settings are not preserved as we use sudo for uncercloud install

Bug #1811376 reported by Rabi Mishra on 2019-01-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Undecided
Rabi Mishra

Bug Description

We can only do the undercloud install as a non-root user. We use sudo[1] and it would not preserve the proxy settings for the user and would fail.

Lets add --preserve_env flag to openstack tripleo deploy.

[1] https://github.com/openstack/python-tripleoclient/blob/stable/rocky/tripleoclient/v1/undercloud_config.py#L587

Rabi Mishra (rabi) on 2019-01-11
Changed in tripleo:
assignee: nobody → Rabi Mishra (rabi)

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

Changed in tripleo:
status: New → In Progress

Reviewed: https://review.openstack.org/630198
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=0e5a10e2972fec3ee0ba02aac5bc468bb3696055
Submitter: Zuul
Branch: master

commit 0e5a10e2972fec3ee0ba02aac5bc468bb3696055
Author: Rabi Mishra <email address hidden>
Date: Thu Jan 10 11:55:50 2019 +0530

    Use --preserve-env to keep proxy settings

    User may set http_proxy/no_proxy and then run the install.
    We don't preserve the env when doing undercloud install.

    Change-Id: Iec51bf33bdca7fb0d3026512abd9360ef3cecb70
    Closes-Bug: #1811376

Changed in tripleo:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/632102
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=45ba219e81aec0bf7259c53b283f6776ae179252
Submitter: Zuul
Branch: stable/rocky

commit 45ba219e81aec0bf7259c53b283f6776ae179252
Author: Rabi Mishra <email address hidden>
Date: Thu Jan 10 11:55:50 2019 +0530

    Use --preserve-env to keep proxy settings

    User may set http_proxy/no_proxy and then run the install.
    We don't preserve the env when doing undercloud install.

    Change-Id: Iec51bf33bdca7fb0d3026512abd9360ef3cecb70
    Closes-Bug: #1811376
    (cherry picked from commit 0e5a10e2972fec3ee0ba02aac5bc468bb3696055)

tags: added: in-stable-rocky

This issue was fixed in the openstack/python-tripleoclient 11.3.0 release.

This issue was fixed in the openstack/python-tripleoclient 10.6.1 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers