-
Notifications
You must be signed in to change notification settings - Fork 105
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
MGMT-3108: Adding bootstrap-in-place installation support #360
Conversation
timeout=consts.NODES_REGISTERED_TIMEOUT, | ||
fall_on_error_status=True, | ||
interval=5, | ||
client, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now u like @tsorya :)
c7b796d
to
3d19315
Compare
/hold |
/lgtm |
3d19315
to
e891d98
Compare
e891d98
to
c732fe8
Compare
cba2b62
to
4364824
Compare
4364824
to
f0fcf3d
Compare
/retest |
b1bf1b1
to
1e32b34
Compare
/retest |
logging.info("Installation completed successfully!") | ||
|
||
finally: | ||
if host_ip is not None: |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eranco74 still needed?
There was a problem hiding this comment.
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
1e32b34
to
89b55f8
Compare
/approve |
89b55f8
to
18e846a
Compare
18e846a
to
bd8aabf
Compare
/lgtm |
/unhold |
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")) |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
[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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
No description provided.