Open whowutwut opened 4 years ago
@rajan-mis should this check be deleted at https://github.com/IBM/ibm-spectrum-scale-install-infra/blob/dev/roles/core/cluster/tasks/cluster.yml#L100 , because the stat command at https://github.com/IBM/ibm-spectrum-scale-install-infra/blob/dev/roles/core/cluster/tasks/cluster.yml#L66 is checking pattern {{ var }}.profile
. So if it does not have the .profile
in the name, it should not get any results at all....
I think we should remove this test block, I can create a PR
I'm going to make the file wrong, and run it again and see... I think we would get an undefined, not sure we handle that correctly.
Setting to scalecluster.pro
... hit the same issue, but the stat didn't find any file...
2020-07-10 11:29:36,724 p=71539 u=vhu n=ansible | TASK [core/cluster : check | Stat GPFS profile file] ***************************
2020-07-10 11:29:36,724 p=71539 u=vhu n=ansible | task path: /Users/vhu/.ansible/collections/ansible_collections/ibm_spectrum_scale/install_infra/roles/core/cluster/tasks/cluster.yml:86
2020-07-10 11:29:42,387 p=71539 u=vhu n=ansible | ok: [ibm-spectrum-scale-core-tmlv6 -> ibm-spectrum-scale-core-tmlv6] => {"changed": false, "examined": 1, "files": [], "matched": 0, "msg": ""}
2020-07-10 11:29:42,413 p=71539 u=vhu n=ansible | TASK [core/cluster : check | cluster profile name validation] ******************
2020-07-10 11:29:42,413 p=71539 u=vhu n=ansible | task path: /Users/vhu/.ansible/collections/ansible_collections/ibm_spectrum_scale/install_infra/roles/core/cluster/tasks/cluster.yml:93
2020-07-10 11:29:42,451 p=71539 u=vhu n=ansible | ok: [ibm-spectrum-scale-core-tmlv6 -> ibm-spectrum-scale-core-tmlv6] => {
"changed": false,
"msg": "All assertions passed"
}
2020-07-10 11:29:42,478 p=71539 u=vhu n=ansible | TASK [core/cluster : check | cluster profile format validation] ****************
2020-07-10 11:29:42,479 p=71539 u=vhu n=ansible | task path: /Users/vhu/.ansible/collections/ansible_collections/ibm_spectrum_scale/install_infra/roles/core/cluster/tasks/cluster.yml:100
2020-07-10 11:29:42,521 p=71539 u=vhu n=ansible | fatal: [ibm-spectrum-scale-core-tmlv6 -> ibm-spectrum-scale-core-tmlv6]: FAILED! => {
"assertion": "stat_user_profile_result.matched == 1",
"changed": false,
"evaluated_to": false,
"msg": "A user-defined profile must have the .profile suffix"
}
ok will make some changes here..
@whowutwut Sure will do . i have made some code changes in same profile code for cloud deployment enhancement .
https://github.com/IBM/ibm-spectrum-scale-install-infra/compare/dev...rajan-mis:admin_flag
Muthu is validating this code using container then we are planning to merge this code .
@rajan-mis I have some comments on that diff that you are showing me above, could you create a PR so I have a chance to make some comments inline for those changes?
I set the following variables:
mmfs_profile_path: "/var/mmfs/etc/scalecore.profile"
and call the role as follows:On the nodes, this file exists:
But during the validation step, it fails because of the
.profile
not in the name.