update subnet fails when no-host-route option is set

Bug #1747101 reported by Huang Cheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
In Progress
Undecided
Huang Cheng

Bug Description

[root@controller ~]# openstack subnet set psn1 --no-host-route
HttpException: Bad Request (HTTP 400) (Request-ID: req-093e1224-4146-4f07-921d-73fbde138456), Invalid input for host_routes. Reason: Invalid data format for hostroute: ''.

error in neutron-server:
2018-02-03 09:45:48.529 29218 DEBUG neutron_lib.api.validators [req-093e1224-4146-4f07-921d-73fbde138456 7d40a908cdec477ead0381c28de4c796 06
8a4a1597714916bcf79fed09767f3b - default default] Invalid data format for hostroute: '' validate_hostroutes /usr/lib/python2.7/site-packages
/neutron_lib/api/validators/__init__.py:580
2018-02-03 09:45:48.529 29218 INFO neutron.pecan_wsgi.hooks.translation [req-093e1224-4146-4f07-921d-73fbde138456 7d40a908cdec477ead0381c28d
e4c796 068a4a1597714916bcf79fed09767f3b - default default] PUT failed (client error): Invalid input for host_routes. Reason: Invalid data fo
rmat for hostroute: ''.

Huang Cheng (hcpedh)
Changed in python-openstackclient:
assignee: nobody → Huang Cheng (hcpedh)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/540568

Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.16.0

This issue was fixed in the openstack/python-openstackclient 3.16.0 release.

Revision history for this message
Alexey Stupnikov (astupnikov) wrote :

Faced this bug in Queens, cherry-picked the patch to stable/queens:

https://review.opendev.org/#/c/659545/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient queens-eol

This issue was fixed in the openstack/python-openstackclient queens-eol release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.