Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown CPI error occurred when I execute 'bosh deploy' #74

Closed
toshiomakiyy opened this issue Jan 25, 2016 · 2 comments
Closed

Unknown CPI error occurred when I execute 'bosh deploy' #74

toshiomakiyy opened this issue Jan 25, 2016 · 2 comments

Comments

@toshiomakiyy
Copy link

bosh command failed in this week.

It seems like Azure API specification changed.

Error messages as follow.

bosh deploy

Deploying
---------
Are you sure you want to deploy? (type 'yes' to continue): 
Director task 35
  Started unknown
  Started unknown > Binding deployment. Done (00:00:00)

  Started preparing deployment
  Started preparing deployment > Binding releases. Done (00:00:00)
  Started preparing deployment > Binding existing deployment. Done (00:00:00)
  Started preparing deployment > Binding resource pools. Done (00:00:00)
  Started preparing deployment > Binding stemcells. Done (00:00:01)
  Started preparing deployment > Binding templates. Done (00:00:00)
  Started preparing deployment > Binding properties. Done (00:00:00)
  Started preparing deployment > Binding unallocated VMs. Done (00:00:00)
  Started preparing deployment > Binding instance networks. Done (00:00:00)

  Started preparing package compilation > Finding packages to compile. Done (00:00:00)

  Started preparing dns > Binding DNS. Done (00:00:00)

  Started preparing configuration > Binding configuration. Done (00:00:03)

  Started updating job cf_z1 > cf_z1/0 (canary). Failed: Unknown CPI error 'Bosh::AzureCloud::AzureError' with message 'http_put - error: 400 message: {"error":{"code":"InvalidRequestContent","message":"The reques
t content was invalid and could not be deserialized: 'Could not find member 'resources' on object of type 'ResourceDefinition'. Path 'resources', line 1, position 3000.'."}}' (00:06:11)

Error 100: Unknown CPI error 'Bosh::AzureCloud::AzureError' with message 'http_put - error: 400 message: {"error":{"code":"InvalidRequestContent","message":"The request content was invalid and could not be deseria
lized: 'Could not find member 'resources' on object of type 'ResourceDefinition'. Path 'resources', line 1, position 3000.'."}}'

bosh delete deployment cf-azure

Acting as user 'admin' on deployment 'cf-azure' on 'bosh'

You are going to delete deployment `cf-azure'.

THIS IS A VERY DESTRUCTIVE OPERATION AND IT CANNOT BE UNDONE!

Are you sure? (type 'yes' to continue): yes         

Director task 51
  Started deleting instances > cf_z1/0. Failed: Unknown CPI error 'Bosh::AzureCloud::AzureError' with message 'http_put - error: 400 message: {"error":{"code":"InvalidRequestContent","message":"The request content
 was invalid and could not be deserialized: 'Could not find member 'resources' on object of type 'ResourceDefinition'. Path 'resources', line 1, position 3000.'."}}' (00:00:10)

Error 100: Unknown CPI error 'Bosh::AzureCloud::AzureError' with message 'http_put - error: 400 message: {"error":{"code":"InvalidRequestContent","message":"The request content was invalid and could not be deseria
lized: 'Could not find member 'resources' on object of type 'ResourceDefinition'. Path 'resources', line 1, position 3000.'."}}'
@toshiomakiyy toshiomakiyy changed the title Unknown CPI error occured when I execute 'bosh deploy' Unknown CPI error occurred when I execute 'bosh deploy' Jan 25, 2016
@AbelHu
Copy link
Contributor

AbelHu commented Jan 25, 2016

When was your current BOSH director VM deployed? If you used a Preview2 version to deploy it, you should follow this guidance to migrate it.
If you has used GA version to deploy it, you can send your BOSH manifest, CF manifest and the task log(bosh task 35 --debug > 35.log) to me Chou.Hu@microsoft.com for investigation.

@toshiomakiyy
Copy link
Author

Thank you for your response.
I send mail with trace logs.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants