[Bug 1982969] Re: Missing binary package for octavia prometheus-proxy

2024-07-03 Thread Andre Ruiz
I have taken a look at this with the customer and indeed it seems a matter of 
adding a file to the deb package (file which is already in the sources, just 
being missed while packaging). Half of the functionality is there (the proxy 
itself) but the systemd-unit that starts the proxy is missing. Adding that file 
manually to the file-system fixes the issue.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1982969

Title:
  Missing binary package for octavia prometheus-proxy

To manage notifications about this bug go to:
https://bugs.launchpad.net/snap-octavia-diskimage-retrofit/+bug/1982969/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1982969] Re: Missing binary package for octavia prometheus-proxy

2024-07-03 Thread Felipe Alencastro
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@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@amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# dpkg -S 
/usr/bin/prometheus-proxy 
python3-octavia: /usr/bin/prometheus-proxy

root@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@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@amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# cat > 
/usr/lib/systemd/system/prometheus-proxy.service < /var/run/prometheus-proxy.pid"
PIDFile=/var/run/prometheus-proxy.pid

[Install]
WantedBy=multi-user.target
EOF

root@amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# systemctl daemon-reload
root@amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# systemctl start 
prometheus-proxy
root@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@amphora-90334dfd-e3fa-4977-bf74-a6a9ab69ea01:~# ip netns exec
amphora-haproxy bash

root@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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1982969

Title:
  Missing binary package for octavia prometheus-proxy

To manage notifications about this bug go to:
https://bugs.launchpad.net/snap-octavia-diskimage-retrofit/+bug/1982969/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1982969] Re: Missing binary package for octavia prometheus-proxy

2024-03-22 Thread James Page
** Changed in: octavia (Ubuntu)
   Importance: Undecided => Wishlist

** Changed in: octavia (Ubuntu)
   Status: Confirmed => Triaged

** Also affects: snap-octavia-diskimage-retrofit
   Importance: Undecided
   Status: New

** Changed in: snap-octavia-diskimage-retrofit
   Status: New => Triaged

** Changed in: snap-octavia-diskimage-retrofit
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1982969

Title:
  Missing binary package for octavia prometheus-proxy

To manage notifications about this bug go to:
https://bugs.launchpad.net/snap-octavia-diskimage-retrofit/+bug/1982969/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1982969] Re: Missing binary package for octavia prometheus-proxy

2024-03-01 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: octavia (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1982969

Title:
  Missing binary package for octavia prometheus-proxy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/octavia/+bug/1982969/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs