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

Bug #1811376 reported by Rabi Mishra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
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)
Changed in tripleo:
assignee: nobody → Rabi Mishra (rabi)
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/630198

Changed in tripleo:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/632102

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/rocky)

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
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.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 10.6.1

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.