Add waiter of node availability by SSH in negative CIC MM test
Closes-Bug: #1621004 Change-Id: I4b0b3c508626d84e14fe4acb95d703213d2ab27a
This commit is contained in:
parent
1dd88ec77c
commit
77b5b82871
@ -13,6 +13,7 @@
|
||||
# under the License.
|
||||
import time
|
||||
|
||||
from devops.helpers.helpers import tcp_ping
|
||||
from devops.helpers.helpers import wait_pass
|
||||
from devops.helpers.helpers import wait
|
||||
from proboscis import asserts
|
||||
@ -438,6 +439,11 @@ class CICMaintenanceMode(TestBasic):
|
||||
logger.info('Check that node-{0} not in maintenance mode after'
|
||||
' unexpected reboot'.format(_id))
|
||||
|
||||
wait(lambda: tcp_ping(_ip, 22),
|
||||
timeout=60 * 10,
|
||||
timeout_msg='Node {} still is not available by SSH'.format(
|
||||
dregular_ctrl.name))
|
||||
|
||||
asserts.assert_false('True' in check_auto_mode(_ip),
|
||||
"Maintenance mode should not switched")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user