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-14750: Allow FC, ECKD, FBA drive types on s390x #5269

Merged

Conversation

avishayt
Copy link
Contributor

@avishayt avishayt commented Jun 1, 2023

Multipath cannot be enabled in day1 on s390x, so we will allow installing directly on an FC path only for this arch. In addition, there are two new drive types for IBM DASDs (direct access storage devices).

List all the issues related to this PR

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 1, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jun 1, 2023

@avishayt: This pull request references MGMT-14750 which is a valid jira issue.

In response to this:

Multipath cannot be enabled in day1 on s390x, so we will allow installing directly on an FC path only for this arch. In addition, there are two new drive types for IBM DASDs (direct access storage devices).

List all the issues related to this PR

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 1, 2023
@openshift-ci openshift-ci bot requested review from filanov and ori-amizur June 1, 2023 09:46
@openshift-ci openshift-ci bot added 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. labels Jun 1, 2023
@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

Merging #5269 (5c87429) into master (10eaceb) will increase coverage by 0.09%.
The diff coverage is 63.15%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5269      +/-   ##
==========================================
+ Coverage   67.48%   67.57%   +0.09%     
==========================================
  Files         218      221       +3     
  Lines       32769    33047     +278     
==========================================
+ Hits        22113    22333     +220     
- Misses       8668     8710      +42     
- Partials     1988     2004      +16     
Impacted Files Coverage Δ
internal/common/test_configuration.go 0.00% <0.00%> (ø)
internal/host/hostutil/test_utils.go 11.39% <0.00%> (ø)
internal/hardware/validator.go 76.49% <100.00%> (+0.30%) ⬆️
internal/host/host.go 73.61% <100.00%> (ø)
internal/host/validator.go 82.67% <100.00%> (ø)

... and 10 files with indirect coverage changes

@avishayt
Copy link
Contributor Author

avishayt commented Jun 1, 2023

/hold

@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 Jun 1, 2023
Multipath cannot be enabled in day1 on s390x, so we will allow
installing directly on an FC path only for this arch.  In addition,
there are two new drive types for IBM DASDs (direct access storage
devices).
@avishayt
Copy link
Contributor Author

avishayt commented Jun 1, 2023

/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 Jun 1, 2023
return []string{string(models.DriveTypeHDD), string(models.DriveTypeSSD), string(models.DriveTypeMultipath)}
func (v *validator) getValidDeviceStorageTypes(hostArchitecture string) []string {
validTypes := []string{string(models.DriveTypeHDD), string(models.DriveTypeSSD), string(models.DriveTypeMultipath)}
if hostArchitecture == models.ClusterCPUArchitectureS390x {
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to also check that it's not null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hostArchitecture is a string, it can't be null

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 1, 2023
@openshift-ci
Copy link

openshift-ci bot commented Jun 1, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: avishayt, gamli75

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
Copy link

openshift-ci bot commented Jun 1, 2023

@avishayt: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 628d8f2 into openshift:master Jun 1, 2023
16 checks passed
danielerez pushed a commit to danielerez/assisted-service that referenced this pull request Oct 15, 2023
Multipath cannot be enabled in day1 on s390x, so we will allow
installing directly on an FC path only for this arch.  In addition,
there are two new drive types for IBM DASDs (direct access storage
devices).
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants