Skip to content

Convert TEST_*_PROXY to *_proxy env vars#1409

Open
dosaboy wants to merge 1 commit into
openstack-charmers:masterfrom
dosaboy:set-http-proxy-neuton-libs
Open

Convert TEST_*_PROXY to *_proxy env vars#1409
dosaboy wants to merge 1 commit into
openstack-charmers:masterfrom
dosaboy:set-http-proxy-neuton-libs

Conversation

@dosaboy

@dosaboy dosaboy commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

If TEST_{NO,HTTP,HTTPS}_PROXY are provided, convert them to
http_proxy etc so that code will use them. This will apply
to all code under zaza.openstack.

@dosaboy dosaboy force-pushed the set-http-proxy-neuton-libs branch from b5b3a8a to eb0f4db Compare July 3, 2026 14:23
"fip_service_subnet_cidr": "100.64.0.0/24"
}

# Set proxy vars if provided so that all code gets to use it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setting this at module definition level will make all code after this to get the side effect of setting these env variable.

This is a side effect that shouldn't escape this module's scope, although if that's an intentional behavior, I think it should be defined in zaza/openstack/__init__.py so this gets set no matter when/what imported this code ... and even in that scenario sounds easy to get into weirdness

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes i like that, ill move it

If TEST_{NO,HTTP,HTTPS}_PROXY are provided, convert them to
http_proxy etc so that code will use them. This will apply
to all code under zaza.openstack.
@dosaboy dosaboy force-pushed the set-http-proxy-neuton-libs branch from eb0f4db to 4b4ecec Compare July 3, 2026 17:02
@dosaboy dosaboy changed the title Convert TEST_*_PROXY to *_proxy env vars in neutron setup Convert TEST_*_PROXY to *_proxy env vars Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants