>From within Amphora: # cat /var/log/amphora-agent.log [2021-06-11 13:58:57 +0000] [1268] [DEBUG] Current configuration: config: None bind: ['[::]:9443'] backlog: 2048 workers: 1 worker_class: sync threads: 1 worker_connections: 1000 max_requests: 0 max_requests_jitter: 0 timeout: 180 graceful_timeout: 30 keepalive: 2 limit_request_line: 4094 limit_request_fields: 100 limit_request_field_size: 8190 reload: False reload_engine: auto reload_extra_files: [] spew: False check_config: False preload_app: True sendfile: None reuse_port: False chdir: /root daemon: False raw_env: [] pidfile: None worker_tmp_dir: None user: 0 group: 0 umask: 0 initgroups: False tmp_upload_dir: None secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'} forwarded_allow_ips: ['127.0.0.1'] accesslog: /var/log/amphora-agent.log disable_redirect_access_to_syslog: False access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s" errorlog: /var/log/amphora-agent.log loglevel: debug capture_output: False logger_class: gunicorn.glogging.Logger logconfig: None logconfig_dict: {} syslog_addr: unix://run/rsyslog/octavia/log#dgram syslog: True syslog_prefix: None syslog_facility: local1 enable_stdio_inheritance: False statsd_host: None dogstatsd_tags: statsd_prefix: proc_name: None default_proc_name: gunicorn pythonpath: None paste: None on_starting: <function OnStarting.on_starting at 0x7fa5d6f479d0> on_reload: <function OnReload.on_reload at 0x7fa5d6f47af0> when_ready: <function WhenReady.when_ready at 0x7fa5d6f47c10> pre_fork: <function Prefork.pre_fork at 0x7fa5d6f47d30> post_fork: <function Postfork.post_fork at 0x7fa5d6f47e50> post_worker_init: <function PostWorkerInit.post_worker_init at 0x7fa5d6f47f70> worker_int: <function WorkerInt.worker_int at 0x7fa5d6f580d0> worker_abort: <function WorkerAbort.worker_abort at 0x7fa5d6f581f0> pre_exec: <function PreExec.pre_exec at 0x7fa5d6f58310> pre_request: <function PreRequest.pre_request at 0x7fa5d6f58430> post_request: <function PostRequest.post_request at 0x7fa5d6f584c0> child_exit: <function ChildExit.child_exit at 0x7fa5d6f585e0> worker_exit: <function WorkerExit.worker_exit at 0x7fa5d6f58700> nworkers_changed: <function NumWorkersChanged.nworkers_changed at 0x7fa5d6f58820> on_exit: <function OnExit.on_exit at 0x7fa5d6f58940> proxy_protocol: False proxy_allow_ips: ['127.0.0.1'] keyfile: None certfile: /etc/octavia/certs/server.pem ssl_version: 5 cert_reqs: 2 ca_certs: /etc/octavia/certs/client_ca.pem suppress_ragged_eofs: True do_handshake_on_connect: False ciphers: None raw_paste_global_conf: [] strip_header_spaces: False [2021-06-11 13:58:57 +0000] [1268] [INFO] Starting gunicorn 20.0.4 [2021-06-11 13:58:57 +0000] [1268] [DEBUG] Arbiter booted [2021-06-11 13:58:57 +0000] [1268] [INFO] Listening at: http://[::]:9443 (1268) [2021-06-11 13:58:57 +0000] [1268] [INFO] Using worker: sync [2021-06-11 13:58:57 +0000] [1305] [INFO] Booting worker with pid: 1305 [2021-06-11 13:58:57 +0000] [1268] [DEBUG] 1 workers [2021-06-11 13:58:59 +0000] [1305] [DEBUG] GET // fc00:720b:3754:6680:f816:3eff:feaf:bab8 - - [11/Jun/2021:13:58:59 +0000] "GET // HTTP/1.1" 200 21 "-" "Octavia HaProxy Rest Client/0.5 (https://wiki.openstack.org/wiki/Octavia)" [2021-06-11 13:58:59 +0000] [1305] [DEBUG] GET /1.0/info fc00:720b:3754:6680:f816:3eff:feaf:bab8 - - [11/Jun/2021:13:58:59 +0000] "GET /1.0/info HTTP/1.1" 200 180 "-" "Octavia HaProxy Rest Client/0.5 (https://wiki.openstack.org/wiki/Octavia)" [2021-06-11 13:59:06 +0000] [1305] [DEBUG] GET // fc00:720b:3754:6680:f816:3eff:feaf:bab8 - - [11/Jun/2021:13:59:06 +0000] "GET // HTTP/1.1" 200 21 "-" "Octavia HaProxy Rest Client/0.5 (https://wiki.openstack.org/wiki/Octavia)" [2021-06-11 13:59:06 +0000] [1305] [DEBUG] POST /1.0/plug/vip/192.168.0.21 fc00:720b:3754:6680:f816:3eff:feaf:bab8 - - [11/Jun/2021:13:59:06 +0000] "POST /1.0/plug/vip/192.168.0.21 HTTP/1.1" 500 133 "-" "Octavia HaProxy Rest Client/0.5 (https://wiki.openstack.org/wiki/Octavia)" root@amphora-c173d228-0d3c-4437-82b5-2c4e27b3616c:~# cat /var/log/octavia/amphora-agent.log 2021-06-11 13:58:57.233 1268 INFO octavia.common.config [-] Logging enabled! 2021-06-11 13:58:57.235 1268 INFO octavia.common.config [-] /usr/bin/amphora-agent version 7.1.1 2021-06-11 13:58:57.235 1268 DEBUG octavia.common.config [-] command line: /usr/bin/amphora-agent --config-file=/etc/octavia/amphora-agent.conf --log-file=/var/log/octavia/amphora-agent.log setup_logging /usr/lib/python3/dist-packages/octavia/common/config.py:917 2021-06-11 13:58:57.552 1304 INFO octavia.amphorae.backends.health_daemon.health_daemon [-] Health Manager Sender starting. 2021-06-11 13:59:06.913 1305 DEBUG octavia.amphorae.backends.agent.api_server.osutils [-] b'' _bring_if_up /usr/lib/python3/dist-packages/octavia/amphorae/backends/agent/api_server/osutils.py:208 2021-06-11 13:59:06.918 1305 DEBUG octavia.amphorae.backends.agent.api_server.osutils [-] b'' _bring_if_up /usr/lib/python3/dist-packages/octavia/amphorae/backends/agent/api_server/osutils.py:212 2021-06-11 13:59:06.931 1305 ERROR octavia.amphorae.backends.agent.api_server.osutils [-] Failed to ifup eth1 due to error: Command '['ip', 'netns', 'exec', 'amphora-haproxy', 'ifup', 'eth1']' returned non-zero exit status 1. b'/bin/sh: 1: /usr/local/bin/udp-masquerade.sh: not found\nifup: failed to bring up eth1\n': subprocess.CalledProcessError: Command '['ip', 'netns', 'exec', 'amphora-haproxy', 'ifup', 'eth1']' returned non-zero exit status 1.
The interface appears to already be there: # ip netns exec amphora-haproxy ip a 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1442 qdisc fq state UP group default qlen 1000 link/ether fa:16:3e:6a:2b:af brd ff:ff:ff:ff:ff:ff inet 192.168.0.252/24 brd 192.168.0.255 scope global eth1 valid_lft forever preferred_lft forever Which is really weird, because aparently this code has not changed in the upstream amphora agent for ages. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1928179 Title: [Victoria] Amphora fails to plug vip To manage notifications about this bug go to: https://bugs.launchpad.net/snap-octavia-diskimage-retrofit/+bug/1928179/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs