cloudfoundry-attic / bosh-init

bosh-init is a tool used to create and update the Director VM
Apache License 2.0
31 stars 33 forks source link

Failing to deploy from us-west-2 region to us-east-1 using light stemcell #14

Closed drnic closed 9 years ago

drnic commented 9 years ago

I am deploying something from an Ubuntu VM on AWS us-west-2. The manifest is to deploy into us-east-1 using light stemcell. The host's AWS ID is i-2633bbef. This should be irrelevant; but it's appearing in the error message:

Deployment manifest: '/home/ubuntu/workspace/experiments/bosh-init-concourse/concourse.yml'
Deployment state: '/home/ubuntu/workspace/experiments/bosh-init-concourse/deployment.json'

Started validating
  Validating stemcell... Finished (00:00:08)
  Validating releases... Finished (00:00:23)
  Validating deployment manifest... Finished (00:00:00)
  Validating cpi release... Finished (00:00:00)
Finished validating (00:00:32)

Started installing CPI
  Compiling package 'ruby_aws_cpi/052a28b8976e6d9ad14d3eaec6d3dd237973d800'... Finished (00:03:40)
  Compiling package 'bosh_aws_cpi/deabbf731a4fedc9285324d85af6456cfa74c10c'... Finished (00:00:54)
  Rendering job templates... Finished (00:00:00)
  Installing packages... Finished (00:00:03)
  Installing job 'cpi'... Finished (00:00:00)
Finished installing CPI (00:04:38)

Starting registry... Finished (00:00:00)
Uploading stemcell 'bosh-aws-xen-ubuntu-trusty-go_agent/2830'... Failed (00:00:16)

Command 'deploy' failed:
  creating stemcell (bosh-aws-xen-ubuntu-trusty-go_agent 2830):
    External CPI command for method 'create_stemcell' returned an error: CmdError{"type":"Unknown","message":"The instance ID 'i-2633bbef' does not exist","ok_to_retry":false}

This manifest was created by this helper repo https://github.com/cloudfoundry-community/bosh-init-concourse

Why might "create_stemcell" fail for a light stemcell if the target region is us-east-1?

cppforlife commented 9 years ago

This error message happens with full AWS stemcell since the CPI is trying to figure out how to make it into an AMI by looking up current instance within specified region. Currently you can only use full AWS stemcells within the same region.

I've verified that creating an instance with light stemcell works from different regions.