Bug 1295690 - Backport: Support migration of non-HA router to HA and reverse
Summary: Backport: Support migration of non-HA router to HA and reverse
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 8.0 (Liberty)
Hardware: All
OS: Linux
medium
high
Target Milestone: ga
: 8.0 (Liberty)
Assignee: John Schwarz
QA Contact: Alexander Stafeyev
URL:
Whiteboard:
Depends On: 1292527
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-05 09:13 UTC by John Schwarz
Modified: 2023-02-22 23:02 UTC (History)
13 users (show)

Fixed In Version: openstack-neutron-7.0.1-6
Doc Type: Enhancement
Doc Text:
Previously, a router that was neither an HA nor a DVR router could not be converted into an HA router. Instead, it was necessary to create a new router and reconnect all the resources (interfaces, networks etc.) from the old router to the new one. This update adds the ability to convert a legacy router into an HA or non-HA router in a few simple commands: # neutron router-update ROUTER --admin-state-up=False # neutron router-update ROUTER --ha=True/False # neutron router-upgrade ROUTER --admin-state-up=True Replace ROUTER with the ID or name of the router to convert.
Clone Of: 1292527
Environment:
Last Closed: 2016-04-07 21:16:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1365426 0 None None None 2016-01-05 09:13:18 UTC
OpenStack gerrit 233646 0 None MERGED Support migrating of legacy routers to HA and back 2020-10-05 01:12:22 UTC
OpenStack gerrit 260528 0 None MERGED Support migrating of legacy routers to HA and back 2020-10-05 01:12:21 UTC
Red Hat Product Errata RHEA-2016:0603 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 8 Enhancement Advisory 2016-04-08 00:53:53 UTC

Comment 3 Alexander Stafeyev 2016-01-27 09:35:46 UTC
[stack@instack ~]$ neutron router-create Router1 --ha false
Created a new router:
+-----------------------+--------------------------------------+
| Field                 | Value                                |
+-----------------------+--------------------------------------+
| admin_state_up        | True                                 |
| distributed           | False                                |
| external_gateway_info |                                      |
| ha                    | False                                |
| id                    | 00d53b6c-7c75-40be-863e-cb537bf3da0a |
| name                  | Router1                              |
| routes                |                                      |
| status                | ACTIVE                               |
| tenant_id             | 1bef2bc7801e42068d874332bef91932     |
+-----------------------+--------------------------------------+
[stack@instack ~]$ 
[stack@instack ~]$ 
[stack@instack ~]$ 
[stack@instack ~]$ 
[stack@instack ~]$ 
[stack@instack ~]$ 
[stack@instack ~]$ 
[stack@instack ~]$ 
[stack@instack ~]$ 
[stack@instack ~]$ neutron router-update 00d53b6c-7c75-40be-863e-cb537bf3da0a --ha true
Bad router request: Cannot change HA attribute of active routers. Please set router admin_state_up to False prior to upgrade.
[stack@instack ~]$ neutron router-update 00d53b6c-7c75-40be-863e-cb537bf3da0a --admin_state_up false
Updated router: 00d53b6c-7c75-40be-863e-cb537bf3da0a
[stack@instack ~]$ 
[stack@instack ~]$ neutron router-update 00d53b6c-7c75-40be-863e-cb537bf3da0a --ha true
Updated router: 00d53b6c-7c75-40be-863e-cb537bf3da0a
[stack@instack ~]$ neutron router-update 00d53b6c-7c75-40be-863e-cb537bf3da0a --admin_state_up true
Updated router: 00d53b6c-7c75-40be-863e-cb537bf3da0a
[stack@instack ~]$ neutron router-show Router1
Multiple router matches found for name 'Router1', use an ID to be more specific.
[stack@instack ~]$ neutron router-show 00d53b6c-7c75-40be-863e-cb537bf3da0a
+-----------------------+--------------------------------------+
| Field                 | Value                                |
+-----------------------+--------------------------------------+
| admin_state_up        | True                                 |
| distributed           | False                                |
| external_gateway_info |                                      |
| ha                    | True                                 |
| id                    | 00d53b6c-7c75-40be-863e-cb537bf3da0a |
| name                  | Router1                              |
| routes                |                                      |
| status                | ACTIVE                               |
| tenant_id             | 1bef2bc7801e42068d874332bef91932     |
+-----------------------+--------------------------------------+

Comment 4 errata-xmlrpc 2016-04-07 21:16:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0603.html


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