Petr Horáček has posted comments on this change.
Change subject: hooks: after_network_setup_fail
......................................................................
Patch Set 22: Verified+1
Network functional tests passed.
Verified with hook:
#!/bin/python
import hooking
with open('/tmp/test_hook', 'a') as f:
setup = hooking.read_json()
f.write(str(setup))
f.write('\n')
In [14]: from vdsm import vdscli
In [15]: c = vdscli.connect()
In [16]: !ip l add dummy_1 type dummy
In [17]: c.setupNetworks({'test-network1': {'nic':
'dummy_1'}}, {}, {'connectivityCheck': False})
Out[17]: {'status': {'code': 0, 'message': 'Done'}}
In [18]: c.setupNetworks({'test-network1': {'nic':
'dummy_2'}}, {}, {'connectivityCheck': False})
Out[18]: {'status': {'code': 23, 'message': 'unknown nic:
dummy_2'}}
In [19]: !cat /tmp/test_hook
{u'request': {u'bondings': {}, u'networks':
{u'test-network1': {u'nic': u'dummy_2'}}, u'options':
{u'connectivityCheck': False}}}
--
To view, visit
https://gerrit.ovirt.org/45085
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I8a5d086b15b72c13d2b390c1310c2279446ac14f
Gerrit-PatchSet: 22
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Petr Horáček <phoracek(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Ido Barkan <ibarkan(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ondřej Svoboda <osvoboda(a)redhat.com>
Gerrit-Reviewer: Petr Horáček <phoracek(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>
Gerrit-HasComments: No