If ks file generated by anaconda on RHEL6 gets uploaded to Spacewalk, the following warn msg shows up: "This kickstart profile uses a different type of encryption by default than the root password is currently using.."
DescriptionGennadii Altukhov
2016-06-21 11:29:46 UTC
Description of problem:
If ks file generated by anaconda on RHEL6 gets uploaded to Satellite, the following warn message shows up:
"This kickstart profile uses a different type of encryption by default than the root password is currently using. You must reset the root password to encrypt it with the new method."
See the attached picture.
Note: By default anaconda on rhel6 uses sha512 algo for rootpw.
Version-Release number of selected component (if applicable):
2.5
How reproducible:
Always
Steps to Reproduce:
1. Install some RHEL6 machine to get ks file or generate it or make sure that already existing one contains sha512 algo (starts with "$6"):
rootpw --iscrypted $6$trAlalaT$RaLaLAtraLALaTR4lALATr4LAlatraLALaTR4lALATr4LAltraLALaTR4lALATr4LAltraLALaTR4lALATr4LA
2. Upload it to the Spacewalk:
https://<input_your_sat_fqdn>/rhn/kickstart/AdvancedModeCreate.do
3. Switch to "Kickstart File" tab:
https://<input_your_sat_fqdn>/rhn/kickstart/KickstartFileDownloadAdvanced.do?ksid=<input_ks_id>
Actual results:
The following warn message gets printed:
"This kickstart profile uses a different type of encryption by default than the root password is currently using. You must reset the root password to encrypt it with the new method."
Expected results:
No warn message if anaconda uses sha512 on RHEL6 by default.
Comment 1Gennadii Altukhov
2016-06-21 11:31:13 UTC
Taking...
Comment 2Gennadii Altukhov
2016-06-21 12:26:27 UTC
Verified by reproducer from the initial report, using spacewalk-java-2.6.48-1. Used a sample kickstart file with "rootpw --iscrypted" option encrypted with sha512 (encrypted string format is $6$<salt>$<encrypted_password>). There is no error message now. Both $6... and $5... are accepted without an error.
VERIFED