[Containers] Issue setting proxy via config_file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Ran An |
Bug Description
itle
-----
Issue when trying to set proxies via config_file
Brief Description
-----------------
I'm doing a configuring a controller using a configuration file `sudo config_controller --kubernetes --confi-file my-file.ini`. I modified my configuration file to add my proxies but this is causing errors [1], seems like when parsing the configuration file the NO_PROXY variable is set as python list format and hence not recognized by http library.
1- http://
Severity
--------
Provide the severity of the defect.
Major: System/Feature is usable but degraded
Steps to Reproduce
------------------
1- Install StalringX
2. Configure it using config file with proxies section
sudo config_controller --kubernetes --confi-file my-file.ini`
===== my-file.ini ====
[DOCKER_PROXY]
DOCKER_HTTP_PROXY = http://<IP>:PORT
DOCKER_HTTPS_PROXY = http://<IP>:PORT
DOCKER_NO_PROXY = localhost,
Expected Behavior
------------------
Configuration should be applied correctly
Actual Behavior
----------------
04/08: Populating initial system inventory ... No handlers could be found for logger "cgtsclient.
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib64/
assistant.
File "/usr/lib64/
runner.run()
File "/usr/lib64/
action()
File "/usr/lib64/
self.
File "/usr/lib64/
parameter
File "/usr/lib64/
return self._create(
File "/usr/lib64/
_, body = self.api.
File "/usr/lib64/
method, **kwargs)
File "/usr/lib64/
error_
cgtsclient.
localhost:~$
Reproducibility
---------------
100%
System Configuration
-------
- One node system
Branch/Pull Time/Commit
-------
Master
CENGN ISO : http://
Timestamp/Logs
--------------
http://
Changed in starlingx: | |
assignee: | nobody → Mingyuan Qi (myqi) |
Changed in starlingx: | |
assignee: | Mingyuan Qi (myqi) → Ran An (an.ran) |
tags: |
added: stx.2.0 removed: stx.2019.05 |
This was introduced in the original commit for the docker proxy: /git.openstack. org/cgit/ openstack/ stx-config/ commit/ ?id=3a30da9a889 20fef4d6b185708 bd5013bb8dd95c
https:/
The bug should be assigned to the author.