Bug 1801153
Summary: | Ignition: user and passwordHash in ignition script is not working with RHCOS | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Nisim Simsolo <nsimsolo> | ||||||
Component: | BLL.Virt | Assignee: | Michal Skrivanek <michal.skrivanek> | ||||||
Status: | CLOSED NOTABUG | QA Contact: | Nisim Simsolo <nsimsolo> | ||||||
Severity: | urgent | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 4.4.0 | CC: | bugs, jlebon, lrotenbe, miabbott, nsimsolo, rbarry | ||||||
Target Milestone: | --- | Flags: | mavital:
blocker?
|
||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2020-02-13 08:49:16 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1712746 | ||||||||
Attachments: |
|
Description
Nisim Simsolo
2020-02-10 11:26:53 UTC
Created attachment 1662124 [details]
engine.log
Created attachment 1662125 [details]
vdsm.log
Ignition has some breaking changes. The only references I'm seeing in the docs are for sha hashed passwords. We also wouldn't expect ignition for upstream versions (e.g. FCOS) to necessarily be compatible with RHCOS. Are you sure this is a bug? (In reply to Ryan Barry from comment #3) > Ignition has some breaking changes. The only references I'm seeing in the > docs are for sha hashed passwords. We also wouldn't expect ignition for > upstream versions (e.g. FCOS) to necessarily be compatible with RHCOS. > > Are you sure this is a bug? Currently I can't test ignition on RHCOS because I cannot login the VMs in order to verify if ignition configuration is applied. It also looks like the UI option for hashed password is not working. Which algorithm was used for the hash? Is the UI option not working the same as the other reported bug, or different? Yeah, this is likely due to a hashing algorithm we turn off by default. How did you generate the hash? Works for me with one generated using `mkpasswd -m sha-512` at least. Ahh OK yup, RHCOS just inherits el8's sha512-by-default here: ``` [root@coreos ~]# grep password /etc/pam.d/system-auth password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type= password sufficient pam_unix.so try_first_pass use_authtok nullok sha512 shadow password required pam_deny.so ``` The original comment didn't mention it, though just in case this was tried over SSH, note that RHCOS disables SSH password authentication (https://github.com/openshift/os/issues/374). It works fine on serial though. (One can of course always go against that opinion and turn it back on via Ignition if so determined.) |