Skip to content

Deploy baremetal bootstrap services with MCO - #2119

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
bcrochet:rm-systemd
Jul 31, 2019
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
bcrochet:rm-systemd

Conversation

@bcrochet

Copy link
Copy Markdown
Member

Currently we have two very different sets of manifests and templates
for deploying the baremetal infrastructure services. One lives in the
installer, the other lives in MCO. This change removes the services
from the installer and makes use of the files being added to the MCO
that serve the same purpose but keep all of the templates in the same
repo and allow us to use the same MCO data for populating dynamic
values.

On platforms that don't need these services on the bootstrap node,
MCO will not render these files. We should check for the existence
of the relevant manifest and if present try to copy those files.

The static-pod-resources are grouped with the manifest because the
manifests require them, so it would be an error for one to exist
without the other.

Currently we have two very different sets of manifests and templates
for deploying the baremetal infrastructure services. One lives in the
installer, the other lives in MCO. This change removes the services
from the installer and makes use of the files being added to the MCO
that serve the same purpose but keep all of the templates in the same
repo and allow us to use the same MCO data for populating dynamic
values.

On platforms that don't need these services on the bootstrap node,
MCO will not render these files. We should check for the existence
of the relevant manifest and if present try to copy those files.

The static-pod-resources are grouped with the manifest because the
manifests require them, so it would be an error for one to exist
without the other.
@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 30, 2019
cp mco-bootstrap/bootstrap/machineconfigoperator-bootstrap-pod.yaml /etc/kubernetes/manifests/
if [ -d mco-bootstrap/baremetal/manifests ]; then
cp mco-bootstrap/baremetal/manifests/* /etc/kubernetes/manifests/
cp -r mco-bootstrap/baremetal/static-pod-resources/* /etc/kubernetes/static-pod-resources/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: i think this script uses full names for flags --recursive

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

#2119 (comment)

@stbenjam will you be filing follow-ups to fix this..

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The other well known shell commands (sed -i -e, rm -rf) do not use long flags in this script. If you really want it this way, this fixes them all: #2130

@abhinavdahiya

Copy link
Copy Markdown
Contributor

/approve

@abhinavdahiya abhinavdahiya added the platform/baremetal IPI bare metal hosts platform label Jul 30, 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 Jul 30, 2019
@metal3ci

Copy link
Copy Markdown

@stbenjam

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 31, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, bcrochet, stbenjam

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:

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

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot
openshift-merge-robot merged commit 5e2ea73 into openshift:master Jul 31, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@bcrochet: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-openstack b9895fe link /test e2e-openstack
ci/prow/e2e-aws-scaleup-rhel7 b9895fe link /test e2e-aws-scaleup-rhel7

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed 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. platform/baremetal IPI bare metal hosts platform size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants