Re: Deployment manifest not recognized by BOSH


Gwenn Etourneau
 

Your manifest is wrong "*- !ruby/object:AWSDynamicNetworkBean *" are not a
yaml field.
You script using to_yaml is just wrong, nothing related to bosh.

On Tue, Jun 9, 2015 at 7:08 PM, Kinjal Doshi <kindoshi(a)gmail.com> wrote:

Hi,

would be great if someone could please help me with this matter.

Regards,
Kinjal

On Mon, Jun 8, 2015 at 6:25 PM, Kinjal Doshi <kindoshi(a)gmail.com> wrote:

Hi,

I am trying to use manifest that is generated using the to_yaml
transformation technique in Ruby.

However, this deployment manifest is not recognized by bosh because it
has comments that detail the class names like:

*--- !ruby/object:DeploymentManifest *
*networks: *
*- !ruby/object:AWSDynamicNetworkBean *
* type: dynamic*
* cloud_properties: !ruby/object:AWSNetworkCPBean *
* security_groups: *
* - docker*
* - bosh*
* subnet: *
* name: default*
*- !ruby/object:AWSDynamicNetworkBean *
* type: vip*
* cloud_properties: {}*

As can be seen in above snippet, to_yaml adds object description using
'!' sign.

On using the command:

bosh deployment <manifest_file_path>

The following error is observed:

Usage: deployment [<filename>]

Removing the object details starting at '!' seems to resolve this error.

However, this was not happening with previous version of bosh_cli. I
don't remember the previous version that I was using. Current version being
used by me is: bosh cli-1.2978.0

Would be great if some one can please help me with this matter.


Regards,
Kinjal



_______________________________________________
cf-bosh mailing list
cf-bosh(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-bosh

Join cf-bosh@lists.cloudfoundry.org to automatically receive all group messages.