Hi All,

 I created a network and provided the network uuid in blueprint. Now , the
instance gets created correctly and  it gets an IP from the network that I
have mentioned  but the brooklyn application gets stuck in VM creation
stage (provision stage - subtask of VM start -DST manager(internal ).

Following is the blueprint that I am using :

name: simple-vm4
>
> location:
>
>   jclouds:hpcloud-compute
>
> services:
>
> - type: brooklyn.entity.basic.EmptySoftwareProcess
>
>   name: VM
>
>   provisioning.properties:
>
>       networkName: my_network_uuid
>
>       securityGroups: Security_group_name_created_in_advance
>
>

Brooklyn.properties file: (refering to links [1])



brooklyn.location.jclouds.hpcloud-compute.identity = my_project_name:my
> access key


> brooklyn.location.jclouds.hpcloud-compute.credential = my_secret_key


> brooklyn.location.named.hpcloud-east = jclouds:hpcloud-compute

brooklyn.location.named.hpcloud-east.region = region-a.geo-1

brooklyn.location.named.hpcloud-east.displayName = HP Helion (US East)

brooklyn.location.jclouds.hpcloud-comp...@az-1.region-a.geo-1.displayName=HP
> US West 1

brooklyn.location.jclouds.hpcloud-comp...@az-1.region-a.geo-1.iso3166= US


> brooklyn.location.jclouds.hpcloud-comp...@az-2.region-a.geo-1.displayName=HP
> US West 2

brooklyn.location.jclouds.hpcloud-comp...@az-2.region-a.geo-1.iso3166 = US


> brooklyn.location.jclouds.hpcloud-comp...@az-3.region-a.geo-1.displayName=HP
> US West 3

brooklyn.location.jclouds.hpcloud-comp...@az-3.region-a.geo-1.iso3166 = US


> brooklyn.location.jclouds.hpcloud-comp...@region-b.geo-1.displayName=HP
> US East

[email protected] = US

brooklyn.location.named.hpcloud-east.openIptables=true

brooklyn.location.named.hpcloud-east.auto-create-floating-ips=true

brooklyn.location.named.hpcloud-east.securityGroups=true


What is the expected behaviour when network ID is not provided explicitly
?  Can anyone help me in this  ?

[1]:
https://github.com/apache/incubator-brooklyn/blob/9595ddc943fa9cb00f86a20e030cffd07bded69b/locations/jclouds/src/main/resources/brooklyn/location-metadata.properties

On Tue, Sep 1, 2015 at 10:48 AM, Gowri LN <[email protected]> wrote:

> Hi Andrea,
>
> Thanks for the help.
>
> The deatils in  link[brooklyn.properties
> <https://github.com/apache/incubator-brooklyn/blob/2aac052fbde38b566f5d70efa0d241b0488c98f4/docs/guide/start/brooklyn.properties>]
> caused confusion as it says that identity and credential for hp cloud will
> include username , password same as the one which we use for logging into
> the console but instead it should be Accesskey and secret key for jclouds
> above 1.8 (refer link
> <http://stackoverflow.com/questions/25351307/how-can-i-access-hp-helion-using-apache-jclouds>
>  ).
>
> I added the details that you have mentioned in brooklyn.properties and I
> used  blueprint-1 to launch a simple VM to start with . I can see that an
> instance gets created successfully in the region but the application gets
> on fire with the following error :
>
>
>> Error invoking start at EmptySoftwareProcessImpl{id=nkJ0UYV4}:
>> org.jclouds.compute.RunNodesException: error running 1 node
>> group(brooklyn-guvb-ubuntu-simple-vm-c7zq-vm-nkj0) location(region-a.geo-1)
>> image(43804523-7e3b-4adf-b6df-9d11d451c463) size(100)
>> options({scriptPresent=true,
>> userMetadata={Name=brooklyn-guvb-ubuntu-simple-vm-c7zq-vm-nkj0-qqjs,
>> brooklyn-user=ubuntu, brooklyn-app-id=c7ZQXESh,
>> brooklyn-app-name=simple-vm, brooklyn-entity-id=nkJ0UYV4,
>> brooklyn-entity-name=VM, brooklyn-server-creation-date=2015-09-01-0503},
>> generateKeyPair=true, configDrive=false})
>> Execution failures:
>> 1) ExecutionException on brooklyn-guvb-ubuntu-simple-vm-c7zq-vm-nkj0-f0c:
>> java.util.concurrent.ExecutionException:
>> org.jclouds.http.HttpResponseException: command: POST
>> https://region-a.geo-1.compute.hpcloudsvc.com/v2/............/servers/12bc827b-16e6-4616-b75d-e001693eb65a/action
>> HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content:
>> [{"badRequest": {"message": "No nw_info cache associated with instance",
>> "code": 400}}]
>>
>
> What other details are mandatory for this blueprint ? Can you please help?
>
>
>
> Blueprint-1 :
> name: simple-vm
> location:
>   jclouds:hpcloud-compute
> services:
> - type: brooklyn.entity.basic.EmptySoftwareProcess
>   name: VM
>
> Thanks,
> Gowri
>
> On Mon, Aug 31, 2015 at 12:46 PM, Andrea Turli <
> [email protected]> wrote:
>
>> Hi,
>>
>> looking at your YAML I think you should edit the location section into
>> something like
>>
>> location:
>>   jclouds:hpcloud-compute:*region  *# as per [1]
>>   identity: *tenantName:accessKey* # as per [2]
>>   credential: *secretKey*
>>
>> Notice, you may also want to control which image will be chosen adding
>>
>>  imageId = *region/imageId *# as per [3]
>>
>> Please see [4] for more information about jclouds-hpcloud-compute.
>>
>> Best,
>> Andrea
>>
>> [1]:
>>
>> https://github.com/apache/incubator-brooklyn/blob/2aac052fbde38b566f5d70efa0d241b0488c98f4/docs/guide/start/brooklyn.properties#L181
>> [2]:
>>
>> https://github.com/apache/incubator-brooklyn/blob/2aac052fbde38b566f5d70efa0d241b0488c98f4/docs/guide/start/brooklyn.properties#L177
>> [3]:
>>
>> https://github.com/apache/incubator-brooklyn/blob/2aac052fbde38b566f5d70efa0d241b0488c98f4/docs/guide/start/brooklyn.properties#L182
>> [4]: https://jclouds.apache.org/guides/hpcloud/
>>
>>
>> On Mon, 31 Aug 2015 at 08:08 Gowri LN <[email protected]> wrote:
>>
>> > Hi ,
>> >
>> > I found this link
>> > <
>> >
>> https://github.com/apache/incubator-brooklyn/blob/2aac052fbde38b566f5d70efa0d241b0488c98f4/docs/guide/start/brooklyn.properties
>> > >
>> >  and I added
>> >
>> >
>> > >  brooklyn.location.jclouds.hpcloud-compute.identity =
>> > projectname:username
>> > >  brooklyn.location.jclouds.hpcloud-compute.credential = password
>> >
>> >
>> > in Brooklyn.properties. Now, I am getting the following error
>> >
>> > Error invoking start at EmptySoftwareProcessImpl{id=DnL6EWl6}: Not
>> > authorized to access cloud JcloudsLocation[hpcloud-compute:My project
>> > name:username/hpcloud-compute@qyl5eK6d] to resolve
>> > PortableTemplateBuilder[ports=[22],
>> >
>> >
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$ImageChooserFromOrdering@b1821e
>> > ,
>> > minRam=2048]: org.jclouds.rest.AuthorizationException: POST
>> > https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens
>> HTTP/1.1
>> > -> HTTP/1.1 401 Unauthorized
>> >
>> > What am I missing here ? And also,How can I specify a region through
>> yaml ?
>> > Is it in same way as for AWS ?
>> > Can anyone help me with this?
>> >
>> > Thanks,
>> > Gowri
>> >
>> > On Mon, Aug 31, 2015 at 9:47 AM, Gowri LN <[email protected]>
>> wrote:
>> >
>> > > Hi All,
>> > >
>> > > I was trying to launch a simple yaml on HP Public cloud. Following is
>> my
>> > > blueprint:
>> > >
>> > > name: simple-vm
>> > > location:
>> > >  jclouds:hpcloud-compute
>> > >  identity:ID
>> > >  credential:MY Secret key
>> > > services:
>> > > - type: brooklyn.entity.basic.EmptySoftwareProcess
>> > >   name: VM
>> > >
>> > > I got ID and Secret key values from Manage keys section of my HP
>> Public
>> > > Cloud account. But I got the following error
>> > >
>> > > Illegal parameter for 'location' (jclouds:hpcloud-compute
>> identity:......
>> > > credential:...............); not resolvable:
>> > > java.util.NoSuchElementException: Cloud provider/API type
>> hpcloud-compute
>> > > identity is not supported by jclouds
>> > >
>> > >
>> > > Also, [1] suggests that I need to provide  tenant name:username for
>> > > identity .
>> > > What is tenant name in HP Cloud? Is it domain Id or project name ?
>> > >
>> > >
>> > > Is HP's Helion (public /private ) cloud  supported by Brooklyn ? If
>> > > yes,then
>> > > can anyone please suggest sample yaml ( mainly location details ) ?
>> > >
>> > > Link  [2] doesnot list Hp public cloud as supported .
>> > >
>> > >
>> > >
>> > > [1] :
>> > >
>> >
>> https://github.com/apache/incubator-brooklyn/blob/2aac052fbde38b566f5d70efa0d241b0488c98f4/docs/guide/start/brooklyn.properties
>> > >
>> > > [2]
>> > >
>> >
>> https://github.com/apache/incubator-brooklyn/blob/9595ddc943fa9cb00f86a20e030cffd07bded69b/docs/guide/yaml/setting-locations.md
>> > >
>> > > Thanks,
>> > > Gowri
>> > >
>> >
>>
>> --
>> Cloudsoft Corporation Limited, Registered in Scotland No: SC349230.
>>  Registered Office: 13 Dryden Place, Edinburgh, EH9 1RP
>>
>> This e-mail message is confidential and for use by the addressee only. If
>> the message is received by anyone other than the addressee, please return
>> the message to the sender by replying to it and then delete the message
>> from your computer. Internet e-mails are not necessarily secure. Cloudsoft
>> Corporation Limited does not accept responsibility for changes made to
>> this
>> message after it was sent.
>>
>> Whilst all reasonable care has been taken to avoid the transmission of
>> viruses, it is the responsibility of the recipient to ensure that the
>> onward transmission, opening or use of this message and any attachments
>> will not adversely affect its systems or data. No responsibility is
>> accepted by Cloudsoft Corporation Limited in this regard and the recipient
>> should carry out such virus and other checks as it considers appropriate.
>>
>
>

Reply via email to