multinode overcloud deploy with internal ceph fails: client configured before server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Rabi Mishra |
Bug Description
Deployment with cephadm for internal ceph [1] failed during client configuration [2]. Client configuration was running before server configuration and according to the generated external_
[1]
time openstack overcloud \-v deploy \
--stack $STACK \
-r roles.yaml \
-n ../network-
-e ~/templates/
-e ~/templates/
-e ~/templates/
-e ~/templates/
-e ~/templates/
-e ~/templates/
-e ~/templates/
-e ~/containers-
-e ~/re-generated-
-e ~/templates/
-e ~/oc0-domain.yaml \
-e deployed-
-e overrides.yaml \
-e cephadm-
[2]
2021-04-21 15:46:23,140 p=365448 u=stack n=ansible | PLAY [External deployment step 2] *******
2021-04-21 15:46:23,146 p=365448 u=stack n=ansible | host: undercloud, task: TASK: meta (flush_handlers)
2021-04-21 15:46:23,153 p=365448 u=stack n=ansible | META: ran handlers
2021-04-21 15:46:23,168 p=365448 u=stack n=ansible | host: undercloud, task: TASK: External deployment step 2
2021-04-21 15:46:23,175 p=365448 u=stack n=ansible | 2021-04-21 15:46:23.174617 | 24420180-
2021-04-21 15:46:23,192 p=365448 u=stack n=ansible | host: undercloud, task: TASK: include_tasks
2021-04-21 15:46:23,192 p=365448 u=stack n=ansible | undercloud still blocked
2021-04-21 15:46:23,194 p=365448 u=stack n=ansible | 2021-04-21 15:46:23.193657 | 24420180-
"changed": false,
"msg": "Use --start-at-task 'External deployment step 2' to resume from this task"
}
2021-04-21 15:46:23,206 p=365448 u=stack n=ansible | host: undercloud, task: TASK: include_tasks
2021-04-21 15:46:23,230 p=365448 u=stack n=ansible | host: undercloud, task: TASK: meta (flush_handlers)
2021-04-21 15:46:23,231 p=365448 u=stack n=ansible | undercloud still blocked
2021-04-21 15:46:23,245 p=365448 u=stack n=ansible | host: undercloud, task: TASK: meta (flush_handlers)
2021-04-21 15:46:23,246 p=365448 u=stack n=ansible | undercloud still blocked
2021-04-21 15:46:23,270 p=365448 u=stack n=ansible | 2021-04-21 15:46:23.269730 | ad304063-
2021-04-21 15:46:23,284 p=365448 u=stack n=ansible | host: undercloud, task: TASK: configure ceph clients
2021-04-21 15:46:23,288 p=365448 u=stack n=ansible | 2021-04-21 15:46:23.287804 | 24420180-
2021-04-21 15:46:23,308 p=365448 u=stack n=ansible | host: undercloud, task: TASK: tripleo client role
[3]
- block:
- include_role:
name: tripleo_ceph_client
name: configure ceph clients
vars:
tripleo_
tripleo_
- include_role:
name: tripleo_ceph_client
loop: '{{ ceph_external_
name: tripleo client role
vars:
multiple: '{{ item }}'
tripleo_
when:
- ceph_external_
name: Configure Ceph Clients
tags:
- ceph
when: step|int == 2
- block:
- include_role:
name: tripleo_run_cephadm
tasks_from: prepare.yml
name: create cephadm working directory and related files
vars:
ceph_
| union(groups[
| union(groups[
| union(groups[
ceph_
ceph_
global:
ceph_keys:
extra_keys: []
manila:
key: AQCaQYBgAAAAABA
name: manila
key: AQCaQYBgAAAAABA
name: openstack
radosgw:
key: AQCaQYBgAAAAABA
name: radosgw
ceph_
all: true
ceph_pools:
enabled: true
name: backups
enabled: true
name: volumes
enabled: true
name: images
enabled: false
name: ''
nova_pool:
enabled: true
name: vms
pg_num: 16
ceph_
cephadm_
cephfs: cephfs
manila_pools:
data: manila_data
metadata: manila_metadata
tripleo_
tripleo_
- include_role:
name: tripleo_run_cephadm
tasks_from: enable_
name: Prepare cephadm user and keys
- include_role:
name: tripleo_run_cephadm
name: Deploy the ceph cluster using cephadm
name: ceph_base_
tags:
- ceph
when: step|int == 2
ceph server tasks [1] happen before ceph client tasks [2] until I hit LP 1925373 today. deploy_ tasks before ceph client [3].
list_concat has CephBase external_
list_concat uses python_extend [4] which preserves order and always appends to the end of a list.
[1] https:/ /github. com/openstack/ tripleo- heat-templates/ blob/master/ deployment/ cephadm/ ceph-base. yaml#L599 /github. com/openstack/ tripleo- heat-templates/ blob/master/ deployment/ cephadm/ ceph-client. yaml#L120 /github. com/openstack/ tripleo- heat-templates/ blob/master/ deployment/ cephadm/ ceph-client. yaml#L110 /github. com/openstack/ heat/blob/ stable/ wallaby/ heat/engine/ hot/functions. py#L1644
[2] https:/
[3] https:/
[4] https:/