-
Notifications
You must be signed in to change notification settings - Fork 217
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-3026 - invoke fio from installcmd #806
Conversation
danielerez
commented
Dec 17, 2020
•
edited
Loading
edited
- Invoke fio_perf_check agent command as part of installcmd flow.
- Handled error in inventory (handleReplyError) by looking for a specific fio exit code (FioPerfCheckCmdExitCode).
c1ec6e6
to
b23329e
Compare
774581c
to
f94d6ce
Compare
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.
Maybe you should add subsystem test that check this specific error flow. and get the events and the status info of the host to make sure that everything is set correctly.
internal/host/fioperfcheckcmd.go
Outdated
) | ||
|
||
const ( | ||
FioPerfCheckCmdExitCode int64 = 126 |
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.
podman have 126 maybe something really big just to make sure that it doesn't conflict with any other error?
containers/podman#367
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.
Changed to 222
internal/host/installcmd_test.go
Outdated
InstallationTimeout: 120, | ||
ReleaseImage: "quay.io/openshift-release-dev/ocp-release@sha256:eab93b4591699a5a4ff50ad3517892653f04fb840127895bb3609b3cc68f98f3", | ||
ReleaseImageMirror: "local.registry:5000/ocp@sha256:eab93b4591699a5a4ff50ad3517892653f04fb840127895bb3609b3cc68f98f3", | ||
} | ||
|
||
var _ = Describe("installcmd", func() { | ||
var _ = FDescribe("installcmd", func() { |
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.
What is FDescribe
?
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.
Focus for unit-test, need to remove
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.
Removed
@@ -56,6 +56,7 @@ type InstructionConfig struct { | |||
DhcpLeaseAllocatorImage string `envconfig:"DHCP_LEASE_ALLOCATOR_IMAGE" default:"quay.io/ocpmetal/assisted-installer-agent:latest"` | |||
APIVIPConnectivityCheckImage string `envconfig:"API_VIP_CONNECTIVITY_CHECK_IMAGE" default:"quay.io/ocpmetal/assisted-installer-agent:latest"` |
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.
need to add to openshift/template.yaml
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.
Done
/retest |
- Invoke fio_perf_check agent command as part of installcmd flow. - Handled error in inventory (handleReplyError) by looking for a specific fio exit code (FioPerfCheckCmdExitCode).
@@ -240,6 +241,20 @@ func (m *Manager) populateDisksEligibility(inventoryString string) (string, erro | |||
return string(result), nil | |||
} | |||
|
|||
func (m *Manager) HandlePrepareInstallationFailure(ctx context.Context, h *models.Host, reason string) error { |
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.
isn't it the same as HandleInstallationFailure
?
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 adds the reason string.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielerez, filanov 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 |