We use userPW instead of password in xcatws.cgi, but do not update this in xcatws-test.sh;
When running xcatws-test.sh, there is error:
reproduce:
[root@c910f04x41 ws]# ./xcatws-test.sh -u root -p cluster
** Username: root
** Password: cluster
** Hostname: 127.0.0.1
Run: [Get all available resource]
curl -X GET -k https://127.0.0.1/xcatws/?pretty=1&userName=root&password=cluster
Output:
[
"globalconf",
"groups",
"networks",
"nodes",
"osimages",
"policy",
"services",
"tables",
"tokens"
]
Run: [Get all global configuration resource]
curl -X GET -k https://127.0.0.1/xcatws/globalconf?pretty=1&userName=root&password=cluster
Output:
{
"errorcode":"2",
"error":"Authentication failure"
}
FAILED to continue. See the error message in 'error' section.
fixed in master:
commit fcf9e016d36bc9e3536ab473ffa02417bdd8826b