Closed TsutomuNakamura closed 1 year ago
TASK [ceph : Print a variable "my_ip" if a current host "dev-storage01" is a monitor of Ceph cluster] *****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [dev-storage01] => {
"msg": "my_ip="
}
ok: [dev-storage02] => {
"msg": "my_ip="
}
ok: [dev-storage03] => {
"msg": "my_ip="
}
ok: [dev-compute01] => {
"msg": "my_ip="
}
ok: [dev-compute02] => {
"msg": "my_ip="
}
ok: [dev-controller01] => {
"msg": "my_ip="
}
TASK [ceph : Failed if a variable "my_ip" has not defined in a monitor node of Ceph "dev-storage01"] ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
fatal: [dev-storage01]: FAILED! => {"changed": false, "msg": "Failed! A variable \"my_ip\" has not defined in a monitor node of Ceph \"dev-storage01\". Does a host \"dev-storage01\" existed in \"group_vars.hosts.cinders\" or \"group_vars.hosts.storages\"?"}
fatal: [dev-storage02]: FAILED! => {"changed": false, "msg": "Failed! A variable \"my_ip\" has not defined in a monitor node of Ceph \"dev-storage02\". Does a host \"dev-storage02\" existed in \"group_vars.hosts.cinders\" or \"group_vars.hosts.storages\"?"}
fatal: [dev-storage03]: FAILED! => {"changed": false, "msg": "Failed! A variable \"my_ip\" has not defined in a monitor node of Ceph \"dev-storage03\". Does a host \"dev-storage03\" existed in \"group_vars.hosts.cinders\" or \"group_vars.hosts.storages\"?"}
fatal: [dev-compute01]: FAILED! => {"changed": false, "msg": "Failed! A variable \"my_ip\" has not defined in a monitor node of Ceph \"dev-compute01\". Does a host \"dev-compute01\" existed in \"group_vars.hosts.cinders\" or \"group_vars.hosts.storages\"?"}
fatal: [dev-compute02]: FAILED! => {"changed": false, "msg": "Failed! A variable \"my_ip\" has not defined in a monitor node of Ceph \"dev-compute02\". Does a host \"dev-compute02\" existed in \"group_vars.hosts.cinders\" or \"group_vars.hosts.storages\"?"}
fatal: [dev-controller01]: FAILED! => {"changed": false, "msg": "Failed! A variable \"my_ip\" has not defined in a monitor node of Ceph \"dev-controller01\". Does a host \"dev-controller01\" existed in \"group_vars.hosts.cinders\" or \"group_vars.hosts.storages\"?"}
The file in build-server-ansible/roles/ceph/tasks/create_ceph_conf/monitors/main.yml
.
The error will be disappeard If you set group_vars.ceph.uuid.monitor.hosts.master
existed storage host.
Related #102.
https://github.com/tsuna-server/build-server-ansible/blob/98b05db597b63b175302dd139f81a88bd64a06d2/roles/cinder/templates/etc/cinder/cinder.conf.j2#L18-L20
https://github.com/tsuna-server/build-server-ansible/blob/98b05db597b63b175302dd139f81a88bd64a06d2/roles/cinder/templates/etc/cinder/cinder.conf.j2#L22-L28