brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Svetoslav Neykov <svetoslav.ney...@cloudsoftcorp.com>
Subject Rebind problems
Date Mon, 08 Jun 2015 10:26:00 GMT
Current master of Brooklyn hits rebind errors when rebinding against a previous version. The
main problem is with the upgrade of gson library done in [ <https://github.com/apache/incubator-brooklyn/pull/661>1]
where the implementation used for maps has been changed. To work around the problem the state
needs to be updated to the new representation.
To update the state:
  * copy the attached files transform-gson.xslt and transform-gson.yaml on the machine where
Brooklyn is running
  * update the path in transform-gson.yaml to point to the location of transform-gson.xslt
  * move the persistence folder to a new location
  * execute bin/brooklyn copy-state --persistenceDir <path to old persistence, ~/.brooklyn/brooklyn-persisted-state/data-old>
--destinationDir <path to persistence folder, ~/.brooklyn/brooklyn-persisted-state/data>
--transformations=<absolute path to>/transform-gson.yaml

Additionally two policies used to be registered in the catalog, but don't support catalog
usage. Latest Brooklyn will check catalog items while loading them, so will report error if
they are present. To avoid warning messages in the web console remove them from the persistence
folder:
  * catalog/brooklyn.policy.followthesun.FollowTheSunPolicy_0.0.0.SNAPSHOT
  * catalog/brooklyn.policy.loadbalancing.LoadBalancingPolicy_0.0.0.SNAPSHOT

Svet.


[1] https://github.com/apache/incubator-brooklyn/pull/661 <https://github.com/apache/incubator-brooklyn/pull/661>


-- 
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.

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message