← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1395577] [NEW] Using netmask in allowed_address_pairs will cause error in server.log and network on VM did't work

 

Public bug reported:

Hi,
    My system is Juno on CentOS 7.
   I used below template:

heat_template_version: '2013-05-23'
description: ''
parameters:
    system_name:
        type: string
        label: 'System Name'
        description: ''
        default: vm001
    
    _template_version_:
        type: string
        default: '1.0'
        hidden: 'True'
    
resources:
    'node:server':
        type: 'OS::Nova::Server'
        properties:
            name: { get_param: system_name }
            availability_zone: nova
            image: my-op-vm
            flavor: m1.xlarge
            networks:
                -
                    port:
                        get_resource: 'network:oam90'

    'network:oam90':
        type: 'OS::Neutron::Port'
        properties:
            name: 'MY:network:oam90'
            network_id: 3faf6489-42ca-455f-970e-af90e90008ba
            allowed_address_pairs:
                -
                    ip_address: 192.168.90.0/8

And below error in /var/log/neutron/server.log
2014-11-22 16:41:53.137 2297 ERROR oslo.messaging.rpc.dispatcher [req-72666f15-d616-44e1-b292-e9e80ba499c0 ] Exception during message handling: IPAddress() does not support netmasks or subnet prefixes! See documentation for details.
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/neutron/api/rpc/handlers/securitygroups_rpc.py", line 75, in security_group_info_for_devices
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     return self.plugin.security_group_info_for_ports(context, ports)
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/neutron/db/securitygroups_rpc_base.py", line 201, in security_group_info_for_ports
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     return self._get_security_group_member_ips(context, sg_info)
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/neutron/db/securitygroups_rpc_base.py", line 208, in _get_security_group_member_ips
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     ethertype = 'IPv%d' % netaddr.IPAddress(ip).version
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/netaddr/ip/__init__.py", line 281, in __init__
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     % self.__class__.__name__)
2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher ValueError: IPAddress() does not support netmasks or subnet prefixes! See documentation for details.

** 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/1395577

Title:
  Using netmask in allowed_address_pairs will cause error in server.log
  and network on VM did't work

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  Hi,
      My system is Juno on CentOS 7.
     I used below template:

  heat_template_version: '2013-05-23'
  description: ''
  parameters:
      system_name:
          type: string
          label: 'System Name'
          description: ''
          default: vm001
      
      _template_version_:
          type: string
          default: '1.0'
          hidden: 'True'
      
  resources:
      'node:server':
          type: 'OS::Nova::Server'
          properties:
              name: { get_param: system_name }
              availability_zone: nova
              image: my-op-vm
              flavor: m1.xlarge
              networks:
                  -
                      port:
                          get_resource: 'network:oam90'

      'network:oam90':
          type: 'OS::Neutron::Port'
          properties:
              name: 'MY:network:oam90'
              network_id: 3faf6489-42ca-455f-970e-af90e90008ba
              allowed_address_pairs:
                  -
                      ip_address: 192.168.90.0/8

  And below error in /var/log/neutron/server.log
  2014-11-22 16:41:53.137 2297 ERROR oslo.messaging.rpc.dispatcher [req-72666f15-d616-44e1-b292-e9e80ba499c0 ] Exception during message handling: IPAddress() does not support netmasks or subnet prefixes! See documentation for details.
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/neutron/api/rpc/handlers/securitygroups_rpc.py", line 75, in security_group_info_for_devices
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     return self.plugin.security_group_info_for_ports(context, ports)
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/neutron/db/securitygroups_rpc_base.py", line 201, in security_group_info_for_ports
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     return self._get_security_group_member_ips(context, sg_info)
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/neutron/db/securitygroups_rpc_base.py", line 208, in _get_security_group_member_ips
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     ethertype = 'IPv%d' % netaddr.IPAddress(ip).version
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/netaddr/ip/__init__.py", line 281, in __init__
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher     % self.__class__.__name__)
  2014-11-22 16:41:53.137 2297 TRACE oslo.messaging.rpc.dispatcher ValueError: IPAddress() does not support netmasks or subnet prefixes! See documentation for details.

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


Follow ups

References