Bug 1738554 - [OSP15] cannot delete OVN Controller agent after controller replacement
Summary: [OSP15] cannot delete OVN Controller agent after controller replacement
Keywords:
Status: CLOSED DUPLICATE of bug 1828889
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 15.0 (Stein)
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Terry Wilson
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-07 12:51 UTC by Artem Hrechanychenko
Modified: 2022-08-11 08:55 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-18 09:11:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 750846 0 None ABANDONED [WIP] [OVN] Add support for deleting ml2/ovn agents 2021-02-15 18:26:47 UTC
Red Hat Issue Tracker OSP-6020 0 None None None 2022-08-11 08:55:49 UTC

Internal Links: 1982130

Description Artem Hrechanychenko 2019-08-07 12:51:49 UTC
Description of problem:
According to beta documentation
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/15-beta/html-single/director_installation_and_usage/index#cleaning-up-after-the-controller-node-replacement


Check the network agents in your overcloud environment: 



openstack network agent list                                                                                                                                                                             │
+--------------------------------------+----------------------+--------------------------+-------------------+-------+-------+-------------------------------+                                                                               │
| ID                                   | Agent Type           | Host                     | Availability Zone | Alive | State | Binary                        |                                                                               │
+--------------------------------------+----------------------+--------------------------+-------------------+-------+-------+-------------------------------+                                                                               │
| 7a600908-a776-485a-87fa-96a890d44085 | OVN Controller agent | controller-1.localdomain | n/a               | XXX   | UP    | ovn-controller                |                                                                               │
| 4a12c7ad-db64-41b6-8554-a8ad70ce9c05 | OVN Controller agent | compute-0.localdomain    | n/a               | :-)   | UP    | ovn-controller                |                                                                               │
| 483f4214-09cb-426c-abcb-87785b79cd0e | OVN Metadata agent   | compute-0.localdomain    | n/a               | :-)   | UP    | networking-ovn-metadata-agent |                                                                               │
| f8eba4ad-9952-4424-94fb-e0d8395f0891 | OVN Controller agent | controller-2.localdomain | n/a               | XXX   | UP    | ovn-controller                |                                                                               │
| f7373a7a-ec6c-4314-8ed9-3129d83cd439 | OVN Controller agent | controller-0.localdomain | n/a               | :-)   | UP    | ovn-controller                |                                                                               │
| 86a2f09b-297a-458d-a31e-c2478d6b4d24 | OVN Controller agent | controller-3.localdomain | n/a               | :-)   | UP    | ovn-controller                |                                                                               │
| 9675b44e-4cc0-44f2-b657-78c20f500178 | OVN Controller agent | controller-4.localdomain | n/a               | :-)   | UP    | ovn-controller                |                                                                               │
+--------------------------------------+----------------------+--------------------------+-------------------+-------+-------+-------------------------------+   



If any agents appear for the old node, remove them: 
(overcloud) [stack@undercloud-0 ~]$ openstack network agent delete f8eba4ad-9952-4424-94fb-e0d8395f0891                                                                                                                                      │
Failed to delete network agent with ID 'f8eba4ad-9952-4424-94fb-e0d8395f0891': BadRequestException: 400: Client Error for url: https://10.0.0.101:13696/v2.0/agents/f8eba4ad-9952-4424-94fb-e0d8395f0891, Bad agent request: OVN agents canno│
t be deleted.                                                                                                                                                                                                                                │
1 of 1 network agents failed to delete. 


Version-Release number of selected component (if applicable):
OSP15
RHOS_TRUNK-15.0-RHEL-8-20190725.n.1


How reproducible:


Steps to Reproduce:
1.Deploy OSP15 with 3 contoller
2.Try to replace controller using official documentation
3. Try to clean network agent related to removed controller

Actual results:
Bad agent request: OVN agents canno│
t be deleted

Expected results:
agent deleted

Additional info:

Comment 6 Jakub Libosvar 2020-09-18 09:11:38 UTC

*** This bug has been marked as a duplicate of bug 1828889 ***


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