"error: cannot convert argument to integer" seen with Security Groups

Bug #1775703 reported by Deepika
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-vpp
Fix Released
Undecided
Naveen Joy

Bug Description

Executed Security Group Tempest tests and one of the tests failed giving this error :

2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils [-] secgroup_watcher: etcd threw exception
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils Traceback (most recent call last):
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/networking_vpp/etcdutils.py", line 574, in watch_forever
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils self.do_watch()
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/networking_vpp/etcdutils.py", line 630, in do_watch
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils self.do_work(rv.action, rv.key, rv.value)
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/networking_vpp/etcdutils.py", line 718, in do_work
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils self.key_change(action, key, value)
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/networking_vpp/etcdutils.py", line 745, in key_change
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils self.added(short_key, value)
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/networking_vpp/agent/server.py", line 3411, in added
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils self.data.acl_add_replace(secgroup, data)
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/networking_vpp/agent/server.py", line 2819, in acl_add_replace
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils egress_rules))
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/networking_vpp/agent/server.py", line 1237, in acl_add_replace_on_host
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils count=len(in_acl_rules))
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/networking_vpp/agent/vpp.py", line 491, in acl_add_replace
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils count=count)
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/networking_vpp/agent/vpp.py", line 246, in call_vpp
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils t = func_call(*args, **kwargs)
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/vpp_papi.py", line 103, in __call__
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils return self._func(**kwargs)
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/vpp_papi.py", line 598, in f
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils return self._call_vpp(i, msgdef, multipart, **kwargs)
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/vpp_papi.py", line 794, in _call_vpp
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils b = self.encode(msgdef, kwargs)
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/vpp_papi.py", line 469, in encode
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils size = self.__struct_type(True, msgdef, buf, offset, kwargs)
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/vpp_papi.py", line 388, in __struct_type
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils return self.__struct_type_encode(msgdef, buf, offset, kwargs)
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/vpp_papi.py", line 416, in __struct_type_encode
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils kwargs[k][i])
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/vpp_papi.py", line 374, in <lambda>
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils args))]
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/vpp_papi.py", line 388, in __struct_type
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils return self.__struct_type_encode(msgdef, buf, offset, kwargs)
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File "/usr/lib/python2.7/site-packages/vpp_papi.py", line 445, in __struct_type_encode
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils v.pack_into(buf, off, kwargs[k])
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils error: cannot convert argument to integer
2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils

Revision history for this message
Deepika (deepika-j) wrote :
Download full text (12.0 KiB)

Complete information :

vpp# sh version
vpp v18.04-2~gc9b6ec7~b50 built by root on 6c01167a470f at Mon Apr 30 23:49:12 UTC 2018
vpp#

I see the following error :

2018-06-06 12:09:51.037 259 DEBUG networking_vpp.etcdutils [-] secgroup_watcher: pausing do_watch /usr/lib/python2.7/site-packages/networking_vpp/etcdutils.py:590
2018-06-06 12:09:51.038 259 DEBUG networking_vpp.etcdutils [-] Watcher secgroup_watcher got set on shortkey ec85e1a9-fd1e-4f57-b4e8-cec50ccb11bf key_change /usr/lib/python2.7/site-packages/networking_vpp/etcdutils.py:740
2018-06-06 12:09:51.039 259 DEBUG networking_vpp.agent.server [-] remote_group: sec_group: ec85e1a9-fd1e-4f57-b4e8-cec50ccb11bf, ingress rules: [SecurityGroupRule(is_ipv6=1, remote_ip_addr='\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', ip_prefix_len=0, remote_group_id=None, protocol=58, port_min=8, port_max=0), SecurityGroupRule(is_ipv6=1, remote_ip_addr='\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', ip_prefix_len=0, remote_group_id=None, protocol=58, port_min=11, port_max=None), SecurityGroupRule(is_ipv6=1, remote_ip_addr='\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', ip_prefix_len=0, remote_group_id=None, protocol=58, port_min=3, port_max=0), SecurityGroupRule(is_ipv6=1, remote_ip_addr='\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', ip_prefix_len=0, remote_group_id=None, protocol=58, port_min=3, port_max=2), SecurityGroupRule(is_ipv6=1, remote_ip_addr='\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', ip_prefix_len=0, remote_group_id=None, protocol=58, port_min=-1, port_max=-1)] egress_rules: [SecurityGroupRule(is_ipv6=0, remote_ip_addr='\x00\x00\x00\x00', ip_prefix_len=0, remote_group_id=None, protocol=0, port_min=0, port_max=0), SecurityGroupRule(is_ipv6=1, remote_ip_addr='\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', ip_prefix_len=0, remote_group_id=None, protocol=0, port_min=0, port_max=0)] acl_add_replace /usr/lib/python2.7/site-packages/networking_vpp/agent/server.py:2816
2018-06-06 12:09:51.040 259 ERROR networking_vpp.etcdutils [-] set key /networking-vpp/global/secgroups/ec85e1a9-fd1e-4f57-b4e8-cec50ccb11bf value {"ingress_rules": [{"is_ipv6": 1, "remote_ip_addr": "::", "ip_prefix_len": 0, "remote_group_id": null, "protocol": 58, "port_min": 8, "port_max": 0}, {"is_ipv6": 1, "remote_ip_addr": "::", "ip_prefix_len": 0, "remote_group_id": null, "protocol": 58, "port_min": 11, "port_max": null}, {"is_ipv6": 1, "remote_ip_addr": "::", "ip_prefix_len": 0, "remote_group_id": null, "protocol": 58, "port_min": 3, "port_max": 0}, {"is_ipv6": 1, "remote_ip_addr": "::", "ip_prefix_len": 0, "remote_group_id": null, "protocol": 58, "port_min": 3, "port_max": 2}, {"is_ipv6": 1, "remote_ip_addr": "::", "ip_prefix_len": 0, "remote_group_id": null, "protocol": 58, "port_min": -1, "port_max": -1}], "egress_rules": [{"is_ipv6": 0, "remote_ip_addr": "0.0.0.0", "ip_prefix_len": 0, "remote_group_id": null, "protocol": 0, "port_min": 0, "port_max": 0}, {"is_ipv6": 1, "remote_ip_addr": "::", "ip_prefix_len": 0, "remote_group_id": null, "protocol": 0, "port_min": 0, "port_max": 0}]} couldnot be proc...

Naveen Joy (najoy)
Changed in networking-vpp:
assignee: nobody → Naveen Joy (najoy)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-vpp (master)

Fix proposed to branch: master
Review: https://review.openstack.org/573845

Naveen Joy (najoy)
Changed in networking-vpp:
status: In Progress → Fix Committed
Revision history for this message
Jerome Tollet (jtollet) wrote : Re: [Bug 1775703] Re: "error: cannot convert argument to integer" seen with Security Groups
Download full text (5.6 KiB)

Cool

Le sam. 9 juin 2018 à 00:20, Naveen Joy <email address hidden> a
écrit :

> ** Changed in: networking-vpp
> Status: In Progress => Fix Committed
>
> --
> You received this bug notification because you are subscribed to
> networking-vpp.
> Matching subscriptions: networking-vpp
> https://bugs.launchpad.net/bugs/1775703
>
> Title:
> "error: cannot convert argument to integer" seen with Security Groups
>
> Status in networking-vpp:
> Fix Committed
>
> Bug description:
> Executed Security Group Tempest tests and one of the tests failed
> giving this error :
>
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils [-]
> secgroup_watcher: etcd threw exception
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils Traceback
> (most recent call last):
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File
> "/usr/lib/python2.7/site-packages/networking_vpp/etcdutils.py", line 574,
> in watch_forever
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils
> self.do_watch()
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File
> "/usr/lib/python2.7/site-packages/networking_vpp/etcdutils.py", line 630,
> in do_watch
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils
> self.do_work(rv.action, rv.key, rv.value)
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File
> "/usr/lib/python2.7/site-packages/networking_vpp/etcdutils.py", line 718,
> in do_work
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils
> self.key_change(action, key, value)
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File
> "/usr/lib/python2.7/site-packages/networking_vpp/etcdutils.py", line 745,
> in key_change
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils
> self.added(short_key, value)
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File
> "/usr/lib/python2.7/site-packages/networking_vpp/agent/server.py", line
> 3411, in added
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils
> self.data.acl_add_replace(secgroup, data)
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File
> "/usr/lib/python2.7/site-packages/networking_vpp/agent/server.py", line
> 2819, in acl_add_replace
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils
> egress_rules))
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File
> "/usr/lib/python2.7/site-packages/networking_vpp/agent/server.py", line
> 1237, in acl_add_replace_on_host
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils
> count=len(in_acl_rules))
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File
> "/usr/lib/python2.7/site-packages/networking_vpp/agent/vpp.py", line 491,
> in acl_add_replace
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils
> count=count)
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File
> "/usr/lib/python2.7/site-packages/networking_vpp/agent/vpp.py", line 246,
> in call_vpp
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils t =
> func_call(*args, **kwargs)
> 2018-06-06 12:09:51.041 259 ERROR networking_vpp.etcdutils File
> ...

Read more...

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-vpp (master)

Reviewed: https://review.openstack.org/573845
Committed: https://git.openstack.org/cgit/openstack/networking-vpp/commit/?id=b8e86370f9077bb9172dca0d31490b6a7ca8a2c5
Submitter: Zuul
Branch: master

commit b8e86370f9077bb9172dca0d31490b6a7ca8a2c5
Author: Naveen Joy <email address hidden>
Date: Fri Jun 8 13:36:00 2018 -0700

    Fix ICMP code handling issue in sec-group rules

    In ICMP rules, port-min denotes ICMP type and port-max
    denotes ICMP code. In some special cases, port-max can
    be set to a null or zero value to indicate all codes for
    a specific type. This bug resolves an issue where this
    rule was not processed correctly.

    Closes-Bug: #1775703

    Change-Id: Id6c38b8d465d908c52f132b28b7d608009cde4bd

Changed in networking-vpp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.