Public bug reported: Nova support tagging of instance or other resource like device etc. But those tags are allowed to be as empty string which does not make much sense or any use case.
[root@faydevnt ~] # curl -g -i -X PUT http://9.60.18.229:8774/v2.1/78649a9e795f4c42b1975a1f1d923c64/servers/57c948ae-753a-4549-b62e-b763e775e50f/tags -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "OpenStack-API-Version: compute 2.37" -H "X-OpenStack-Nova-API-Version: 2.37" -H "X-Auth-Token: 4451f4afd5e54914984b621a2ffe2e68" -H "Content-Type: application/json" -d '{"tags": ["", ""]}' HTTP/1.1 200 OK Content-Length: 14 Content-Type: application/json Openstack-Api-Version: compute 2.37 X-Openstack-Nova-Api-Version: 2.37 Vary: OpenStack-API-Version Vary: X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-ae45d4fc-ba91-4863-ab35-590b287de631 Date: Thu, 08 Dec 2016 11:12:51 GMT {"tags": [""]}[root@nova server-tag-list 57c948ae-753a-4549-b62e-b763e775e50f +-----+ | Tag | +-----+ | | +-----+ Nova should 400 if any tag is requested with empty string. that can be done easily visa json schema with minLength as 1. ** Affects: nova Importance: Undecided Assignee: Ghanshyam Mann (ghanshyammann) Status: New ** Changed in: nova Assignee: (unassigned) => Ghanshyam Mann (ghanshyammann) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1648663 Title: Nova instance or other resource tags are allowed as empty string Status in OpenStack Compute (nova): New Bug description: Nova support tagging of instance or other resource like device etc. But those tags are allowed to be as empty string which does not make much sense or any use case. [root@faydevnt ~] # curl -g -i -X PUT http://9.60.18.229:8774/v2.1/78649a9e795f4c42b1975a1f1d923c64/servers/57c948ae-753a-4549-b62e-b763e775e50f/tags -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "OpenStack-API-Version: compute 2.37" -H "X-OpenStack-Nova-API-Version: 2.37" -H "X-Auth-Token: 4451f4afd5e54914984b621a2ffe2e68" -H "Content-Type: application/json" -d '{"tags": ["", ""]}' HTTP/1.1 200 OK Content-Length: 14 Content-Type: application/json Openstack-Api-Version: compute 2.37 X-Openstack-Nova-Api-Version: 2.37 Vary: OpenStack-API-Version Vary: X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-ae45d4fc-ba91-4863-ab35-590b287de631 Date: Thu, 08 Dec 2016 11:12:51 GMT {"tags": [""]}[root@nova server-tag-list 57c948ae-753a-4549-b62e-b763e775e50f +-----+ | Tag | +-----+ | | +-----+ Nova should 400 if any tag is requested with empty string. that can be done easily visa json schema with minLength as 1. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1648663/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp