[Bug 1824231] Re: stein: package needs python3 shebang

James Page james.page at ubuntu.com
Tue Apr 16 14:38:31 UTC 2019


This bug was fixed in the package neutron-dynamic-routing - 2:14.0.0-0ubuntu1~cloud0
---------------

 neutron-dynamic-routing (2:14.0.0-0ubuntu1~cloud0) bionic-stein; urgency=medium
 .
   * New upstream release for the Ubuntu Cloud Archive.
 .
 neutron-dynamic-routing (2:14.0.0-0ubuntu1) disco; urgency=medium
 .
   [ Corey Bryant ]
   * d/rules: Ensure binary uses python3 shebang (LP: #1824231).
 .
   [ James Page ]
   * New upstream release for OpenStack Stein.


** Changed in: cloud-archive
       Status: Fix Committed => Fix Released

-- 
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:
  Fix Released
Status in Ubuntu Cloud Archive stein series:
  Fix Released
Status in neutron-dynamic-routing package in Ubuntu:
  Fix Released
Status in neutron-dynamic-routing source package in Disco:
  Fix Released

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