Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MGMT-3108: Adding bootstrap-in-place installation support #360

Merged

Conversation

osherdp
Copy link
Contributor

@osherdp osherdp commented Dec 24, 2020

No description provided.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 24, 2020
timeout=consts.NODES_REGISTERED_TIMEOUT,
fall_on_error_status=True,
interval=5,
client,
Copy link
Contributor

Choose a reason for hiding this comment

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

now u like @tsorya :)

@osherdp osherdp force-pushed the test/bootstrap-in-place branch from c7b796d to 3d19315 Compare December 27, 2020 13:52
@osherdp osherdp changed the title [WIP] Adding bootstrap-in-place installation support MGMT-3108: Adding bootstrap-in-place installation support Dec 27, 2020
@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 Dec 27, 2020
@osherdp
Copy link
Contributor Author

osherdp commented Dec 27, 2020

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 27, 2020
@tsorya
Copy link
Contributor

tsorya commented Dec 27, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 27, 2020
@osherdp osherdp force-pushed the test/bootstrap-in-place branch from 3d19315 to e891d98 Compare December 28, 2020 10:54
@openshift-ci-robot openshift-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed lgtm Indicates that a PR is ready to be merged. labels Dec 28, 2020
@osherdp osherdp force-pushed the test/bootstrap-in-place branch from e891d98 to c732fe8 Compare December 28, 2020 10:57
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 28, 2020
@osherdp osherdp force-pushed the test/bootstrap-in-place branch 4 times, most recently from cba2b62 to 4364824 Compare December 30, 2020 10:16
@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 30, 2020
@osherdp osherdp force-pushed the test/bootstrap-in-place branch from 4364824 to f0fcf3d Compare December 30, 2020 10:26
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 30, 2020
@osherdp
Copy link
Contributor Author

osherdp commented Dec 30, 2020

/retest

@osherdp osherdp force-pushed the test/bootstrap-in-place branch 2 times, most recently from b1bf1b1 to 1e32b34 Compare December 30, 2020 14:39
@osherdp
Copy link
Contributor Author

osherdp commented Dec 30, 2020

/retest

logging.info("Installation completed successfully!")

finally:
if host_ip is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

can we push all this to function? and just call it?



def gather_sosreport_data(host_ip):
with SshConnection(ip=host_ip, private_ssh_key_path=SSH_KEY) as ssh:
Copy link
Contributor

Choose a reason for hiding this comment

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

we have this option in Node object. Why not to use the object?

Copy link
Contributor

Choose a reason for hiding this comment

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

and add function that will upload file will be very helpful to there

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

ssh.upload_file(SOSREPORT_SCRIPT, "/tmp/man_sosreport.sh")
ssh.execute("chmod a+x /tmp/man_sosreport.sh")
ssh.execute("sudo /tmp/man_sosreport.sh")
ssh.download_file("/tmp/sosreport.tar.bz2", IBIP_DIR)
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

utils.run_command(f"{INSTALLER_BINARY} create manifests --dir={IBIP_DIR}")
logging.info("Installer generate ignitions")
# TODO delete
shutil.copy(f"{RESOURCES_DIR}/sno_manifest.yaml", os.path.join(IBIP_DIR, "openshift"))
Copy link
Contributor

Choose a reason for hiding this comment

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

@eranco74 still needed?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll remove it once we move to quay.io/eranco74/ocp-release:bootstrap-in-place

@osherdp osherdp force-pushed the test/bootstrap-in-place branch from 1e32b34 to 89b55f8 Compare December 30, 2020 17:16
@tsorya
Copy link
Contributor

tsorya commented Dec 30, 2020

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 30, 2020
@osherdp osherdp force-pushed the test/bootstrap-in-place branch from 89b55f8 to 18e846a Compare December 30, 2020 19:04
@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 30, 2020
@osherdp osherdp force-pushed the test/bootstrap-in-place branch from 18e846a to bd8aabf Compare December 30, 2020 19:05
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 30, 2020
@tsorya
Copy link
Contributor

tsorya commented Dec 31, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 31, 2020
@osherdp
Copy link
Contributor Author

osherdp commented Dec 31, 2020

/unhold

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 31, 2020
utils.run_command(f"{INSTALLER_BINARY} create manifests --dir={IBIP_DIR}")
logging.info("Installer generate ignitions")
# TODO delete
shutil.copy(f"{RESOURCES_DIR}/sno_manifest.yaml", os.path.join(IBIP_DIR, "openshift"))
Copy link
Contributor

Choose a reason for hiding this comment

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

I'll remove it once we move to quay.io/eranco74/ocp-release:bootstrap-in-place


finally:
logging.info("Gathering sosreport data from host...")
node = Nodes(controller, private_ssh_key_path=SSH_KEY)[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we log the oc describe co here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's in the sosreport script

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eranco74, osherdp, tsorya

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

The pull request process is described here

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

/retest

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

@openshift-merge-robot openshift-merge-robot merged commit 3699dc8 into openshift:master Dec 31, 2020
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants