Change in vdsm[master]: hooks: after_network_setup_fail
phoracek at redhat.com
phoracek at redhat.com
Fri Nov 13 12:07:04 UTC 2015
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 at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Ido Barkan <ibarkan at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ondřej Svoboda <osvoboda at redhat.com>
Gerrit-Reviewer: Petr Horáček <phoracek at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
Gerrit-HasComments: No
More information about the vdsm-patches
mailing list