-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Due to interoperability issues with other OCCI implementations, we have enable automatic assignment of floating IPs to our instances. This leads to the following problem:
- create VM
- delete VM fails because of the auto-assigned floating IP
2013-10-10 15:20:33.248 INFO nova.occiapi.wsgi.server [req-7a2c63f6-1089-4a78-885c-6f2f04ff46fd ridGermany/OU=Forschungszentrum Juelich GmbH/CN=Bjoern Hagemeier df37f5b1ebc94604964c2854b9c0551f] 134.94.168.82,127.0.0.1 "DELETE /compute/7b1ea357-aa52-4774-a554-ecd690883daf HTTP/1.0" status: 400 len: 220 time: 0.2978840
This is what the client receives in the response body:
<- "DELETE /compute/ecd49c64-dbf1-40bd-b351-45e0c88a48b1 HTTP/1.1\r\nAccept: text/plain,text/occi\r\nUser-Agent: rOCCI HTTPClient 4.1.0\r\nX-Auth-Token: *****\r\nConnection: close\r\nHost: egi-cloud.zam.kfa-juelich.de:8787\r\n\r\n"
-> "HTTP/1.1 400 Bad Request\r\n"
-> "Date: Thu, 10 Oct 2013 13:26:39 GMT\r\n"
-> "Server: pyssf OCCI/1.1\r\n"
-> "Content-Length: 46\r\n"
-> "Content-Type: text/plain\r\n"
-> "Vary: Accept-Encoding\r\n"
-> "Connection: close\r\n"
-> "\r\n"
reading 46 bytes...
-> ""
-> "Cannot disassociate auto assigined floating ip"
- create VM
- delete auto-assigned floating IP link
2013-10-10 15:22:31.138 INFO nova.occiapi.wsgi.server [req-57f1904a-e9f7-4e43-b1b4-c52a7f187740 ridGermany/OU=Forschungszentrum Juelich GmbH/CN=Bjoern Hagemeier df37f5b1ebc94604964c2854b9c0551f] 134.94.168.82,127.0.0.1 "DELETE /network/interface/bbc1b1fe-aca5-4f30-8cbb-12f36af9a163 HTTP/1.0" status: 400 len: 220 time: 0.3253710
<- "DELETE /network/interface/545f8ecb-bac0-4b11-899c-b4e78eb93ce0 HTTP/1.1\r\nAccept: text/plain,text/occi\r\nUser-Agent: rOCCI HTTPClient 4.1.0\r\nX-Auth-Token: *****\r\nConnection: close\r\nHost: egi-cloud.zam.kfa-juelich.de:8787\r\n\r\n"
-> "HTTP/1.1 400 Bad Request\r\n"
-> "Date: Thu, 10 Oct 2013 13:28:45 GMT\r\n"
-> "Server: pyssf OCCI/1.1\r\n"
-> "Content-Length: 46\r\n"
-> "Content-Type: text/plain\r\n"
-> "Vary: Accept-Encoding\r\n"
-> "Connection: close\r\n"
-> "\r\n"
reading 46 bytes...
-> ""
-> "Cannot disassociate auto assigined floating ip"
- delete VM SUCCESSFUL
2013-10-10 15:22:33.161 INFO nova.occiapi.wsgi.server [req-c659e1ec-ff34-40b3-9606-dcac15e9dc2c ridGermany/OU=Forschungszentrum Juelich GmbH/CN=Bjoern Hagemeier df37f5b1ebc94604964c2854b9c0551f] 134.94.168.82,127.0.0.1 "DELETE /compute/f0e37ded-e6a2-4361-bd73-c74637a66998 HTTP/1.0" status: 200 len: 146 time: 0.3598518
So, despite the deletion of the networklink being reported as failed, something changed, such that the VM can be deleted afterwards.