-
Notifications
You must be signed in to change notification settings - Fork 8
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
Curl generator : some attributes are not included #52
Comments
Hi Christophe, I used the latest cloud designer. #! /bin/sh Generated at Wed Mar 09 17:23:59 CET 2016 from platform:/resource/infratest/infrastructure_1.occic by org.occiware.clouddesigner.occi.gen.curlOCCI_SERVER_URL=$1 curl $CURL_OPTS -X PUT $OCCI_SERVER_URL/compute/vm1/e00cfdb8-0a74-488c-ae2e-234068337948 -H 'Content-Type: text/occi' -H 'Category: compute; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", os_tpl; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="mixin";' -H 'X-OCCI-Attribute: occi.core.id="e00cfdb8-0a74-488c-ae2e-234068337948"' -H 'X-OCCI-Attribute: occi.compute.architecture="x64"' -H 'X-OCCI-Attribute: occi.compute.hostname="occiwareInstanceWeb"' -H 'X-OCCI-Attribute: occi.compute.speed=3' -H 'X-OCCI-Attribute: occi.compute.memory=4' -H 'X-OCCI-Attribute: occi.compute.state="inactive"' curl $CURL_OPTS -X PUT $OCCI_SERVER_URL/storagelink/sl1/0100929d-9e16-4900-aeea-008cdea02f7c -H 'Content-Type: text/occi' -H 'Category: storagelink; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind";' -H 'X-OCCI-Attribute: occi.core.id="0100929d-9e16-4900-aeea-008cdea02f7c"' -H 'X-OCCI-Attribute: occi.storagelink.deviceid="system"' -H 'X-OCCI-Attribute: occi.storagelink.mountpoint="/home/default"' -H 'X-OCCI-Attribute: occi.core.source="/compute/vm1/e00cfdb8-0a74-488c-ae2e-234068337948", occi.core.target="/storage/ebs1/7f7f8257-6e88-4ce9-be78-b06028940758"' OCCI attributes seem to be generated correctly. Could you recheck that this does not work in your environment? |
I recheck this and it works, i have the same result as you. I dont really understand why it works now and doesn't a day ago. |
It works now because you corrected yesterday how the attribute occi.core.id is added. |
Hello,
When i generate my curl script from my infrastructure configuration, some attributes are not include in the shell script.
For ex : i create a resource like this :
Generated script give me :
curl $CURL_OPTS -X PUT $OCCI_SERVER_URL/compute/vm1/e00cfdb8-0a74-488c-ae2e-234068337948 -H 'Content-Type: text/occi' -H 'Category: compute; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", os_tpl; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="mixin";' -H 'X-OCCI-Attribute: occi.core.id="e00cfdb8-0a74-488c-ae2e-234068337948"'
Only the attributes "occi.core.id" is included. The others have disappear.
infratest.zip
The text was updated successfully, but these errors were encountered: