Skip to content

Spec: Config: Passwd is empty in oc get machineconfig #578

Description

@kikisdeliveryservice

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions