[Bug 1982969] Re: Missing binary package for octavia prometheus-proxy
Felipe Alencastro
1982969 at bugs.launchpad.net
Wed Jul 3 16:02:08 UTC 2024
I believe this is not a RFE/Wishlist, but rather a deb packaging issue,
the package python3-octavia already ships the prometheus-proxy binary,
but fails to include it's systemd unit[1].
By just creating the unit everything works as expected.
-----------------------------------------------------------------------------------------------------------
root at amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
root at amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# dpkg -S /usr/bin/prometheus-proxy
python3-octavia: /usr/bin/prometheus-proxy
root at amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# dpkg -S /usr/lib/systemd/system/prometheus-proxy.service
dpkg-query: no path found matching pattern /usr/lib/systemd/system/prometheus-proxy.service
root at amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# ls -l /usr/lib/systemd/system/prometheus-proxy.service
ls: cannot access '/usr/lib/systemd/system/prometheus-proxy.service': No such file or directory
root at amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# cat > /usr/lib/systemd/system/prometheus-proxy.service <<EOF
[Unit]
Description=OpenStack Octavia Prometheus Proxy
After=network.target syslog.service amphora-agent.service
Wants=amphora-agent.service
[Service]
ExecStart=/usr/bin/prometheus-proxy
KillMode=mixed
Restart=always
ExecStartPost=/bin/sh -c "echo \$MAINPID > /var/run/prometheus-proxy.pid"
PIDFile=/var/run/prometheus-proxy.pid
[Install]
WantedBy=multi-user.target
EOF
root at amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# systemctl daemon-reload
root at amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# systemctl start prometheus-proxy
root at amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# systemctl status prometheus-proxy
● prometheus-proxy.service - OpenStack Octavia Prometheus Proxy
Loaded: loaded (/lib/systemd/system/prometheus-proxy.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2024-07-03 15:48:42 UTC; 3s ago
Process: 57115 ExecStartPost=/bin/sh -c echo $MAINPID > /var/run/prometheus-proxy.pid (code=exited, status=0/SUCCESS)
Main PID: 57114 (prometheus-prox)
Tasks: 2 (limit: 2324)
Memory: 14.8M
CGroup: /system.slice/prometheus-proxy.service
└─57114 /usr/bin/python3 /usr/bin/prometheus-proxy
Jul 03 15:48:42 amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01 systemd[1]: Starting OpenStack Octavia Prometheus Proxy...
Jul 03 15:48:42 amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01 systemd[1]: Started OpenStack Octavia Prometheus Proxy.
root at amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# ip netns exec
amphora-haproxy bash
root at amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# curl -s http://127.0.0.1:9102|tail -n 5
# HELP octavia_member_idle_connections_limit Limit on the number of available idle connections
# TYPE octavia_member_idle_connections_limit gauge
octavia_member_idle_connections_limit{pool="de7983a9-f1fd-40e1-afe0-fd7830d462d7:734b3ed3-738d-4a79-8189-5e025d19491d",member="3a4e01ff-8e99-490c-9f12-bc7e9eaa4b65"} 0
octavia_member_idle_connections_limit{pool="de7983a9-f1fd-40e1-afe0-fd7830d462d7:734b3ed3-738d-4a79-8189-5e025d19491d",member="6fba9350-5f9a-49e1-8148-eb9dcd97001e"} 0
octavia_member_idle_connections_limit{pool="de7983a9-f1fd-40e1-afe0-fd7830d462d7:734b3ed3-738d-4a79-8189-5e025d19491d",member="240b3896-b404-4381-ba74-9b8c23e40fbc"} 0
-----------------------------------------------------------------------------------------------------------
[1]https://github.com/openstack/octavia/blob/master/elements/amphora-
agent/install.d/amphora-agent-source-install/prometheus-proxy.service
** Changed in: snap-octavia-diskimage-retrofit
Status: Triaged => Invalid
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to octavia in Ubuntu.
https://bugs.launchpad.net/bugs/1982969
Title:
Missing binary package for octavia prometheus-proxy
Status in snap-octavia-diskimage-retrofit:
Invalid
Status in octavia package in Ubuntu:
Triaged
Bug description:
Yoga introduced a new daemon for use in the Octavia HAProxy Amphorae
instances [0].
The Ubuntu Jammy package does not appear to have a binary package for
this new daemon.
0:
https://github.com/openstack/octavia/commit/0d9674bd87fd1e3d45c529a90cc5e35c23a38250
To manage notifications about this bug go to:
https://bugs.launchpad.net/snap-octavia-diskimage-retrofit/+bug/1982969/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list