I add a empty tag to a network, neutron-server return incorrect result, the details is below:
neutronclient version: 4.2.0
neutron --debug tag-add --resource-type network --resource 9eb7f03f-aaf0-4079-9244-65200176c901 --tag ''
root@server201:~# neutron net-show 9eb7f03f-aaf0-4079-9244-65200176c901
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2016-07-12T08:02:01 |
| description | |
| id | 9eb7f03f-aaf0-4079-9244-65200176c901 |
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 1450 |
| name | test |
| port_security_enabled | True |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 8 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | .json |
| tenant_id | 9e211e5ad3c0407aaf6c5803dc307c27 |
| updated_at | 2016-07-12T08:02:01 |
+---------------------------+--------------------------------------+
FYI: This is what the client is actually sending to the server:
DEBUG: keystoneauth. session REQ: curl -g -i -X PUT http:// 192.168. 33.12:9696/ v2.0/networks/ 80a98608- a814-4a28- 91e9-aa6c99fe65 ba/tags/ .json -H "User-Agent: python- neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4529f87d3 b08a34dd027de34 cfc3763f5767c5c 1" session RESP: [201] Content-Type: application/json Content-Length: 4 X-Openstack- Request- Id: req-157ca980- 4c25-4426- 9ecc-b278dc3e51 01 Date: Tue, 12 Jul 2016 18:50:50 GMT Connection: keep-alive
DEBUG: keystoneauth.
specifically: 192.168. 33.12:9696/ v2.0/networks/ 80a98608- a814-4a28- 91e9-aa6c99fe65 ba/tags/ .json
curl -g -i -X PUT http://