You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by Robert Moss <ro...@cloudsoftcorp.com> on 2015/08/21 12:07:49 UTC
Update Postgres Blueprint in Running Brooklyn
Hi,
We recently merged an update to the PostgreSQL blueprint into master. I'd
like to use this on a running Brooklyn instance. I tried to add it as a
library in a catalog like this:
```
brooklyn.catalog:
type: com.cloudsoft.test.postgres
version: 1.0
description: PostgreSQL is an object-relational database management
system (ORDBMS) with an emphasis on extensibility and on
standards-compliance
displayName: CF PostgreSQL TEST
iconUrl: classpath:///postgresql-logo-200px.png
itemType: template
libraries:
- name: brooklyn-software-database-v1
version: v1
url:
http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
services:
- type: org.apache.brooklyn.entity.database.postgresql.PostgreSqlNode
brooklyn.config:
postgresql.initialize: true
```
but I get the following error:
```
Bundle from
http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
failed to install: Bundle already installed as
org.apache.brooklyn.software-database:0.8.0.SNAPSHOT but user explicitly
requested CatalogBundleDto{symbolicName=brooklyn-software-database-v1,
version=v1, url=
http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
}
```
is there another way I can do this without access to the machine running
Brooklyn?
--
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.
Re: Update Postgres Blueprint in Running Brooklyn
Posted by Svetoslav Neykov <sv...@cloudsoftcorp.com>.
Can you test the same locally and check the brooklyn logs - they will contain some hints. I believe it should use the new version if you haven't used the same url before.
Svet.
> On 21.08.2015 г., at 14:27, Robert Moss <ro...@cloudsoftcorp.com> wrote:
>
> Thanks, Svet. That solved the error, but it didn't use the updated
> blueprint, is that because brooklyn-software-database-0.8.0-SNAPSHOT.jar is
> already there? Is there another way to update it?
>
> Robert
>
> On 21 August 2015 at 11:17, Svetoslav Neykov <
> svetoslav.neykov@cloudsoftcorp.com> wrote:
>
>> Hi Robert,
>> Your explicitly specified version ("v1") and the version in the bundle
>> ("0.8.0-SNAPSHOT") must match. You can omit name & version properties and
>> directly do:
>>
>>> libraries:
>>> -
>> http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
>>
>>
>> Note that if you have previously installed the bundle from the same URL it
>> will use the already existing version (not re-download it).
>>
>> Svet.
>>
>>
>>> On 21.08.2015 г., at 13:07, Robert Moss <ro...@cloudsoftcorp.com>
>> wrote:
>>>
>>> Hi,
>>>
>>> We recently merged an update to the PostgreSQL blueprint into master.
>> I'd
>>> like to use this on a running Brooklyn instance. I tried to add it as a
>>> library in a catalog like this:
>>>
>>> ```
>>> brooklyn.catalog:
>>> type: com.cloudsoft.test.postgres
>>> version: 1.0
>>> description: PostgreSQL is an object-relational database management
>>> system (ORDBMS) with an emphasis on extensibility and on
>>> standards-compliance
>>> displayName: CF PostgreSQL TEST
>>> iconUrl: classpath:///postgresql-logo-200px.png
>>> itemType: template
>>> libraries:
>>> - name: brooklyn-software-database-v1
>>> version: v1
>>> url:
>>>
>> http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
>>>
>>> services:
>>> - type: org.apache.brooklyn.entity.database.postgresql.PostgreSqlNode
>>> brooklyn.config:
>>> postgresql.initialize: true
>>> ```
>>>
>>> but I get the following error:
>>>
>>> ```
>>> Bundle from
>>>
>> http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
>>> failed to install: Bundle already installed as
>>> org.apache.brooklyn.software-database:0.8.0.SNAPSHOT but user explicitly
>>> requested CatalogBundleDto{symbolicName=brooklyn-software-database-v1,
>>> version=v1, url=
>>>
>> http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
>>> }
>>> ```
>>>
>>> is there another way I can do this without access to the machine running
>>> Brooklyn?
>>>
>>> --
>>> 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.
>>
>>
>> --
>> 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.
>>
>
> --
> 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.
--
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.
Re: Update Postgres Blueprint in Running Brooklyn
Posted by Robert Moss <ro...@cloudsoftcorp.com>.
Thanks, Svet. That solved the error, but it didn't use the updated
blueprint, is that because brooklyn-software-database-0.8.0-SNAPSHOT.jar is
already there? Is there another way to update it?
Robert
On 21 August 2015 at 11:17, Svetoslav Neykov <
svetoslav.neykov@cloudsoftcorp.com> wrote:
> Hi Robert,
> Your explicitly specified version ("v1") and the version in the bundle
> ("0.8.0-SNAPSHOT") must match. You can omit name & version properties and
> directly do:
>
> > libraries:
> > -
> http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
>
>
> Note that if you have previously installed the bundle from the same URL it
> will use the already existing version (not re-download it).
>
> Svet.
>
>
> > On 21.08.2015 г., at 13:07, Robert Moss <ro...@cloudsoftcorp.com>
> wrote:
> >
> > Hi,
> >
> > We recently merged an update to the PostgreSQL blueprint into master.
> I'd
> > like to use this on a running Brooklyn instance. I tried to add it as a
> > library in a catalog like this:
> >
> > ```
> > brooklyn.catalog:
> > type: com.cloudsoft.test.postgres
> > version: 1.0
> > description: PostgreSQL is an object-relational database management
> > system (ORDBMS) with an emphasis on extensibility and on
> > standards-compliance
> > displayName: CF PostgreSQL TEST
> > iconUrl: classpath:///postgresql-logo-200px.png
> > itemType: template
> > libraries:
> > - name: brooklyn-software-database-v1
> > version: v1
> > url:
> >
> http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
> >
> > services:
> > - type: org.apache.brooklyn.entity.database.postgresql.PostgreSqlNode
> > brooklyn.config:
> > postgresql.initialize: true
> > ```
> >
> > but I get the following error:
> >
> > ```
> > Bundle from
> >
> http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
> > failed to install: Bundle already installed as
> > org.apache.brooklyn.software-database:0.8.0.SNAPSHOT but user explicitly
> > requested CatalogBundleDto{symbolicName=brooklyn-software-database-v1,
> > version=v1, url=
> >
> http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
> > }
> > ```
> >
> > is there another way I can do this without access to the machine running
> > Brooklyn?
> >
> > --
> > 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.
>
>
> --
> 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.
>
--
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.
Re: Update Postgres Blueprint in Running Brooklyn
Posted by Svetoslav Neykov <sv...@cloudsoftcorp.com>.
Hi Robert,
Your explicitly specified version ("v1") and the version in the bundle ("0.8.0-SNAPSHOT") must match. You can omit name & version properties and directly do:
> libraries:
> - http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
Note that if you have previously installed the bundle from the same URL it will use the already existing version (not re-download it).
Svet.
> On 21.08.2015 г., at 13:07, Robert Moss <ro...@cloudsoftcorp.com> wrote:
>
> Hi,
>
> We recently merged an update to the PostgreSQL blueprint into master. I'd
> like to use this on a running Brooklyn instance. I tried to add it as a
> library in a catalog like this:
>
> ```
> brooklyn.catalog:
> type: com.cloudsoft.test.postgres
> version: 1.0
> description: PostgreSQL is an object-relational database management
> system (ORDBMS) with an emphasis on extensibility and on
> standards-compliance
> displayName: CF PostgreSQL TEST
> iconUrl: classpath:///postgresql-logo-200px.png
> itemType: template
> libraries:
> - name: brooklyn-software-database-v1
> version: v1
> url:
> http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
>
> services:
> - type: org.apache.brooklyn.entity.database.postgresql.PostgreSqlNode
> brooklyn.config:
> postgresql.initialize: true
> ```
>
> but I get the following error:
>
> ```
> Bundle from
> http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
> failed to install: Bundle already installed as
> org.apache.brooklyn.software-database:0.8.0.SNAPSHOT but user explicitly
> requested CatalogBundleDto{symbolicName=brooklyn-software-database-v1,
> version=v1, url=
> http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/org/apache/brooklyn/brooklyn-software-database/0.8.0-SNAPSHOT/brooklyn-software-database-0.8.0-SNAPSHOT.jar
> }
> ```
>
> is there another way I can do this without access to the machine running
> Brooklyn?
>
> --
> 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.
--
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.