tsuna-server / build-server-ansible

1 stars 0 forks source link

Should be added group "storages" in some conditionals? #107

Closed TsutomuNakamura closed 1 year ago

TsutomuNakamura commented 1 year ago

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

TsutomuNakamura commented 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\"?"}
TsutomuNakamura commented 1 year ago

The file in build-server-ansible/roles/ceph/tasks/create_ceph_conf/monitors/main.yml.

TsutomuNakamura commented 1 year ago

Related?

https://github.com/TsutomuNakamura/etc/blob/17bcee9dbe701d857c8af02f671248e59a6c4784/build-server-ansible/dev_with_storage_nodes/group_vars/all#L269

TsutomuNakamura commented 1 year ago

The error will be disappeard If you set group_vars.ceph.uuid.monitor.hosts.master existed storage host.