bosh icon indicating copy to clipboard operation
bosh copied to clipboard

Issue trying to recover Director VM

Open aalbanes opened this issue 11 years ago • 5 comments

Hi all, I am working on MicroBosh recovery scenarios, and right now I am evaluating a recovery approach based on Director DB backup.

In the specific, the following scenario is generating an Issue:

Scenario:

  • Step 1: bosh upload release
  • Step 2: backup db
  • Step 3: bosh delete release
  • Step 4: restore db backup on same server as in Step2 At this point in time we have that release's objects references are present into DB but objects are not existing anymore in the blobstore.

In order to fix blobstore content I was trying to:

  • 1 - upload again the release via "bosh upload release" but I got back This release version has already been uploaded https://github.com/cloudfoundry/bosh/blob/aa2e3a10430ed43e1484c22efff502c845d9a33a/bosh_cli/lib/cli/commands/release/upload_release.rb#L106
  • 2 - Similar issue if I try to use the Director API https://github.com/cloudfoundry/bosh/blob/ede389a2e112e1b4f2dbc4495c08977da4439483/bosh-director/lib/bosh/director/jobs/update_release.rb#L147

Any idea here how to re-conciliate db and blobstore?

Many objects in the blobstore are artifacts coming from the release tarball so I'd expect to recreate them by uploading again the release in the Director rather than approaching a monolithic backup of blobstore which could be quite huge.

aalbanes avatar Jul 15 '15 12:07 aalbanes

Agreed. I think it makes sense to introduce --fix flag for upload release and stemcell commands to fix DB, blobstore and the stemcell in the IaaS.

cppforlife avatar Jul 15 '15 16:07 cppforlife

@cppforlife, is there a story opened for this?

valeriap avatar Aug 03 '15 12:08 valeriap

@valeriap talked to @cppforlife today and he will be adding stories and maybe an epic for this. Please watch for it.

maximilien avatar Aug 11 '15 03:08 maximilien

Here is the first story: https://www.pivotaltracker.com/story/show/101003512 (epic: https://www.pivotaltracker.com/epic/show/1340278)

On Mon, Aug 10, 2015 at 8:37 PM, dr.max [email protected] wrote:

@valeriap https://github.com/valeriap talked to @cppforlife https://github.com/cppforlife today and he will be adding stories and maybe an epic for this. Please watch for it.

— Reply to this email directly or view it on GitHub https://github.com/cloudfoundry/bosh/issues/878#issuecomment-129691588.

ghost avatar Aug 11 '15 04:08 ghost

We have since introduced a --fix flag which should only be used in rare cases. Since bosh is now significantly different than when this issue was opened, closing for inactivity. If the issue persists, feel free to open a new issue with updated versions.

mfine30 avatar Aug 07 '18 18:08 mfine30