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-3026 - invoke fio from installcmd #806

Merged
merged 1 commit into from
Dec 27, 2020

Conversation

danielerez
Copy link
Contributor

@danielerez danielerez commented Dec 17, 2020

  • 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).

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. api-review Categorizes an issue or PR as actively needing an API review. labels Dec 17, 2020
@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 17, 2020
@danielerez danielerez changed the title [WIP] MGMT-3026 - invoke fio from installcmd MGMT-3026 - invoke fio from installcmd Dec 17, 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 17, 2020
@danielerez danielerez force-pushed the fio_check branch 2 times, most recently from 774581c to f94d6ce Compare December 17, 2020 15:49
Copy link
Contributor

@filanov filanov left a 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.

)

const (
FioPerfCheckCmdExitCode int64 = 126
Copy link
Contributor

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

Choose a reason for hiding this comment

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

Changed to 222

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() {
Copy link
Contributor

Choose a reason for hiding this comment

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

What is FDescribe?

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

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"`

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

Choose a reason for hiding this comment

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

Done

@rollandf
Copy link

/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 {
Copy link
Contributor

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?

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.

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

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 250e579 into openshift:master Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review Categorizes an issue or PR as actively needing an API review. 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.

5 participants