Testing ERROR: "Exit code: 2; Stdin: ; Stdout: ; Stderr: Ncat: Invalid -w timeout (must be greater than 0). QUITTING."

Bug #1863830 reported by LIU Yulong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
New
Undecided
Unassigned

Bug Description

Branch:
neutron master, HEAD: commit 7a0e5185c6cf7b5f8bcfe50576e86798947a7ba7

Exception:
      File "/home/yulong/github/neutron/neutron/agent/l3/dvr_edge_router.py", line 160, in initialize
        self._create_snat_namespace()
      File "/home/yulong/github/neutron/neutron/agent/l3/dvr_edge_router.py", line 181, in _create_snat_namespace
        self.snat_namespace.create()
      File "/home/yulong/github/neutron/neutron/agent/l3/dvr_snat_ns.py", line 32, in create
        super(SnatNamespace, self).create()
      File "/home/yulong/github/neutron/neutron/agent/l3/namespaces.py", line 95, in create
        ip_wrapper = self.ip_wrapper_root.ensure_namespace(self.name)
      File "/home/yulong/github/neutron/neutron/agent/linux/ip_lib.py", line 243, in ensure_namespace
        ip = self.netns.add(name)
      File "/home/yulong/github/neutron/neutron/agent/linux/ip_lib.py", line 696, in add
        'net.ipv4.conf.all.promote_secondaries=1'])
      File "/home/yulong/github/neutron/neutron/agent/linux/ip_lib.py", line 718, in execute
        run_as_root=run_as_root)
      File "/home/yulong/github/neutron/neutron/agent/linux/utils.py", line 147, in execute
        returncode=returncode)
    neutron_lib.exceptions.ProcessExecutionError: Exit code: 2; Stdin: ; Stdout: ; Stderr: Ncat: Invalid -w timeout (must be greater than 0). QUITTING.

Upstream log search:
http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%20%5C%22Exit%20code%3A%202%3B%20Stdin%3A%20%3B%20Stdout%3A%20%3B%20Stderr%3A%20Ncat%3A%20Invalid%20-w%20timeout%20(must%20be%20greater%20than%200).%20QUITTING.%5C%22

local testing:
http://paste.openstack.org/show/789733/

LIU Yulong (dragon889)
summary: - Exit code: 2; Stdin: ; Stdout: ; Stderr: Ncat: Invalid -w timeout (must
- be greater than 0). QUITTING.
+ Testing ERROR: "Exit code: 2; Stdin: ; Stdout: ; Stderr: Ncat: Invalid
+ -w timeout (must be greater than 0). QUITTING."
Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

I think this is an old issue made more visible with https://review.opendev.org/#/c/705065/ change (we know get the error properly).

nc.openbsd accepts 0 for timeout (-w param), while ncat from nmap fails with relevant error.
I can not reproduce it locally though, even removing netcat-openbsd and installing nmap test still passes.

It may be a random failure that causes timeout parameter missing, in all cases we should make sure to have a proper value set.

I will bring it to next CI meeting

tags: added: functional-tests gate-failure
Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

Nevermind, just saw https://bugs.launchpad.net/bugs/1863213 (I was on PTO so missed that one)

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.