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-15699: Service changes for avoiding MCO reboot #5453

Merged
merged 1 commit into from Sep 28, 2023

Conversation

ori-amizur
Copy link
Contributor

@ori-amizur ori-amizur commented Sep 3, 2023

Send the feature flag through the install command to indicate if the skip mco reboot feature is enabled.
The relevant logic is logic is done by the assisted installer.

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 Sep 3, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Sep 3, 2023

@ori-amizur: This pull request references MGMT-15699 which is a valid jira issue.

In response to this:

In order to avoid MCO reboot the release image and the pull secret are needed by assisted installer. Therefore, they were added to the install command.
In addition feature flag was added. If this flag is set, the pull secret is sent in the install command.
Only if the pull secret is ent, the MCO reboot will be avoided.

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 Sep 3, 2023
@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 Sep 3, 2023
@codecov
Copy link

codecov bot commented Sep 3, 2023

Codecov Report

Merging #5453 (23f46f2) into master (6420e49) will decrease coverage by 0.08%.
Report is 34 commits behind head on master.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5453      +/-   ##
==========================================
- Coverage   67.74%   67.66%   -0.08%     
==========================================
  Files         229      232       +3     
  Lines       33571    34091     +520     
==========================================
+ Hits        22743    23069     +326     
- Misses       8789     8965     +176     
- Partials     2039     2057      +18     
Files Coverage Δ
internal/host/hostcommands/install_cmd.go 82.79% <100.00%> (+0.16%) ⬆️
internal/host/hostcommands/instruction_manager.go 96.10% <100.00%> (ø)

... and 11 files with indirect coverage changes

@ori-amizur ori-amizur marked this pull request as draft September 3, 2023 13:00
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 3, 2023
@ori-amizur
Copy link
Contributor Author

/uncc @eliorerz
/uncc @adriengentil

@ori-amizur
Copy link
Contributor Author

/retest

5 similar comments
@ori-amizur
Copy link
Contributor Author

/retest

@ori-amizur
Copy link
Contributor Author

/retest

@ori-amizur
Copy link
Contributor Author

/retest

@ori-amizur
Copy link
Contributor Author

/retest

@ori-amizur
Copy link
Contributor Author

/retest

@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 Sep 4, 2023
@ori-amizur ori-amizur marked this pull request as ready for review September 4, 2023 08:00
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 4, 2023
@ori-amizur
Copy link
Contributor Author

/uncc @gamli75
/uncc @paul-maidment

@ori-amizur ori-amizur marked this pull request as draft September 4, 2023 08:03
@osherdp
Copy link
Contributor

osherdp commented Sep 4, 2023

/uncc
as I have have less feedback to give about it

@openshift-ci openshift-ci bot removed the request for review from osherdp September 4, 2023 10:15
@ori-amizur
Copy link
Contributor Author

/retest

@ori-amizur
Copy link
Contributor Author

/test edge-e2e-ai-operator-ztp
/test e2e-agent-compact-ipv4

@ori-amizur
Copy link
Contributor Author

/retest

@filanov
Copy link
Contributor

filanov commented Sep 5, 2023

/hold
until 2.9 will be in feature freeze (7.9)

@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 Sep 5, 2023
@carbonin
Copy link
Member

carbonin commented Sep 5, 2023

In order to avoid MCO reboot the release image and the pull secret are needed by assisted installer. Therefore, they were added to the install command.
In addition feature flag was added. If this flag is set, the pull secret is sent in the install command.
Only if the pull secret is ent, the MCO reboot will be avoided.

I only see the feature flag being sent here. Is there more work to be done on the service side or is the pull secret stuff a detail on the installer side (i.e. the installer sets the pull secret somewhere when this flag is set)?

Also can you link to the installer PR when it is up?

@ori-amizur
Copy link
Contributor Author

ori-amizur commented Sep 6, 2023

I only see the feature flag being sent here. Is there more work to be done on the service side?

No. AFAIK this is the only work needed on the service side.

Also can you link to the installer PR when it is up?

openshift/assisted-installer#713

@openshift-ci-robot
Copy link

openshift-ci-robot commented Sep 6, 2023

@ori-amizur: This pull request references MGMT-15699 which is a valid jira issue.

In response to this:

Send the feature flag through the install command to indicate if the skip mco reboot feature is enabled.
The relevant logic is logic is done by the assisted installer.

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.

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.

Please add a tests that validate the argument that you pass

Send the feature flag through the install command to indicate if the skip mco reboot feature is enabled.
The relevant logic is logic is done by the assisted installer.
@ori-amizur
Copy link
Contributor Author

/retest

2 similar comments
@ori-amizur
Copy link
Contributor Author

/retest

@ori-amizur
Copy link
Contributor Author

/retest

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

openshift-ci bot commented Sep 28, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: filanov, ori-amizur

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

@ori-amizur
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 Sep 28, 2023
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 41a00a0 and 2 for PR HEAD 23f46f2 in total

@openshift-ci
Copy link

openshift-ci bot commented Sep 28, 2023

@ori-amizur: 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 efc20a5 into openshift:master Sep 28, 2023
16 checks passed
danielerez pushed a commit to danielerez/assisted-service that referenced this pull request Oct 15, 2023
Send the feature flag through the install command to indicate if the skip mco reboot feature is enabled.
The relevant logic is logic is done by the assisted installer.
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/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

6 participants