unable to set value for core.proxy_ignore_hosts

Bug #2017962 reported by Shunde Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Anbox Cloud
Fix Released
Medium
Jatin Arora

Bug Description

I want to set proxy to ams which works for proxy_http and proxy_https.

$ /snap/bin/ams.amc config set core.proxy_http http://192-168-1-0--24.maas-internal:8000/
$ /snap/bin/ams.amc config set core.proxy_https http://192-168-1-0--24.maas-internal:8000/

but it fails for proxy_ignore_hosts

$ /snap/bin/ams.amc config set core.proxy_ignore_hosts 127.0.0.1,192.168.1.127,::1,localhost
Error: argument config key is invalid

and the value is not set

$ /snap/bin/ams.amc config show
config:
......
  core.proxy_http: http://192-168-1-0--24.maas-internal:8000/
  core.proxy_https: http://192-168-1-0--24.maas-internal:8000/
  core.proxy_ignore_hosts: ""

one workaround is to set it to etcd directly.

$ sudo ETCDCTL_API=3 /snap/etcd/current/bin/etcdctl --cert=/var/snap/ams/common/etcd/client-cert.pem --key=/var/snap/ams/common/etcd/client-key.pem --insecure-transport=true --endpoints=192.168.1.84:2379 get /ams/1.0/config/core.proxy_ignore_hosts --prefix
/ams/1.0/config/core.proxy_ignore_hosts
{"version":0,"type":"config-item","data":{"name":"core.proxy_ignore_hosts","value":"127.0.0.1,192.168.1.127,::1,localhost"}}

Simon Fels (morphis)
Changed in anbox-cloud:
milestone: none → 1.18.1
assignee: nobody → Jatin Arora (jatinarora)
importance: Undecided → Medium
status: New → Triaged
Gary.Wang (gary-wzl77)
Changed in anbox-cloud:
status: Triaged → Fix Released
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.