-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alloc_floating_ip not working in master #65
Comments
Hi - floating ips are now realized through creating links to the public networking interface. You can see the details on the link now. |
Hi Thijs, I didn't manage to follow these instructions. Is there any more detail documented anywhere? When browsing resources, links are given like this: Link: </network/public>; rel="http://schemas.ogf.org/occi/infrastructure#network"; self="/network/interface/f4a16faa-6c96-4932-94f8-cc8a2175aec4"; category="http://schemas.ogf.org/occi/infrastructure#networkinterface http://schemas.ogf.org/occi/infrastructure/networkinterface#ipnetworkinterface"; occi.networkinterface.gateway="0.0.0.0"; occi.networkinterface.mac="aa:bb:cc:dd:ee:ff"; occi.networkinterface.interface="eth0"; occi.networkinterface.state="active"; occi.networkinterface.allocation="static"; occi.networkinterface.address="134.94.32.159"; occi.core.source="/compute/e2960e13-9d30-47aa-a01c-9e169213bdeb"; occi.core.target="/network/public"; occi.core.id="/network/interface/f4a16faa-6c96-4932-94f8-cc8a2175aec4" Do I need to give all attributes? I've been trying to do it analogous to storage links, but failed. Cheers, |
Hi, What is the request and error message you are getting when creating the link? Cheers, -Thijs |
curl -X POST -H 'x-auth-token: *****' https://egi-cloud.zam.kfa-juelich.de:8787/network/interface/ -H 'Category: networkinterface; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind"' -H 'x-occi-attribute: occi.core.source="/compute/b9cce1e6-1aec-472b-bfe7-15547cd46316"' -H 'x-occi-attribute: occi.core.target="/network/public"' Could not find a valid kind. |
can you add a -v parameter to the curl request and post all here? Might be a minor issue :-) |
oh and try to add -H 'Content-Type: text/occi' |
Adding the content-type header yields the following: "Both occi.core.[source, target] attributes need to be resources." Well, I thought that both source and target were resources, as I can retrieve information about them with get requests. I have also tried the full URL including server as I did for linking a storage to a VM, but it returns the same message. Björn |
jah can you give the complete output f the curl vomman when adding the -v parameter? |
$ curl -v -X POST --capath /etc/grid-security/certificates/ -H 'x-auth-token: *****' https://egi-cloud.zam.kfa-juelich.de:8787/network/interface/ -H 'Category: networkinterface; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind"' -H 'x-occi-attribute: occi.core.source="https://egi-cloud.zam.kfa-juelich.de:8787/compute/b9cce1e6-1aec-472b-bfe7-15547cd46316"' -H 'x-occi-attribute: occi.core.target="https://egi-cloud.zam.kfa-juelich.de:8787/network/public"' -H 'content-type: text/occi'
|
try using "X-OCCI-Attribute" instead of "x-occi-attribute"... |
On 07.01.2014 11:15, tmetsch wrote :
Dipl.-Inform. Björn Hagemeier Phone: +49 2461 61 1584 JSC is the coordinator of the Forschungszentrum Juelich GmbH Prof. Dr. Sebastian M. Schmidt |
weird - stuff is tested here: https://github.com/tmetsch/occi-os/blob/master/tests/system_test.py#L326 with the exact stuff you are doing. must be sth we miss in the request. Will fire up an test instance later today to test for you. |
On 07.01.2014 11:35, tmetsch wrote :
Dipl.-Inform. Björn Hagemeier Phone: +49 2461 61 1584 JSC is the coordinator of the Forschungszentrum Juelich GmbH Prof. Dr. Sebastian M. Schmidt |
That mixin shouldn't matter for now - I took your curl request from earlier + the content type and got an OK back....
|
Hi Thijs, finally works. Thanks for your help. Everything is ok with the Cheers, On 07.01.2014 13:29, tmetsch wrote :
Forschungszentrum Juelich GmbH Prof. Dr. Sebastian M. Schmidt |
no problem - glad that it isn't a bug :-D Cheers! |
The action to allocate a floating ip is somehow not provisioned anymore and even if you associate a floating ip through Openstack directly, you can't see it listed in details of a vm.
The text was updated successfully, but these errors were encountered: