Can't Configure Ceph with kolla-ansible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Description: The OpenStack ceph installation is failing with following error. Without ceph installation works just fine.
OS - CentOS-7.4
Error :
TASK [ceph : Copying over config.json files for services] *******
ok: [oscontroller01
changed: [oshyp01.xyz.com] => (item={u'group': u'ceph-mon', u'name': u'ceph-mon'})
changed: [oshyp02.xyz.com] => (item={u'group': u'ceph-mon', u'name': u'ceph-mon'})
ok: [oshyp01.xyz.com] => (item={u'group': u'ceph-osd', u'name': u'ceph-osd'})
ok: [oscontroller01
ok: [oshyp02.xyz.com] => (item={u'group': u'ceph-osd', u'name': u'ceph-osd'})
changed: [oshyp01.xyz.com] => (item={u'group': u'ceph-rgw', u'name': u'ceph-rgw'})
fatal: [oshyp01.xyz.com]: FAILED! => {"msg": "The conditional check 'inventory_hostname in groups[item.group]' failed. The error was: error while evaluating conditional (inventory_hostname in groups[
ok: [oscontroller01
fatal: [oscontroller01
changed: [oshyp02.xyz.com] => (item={u'group': u'ceph-rgw', u'name': u'ceph-rgw'})
fatal: [oshyp02.xyz.com]: FAILED! => {"msg": "The conditional check 'inventory_hostname in groups[item.group]' failed. The error was: error while evaluating conditional (inventory_hostname in groups[
to retry, use: --limit @/opt/kolla-
PLAY RECAP *******
localhost : ok=1 changed=0 unreachable=0 failed=0
oscontroller01.
oshyp01.xyz.com : ok=72 changed=9 unreachable=0 failed=1
oshyp02.xyz.com : ok=72 changed=9 unreachable=0 failed=1
Partition label to the disk :
[root@oscontrol
Number Start End Size File system Name Flags
1 1049kB 922GB 922GB xfs KOLLA_CEPH_
[root@oshyp01 ~]# parted /dev/sdb print
Number Start End Size File system Name Flags
1 1049kB 922GB 922GB KOLLA_CEPH_
[root@oshyp02 ~]# parted /dev/sdb print
Number Start End Size File system Name Flags
1 1049kB 922GB 922GB KOLLA_CEPH_
cat /etc/kolla/
# These initial groups are the only groups required to be modified. The
# additional groups are for more control of the environment.
[control]
# These hostname must be resolvable from your deployment host
oscontroller01.
oshyp01.xyz.pvt
oshyp02.xyz.pvt
# The above can also be specified as follows:
#control[01:03] ansible_user=kolla
# The network nodes are where your l3-agent and loadbalancers will run
# This can be the same as a host in the control group
[network]
oscontroller01.
oshyp01.xyz.pvt
oshyp02.xyz.pvt
[inner-compute]
oscontroller01.
oshyp01.xyz.pvt
oshyp02.xyz.pvt
# external-compute is the groups of compute nodes which can reach
# # outside
[external-compute]
oscontroller01.
oshyp01.xyz.pvt
oshyp02.xyz.pvt
# compute01
#
[compute]
oscontroller01.
oshyp01.xyz.pvt
oshyp02.xyz.pvt
[monitoring]
oscontroller01.
oshyp01.xyz.pvt
oshyp02.xyz.pvt
# When compute nodes and control nodes use different interfaces,
# you can specify "api_interface" and other interfaces like below:
#compute01 neutron_
[storage]
oscontroller01.
oshyp01.xyz.pvt
oshyp02.xyz.pvt
And enabled only following in global.yaml file
enable_ceph: "yes"
enable_ceph_rgw: "yes"
glance_
nova_backend_ceph: "{{ enable_ceph }}"
description: | updated |
Changed in kolla-ansible: | |
status: | Confirmed → Won't Fix |
I'm using kolla-ansible v5.0