Bug 1362399 - [OVS] Can't change the network's switch type from ovs to legacy and networks remain as out-of-sync
Summary: [OVS] Can't change the network's switch type from ovs to legacy and networks ...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: vdsm
Classification: oVirt
Component: General
Version: ---
Hardware: x86_64
OS: Linux
medium
high with 1 vote
Target Milestone: ---
: ---
Assignee: Petr Horáček
QA Contact: Meni Yakove
URL:
Whiteboard:
Depends On:
Blocks: OpenVswitch_Support
TreeView+ depends on / blocked
 
Reported: 2016-08-02 06:50 UTC by Michael Burman
Modified: 2018-01-03 11:27 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-01-03 11:27:47 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
LOgs (1.10 MB, application/x-gzip)
2016-08-02 06:50 UTC, Michael Burman
no flags Details
fresh logs (120.88 KB, application/x-gzip)
2018-01-01 12:54 UTC, Michael Burman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 62330 0 master MERGED net: support the ability to change the switch type for a host 2020-03-02 12:35:29 UTC

Description Michael Burman 2016-08-02 06:50:24 UTC
Created attachment 1186667 [details]
LOgs

Description of problem:
Once moving host from legacy switch type to ovs type it's not possible to sync the networks back to legacy type again if moving back to legacy switch type cluster. 

Version-Release number of selected component (if applicable):
4.0.2.3-0.1.el7ev
vdsm-4.18.9-1.el7ev.x86_64
openvswitch-2.4.1-1.git20160727.el7_2.x86_64

How reproducible:
100

Steps to Reproduce:
1. Add host to rhev-m 4.0.2 to legacy type cluster 
2. Create ovs type cluster and move the host to this cluster(maintenance)
3. Sync the network/s on host
4. Move the host back to legacy type cluster and sync the network/s

Actual results:
Networks remain as ovs switch type, it seems like the sync succeeded, but there was no change. 

'switch': 'ovs'}}

Expected results:
Should be able to switch back to legacy type

Comment 1 Edward Haas 2016-08-02 08:39:43 UTC
We do not yet support changing a legacy network to ovs and vice versa.
it is in our immediate TODO list.

Comment 2 Red Hat Bugzilla Rules Engine 2016-08-04 12:41:13 UTC
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.

Comment 3 Michael Burman 2016-12-12 06:44:46 UTC
Partial fail - 

Failing when bond configured on the host - 

2016-12-12 08:34:56,782 ERROR (jsonrpc/0) [vds] All bondings must be reconfigured on switch type change (API:1526)
Traceback (most recent call last):
  File "/usr/share/vdsm/API.py", line 1523, in setupNetworks
    supervdsm.getProxy().setupNetworks(networks, bondings, options)
  File "/usr/lib/python2.7/site-packages/vdsm/supervdsm.py", line 53, in __call__
    return callMethod()
  File "/usr/lib/python2.7/site-packages/vdsm/supervdsm.py", line 51, in <lambda>
    **kwargs)
  File "<string>", line 2, in setupNetworks
  File "/usr/lib64/python2.7/multiprocessing/managers.py", line 773, in _callmethod
    raise convert_to_error(kind, result)
ConfigNetworkError: (21, 'All bondings must be reconfigured on switch type change')

- Without bond, ovs >> legacy succeeded smoothly  

I believe we should fail it at the moment.

Comment 4 Michael Burman 2016-12-12 09:44:02 UTC
As discussed with Dan, this bug has failedQa.

Comment 5 Dan Kenigsberg 2017-01-04 11:23:58 UTC
verification failed because we did not make sure we use ovs with a fix for bug 1397050.

I hope we can retry in the future, but currently this bug is deferred.

Comment 6 Michael Burman 2018-01-01 12:29:30 UTC
New and fresh logs tested on latest rhv 4.2 - 4.2.0.2-0.1.el7
vdsm-4.20.9.3-1.el7ev
openvswitch-2.7.3-2.git20171010.el7fdp.x86_64

Comment 7 Michael Burman 2018-01-01 12:53:12 UTC
- Add host to ovs type cluster
- Move host to legacy type cluster
- ovirtmgmt is out of sync

- ovirtmgmt must be synced - we not sending setup networks to sync the network if moving from ovs to legacy.

Trying to sync it manually, will result as failure on a SPM host(host lost connection and sync failed) and might success on a non-SPM host. 

Any how, if moving from ovs to legacy type we must sync the network and make it linux bridge on the host.

Comment 8 Michael Burman 2018-01-01 12:54:57 UTC
Created attachment 1375149 [details]
fresh logs

Comment 9 Yaniv Lavi 2018-01-03 11:27:47 UTC
We will only support setting the switch type in cluster creation.


Note You need to log in before you can comment on or make changes to this bug.