[Bug 2117135] [NEW] python-neutronclient generates excessive entries in ~/.cache/python-entrypoints when called often

Ghadi Rahme 2117135 at bugs.launchpad.net
Thu Jul 17 07:49:02 UTC 2025


Public bug reported:

Currently pyhton-neutronclient creates entry points when called due to
it trying to register extensions in the init of the Client class
(neutronclient/v2_0/client.py).

Some applications such as octavia make use of python-neutronclient and
in the Octavia charm, this class is being initialized on each update
status hook run leading to an excessive amount of entries in
~/.cache/python-entrypoints.

In the case of Octavia, nothing is needed beyond the built-in feature
set of python-neutronclient based on my testing. From what I can tell
Octavia uses the API to fetch the MTU of other machines. Adding an
option to decide if an application wants python-neutronclient to
register more extensions would avoid this issue.

** Affects: python-neutronclient
     Importance: Undecided
     Assignee: Ghadi Rahme (ghadi-rahme)
         Status: New

** Affects: octavia (Ubuntu)
     Importance: Undecided
     Assignee: Ghadi Rahme (ghadi-rahme)
         Status: New

** Also affects: octavia (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: python-neutronclient
     Assignee: (unassigned) => Ghadi Rahme (ghadi-rahme)

** Changed in: octavia (Ubuntu)
     Assignee: (unassigned) => Ghadi Rahme (ghadi-rahme)

-- 
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/2117135

Title:
  python-neutronclient generates excessive entries in ~/.cache/python-
  entrypoints when called often

Status in python-neutronclient:
  New
Status in octavia package in Ubuntu:
  New

Bug description:
  Currently pyhton-neutronclient creates entry points when called due to
  it trying to register extensions in the init of the Client class
  (neutronclient/v2_0/client.py).

  Some applications such as octavia make use of python-neutronclient and
  in the Octavia charm, this class is being initialized on each update
  status hook run leading to an excessive amount of entries in
  ~/.cache/python-entrypoints.

  In the case of Octavia, nothing is needed beyond the built-in feature
  set of python-neutronclient based on my testing. From what I can tell
  Octavia uses the API to fetch the MTU of other machines. Adding an
  option to decide if an application wants python-neutronclient to
  register more extensions would avoid this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-neutronclient/+bug/2117135/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list