[Bug 1824231] [NEW] stein: package needs python3 shebang
Corey Bryant
corey.bryant at canonical.com
Wed Apr 10 20:13:54 UTC 2019
Public bug reported:
The stein package for neutron-dynamic-routing is python3 only and the
binary package shebang is attempting to import python2 packages on
bionic.
$ head /usr/bin/neutron-bgp-dragent
#! /usr/bin/python
# PBR Generated from 'console_scripts'
import sys
from neutron_dynamic_routing.cmd.eventlet.agents.bgp_dragent import main
if __name__ == "__main__":
sys.exit(main())
More details from charm-neutron-dynamic-routing bionic-stein function tests:
$ systemctl status neutron-bgp-dragent:
● neutron-bgp-dragent.service - OpenStack Neutron dynamic routing agent
Loaded: loaded (/lib/systemd/system/neutron-bgp-dragent.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-04-10 19:50:20 UTC; 10min ago
Process: 15965 ExecStart=/etc/init.d/neutron-bgp-dragent systemd-start (code=exited, status=1/FAILURE)
Main PID: 15965 (code=exited, status=1/FAILURE)
Apr 10 19:50:20 juju-a76d57-zaza-34a33df03f54-3 systemd[1]: neutron-bgp-dragent.service: Service hold-off time over, scheduling restart.
Apr 10 19:50:20 juju-a76d57-zaza-34a33df03f54-3 systemd[1]: neutron-bgp-dragent.service: Scheduled restart job, restart counter is at 5.
Apr 10 19:50:20 juju-a76d57-zaza-34a33df03f54-3 systemd[1]: Stopped OpenStack Neutron dynamic routing agent.
Apr 10 19:50:20 juju-a76d57-zaza-34a33df03f54-3 systemd[1]: neutron-bgp-dragent.service: Start request repeated too quickly.
Apr 10 19:50:20 juju-a76d57-zaza-34a33df03f54-3 systemd[1]: neutron-bgp-dragent.service: Failed with result 'exit-code'.
Apr 10 19:50:20 juju-a76d57-zaza-34a33df03f54-3 systemd[1]: Failed to start OpenStack Neutron dynamic routing agent.
$ journalctl -x
...
Apr 10 19:48:44 juju-a76d57-zaza-34a33df03f54-3 neutron-bgp-dragent[13815]: Traceback (most recent call last):
Apr 10 19:48:44 juju-a76d57-zaza-34a33df03f54-3 neutron-bgp-dragent[13815]: File "/usr/bin/neutron-bgp-dragent", line 6, in <module>
Apr 10 19:48:44 juju-a76d57-zaza-34a33df03f54-3 neutron-bgp-dragent[13815]: from neutron_dynamic_routing.cmd.eventlet.agents.bgp_dragent import main
Apr 10 19:48:44 juju-a76d57-zaza-34a33df03f54-3 neutron-bgp-dragent[13815]: ImportError: No module named neutron_dynamic_routing.cmd.eventlet.agents.bgp_dragent
** Affects: cloud-archive
Importance: High
Status: Triaged
** Affects: cloud-archive/stein
Importance: High
Status: Triaged
** Affects: neutron-dynamic-routing (Ubuntu)
Importance: High
Status: Triaged
** Affects: neutron-dynamic-routing (Ubuntu Disco)
Importance: High
Status: Triaged
** Summary changed:
- stein: charm must use python3-neutron-dynamic-routing
+ stein: package needs python3 shebang
** Also affects: neutron-dynamic-routing (Ubuntu)
Importance: Undecided
Status: New
** Also affects: neutron-dynamic-routing (Ubuntu Disco)
Importance: Undecided
Status: New
** Changed in: neutron-dynamic-routing (Ubuntu Disco)
Status: New => Triaged
** Changed in: neutron-dynamic-routing (Ubuntu Disco)
Importance: Undecided => High
** Also affects: cloud-archive
Importance: Undecided
Status: New
** Also affects: cloud-archive/stein
Importance: Undecided
Status: New
** Changed in: cloud-archive/stein
Status: New => Triaged
** Changed in: cloud-archive/stein
Importance: Undecided => High
** No longer affects: charm-neutron-dynamic-routing
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1824231
Title:
stein: package needs python3 shebang
Status in Ubuntu Cloud Archive:
Triaged
Status in Ubuntu Cloud Archive stein series:
Triaged
Status in neutron-dynamic-routing package in Ubuntu:
Triaged
Status in neutron-dynamic-routing source package in Disco:
Triaged
Bug description:
The stein package for neutron-dynamic-routing is python3 only and the
binary package shebang is attempting to import python2 packages on
bionic.
$ head /usr/bin/neutron-bgp-dragent
#! /usr/bin/python
# PBR Generated from 'console_scripts'
import sys
from neutron_dynamic_routing.cmd.eventlet.agents.bgp_dragent import
main
if __name__ == "__main__":
sys.exit(main())
More details from charm-neutron-dynamic-routing bionic-stein function tests:
$ systemctl status neutron-bgp-dragent:
● neutron-bgp-dragent.service - OpenStack Neutron dynamic routing agent
Loaded: loaded (/lib/systemd/system/neutron-bgp-dragent.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-04-10 19:50:20 UTC; 10min ago
Process: 15965 ExecStart=/etc/init.d/neutron-bgp-dragent systemd-start (code=exited, status=1/FAILURE)
Main PID: 15965 (code=exited, status=1/FAILURE)
Apr 10 19:50:20 juju-a76d57-zaza-34a33df03f54-3 systemd[1]: neutron-bgp-dragent.service: Service hold-off time over, scheduling restart.
Apr 10 19:50:20 juju-a76d57-zaza-34a33df03f54-3 systemd[1]: neutron-bgp-dragent.service: Scheduled restart job, restart counter is at 5.
Apr 10 19:50:20 juju-a76d57-zaza-34a33df03f54-3 systemd[1]: Stopped OpenStack Neutron dynamic routing agent.
Apr 10 19:50:20 juju-a76d57-zaza-34a33df03f54-3 systemd[1]: neutron-bgp-dragent.service: Start request repeated too quickly.
Apr 10 19:50:20 juju-a76d57-zaza-34a33df03f54-3 systemd[1]: neutron-bgp-dragent.service: Failed with result 'exit-code'.
Apr 10 19:50:20 juju-a76d57-zaza-34a33df03f54-3 systemd[1]: Failed to start OpenStack Neutron dynamic routing agent.
$ journalctl -x
...
Apr 10 19:48:44 juju-a76d57-zaza-34a33df03f54-3 neutron-bgp-dragent[13815]: Traceback (most recent call last):
Apr 10 19:48:44 juju-a76d57-zaza-34a33df03f54-3 neutron-bgp-dragent[13815]: File "/usr/bin/neutron-bgp-dragent", line 6, in <module>
Apr 10 19:48:44 juju-a76d57-zaza-34a33df03f54-3 neutron-bgp-dragent[13815]: from neutron_dynamic_routing.cmd.eventlet.agents.bgp_dragent import main
Apr 10 19:48:44 juju-a76d57-zaza-34a33df03f54-3 neutron-bgp-dragent[13815]: ImportError: No module named neutron_dynamic_routing.cmd.eventlet.agents.bgp_dragent
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1824231/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list