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-4966 Display a better message when media disconnection failure o… #197

Merged
merged 1 commit into from
May 31, 2021

Conversation

michaellevy101
Copy link
Contributor

…ccurs

When a media disconnection error occurred the system became unstable and the step execution might be stuck on IO errors or failed with an unfriendly message.
Media disconnection occurred when a network drive (mostly PXE) has any errors (Network issue) and the controller disconnects it automatically.
Since this error is common to all the steps, we add this verification to the agent
The indication to error is reading from the file failed

@michaellevy101
Copy link
Contributor Author

/cc @osherdp @yevgeny-shnaidman

@openshift-ci
Copy link

openshift-ci bot commented May 9, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: michaellevy101

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-ci openshift-ci bot requested review from avishayt and oshercc May 9, 2021 09:26
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 9, 2021
@michaellevy101
Copy link
Contributor Author

/cc @omertuc

@openshift-ci openshift-ci bot requested a review from omertuc May 9, 2021 09:26
@michaellevy101
Copy link
Contributor Author

/hold until the assisted service PR merges

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 9, 2021
@michaellevy101 michaellevy101 force-pushed the MGMT-4966 branch 2 times, most recently from b71cf01 to ee6f469 Compare May 9, 2021 15:57
michaellevy101 pushed a commit to michaellevy101/assisted-service that referenced this pull request May 20, 2021
This PR is related to an agent PR: openshift/assisted-installer-agent#197
This PR aready merged openshift#1685 and reverted openshift#1691 after discovering that /run/media/iso directory does not exist for a minimal ISO
so here we mounted the /run/media directory which exist in them both

When a media disconnection error occurred the system became unstable and the step execution might be stuck on IO errors or failed with an unfriendly message.
Media disconnection occurred when a network drive (mostly PXE) has any errors (Network issue) and the controller disconnects it automatically.
Since this error is common to all the steps, we add this verification to the agent.
/run/media/iso is the ISO directory which mounted to the ISO device for a full-iso
The disconnection event not reproduced for the minimal-iso
openshift-merge-robot pushed a commit to openshift/assisted-service that referenced this pull request May 21, 2021
This PR is related to an agent PR: openshift/assisted-installer-agent#197
This PR aready merged #1685 and reverted #1691 after discovering that /run/media/iso directory does not exist for a minimal ISO
so here we mounted the /run/media directory which exist in them both

When a media disconnection error occurred the system became unstable and the step execution might be stuck on IO errors or failed with an unfriendly message.
Media disconnection occurred when a network drive (mostly PXE) has any errors (Network issue) and the controller disconnects it automatically.
Since this error is common to all the steps, we add this verification to the agent.
/run/media/iso is the ISO directory which mounted to the ISO device for a full-iso
The disconnection event not reproduced for the minimal-iso
@michaellevy101 michaellevy101 force-pushed the MGMT-4966 branch 2 times, most recently from ded14f7 to 05b1f4b Compare May 23, 2021 20:43
@michaellevy101
Copy link
Contributor Author

/hold until testing it

src/commands/step_processor.go Outdated Show resolved Hide resolved
src/commands/step_processor.go Outdated Show resolved Hide resolved
@michaellevy101 michaellevy101 force-pushed the MGMT-4966 branch 5 times, most recently from 4a454c9 to 9de2af8 Compare May 25, 2021 10:40
@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 25, 2021
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 25, 2021
@michaellevy101
Copy link
Contributor Author

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 27, 2021
…ccurs

When a media disconnection error occurred the system became unstable and the step execution might be stuck on IO errors or failed with an unfriendly message.
Media disconnection occurred when a network drive (mostly PXE) has any errors (Network issue) and the controller disconnects it automatically.
Since this error is common to all the steps, we add this verification to the agent
The indication to error is reading from the file failed
@omertuc
Copy link
Contributor

omertuc commented May 31, 2021

/lgtm

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.

4 participants