Description:
Updating servers with an invalid IPv6 is not raising bad request.
Expected Result:
When IPv6 parameter of server is updated with invalid value, Bad Request Exception is supposed to be raised.
Actual Result:
Did not raise Bad Request
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 340, in run
testMethod()
File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/tools.py", line 87, in newfunc
raise AssertionError(message)
AssertionError: test_update_servers_012_with_invalid_IPv6() did not raise BadRequest
-------------------- >> begin captured logging << --------------------
novaclient.client: DEBUG: REQ: curl -i https://compute.systest.aw1.hpcloud.net/v1.1/54336735645370/servers/135530 PUT -H "X-Auth-Project-Id: <email address hidden>" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "X-Auth-Token: HPAuth_4f7e89fbe4b093d231119bcd"
novaclient.client: DEBUG: REQ BODY: {"server": {"accessIPv6": "invalidipv6"}}
novaclient.client: DEBUG: RESP:{'date': 'Fri, 06 Apr 2012 11:52:57 GMT', 'status': '200', 'content-length': '1066', 'content-type': 'application/json; charset=UTF-8'} {"server": {"status": "ACTIVE", "updated": "2012-04-06T11:52:57Z", "hostId": "6b27d387102f4a19ab0fb5bdb5a35c58bbaeb063bc809bcd52602f15", "user_id": "91856392262992", "name": "update_server_name&12", "links": [{"href": "https://compute.systest.aw1.hpcloud.net/v1.1/54336735645370/servers/135530", "rel": "self"}, {"href": "https://compute.systest.aw1.hpcloud.net/54336735645370/servers/135530", "rel": "bookmark"}], "addresses": {"private": [{"version": 4, "addr": "10.12.24.192"}, {"version": 4, "addr": "15.184.122.30"}]}, "tenant_id": "54336735645370", "image": {"id": "8867", "links": [{"href": "https://compute.systest.aw1.hpcloud.net/54336735645370/images/8867", "rel": "bookmark"}]}, "created": "2012-04-06T11:41:02Z", "uuid": "ac03d9c4-9ceb-4909-a902-739fa927b98e", "accessIPv4": "invalidipv4a99", "accessIPv6": "invalidipv6", "key_name": null, "progress": 100, "flavor": {"id": "9", "links": [{"href": "https://compute.systest.aw1.hpcloud.net/54336735645370/flavors/9", "rel": "bookmark"}]}, "config_drive": "", "id": 135530, "metadata": {"meta": "HPCS-0"}}}
Please see my comments on https:/ /bugs.launchpad .net/nova/ +bug/980723