I am trying Cloudify/OpenStack integration. On bootstrapping I got the following error
cloudify@default> bootstrap-cloud openstack
Bootstrapping provider openstack. This may take a few minutes.
1 * Client out-bound request
1 > POST http://172.16.0.1:5000/v2.0/tokens
1 > Content-Type: application/json
1 > Accept: application/xml
{"auth":{"apiAccessKeyCredentials":{"accessKey":"7d398d97f8ab4155abd5766377fc1306","secretKey":"a9c5559115fb46958e16431614082e23"},"tenantId":"demo"}}
1 * Client in-bound response
1 < 500
1 < Date: Tue, 23 Oct 2012 04:56:03 GMT
1 < Vary: X-Auth-Token
1 < Content-Length: 281
1 < Connection: keep-alive
1 < Content-Type: application/xml
1 <
<?xml version="1.0" encoding="UTF-8"?>
<error xmlns="http://docs.openstack.org/identity/api/v2.0" message="An unexpected error prevented the server from fulfilling your request. local variable 'metadata_ref' referenced before assignment" code="500" title="Internal Server Error"/>
POST http://172.16.0.1:5000/v2.0/tokens returned a response status of 500 Internal Server Error
Operation failed.
I have attached the log files.
Please tell me where I am going wrong.
PFA
The file looks ok, so I have to guess that there is a problem with the configuration. It is likely that the tenant ID is incorrect. You may have more luck with the openstack support forum. The REST API call itself looks ok.
I am trying to take help from other sources as well but in the meantime, using verbose I got the following output,
cloudify@default> bootstrap-cloud --verbose openstack
Bootstrapping provider openstack. This may take a few minutes.
1 * Client out-bound request
1 > POST http://169.144.105.105:35357/v2.0/tokens
1 > Content-Type: application/json
1 > Accept: application/xml
{"auth":{"apiAccessKeyCredentials":{"accessKey":"525ec1694b9043abbfab05f44b446c3a","secretKey":"faf1eb1c65454a718274248523bf4e82"},"tenantId":"f34079dfe77842648b9f8e8fa211829c"}}
1 * Client in-bound response
1 < 500
1 < Date: Mon, 29 Oct 2012 05:35:55 GMT
1 < Vary: X-Auth-Token
1 < Content-Length: 281
1 < Connection: keep-alive
1 < Content-Type: application/xml
1 <
<?xml version="1.0" encoding="UTF-8"?>
<error xmlns="http://docs.openstack.org/identity/api/v2.0" message="An unexpected error prevented the server from fulfilling your request. local variable 'metadata_ref' referenced before assignment" code="500" title="Internal Server Error"/>
Operation failed. com.sun.jersey.api.client.UniformInterfaceException: POST http://169.144.105.105:35357/v2.0/tokens returned a response status of 500 Internal Server Error
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:676)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:563)
at org.cloudifysource.esc.driver.provisioning.openstack.OpenstackCloudDriver.createAuthenticationToken(OpenstackCloudDriver.java:790)
at org.cloudifysource.esc.driver.provisioning.openstack.OpenstackCloudDriver.startManagementMachines(OpenstackCloudDriver.java:201)
at org.cloudifysource.esc.shell.installer.CloudGridAgentBootstrapper.boostrapCloudAndWait(CloudGridAgentBootstrapper.java:160)
at org.cloudifysource.esc.shell.commands.BootstrapCloud.doExecute(BootstrapCloud.java:96)
at org.cloudifysource.shell.commands.AbstractGSCommand.execute(AbstractGSCommand.java:83)
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
at org.apache.karaf.shell.console.jline.Console.run(Console.java:221)
at org.apache.karaf.shell.console.Main.run(Main.java:191)
at org.apache.karaf.shell.console.Main.run(Main.java:89)
at org.cloudifysource.shell.GigaShellMain.main(GigaShellMain.java:122)
Operation failed.
Let me know if you get any more ideas.
Thanks
I am behind a proxy..do you think the error has anything to do with proxy ? If so is there any way to embed proxy settings here.
The error you are getting is from the Openstack server, so this is probably not a proxy issue - the CLI successfully connects to openstack but gets an error response to a login request.
The log specifies the request and response, so maybe you can ask about this in the openstack support forum?