Centos RPM erase one_auth password when updating
|Assignee:||Jaime Melis||% Done:|
|Target version:||Release 3.8|
|Affected Versions:||OpenNebula 3.6|
When updating Opennebula with the RPM for Centos, the file /var/lib/one/.one/one_auth is erased and the password changed.
So, after and update, oned is no more working and the following error message appears in the logs:
[POOL][E]: ONE returned error while retrieving pool info:
[HostPoolInfo] User couldn't be authenticated, aborting call.
#1 Updated by Nicolas AGIUS almost 9 years ago
- File centos6.spec-issue1417.patch added
Within the centos6.spec file, the password is generated at build time and stored in the package.
As a side effect, all OpenNebula installations have the same password.
I moved this part of code into the postinstall script. A new password is now generated if not already present.