← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1589427] [NEW] Import undefined attribute PROTO_NAME_IPV6_ICMP_LEGACY

 

Public bug reported:

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

** Affects: neutron
     Importance: Undecided
         Status: New

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

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


Follow ups