Version
$ openshift-install version
v0.3.0-69-g657fb433d5164b0f712c90a20b54f765ad3b381c
Platform (aws|libvirt|openshift):
libvirt
What happened?
I'm working on some MCD work to update ssh keys. However when I laid down MCD yaml file, I adding some logging to update.go and saw that oldConfig.Spec.Config.Passwd.Users is empty after a cluster is first spun up.
I double checked with oc get machineconfig and the whole spec:config:passwd section is empty:
spec: config: ignition: config: {} security: tls: {} timeouts: {} version: 2.2.0 networkd: {} passwd: {}
What you expected to happen?
I expected to see the inital config spec:config:passwd:users: to have one user "core" with an SSH key.
How to reproduce it (as minimally and precisely as possible)?
Create a cluster w/ ssh keys, then run oc get machineconfig and note that the spec: section is empty
$ oc get machineconfig
$ oc get machineconfig xxxxxx -o yaml
Anything else we need to know?
This is blocking work on adding the ability to update SSH keys in the MCD, since the MCD cannot add users only change existing users' ssh keys. As such, we need to have an initial config with a user and an ssh key.
References
cc @abhinavdahiya since @sdemos & I wanted to loop you in so we can figure out the best way to solve this.
Version
Platform (aws|libvirt|openshift):
libvirt
What happened?
I'm working on some MCD work to update ssh keys. However when I laid down MCD yaml file, I adding some logging to update.go and saw that oldConfig.Spec.Config.Passwd.Users is empty after a cluster is first spun up.
I double checked with
oc get machineconfigand the wholespec:config:passwdsection is empty:spec: config: ignition: config: {} security: tls: {} timeouts: {} version: 2.2.0 networkd: {} passwd: {}What you expected to happen?
I expected to see the inital config
spec:config:passwd:users:to have one user "core" with an SSH key.How to reproduce it (as minimally and precisely as possible)?
Create a cluster w/ ssh keys, then run
oc get machineconfigand note that thespec:section is emptyAnything else we need to know?
This is blocking work on adding the ability to update SSH keys in the MCD, since the MCD cannot add users only change existing users' ssh keys. As such, we need to have an initial config with a user and an ssh key.
References
cc @abhinavdahiya since @sdemos & I wanted to loop you in so we can figure out the best way to solve this.