bosh icon indicating copy to clipboard operation
bosh copied to clipboard

Running `bosh recreate` when the version is `create` for a release causes error

Open amitkgupta opened this issue 11 years ago • 4 comments

If I have a release in my deployment manifest where the version is create (and I've included a url for the release which is a path to a local release directory), then when I do a bosh recreate I get an error:

$ bosh -d Documents/workspace/kubernetes-release/example_deployments/bosh-lite/kubernetes.yml recreate master 0
Acting as user 'admin' on deployment 'kubernetes' on 'Bosh Lite Director'
You are about to recreate master/0
Recreate master/0? (type 'yes' to continue): yes

Performing `recreate master/0'...

Director task 198
  Started unknown
  Started unknown > Binding deployment. Done (00:00:00)

  Started preparing deployment
  Started preparing deployment > Binding releases. Failed: Release version `kubernetes/create' doesn't exist (00:00:00)

Error 30006: Release version `kubernetes/create' doesn't exist

Task 198 error

For a more detailed error report, run: bosh task 198 --debug

I think the ideal behaviour would be that this command (and many other commands, e.g. ssh, download logs, etc.) should not require a deployment manifest argument, but just some way to say "recreate the master 0 job from the kubernetes deployment". These sorts of commands currently often require the awkward flow of:

bosh download manifest DEPLOYMENT_NAME /tmp/himom.yml
bosh -d /tmp/himom.yml ssh # or recreate, etc.

amitkgupta avatar Nov 29 '15 02:11 amitkgupta

This is a planned future enhancement.

cppforlife avatar Dec 02 '15 20:12 cppforlife

Ok, thanks.

amitkgupta avatar Dec 03 '15 04:12 amitkgupta

Let's keep this open until this is fixed.

cppforlife avatar Dec 03 '15 18:12 cppforlife

This should be addressed in the new golang cli. Closing. If it comes up again, please open a new issue.

mfine30 avatar Aug 07 '18 19:08 mfine30