openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #15801
Cannot associate/dissociate an floating IP to an instance from API
Hi,
I am trying to associate an floating IP to an instance from API in my Essex
environment, and get the error "404 Not Found". I found someone have filed
an invalid bug (the link is https://bugs.launchpad.net/nova/+bug/917064), I
followed the information and tried several request formats as below, but
all are failed.
1. curl -k -D - -H "X-Auth-Token: 7f48c07af3b842d1b9c0f15a37ddd956" -X
'POST' -d @test.json -v
http://localhost:8774/v1.1/53869b3cd0cc40a28a826422a37622da/os-floating-ips/1/associate-H
'Content-type: application/json'
The file test.json:
*{*
* "associate_address" : {*
* "fixed_ip" : "192.168.20.3"*
* }*
*}*
*
*
2. curl -k -D - -H "X-Auth-Token: 7f48c07af3b842d1b9c0f15a37ddd956" -X
'POST' -d @test.json -v
http://localhost:8774/v1.1/53869b3cd0cc40a28a826422a37622da/os-floating-ips/1/action
-H 'Content-type: application/json'
The file test.json:
*{*
* "addFloatingIp": {*
* "address" : "10.100.20.17"*
* },*
* "associate_address" : {*
* "fixed_ip" : "192.168.20.3"*
* }*
*}*
3. curl -k -D - -H "X-Auth-Token: 7f48c07af3b842d1b9c0f15a37ddd956" -X
'POST' -d @test.json -v
http://localhost:8774/v1.1/53869b3cd0cc40a28a826422a37622da/os-floating-ips/1/addFloatingIp
-H 'Content-type: application/json'
The file test.json:
*{*
* "associate_address" : {*
* "fixed_ip" : "192.168.20.3"*
* }*
*}*
I am wondering what is the correct request format or just a bug? It will
be much appreciated if someone can give me some hints.
Thanks,
Sam
Follow ups