Re: Running two errands simultaneously
Alexander Lomov
The short answer is “yes”. Yes, BOSH blocks the whole deployment while you run errand [1].
toggle quoted message
Show quoted text
As far as I see, the main reason hear is consideration that BOSH errand job can perform operations on deployment. For instance you can take admin-ui tool, that use errand job to register himself into UAA [2]. Performing any updates on the deployment that runs errands can cause errors that are hard to debug. [1] https://github.com/cloudfoundry/bosh/blob/dad748d39a1e4b9558b7ee7f72661657d1729d9e/bosh-director/lib/bosh/director/jobs/run_errand.rb#L28 [2] https://github.com/cloudfoundry-community/admin-ui-boshrelease/tree/master/jobs/register_admin_ui Best Regards, Alex L. On Sep 30, 2015, at 10:23 AM, Zalesov Aleksey <aleksey.zalesov(a)altoros.com<mailto:aleksey.zalesov(a)altoros.com>> wrote:
Gwenn, is the any list of bosh tasks that require a lock available? Why do we need to lock running different errands? They are independent. Aleksey Zalesov | CloudFoundry Engineer | Altoros Tel: (617) 841-2121 ext. 5707 | Toll free: 855-ALTOROS Fax: (866) 201-3646 | Skype: aleksey_zalesov www.altoros.com<http://www.altoros.com/> | blog.altoros.com<http://blog.altoros.com/> | twitter.com/altoros<http://twitter.com/altoros> On 30 Sep 2015, at 10:19, Gwenn Etourneau <getourneau(a)pivotal.io<mailto:getourneau(a)pivotal.io>> wrote: Yes except this kind of task .. bosh deploy lock for example... On Wed, Sep 30, 2015 at 4:13 PM, Aleksey Zalesov <aleksey.zalesov(a)altoros.com<mailto:aleksey.zalesov(a)altoros.com>> wrote: Bosh doesn’t lock on any task - while running tests I can list vms using `bosh vms` and ssh to vm using `bosh ssh`. Aleksey Zalesov | CloudFoundry Engineer | Altoros Tel: (617) 841-2121 ext. 5707<tel:%28617%29%20841-2121%20ext.%205707> | Toll free: 855-ALTOROS Fax: (866) 201-3646<tel:%28866%29%20201-3646> | Skype: aleksey_zalesov www.altoros.com<http://www.altoros.com/> | blog.altoros.com<http://blog.altoros.com/> | twitter.com/altoros<http://twitter.com/altoros> On 30 Sep 2015, at 04:12, Gwenn Etourneau <getourneau(a)pivotal.io<mailto:getourneau(a)pivotal.io>> wrote: I will say no, bosh lock for any task and running errand is a task. On Tue, Sep 29, 2015 at 9:54 PM, Aleksey Zalesov <aleksey.zalesov(a)altoros.com<mailto:aleksey.zalesov(a)altoros.com>> wrote: Hello! Can I run two bosh errands simultaneously? Currently I get `Error 100: Bosh::Director::Lock::TimeoutError` when trying to run the second errand while the first errand is running. |
|