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

Corey Bryant corey.bryant at canonical.com
Wed Apr 10 20:21:43 UTC 2019


After fixing shebang it hits a ryu issue. Is something outdated?

2019-04-10 20:19:59.023 21327 ERROR neutron_dynamic_routing.services.bgp.agent.bgp_dragent [-] Error while importing BGP speaker driver neutron_dynamic_routing.services.bgp.agent.driver.ryu.driver.RyuBgpDriver: ModuleNotFoundError: No module named 'neutron_dynamic_routing.services.bgp.agent.driver.ryu'
2019-04-10 20:19:59.023 21327 ERROR neutron_dynamic_routing.services.bgp.agent.bgp_dragent Traceback (most recent call last):
2019-04-10 20:19:59.023 21327 ERROR neutron_dynamic_routing.services.bgp.agent.bgp_dragent   File "/usr/lib/python3/dist-packages/neutron_dynamic_routing/services/bgp/agent/bgp_dragent.py", line 73, in initialize_driver
2019-04-10 20:19:59.023 21327 ERROR neutron_dynamic_routing.services.bgp.agent.bgp_dragent     self.conf))
2019-04-10 20:19:59.023 21327 ERROR neutron_dynamic_routing.services.bgp.agent.bgp_dragent   File "/usr/lib/python3/dist-packages/oslo_utils/importutils.py", line 44, in import_object
2019-04-10 20:19:59.023 21327 ERROR neutron_dynamic_routing.services.bgp.agent.bgp_dragent     return import_class(import_str)(*args, **kwargs)
2019-04-10 20:19:59.023 21327 ERROR neutron_dynamic_routing.services.bgp.agent.bgp_dragent   File "/usr/lib/python3/dist-packages/oslo_utils/importutils.py", line 30, in import_class
2019-04-10 20:19:59.023 21327 ERROR neutron_dynamic_routing.services.bgp.agent.bgp_dragent     __import__(mod_str)
2019-04-10 20:19:59.023 21327 ERROR neutron_dynamic_routing.services.bgp.agent.bgp_dragent ModuleNotFoundError: No module named 'neutron_dynamic_routing.services.bgp.agent.driver.ryu'

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