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-17196: Fix none existens of static MAC adr. in case of specific network devices on s390x. #6087

Conversation

AmadeusPodvratnik
Copy link
Contributor

On s390x there are some network configurations where MAC addresses are not static and lead to issues using Assisted Installer, Agent based Installer and HCP (see attached net conf).

For AI and HCP there is a possibility to patch kernel arguments but using the UI there is a separate manual step needed using the API. This will be a bad user experience.
In addition patching the kernel arguments for ABI is not possible.

To solve this, a config override parameter need to be added to the parm file by the user and the ip settings will be automatically passed to the coreos installer regardless what the user configure (DHCP or static IP using nmstate).

See matrix in ticket:
https://issues.redhat.com/browse/MGMT-17196

Doc ticket:
https://issues.redhat.com/browse/MULTIARCH-4537

List all the issues related to this PR

  • New Feature
  • Enhancement
  • [x ] 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?

  • Simple parse test by running unit tests

  • 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

  • [x ] Title and description added to both, commit and PR.
  • [ x] Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • [x ] 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 Mar 14, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Mar 14, 2024

@AmadeusPodvratnik: This pull request references MGMT-17196 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

On s390x there are some network configurations where MAC addresses are not static and lead to issues using Assisted Installer, Agent based Installer and HCP (see attached net conf).

For AI and HCP there is a possibility to patch kernel arguments but using the UI there is a separate manual step needed using the API. This will be a bad user experience.
In addition patching the kernel arguments for ABI is not possible.

To solve this, a config override parameter need to be added to the parm file by the user and the ip settings will be automatically passed to the coreos installer regardless what the user configure (DHCP or static IP using nmstate).

See matrix in ticket:
https://issues.redhat.com/browse/MGMT-17196

Doc ticket:
https://issues.redhat.com/browse/MULTIARCH-4537

List all the issues related to this PR

  • New Feature
  • Enhancement
  • [x ] 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?

  • Simple parse test by running unit tests

  • 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

  • [x ] Title and description added to both, commit and PR.
  • [ x] Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • [x ] 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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 14, 2024
@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 14, 2024
Copy link

openshift-ci bot commented Mar 14, 2024

Hi @AmadeusPodvratnik. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@AmadeusPodvratnik AmadeusPodvratnik force-pushed the Fix_lpar_no_mac_available branch 3 times, most recently from 54c8bc3 to d01bcff Compare March 14, 2024 15:20
@openshift-ci openshift-ci bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 14, 2024
internal/host/hostcommands/install_cmd.go Outdated Show resolved Hide resolved
internal/host/hostcommands/install_cmd.go Outdated Show resolved Hide resolved
internal/host/hostcommands/install_cmd.go Outdated Show resolved Hide resolved
internal/host/hostcommands/install_cmd.go Outdated Show resolved Hide resolved
internal/host/hostcommands/install_cmd.go Outdated Show resolved Hide resolved
internal/host/hostcommands/install_cmd.go Outdated Show resolved Hide resolved
internal/host/hostcommands/install_cmd.go Outdated Show resolved Hide resolved
internal/host/hostcommands/install_cmd.go Outdated Show resolved Hide resolved
internal/host/hostcommands/install_cmd.go Outdated Show resolved Hide resolved
@omertuc
Copy link
Contributor

omertuc commented Mar 15, 2024

/lgtm

@omertuc
Copy link
Contributor

omertuc commented Mar 15, 2024

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 15, 2024
@omertuc
Copy link
Contributor

omertuc commented Mar 15, 2024

/approve

@omertuc
Copy link
Contributor

omertuc commented Mar 15, 2024

Please rebase squash all commits

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 15, 2024
Copy link

openshift-ci bot commented Mar 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AmadeusPodvratnik, omertuc

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 15, 2024
Copy link

codecov bot commented Mar 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.21%. Comparing base (94da376) to head (4e2b253).
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6087      +/-   ##
==========================================
- Coverage   68.38%   68.21%   -0.18%     
==========================================
  Files         239      239              
  Lines       35503    35607     +104     
==========================================
+ Hits        24280    24290      +10     
- Misses       9115     9212      +97     
+ Partials     2108     2105       -3     
Files Coverage Δ
internal/host/hostcommands/install_cmd.go 84.45% <100.00%> (+0.26%) ⬆️

... and 4 files with indirect coverage changes

specific network devices on s390x.

Signed-off-by: Amadeus Podvratnik <apodvrat@redhat.com>

Co-authored-by: Omer Tuchfeld <omertuchfeld@gmail.com>

MGMT-17196: Fix none existens of static MAC adr. in case of
specific network devices on s390x.

Signed-off-by: Amadeus Podvratnik <apodvrat@redhat.com>

Update internal/host/hostcommands/install_cmd.go

Co-authored-by: Omer Tuchfeld <omertuchfeld@gmail.com>
Signed-off-by: Amadeus Podvratnik <apodvrat@redhat.com>

Update internal/host/hostcommands/install_cmd.go

Co-authored-by: Omer Tuchfeld <omertuchfeld@gmail.com>

Update internal/host/hostcommands/install_cmd.go

Co-authored-by: Omer Tuchfeld <omertuchfeld@gmail.com>

Update internal/host/hostcommands/install_cmd.go

Co-authored-by: Omer Tuchfeld <omertuchfeld@gmail.com>
Signed-off-by: Amadeus Podvratnik <apodvrat@redhat.com>
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 15, 2024
@omertuc
Copy link
Contributor

omertuc commented Mar 15, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 15, 2024
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 1a4191c and 2 for PR HEAD 4e2b253 in total

Copy link

openshift-ci bot commented Mar 15, 2024

@AmadeusPodvratnik: 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-bot openshift-merge-bot bot merged commit 97af512 into openshift:master Mar 15, 2024
14 checks passed
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. 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants