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-9682: fix default disk size requirement #3802

Conversation

osherdp
Copy link
Contributor

@osherdp osherdp commented May 12, 2022

Seems like since OCP 4.6, disk requirements were set on 100GB for all nodes:
https://docs.openshift.com/container-platform/4.6/installing/installing_bare_metal/installing-bare-metal.html#minimum-resource-requirements_installing-bare-metal

Since we don't support installation of OCP <= 4.5 in any environment, it makes sense to change it for all OCP minor releases.

This PR is not doing relevant changes for the operator (in the agentserviceconfig object), as it should follow BZ tickets instead of Jira ones.

I've tested local environments of minikube and podman, trying to create envs with different disk sizes. I'll also follow up checking integration env preflight-requirements endpoint.

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

Assignees

@gamli75 @eliorerz

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • Reviewers have been listed
  • 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 openshift-ci bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. 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 May 12, 2022
@codecov
Copy link

codecov bot commented May 12, 2022

Codecov Report

Merging #3802 (8763016) into master (ca34804) will increase coverage by 3.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3802      +/-   ##
==========================================
+ Coverage   66.29%   69.31%   +3.02%     
==========================================
  Files         174      174              
  Lines       24209    26778    +2569     
==========================================
+ Hits        16049    18561    +2512     
+ Misses       6671     6644      -27     
- Partials     1489     1573      +84     
Impacted Files Coverage Δ
internal/host/validator.go 76.34% <0.00%> (-0.20%) ⬇️
internal/host/hostcommands/install_cmd.go 80.69% <0.00%> (-0.19%) ⬇️
internal/host/common.go 76.78% <0.00%> (ø)
internal/host/statemachine.go 100.00% <0.00%> (ø)
internal/host/validation_id.go 90.90% <0.00%> (ø)
internal/host/pool_host_statemachine.go 100.00% <0.00%> (ø)
internal/host/refresh_status_preprocessor.go 95.34% <0.00%> (+0.11%) ⬆️
internal/cluster/cluster.go 68.53% <0.00%> (+0.24%) ⬆️
internal/cluster/validations/validations.go 44.56% <0.00%> (+0.74%) ⬆️
internal/host/transition.go 50.70% <0.00%> (+1.31%) ⬆️
... and 7 more

@osherdp osherdp force-pushed the fix/default-disk-size-requirement branch from 4c3f05d to c77e443 Compare May 12, 2022 10:10
@osherdp osherdp force-pushed the fix/default-disk-size-requirement branch from c77e443 to 8763016 Compare May 12, 2022 12:06
@openshift-ci openshift-ci bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 12, 2022
@openshift openshift deleted a comment from openshift-ci bot May 12, 2022
@osherdp
Copy link
Contributor Author

osherdp commented May 12, 2022

/retest

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

openshift-ci bot commented May 15, 2022

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@osherdp
Copy link
Contributor Author

osherdp commented May 15, 2022

/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 May 15, 2022
@openshift-ci
Copy link

openshift-ci bot commented May 15, 2022

@osherdp: 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 b9ec6db into openshift:master May 15, 2022
omertuc added a commit to omertuc/assisted-service that referenced this pull request Jun 17, 2022
This change b9ec6db (openshift#3802) was
incomplete. It didn't adjust the default hardware requirements set by
the AgentServiceConfig controller in the default configmap.

I made it so from now on code generation would make sure to keep them in
sync.

This caused us trouble when
openshift/assisted-test-infra#1693 was merged
because now the controller expects 120GB for the SNO control-plane node
but it only has 100GB., as can be seen in
(this)[https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-openshift-assisted-service-master-edge-e2e-metal-assisted-kube-api-late-binding-single-node-periodic/1537621678526304256]
job failure
omertuc added a commit to omertuc/assisted-service that referenced this pull request Jun 17, 2022
This change b9ec6db (openshift#3802) was
incomplete. It didn't adjust the default hardware requirements set by
the AgentServiceConfig controller in the default configmap.

I made it so from now on code generation would make sure to keep them in
sync.

This caused us trouble when
openshift/assisted-test-infra#1693 was merged
because now the controller expects 120GB for the SNO control-plane node
but it only has 100GB., as can be seen in
[this](https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-openshift-assisted-service-master-edge-e2e-metal-assisted-kube-api-late-binding-single-node-periodic/1537621678526304256)
job failure
openshift-ci bot pushed a commit that referenced this pull request Jun 17, 2022
This change b9ec6db (#3802) was
incomplete. It didn't adjust the default hardware requirements set by
the AgentServiceConfig controller in the default configmap.

I made it so from now on code generation would make sure to keep them in
sync.

This caused us trouble when
openshift/assisted-test-infra#1693 was merged
because now the controller expects 120GB for the SNO control-plane node
but it only has 100GB., as can be seen in
[this](https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-openshift-assisted-service-master-edge-e2e-metal-assisted-kube-api-late-binding-single-node-periodic/1537621678526304256)
job failure
osherdp pushed a commit to osherdp/assisted-service that referenced this pull request Jun 20, 2022
osherdp pushed a commit to osherdp/assisted-service that referenced this pull request Jun 20, 2022
This change b9ec6db (openshift#3802) was
incomplete. It didn't adjust the default hardware requirements set by
the AgentServiceConfig controller in the default configmap.

I made it so from now on code generation would make sure to keep them in
sync.

This caused us trouble when
openshift/assisted-test-infra#1693 was merged
because now the controller expects 120GB for the SNO control-plane node
but it only has 100GB., as can be seen in
[this](https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-openshift-assisted-service-master-edge-e2e-metal-assisted-kube-api-late-binding-single-node-periodic/1537621678526304256)
job failure
osherdp pushed a commit to osherdp/assisted-service that referenced this pull request Jun 20, 2022
Seems like since OCP 4.6, disk requirements were set on 100GB for all
nodes:
https://docs.openshift.com/container-platform/4.6/installing/installing_bare_metal/installing-bare-metal.html#minimum-resource-requirements_installing-bare-metal

Since we don't support installation of OCP <= 4.5 in any environment, it
makes sense to change it for all OCP minor releases.

This PR is not doing relevant changes for the operator (in the
agentserviceconfig object), as it should follow BZ tickets instead of
Jira ones.

I've tested local environments of minikube and podman, trying to create
envs with different disk sizes. I'll also follow up checking integration
env preflight-requirements endpoint.
osherdp pushed a commit to osherdp/assisted-service that referenced this pull request Jun 20, 2022
Seems like since OCP 4.6, disk requirements were set on 100GB for all
nodes:
https://docs.openshift.com/container-platform/4.6/installing/installing_bare_metal/installing-bare-metal.html#minimum-resource-requirements_installing-bare-metal

Since we don't support installation of OCP <= 4.5 in any environment, it
makes sense to change it for all OCP minor releases.

This PR is not doing relevant changes for the operator (in the
agentserviceconfig object), as it should follow BZ tickets instead of
Jira ones.

I've tested local environments of minikube and podman, trying to create
envs with different disk sizes. I'll also follow up checking integration
env preflight-requirements endpoint.
openshift-ci bot pushed a commit that referenced this pull request Jun 22, 2022
Seems like since OCP 4.6, disk requirements were set on 100GB for all
nodes:
https://docs.openshift.com/container-platform/4.6/installing/installing_bare_metal/installing-bare-metal.html#minimum-resource-requirements_installing-bare-metal

Since we don't support installation of OCP <= 4.5 in any environment, it
makes sense to change it for all OCP minor releases.

This PR is not doing relevant changes for the operator (in the
agentserviceconfig object), as it should follow BZ tickets instead of
Jira ones.

I've tested local environments of minikube and podman, trying to create
envs with different disk sizes. I'll also follow up checking integration
env preflight-requirements endpoint.
flaper87 pushed a commit to flaper87/assisted-service that referenced this pull request Sep 21, 2022
flaper87 pushed a commit to flaper87/assisted-service that referenced this pull request Sep 21, 2022
This change b9ec6db (openshift#3802) was
incomplete. It didn't adjust the default hardware requirements set by
the AgentServiceConfig controller in the default configmap.

I made it so from now on code generation would make sure to keep them in
sync.

This caused us trouble when
openshift/assisted-test-infra#1693 was merged
because now the controller expects 120GB for the SNO control-plane node
but it only has 100GB., as can be seen in
[this](https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-openshift-assisted-service-master-edge-e2e-metal-assisted-kube-api-late-binding-single-node-periodic/1537621678526304256)
job failure
danielerez pushed a commit to danielerez/assisted-service that referenced this pull request Oct 15, 2023
danielerez pushed a commit to danielerez/assisted-service that referenced this pull request Oct 15, 2023
This change b9ec6db (openshift#3802) was
incomplete. It didn't adjust the default hardware requirements set by
the AgentServiceConfig controller in the default configmap.

I made it so from now on code generation would make sure to keep them in
sync.

This caused us trouble when
openshift/assisted-test-infra#1693 was merged
because now the controller expects 120GB for the SNO control-plane node
but it only has 100GB., as can be seen in
[this](https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-openshift-assisted-service-master-edge-e2e-metal-assisted-kube-api-late-binding-single-node-periodic/1537621678526304256)
job failure
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. 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

3 participants