vswitch should not be created if the query request timeout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-zvm |
New
|
Undecided
|
Unassigned |
Bug Description
This is the case that an exception is raised due to the neutrn-zvm-agent tries to create a vswitch which is already existed. The agent did chceck whether the vswitch is existed before the creating, but got socket timeout error. This error is not been captured by the agent,which makes it continue to create the vswitch. That is the bug need to be fixed
See log below for details
2017-08-02 02:38:52.029 DEBUG neutron.
2017-08-02 02:42:52.946 DEBUG neutron.
2017-08-02 02:42:52.951 DEBUG neutron.
2017-08-02 02:42:52.951 DEBUG neutron.
2017-08-02 02:42:54.226 DEBUG neutron.
2017-08-02 02:42:54.232 CRITICAL neutron [-] Unhandled error: zvmException: zvmException: switch: stgpriv add failed, [[u'zhcp: Creating virtual switch stgpriv... Failed\nzhcp: Return Code: 212\nzhcp: Reason Code: 36\nzhcp: Description: Virtual switch already exists', None]]
2017-08-02 02:42:54.232 ERROR neutron Traceback (most recent call last):
2017-08-02 02:42:54.232 ERROR neutron File "/usr/bin/
2017-08-02 02:42:54.232 ERROR neutron main()
2017-08-02 02:42:54.232 ERROR neutron File "/opt/stack/
2017-08-02 02:42:54.232 ERROR neutron agent = zvmNeutronAgent()
2017-08-02 02:42:54.232 ERROR neutron File "/opt/stack/
2017-08-02 02:42:54.232 ERROR neutron zvm_net = zvm_network.
2017-08-02 02:42:54.232 ERROR neutron File "/opt/stack/
2017-08-02 02:42:54.232 ERROR neutron self._creat_
2017-08-02 02:42:54.232 ERROR neutron File "/opt/stack/
2017-08-02 02:42:54.232 ERROR neutron self._vsws.
2017-08-02 02:42:54.232 ERROR neutron File "/opt/stack/
2017-08-02 02:42:54.232 ERROR neutron getattr(
2017-08-02 02:42:54.232 ERROR neutron File "/opt/stack/
2017-08-02 02:42:54.232 ERROR neutron return function(*arg, **kwargs)
2017-08-02 02:42:54.232 ERROR neutron File "/opt/stack/
2017-08-02 02:42:54.232 ERROR neutron (name, result['data']))
2017-08-02 02:42:54.232 ERROR neutron zvmException: zvmException: switch: stgpriv add failed, [[u'zhcp: Creating virtual switch stgpriv... Failed\nzhcp: Return Code: 212\nzhcp: Reason Code: 36\nzhcp: Description: Virtual switch already exists', None]]
2017-08-02 02:42:54.232 ERROR neutron