Looking at the original state we had:
    switch 32367d8a-460f-4447-b35a-abe9ea5187e0 (ovn192)
    switch 6110649a-db2b-4de7-8fbc-601095cfe510 (ovn192)
    switch 64c4c17f-cd67-4e29-939e-2b952495159f (ovn172)
    switch 04501f6b-3977-4ba1-9ead-7096768d796d (ovn172)

In the output of GET, 6110649a-db2b-4de7-8fbc-601095cfe510 is not longer there, so it has been deleted.
Did you maybe try to submit the request twice?

About  8fd63a10-a2ba-4c56-a8e0-0bc8d70be8b5. There was never a network with that id, so this is correct.

Also note that to delete a network you will first have to delete its ports.



On Tue, Mar 19, 2019 at 4:58 PM Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:


On Tue, Mar 19, 2019 at 4:44 PM Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
On Tue, Mar 19, 2019 at 4:31 PM Miguel Duarte de Mora Barroso <mdbarroso@redhat.com> wrote:

[snip]
 
>> >> >> @Gianluca Cecchi , I notice that one of your duplicate networks -
>> >> >> 'ovn192'  - has no ports attached. That makes it the perfect candidate
>> >> >> to be deleted, and see if it becomes 'listable' on engine. That would
>> >> >> help rule out the 'duplicate name' theory.
>> >> >
>> >> >
>> >> >  I can try. Can you give me the command to be run?
>> >> > It is a test oVirt so It would be not a big problem in case of failures in this respect.
>> >>
>> >> You can delete it via the UI; just be sure to delete the one without
>> >> ports - it's external ID is 6110649a-db2b-4de7-8fbc-601095cfe510.
>> >>
>> >> It will ask you if you also want to delete it from the external
>> >> provider, say yes.
>> >
>> >
>> >
>> > Inside the GUI I see only one ovn192 network and one ovn172 network and their external ids don't match the ones without ports...
>> >
>> > - ovn192
>> > Id: 8fd63a10-a2ba-4c56-a8e0-0bc8d70be8b5
>> > External ID: 32367d8a-460f-4447-b35a-abe9ea5187e0
>> >
>> > - ovn172
>> > Id: 7546d5d3-a0e3-40d5-9d22-cf355da47d3a
>> > External ID: 64c4c17f-cd67-4e29-939e-2b952495159f
>> >
>> > So I think I have to delete from command line
>>
>> Check pastebin [0],  with it you can safely delete those 2 networks.
>> Last course of action would be to delete via ovn-nbctl - e.g.
>> ovn-nbctl destroy logical_switch <network_id> - but hopefully it won't
>> come to that.
>>
>> [0] - https://paste.fedoraproject.org/paste/mxVUEJZWxG-QHX0mJO1VhA
>>


I get "not found" for both:

 [root@ovmgr1 ~]# curl -k -X DELETE   'https://localhost:9696/v2/networks/6110649a-db2b-4de7-8fbc-601095cfe510'   -H 'X-Auth-Token: WyutJuakjpSzJ4nj7drptpDfbAb3sKcZWvhF3NqRVXRyUpIHz9QGG_ZeeLi7u7trv7Er2D3vAcSX9LIFpXzz7w'
{
  "error": {
    "message": "Cannot find Logical_Switch with name=6110649a-db2b-4de7-8fbc-601095cfe510",
    "code": 404,
    "title": "Not Found"
  }
}
[root@ovmgr1 ~]# curl -k -X DELETE   'https://localhost:9696/v2/networks/8fd63a10-a2ba-4c56-a8e0-0bc8d70be8b5'   -H 'X-Auth-Token: WyutJuakjpSzJ4nj7drptpDfbAb3sKcZWvhF3NqRVXRyUpIHz9QGG_ZeeLi7u7trv7Er2D3vAcSX9LIFpXzz7w'
{
  "error": {
    "message": "Cannot find Logical_Switch with name=8fd63a10-a2ba-4c56-a8e0-0bc8d70be8b5",
    "code": 404,
    "title": "Not Found"
  }
}
[root@ovmgr1 ~]# 

Is there a command to get the supposed list?

Thanks for your help.
I'm also available to completely reset the OVN config if there is a way for it...

Gianluca


A GET call outputs this information :
 [root@ovmgr1 ~]# curl -k -X GET 'https://localhost:9696/v2/networks' -H 'X-Auth-Token: WyutJuakjpSzJ4nj7drptpDfbAb3sKcZWvhF3NqRVXRyUpIHz9QGG_ZeeLi7u7trv7Er2D3vAcSX9LIFpXzz7w'
{"networks": [{"status": "ACTIVE", "name": "ovn172", "tenant_id": "00000000000000000000000000000001", "mtu": 1442, "port_security_enabled": false, "id": "64c4c17f-cd67-4e29-939e-2b952495159f"}, {"status": "ACTIVE", "name": "ovn172", "tenant_id": "00000000000000000000000000000001", "mtu": 1442, "port_security_enabled": false, "id": "04501f6b-3977-4ba1-9ead-7096768d796d"}, {"status": "ACTIVE", "name": "ovn192", "tenant_id": "00000000000000000000000000000001", "mtu": 1442, "port_security_enabled": false, "id": "32367d8a-460f-4447-b35a-abe9ea5187e0"}]}[root@ovmgr1 ~]# 
[root@ovmgr1 ~]#