Bug 1529108

Summary: Remove interface from this router is not working
Product: Red Hat CloudForms Management Engine Reporter: Mor <mkalfon>
Component: ProvidersAssignee: Alona Kaplan <alkaplan>
Status: CLOSED CURRENTRELEASE QA Contact: Mor <mkalfon>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: alkaplan, cpelland, dajohnso, danken, gblomqui, istein, jfrey, jhardy, mperina, obarenbo, rhrazdil, simaishi
Target Milestone: GA   
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.0.16 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1531998 (view as bug list) Environment:
Last Closed: 2018-03-06 15:31:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:
Embargoed:
Bug Depends On: 1531998    
Bug Blocks:    
Attachments:
Description Flags
logs none

Description Mor 2017-12-26 11:41:02 UTC
Created attachment 1372430 [details]
logs

Description of problem:
Remove interface from router is not working as expected. It fails with error: 'No subnets to remove interfaces to Router "test_router"' even if a router has interface attached to it.

Version-Release number of selected component (if applicable):
CFME 5.9.0.12.20171205180333_3e32b3d 
ovirt-provider-ovn ovirt-provider-ovn-1.2.2-1.el7ev.noarch
RHV Version 4.2.0.2-0.1.el7

How reproducible:
100%

Steps to Reproduce:
1. Create a router and add interface with subnet.
2. On Network Routers --> Select router --> Configuration->Remove interface from this router.

Actual results:
UI error: 'No subnets to remove interfaces to Router "test_router"' where test_router already has interface in OVN that can be removed:
(on OVN central server)# ovn-nbctl show
...
    router 8c1d2ba2-9aff-40ca-a5e2-e74e27de4f71 (test_router)
        port lrp3a428fd7-0668-4a9b-8e33-4a57a15b3698
            mac: "00:0a:df:ea:98:5f"
            networks: ["10.0.0.1/24"]


Expected results:
There should be an option to select interface to be remove.

Additional info:

Comment 2 Alona Kaplan 2018-01-07 14:34:31 UTC
*** Bug 1529104 has been marked as a duplicate of this bug. ***

Comment 3 Dave Johnson 2018-01-08 18:01:41 UTC
Removing blocker flag.  RHV team needs to fix on their side and then we should be good to go.

Comment 4 Mor 2018-01-18 07:16:18 UTC
Hi Satoe,

I tried to verify it on CFME 5.9.0.16.20180109204148_7ac9852, but it still displays an error: "No subnets to remove interfaces to Router "test". 

Are we sure that the fix included in this version?

Thanks.

Comment 5 Alona Kaplan 2018-01-18 07:31:30 UTC
Hi Mor, the bug blocks on https://bugzilla.redhat.com/1531998. You can test it only when the blocking bug will be fixed.

Comment 6 Mor 2018-01-18 07:45:08 UTC
Hi Alona, 

If this is the case, could you please assign it back?

Thanks.

Comment 7 Alona Kaplan 2018-01-18 07:53:54 UTC
The CFME bug was fixed, ovn provider still have a bug.
If you want to test the CFME is now working you can test it with neutron instead of ovn (or wait for the ovn provider to be fixed before verifying the bug).

Comment 8 Martin Perina 2018-02-12 08:00:06 UTC
Moving back to MODIFIED as verification is blocked on BZ1531998

Comment 12 Martin Perina 2018-02-26 08:44:15 UTC
BZ1531998 is verified, moving to ON_QA

Comment 13 Mor 2018-02-27 08:14:54 UTC
Verified on:
rhv-4.2.2-1
ovirt-provider-ovn-1.2.7-2.el7ev.noarch