Instead of waiting for const seconds, need to have a proc to wait for daemon port to be open

Bug #1367737 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.06
New
Medium
Sandip Dey
R1.1
New
Medium
Sandip Dey
Trunk
New
Medium
Sandip Dey

Bug Description

In the tests, we usually wait for 30 sec, 60 sec etc. after restarting a process.

Instead, we should have a method to wait for the process' port number (in LISTEN state) with retries in place.
For ex : 9100 for contrail-api, 8083 for control-node etc...

It should be something like wait_for_port(server, port) with retry decorator.

Also, this needs to be go into all the places where we are currently doing inputs.restart_server() calls

Tags: automation
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.