Date
1 - 5 of 5
bosh snapshot
kieran robinson
Hi There,
I have been working on automating a bosh snapshot my initial issue was resolved by setting this parameter in the bosh config ```properties: director: enable_snapshots: true ``` With snapshots enabled, once i run [ bosh take snapshot [JOB] [INDEX] ] all seems fine and it says snapshot taken successfully. However once i run [bosh snapshots] it shows there are none... Any ideas? Cheers, Kieran |
|
Alexander Lomov
Could you tell what is an output of `bosh task <snapshot-task-number> --debug` command?
toggle quoted message
Show quoted text
I have seen the same issue, I was able to run snapshot command, but logs contain the error. Also it is possible that your CPI does not have implemented snapshot_disk function. What CPI do you use? On Jan 10, 2017, at 1:26 PM, Kieran Robinson <kieran.robinson7(a)gmail.com> wrote: |
|
kieran robinson
Hi Alexander,
We are using VmWare, when you say `bosh task <snapshot-task-number> --debug` where can i find the snapshot-task-number? Cheers, Kieran |
|
Alexander Lomov
That’s right, I also used vmware cpi. This CPI does not have disk_snapshot function [1]. I raised this question here [2].
toggle quoted message
Show quoted text
You get the number of a task in output of your bosh command. Try to run the command again and look for task string. [1] https://github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release/blob/master/src/vsphere_cpi/lib/cloud/vsphere/cloud.rb <https://github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release/blob/master/src/vsphere_cpi/lib/cloud/vsphere/cloud.rb> [2] https://github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release/issues/16 <https://github.com/cloudfoundry-incubator/bosh-vsphere-cpi-release/issues/16> On Jan 12, 2017, at 7:23 AM, Kieran Robinson <kieran.robinson7(a)gmail.com> wrote: |
|
kieran robinson
That explains it then, thanks for the prompt response Alexander :)
|
|