[Bug 1765283] Re: Not able to clear all host-routes configured on a subnet using --no-host-routes option
James Page
james.page at ubuntu.com
Thu Nov 22 12:12:50 UTC 2018
** Changed in: python-openstackclient (Ubuntu)
Status: New => Triaged
** Changed in: python-openstackclient (Ubuntu)
Importance: Undecided => Medium
** Changed in: python-openstackclient (Ubuntu)
Importance: Medium => Low
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-openstackclient in Ubuntu.
https://bugs.launchpad.net/bugs/1765283
Title:
Not able to clear all host-routes configured on a subnet using --no-
host-routes option
Status in python-openstackclient package in Ubuntu:
Triaged
Bug description:
When i try to clear host routes configured on a subnet using --no-
host-route option, I am getting HTTPException
Please find the below logs for more clarity.
https://bugs.launchpad.net/devstack/+bug/1765026
Log:
----
stack at pike-ctrl:~/devstack$ git branch
master
* stable/pike
stack at pike-ctrl:~/devstack$ openstack subnet show SUBNET1
+-------------------------+----------------------------------------------------+
| Field | Value |
+-------------------------+----------------------------------------------------+
| allocation_pools | 10.10.10.2-10.10.10.254 |
| cidr | 10.10.10.0/24 |
| created_at | 2018-04-18T11:32:48Z |
| description | |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 10.10.10.1 |
| host_routes | destination='10.20.20.0/24', gateway='10.10.10.56' |
| | destination='10.30.30.0/24', gateway='10.10.10.57' |
| | destination='10.40.40.0/24', gateway='10.10.10.58' |
| | destination='10.50.50.0/24', gateway='10.10.10.62' |
| id | 4edd7300-0bd8-400b-ae49-813b5613cf76 |
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| name | SUBNET1 |
| network_id | f2e5943e-9f94-428b-ac00-7dcfe1f290fd |
| project_id | ac38171bdded4720b5a906099c8779ad |
| revision_number | 4 |
| segment_id | None |
| service_types | |
| subnetpool_id | None |
| tags | |
| updated_at | 2018-04-18T11:34:55Z |
| use_default_subnet_pool | None |
+-------------------------+----------------------------------------------------+
stack at pike-ctrl:~/devstack$ openstack subnet set SUBNET1 --no-host-route
HttpException: Bad Request (HTTP 400) (Request-ID: req-d4e949ee-a410-4817-804a-6d998688fdd1), Invalid input for host_routes. Reason: Invalid data format for hostroute: ''.
stack at pike-ctrl:~/devstack$
stack at pike-ctrl:~/devstack$ openstack subnet set SUBNET1 --help
usage: openstack subnet set [-h] [--name <name>] [--dhcp | --no-dhcp]
[--gateway <gateway>]
[--description <description>] [--tag <tag>]
[--no-tag]
[--allocation-pool start=<ip-address>,end=<ip-address>]
[--no-allocation-pool]
[--dns-nameserver <dns-nameserver>]
[--no-dns-nameservers]
[--host-route destination=<subnet>,gateway=<ip-address>]
[--no-host-route] [--service-type <service-type>]
<subnet>
--no-host-route Clear associated host-routes from the subnet. Specify
both --host-route and --no-host-route to overwrite the
current host route information.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1765283/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list