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

[BUG] User can update Resource Quotas to hit the limits, then migration will fail silently #3974

Closed
lanfon72 opened this issue May 25, 2023 · 3 comments
Assignees
Labels
area/admission-mutating-webhook Admission and Mutating webhooks area/dashboard Harvester/Rancher dashboard area/ui kind/bug Issues that are defects reported by users or that we know have reached a real release need-reprioritize reproduce/always Reproducible 100% of the time require/doc Improvements or additions to documentation severity/3 Function working but has a major issue w/ workaround
Milestone

Comments

@lanfon72
Copy link
Member

lanfon72 commented May 25, 2023

Describe the bug

vokoscreenNG-2023-05-25_20-09-35.mp4

To Reproduce

Steps to reproduce the behavior:

  1. Install Harvester with at least 2 nodes
  2. Import Harvester into Rancher
  3. Access Harvester via Rancher's Virtualization Management
  4. Navigate to Advanced/Settings, update overcommit-config to cpu:100, memory:100
  5. Navigate to Projects/Namespaces, Create Project proj-a with Resource Quotas
    • CPU Limit: 5000 mCPUs/Project Limit, 3000 mCPUs/Namespace Default Limit
    • Memory Limit: 5000 MiB/Project Limit, 4000 MiB/Namespace Default Limit
  6. Create Namespace ns-1 under Project proj-a
  7. Create a image for VM creation
  8. Create 2 VMs belong to namespace ns-1
    • Named vm1 with CPU: 1C, Memory 1GiB
    • Named vm2 with CPU: 1C, Memory 2GiB
  9. Update Namespace ns-1 to set Memory Limit to 3500
  10. Migrate vm1 to another node

Expected behavior

We might need to check current used quotas when user going to reduce it.

Environment:

  • Harvester ISO version: v1.2.0-rc1
  • ui-source Option: Auto
  • Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): Baremetal DL360 3 nodes
  • Rancher Version:
    • v2.6-a4b924d21cd5d90b28ab8009edc18d96542952ac-head, Docker Image: a1d1e43988d2
    • v2.7-fbca7c34e5aeae36b85d8b0e9af12a2f6f13e0ea-head, Docker Image: 73f3b3456e62

Additional context

Discovered when testing #3124

@lanfon72 lanfon72 added kind/bug Issues that are defects reported by users or that we know have reached a real release area/ui area/admission-mutating-webhook Admission and Mutating webhooks severity/3 Function working but has a major issue w/ workaround area/dashboard Harvester/Rancher dashboard need-reprioritize reproduce/always Reproducible 100% of the time labels May 25, 2023
@chrisho chrisho self-assigned this May 29, 2023
@harvesterhci-io-github-bot
Copy link

harvesterhci-io-github-bot commented May 29, 2023

Pre Ready-For-Testing Checklist

  • If labeled: require/HEP Has the Harvester Enhancement Proposal PR submitted?
    The HEP PR is at:

  • Where is the reproduce steps/test steps documented?
    The reproduce steps/test steps are at: [BUG] User can update Resource Quotas to hit the limits, then migration will fail silently #3974

  • Is there a workaround for the issue? If so, where is it documented?
    The workaround is at:

  • Have the backend code been merged (harvester, harvester-installer, etc) (including backport-needed/*)?
    The PR is at: ResourceQuota add insufficient resource annotation and fixed vm when in starting #3966

    • Does the PR include the explanation for the fix or the feature?

    • Does the PR include deployment change (YAML/Chart)? If so, where are the PRs for both YAML file and Chart?
      The PR for the YAML change is at:
      The PR for the chart change is at:

  • If labeled: area/ui Has the UI issue filed or ready to be merged?
    The UI issue/PR is at:

  • If labeled: require/doc, require/knowledge-base Has the necessary document PR submitted or merged?
    The documentation/KB PR is at:

  • If NOT labeled: not-require/test-plan Has the e2e test plan been merged? Have QAs agreed on the automation test case? If only test case skeleton w/o implementation, have you created an implementation issue?

    • The automation skeleton PR is at:
    • The automation test case PR is at:
  • If the fix introduces the code for backward compatibility Has a separate issue been filed with the label release/obsolete-compatibility?
    The compatibility issue is filed at:

@harvesterhci-io-github-bot

Automation e2e test issue: harvester/tests#832

@lanfon72
Copy link
Member Author

Verified this bug has been fixed.
image

Test Information

  • Environment: qemu/KVM 2 nodes
  • Harvester Version: v1.2.0-rc2
  • ui-source Option: Auto
  • Rancher Version: v2.7-9a33c24de30c81f2ecd900d923d16d7fb2020929-head (Docker Image: sha256:3c0baa609934e8b1c90fde38d9f96526ac0dc52c00702d130480ac5792922e15)

Verify Steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/admission-mutating-webhook Admission and Mutating webhooks area/dashboard Harvester/Rancher dashboard area/ui kind/bug Issues that are defects reported by users or that we know have reached a real release need-reprioritize reproduce/always Reproducible 100% of the time require/doc Improvements or additions to documentation severity/3 Function working but has a major issue w/ workaround
Projects
None yet
Development

No branches or pull requests

4 participants