← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1589427] Re: Import undefined attribute PROTO_NAME_IPV6_ICMP_LEGACY

 

it is defined in neutron_lib, try to update your neutron_lib, by sudo
pip install --update neutron_lib


https://github.com/openstack/neutron-lib/blob/0db5c13fc3d0793096446b54fb0bd9b10b1a8bb2/neutron_lib/constants.py#L132

** Changed in: neutron
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1589427

Title:
  Import undefined attribute PROTO_NAME_IPV6_ICMP_LEGACY

Status in neutron:
  Invalid

Bug description:
  In neutron/common/constants.py, it uses attribute
  'PROTO_NAME_IPV6_ICMP_LEGACY' imported from neutron_lib.constants ,
  like this:

  https://github.com/openstack/neutron/blob/master/neutron/common/constants.py#L61

  ```
  IP_PROTOCOL_NAME_ALIASES = {lib_constants.PROTO_NAME_IPV6_ICMP_LEGACY:
                              lib_constants.PROTO_NAME_IPV6_ICMP}

  ```

  but the attribute 'PROTO_NAME_IPV6_ICMP_LEGACY' is not defined in
  neutron_lib.constants.

  An AttributeError occured:

  ```
  Traceback (most recent call last):
    File "/usr/bin/neutron-ovs-cleanup", line 6, in <module>
      from neutron.cmd.ovs_cleanup import main
    File "/opt/stack/neutron/neutron/cmd/ovs_cleanup.py", line 20, in <module>
      from neutron.agent.common import config as agent_config
    File "/opt/stack/neutron/neutron/agent/common/config.py", line 21, in <module>
      from neutron.common import config
    File "/opt/stack/neutron/neutron/common/config.py", line 33, in <module>
      from neutron.common import constants
    File "/opt/stack/neutron/neutron/common/constants.py", line 62, in <module>
      lib_constants.PROTO_NAME_IPV6_ICMP}
  AttributeError: 'module' object has no attribute 'PROTO_NAME_IPV6_ICMP_LEGACY'
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1589427/+subscriptions


References