Bug 1744940
Summary: | Unable to add SSH public key on nodes using MachineConfigOperator if did not provide any during installation | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Ravi Trivedi <travi> |
Component: | Machine Config Operator | Assignee: | Antonio Murdaca <amurdaca> |
Status: | CLOSED NOTABUG | QA Contact: | Micah Abbott <miabbott> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.1.z | CC: | adahiya, agawand, amurdaca |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | 4.2.0 | ||
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: | 2019-09-02 12:24:52 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ravi Trivedi
2019-08-23 10:12:36 UTC
Abhinav, while I test this out, was this the intended behavior? should we always create an ssh MC pair even if no ssh is provided at installation? You can just create the SSH MC though, so here's how: $ cat 99-worker-ssh.yaml apiVersion: machineconfiguration.openshift.io/v1 kind: MachineConfig metadata: labels: machineconfiguration.openshift.io/role: worker name: 99-worker-ssh spec: config: ignition: version: 2.2.0 passwd: users: - name: core sshAuthorizedKeys: - ssh-rsa XXXXXXXXXX $ oc create -f 99-worker-ssh.yaml Same goes for the master pool, afterwards, deploy the bastion and it will work. Closing as not a bug but I'm taking the action to improve our docs in the MCO repo (https://github.com/openshift/machine-config-operator/pull/1078) Can you provide the output of what's below after you create the SSH keys MCs: $ oc describe machineconfigpool master $ oc describe machineconfigpool worker Are you waiting for the pools to roll out the changes? Thanks Ravi for triple checking this, we have a PR in flight to update our own documentation here https://github.com/openshift/machine-config-operator/pull/1078 - any input would be highly appreciated. Closing this now. |