containers not started during deploy if are stopped
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Fix Released
|
High
|
Eduardo Gonzalez |
Bug Description
During some tests, I stopped containers with kolla-ansible stop.
Then, executed kolla-ansible deploy to start all containers. This is not the case,
containers are only started if:
- container does not exists
- check_container
- config_strategy == 'COPY_ALWAYS'
def recreate_
container = self.check_
# get config_strategy from env
environment = self.params.
if not container:
return
# If config_strategy is COPY_ONCE or container's parameters are
# changed, try to start a new one.
if config_strategy == 'COPY_ONCE' or self.check_
elif config_strategy == 'COPY_ALWAYS':
Check_container
TASK [haproxy : Check haproxy containers] *******
ok: [192.168.100.244] => (item={'key': u'haproxy', 'value': {u'group': u'haproxy', u'image': u'192.168.
PLAY [Apply role kibana] *******
Changed in kolla-ansible: | |
importance: | Undecided → High |
Changed in kolla-ansible: | |
assignee: | nobody → Eduardo Gonzalez (egonzalez90) |
status: | New → In Progress |
at least form me i hit this issue when using COPY_ALWAYS
i was able to force start eh containers by changing to COPY_ONCE then running deploy
ill then use reconfigure later to go back to COPY_ALWAYS.
can we add a dedicated kolla-ansible start/restart which will start or restart all containers in
there order they would be started in a normal deploy.