Once again I am here with a new issue,
below is the code for openstack in .properties, can somebody check it out? I am getting error, "credentials must not be null"
brooklyn.location.named.openstack=jclouds:openstack-nova:http://9.9.9.9:9999/v2
brooklyn.location.named.openstack.identity=tenant name:user name
brooklyn.location.named.openstack.credentials=password
Regards,
Faiza
machine access is acquired but now another error,
Error resolving template: not authorized (rethrowing: org.jclouds.rest.AuthorizationException: POST http://?.?.?.?/v3/tokens HTTP/1.1 -> HTTP/1.1 401 Unauthorized)
Regards,
Faiza
ComputeServiceContext context = ContextBuilder.newBuilder(provider)
.endpoint("http://172.16.0.1:5000/v2.0/")
.credentials(identity, password)
.modules(modules)
.buildView(ComputeServiceContext.class);
ComputeServiceContext context = ContextBuilder.newBuilder(provider)
.endpoint("http://172.16.0.1:5000/v2.0/")
.credentials(identity, password)
.modules(modules)
.buildView(ComputeServiceContext.class);
below is the code:
brooklyn.location.named.openstack=jclouds:openstack-nova:http://. . . .:5000/v2.0
brooklyn.location.named.openstack.identity=<project name>:<user name>
brooklyn.location.named.openstack.credential=password
brooklyn.location.named.openstack=jclouds:openstack-nova:RegionOne
brooklyn.location.named.openstack.imageid=RegionOne/<imageid>
brooklyn.location.named.openstack.user=root
Error:
endpoint.gethost() is null.
Can you please help me where am I doing wrong?
Regards,
Faiza
I am trying to give image id as parameter but still it is not working and giving following error:
Unable to match required VM template constraints PortableTemplateBuilder[ports=[22]]
java.lang.IllegalArgumentException: endpoint.getHost() is null for /RegionOne/tokens
I am trying to run the DynamicWebcluster example of brooklyn on openstack.
Please help me
Regards,
Faiza
There isn't duplication, I have checked. I am writing following code
brooklyn.location.named.openstack=jclouds:openstack-nova:http://url:5000/v2.0
brooklyn.location.named.openstack.identity=<Proj name> : <username>
brooklyn.location.named.openstack.credential=<pwd>
brooklyn.location.named.openstack=jclouds:openstack-nova:RegionOne
brooklyn.location.named.openstack.imageid=RegionOne/<image id>
#image name: ubuntu-12.04-cloud-live-amd64-iso
Regards,
Faiza
Regards,
Faiza
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
it did work but unable to match required VM template. Can you please tell me from where can I see the minimum requirements by brooklyn to run DynamicWebcluster example? (my provided image ID does not match with required template)
From log I can see only available profiles provided by my openstack.
Regards,
Faiza
Use imageId - note capital I .
If that fails can you put the log in dropbox and we can debug from there.
Best
Alex
To whom should I share the dropbox link for brooklyn.debug.log (63MB). I tried some changes in code following few other links and it ended up creating instances but stuck and finally gets failed.
Regards,
Faiza
Regards,
Faiza
Please find the links for brooklyn.debug.log file as well as brooklyn.properties.
https://www.dropbox.com/s/9ay4ifdw5kp3vfr/brooklyn.debug.log
https://www.dropbox.com/s/l775v5gf9hwp1zv/brooklyn.properties
Hope you would identify the problem soon.
Regards,
Faiza
Regards,
Faiza
I have replaced old catalog.xml with new via curl.
What to do next?
Regards,
Faiza
Does anyone find solution for this problem?
Regards,
Faiza
Regards,
Faiza
no such error as [1], instead some other [2]. Instances are being created in openstack but after 6-8 min it appears OnFire on brooklyn interface.
[2] org.jclouds.compute.RunNodesException: error running 1 node group(brooklyn-ugg9-faiza-webclusterdat-gwc5-jbossas7-q2qg) location(RegionOne) image(2310f8f4-1a5e-4771-b18d-5b725d606da0) size(3) options({inboundPorts=[22, 9443, 10999, 8443, 8080, 9990], scriptPresent=true, autoAssignFloatingIp=false})
Execution failures:
0 error[s]
Node failures:
1) NoSuchElementException on node RegionOne/bbec2dd6-49fb-4529-8e6b-49989025b91b:
java.util.NoSuchElementException: could not connect to any ip address port 22 on node......
Regards,
Faiza
brooklyn.location.named.openstack.jclouds.openstack-nova.auto-create-floating-ips=true
Regards,
Faiza
I am already giving floating IP=true, from openstack I have checked that floating IPs are being assigned to VMs.
In openstack, instance detail view shows information about security group[1](might be related to this problem)
[1]Security Groups
default
ALLOW 22:22 from 0.0.0.0/0
ALLOW -1:-1 from 0.0.0.0/0
I appreciate your team's efforts to resolve error.
stdout.log is attached.
Regards,
Faiza
from your log it is not clear if you are using something like:
brooklyn.location.named.openstack.jclouds.openstack-nova.auto-create-floating-ips=true
in your brooklyn.properties. In fact, in one of your previous log I can see:
"org.jclouds.compute.RunNodesException: error running 1 node group(brooklyn-ugg9-faiza-webclusterdat-gwc5-jbossas7-q2qg) location(RegionOne) image(2310f8f4-1a5e-4771-b18d-5b725d606da0) size(3) options({inboundPorts=[22, 9443, 10999, 8443, 8080, 9990], scriptPresent=true, autoAssignFloatingIp=false})"
so floating-ip are not enabled.
> In openstack, instance detail view shows information about security group[1](might be related to this problem)
> [1]Security Groups
> default
> ALLOW 22:22 from 0.0.0.0/0
> ALLOW -1:-1 from 0.0.0.0/0
>
The securityGroup looks sensible to me, but to be sure, you could create manually a securityGroup in RegionOne called `universal` that enables all tcp connections and add a new property to your brooklyn.properties:
# reuse the same securityGroup
brooklyn.location.named.openstack.securityGroups=universal
HTH,
Andrea
I added the floating IP=true parameter after finding the same error which you mentioned. So in new log it didnt appear.
I created security group universal in openstack with TCP connections. it is giving problem with port for each VM IP(after I run brooklyn example on openstack)
"sockets [172.24.4.226:22, 10.0.0.10:22] didn't open after 600000 MILLISECONDS"
I think it is related to some firewall or security limitation. I too am not an openstack expert but I would ask my Admin.
if you know anything to resolve it I would acknowledge it.
Thanks for your help.
Regards,
Faiza