[oooq] sshd not starting on overcloud nodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
New
|
Undecided
|
Unassigned |
Bug Description
On a fresh deployment of oooq master branch openssh not starting due to the following error:
```
Unable to load host key: /etc/ssh/
Unable to load host key: /etc/ssh/
Unable to load host key: /etc/ssh/
sshd: no hostkeys available -- exiting.
```
sshd-keygen.target creates the host keys on first boot or if they are ever removed by calling `/usr/libexec/
```
[root@overcloud
# /usr/lib/
[Unit]
<email address hidden>
<email address hidden>
<email address hidden>
PartOf=sshd.service
```
```
[root@overcloud
# /usr/lib/
[Unit]
Description=OpenSSH %i Server Key Generation
ConditionFileNo
[Service]
Type=oneshot
EnvironmentFile
ExecStart=
[Install]
WantedBy=
# /etc/systemd/
# In some cloud-init enabled images the sshd-keygen template service may race
# with cloud-init during boot causing issues with host key generation. This
# drop-in config adds a condition to sshd-keygen@
# prevents the sshd-keygen units from running *if* cloud-init is going to run.
#
[Unit]
ConditionPathEx
```
Note there are two systemd files listed above, sshd-keygen@
This is blocking the keygen and causing sshd to fail to start.
This can be fixed by either removing cloud-init or calling `/usr/libexec/
I notice the upstream CI is using centos 9 and my overcloud nodes were deployed with centos 8, maybe this default just needs to be bumped.