Skip to content

Conversation

@cgwalters
Copy link
Member

This is prep for having "early MCD" process kernel arguments
from MachineConfig objects at pivot time, and more generally
building up the model that the host processes MachineConfig,
not just Ignition.

Right now what I've tested is just manually running
machine-config-daemon pivot registry.svc.ci.openshift.org/rhcos/machine-os-content:latest

But, next step is to test having this take over the early pivot role,
then we can drop /usr/bin/pivot out of RHCOS.

See: #798

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jun 14, 2019
@cgwalters cgwalters mentioned this pull request Jun 14, 2019
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 14, 2019
@runcom
Copy link
Member

runcom commented Jun 15, 2019

This is amazing.

@cgwalters
Copy link
Member Author

This is amazing.

https://www.youtube.com/watch?v=yhmrIGw5Voc

@cgwalters
Copy link
Member Author

cgwalters commented Jun 17, 2019

This introduces into the MCO the same CI issue that kubelet has had: openshift/release#2747

But once we fix that there will be huge benefits because this repository will become an easy place to add functionality to RHCOS that's on Github and CI gated in a useful way.

@cgwalters cgwalters changed the title WIP: Import pivot code Import pivot code Jun 17, 2019
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 17, 2019
@cgwalters
Copy link
Member Author

Lifting WIP on this, it doesn't actually do anything right now by default, but should be a useful baseline for further iteration. (For example there's various cleanups/dedup that we can do to the imported pivot code, but I want to do that once we have CI testing set up, etc.)

@runcom
Copy link
Member

runcom commented Jun 17, 2019

Some really trivial nits which we can postpone but I'd love to get the pkg/daemon/pivot for this. Otherwise, it looks great.

/approve

Copy link
Member

@ashcrow ashcrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall 👍. I think once this merges then some clean up can be done as there is some overlap per @runcom's notes.

This is prep for having "early MCD" process kernel arguments
from MachineConfig objects at pivot time, and more generally
building up the model that the host processes `MachineConfig`,
not just Ignition.

Right now what I've tested is just manually running
`machine-config-daemon pivot registry.svc.ci.openshift.org/rhcos/machine-os-content:latest`

A next step here is to have the MCS serve the extra MachineConfig
data like `KernelArguments` and then have the MCD process that on
boot.

After that we should have this take over the early pivot role,
then we can drop `/usr/bin/pivot` out of RHCOS.

See: openshift#798
@runcom
Copy link
Member

runcom commented Jun 17, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 17, 2019
Copy link
Member

@ashcrow ashcrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should select the approve radio button when I approve .... :-)

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashcrow, cgwalters, runcom

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [ashcrow,cgwalters,runcom]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 3bce493 into openshift:master Jun 17, 2019
inspectArgs = append(inspectArgs, fmt.Sprintf("%s", container))
output := utils.RunExt(true, 1, "podman", inspectArgs...)
var imagedataArray []types.ImageInspection
json.Unmarshal([]byte(output), &imagedataArray)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a json err check here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops i commented too late 😂

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably got imported as is from openshift/pivot and yeah, we should have an error check here - let's follow up all the things here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants