azukiapp/azk

[kernel] azk restart -R command not provisioning all systems

Opened this issue · 2 comments

  • azk start -R is working.
  • azk restart -R is not reprovisioning dependent systems.

Azkfile.js

https://github.com/saitodisse/sandbox-azk/blob/master/Azkfile.js

systems({
  site1: {
    depends: [],
    image: {"docker": "azukiapp/node"},
    provision: [ "npm install" ],
    ...
  },

  site2: {
    extends: 'site1',
    depends: ['site1'],
  },

  site3: {
    extends: 'site1'
  },
});

(OK) azk start -R

Just works as expected

$ azk start -R

image
everything works as expected, 3 systems provisioned


(bug) azk restart -R

$ azk restart -R

image
site1 was not provisioned

suggested by @slobo in gitter:

I'd suggest next release to error out or output a warning message when -R is used without system name if the bug can't be addressed

slobo commented

(btw, I'd prefer an error with exit status != 0 since it would help me catch the error very quickly)