Skip to content

UI: Allow editing a Running VM in an Advanced zone with security groups except for security group details - #10714

Merged
DaanHoogland merged 1 commit into
4.19from
ui-updateVM-withsecgroup
May 1, 2025
Merged

UI: Allow editing a Running VM in an Advanced zone with security groups except for security group details#10714
DaanHoogland merged 1 commit into
4.19from
ui-updateVM-withsecgroup

Conversation

@Pearl1594

@Pearl1594Pearl1594 commented Apr 15, 2025

Copy link
Copy Markdown
Contributor

Description

This PR allows users to update VM name, etc of a VM in running state deployed in an advanced zone with security groups.
The form isn't pre-populated with the existing SG of the VM as doing so causes the API to send the securitygroupids of what is already set on the VM to the backend and that leads to the editVM operation failing as it believes that the SG is being attempted to be modified.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@codecov

codecovBot commented Apr 15, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.17%. Comparing base (f13cf59) to head (b23aa20).
Report is 17 commits behind head on 4.19.

Additional details and impacted files
@@ Coverage Diff @@## 4.19 #10714 +/- ##
=========================================
Coverage 15.17% 15.17% - Complexity 11332 11335 +3 
=========================================
Files 5415 5415 Lines 474893 474892 -1 Branches 57920 57920 =========================================
+ Hits 72046 72055 +9 + Misses 394792 394782 -10 
Partials 8055 8055 
FlagCoverage Δ
uitests4.28% <ø> (+<0.01%)⬆️
unittests15.89% <ø> (+<0.01%)⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

@kiranchavala

Copy link
Copy Markdown
Member

@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@kiranchavala a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/10714 (QA-JID-597)

@weizhouapache

Copy link
Copy Markdown
Member

With this change, in advanced zone with Security groups, user cannot update the SGs either ?

@DaanHoogland

Copy link
Copy Markdown
Contributor

@Pearl1594 , can you explain how the check for isRunning is done? It seems now all editing of security groups ever is disabled.

@weizhouapache

Copy link
Copy Markdown
Member

I think the SG field is shown only if

  • security group is enabled in the zone, and
  • vm is Stopped

@weizhouapache

Copy link
Copy Markdown
Member

fyi

#10493 has a related change

@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13078

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-13021)

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

fyi

#10493 has a related change

@weizhouapache I do not think that it resolves the issue. But will check.

@DaanHoogland
DaanHoogland requested review from kiranchavala and removed request for vladimirpetrovApril 25, 2025 08:52
@Pearl1594Pearl1594 moved this to In Progress in ACS 4.20.1Apr 29, 2025
@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13213

@DaanHooglandDaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

clgtm

@vladimirpetrov

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@vladimirpetrov a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@vladimirpetrovvladimirpetrov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM based on manual testing.

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-13187)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 50744 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10714-t13187-kvm-ol8.zip
Smoke tests completed. 132 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_02_redundant_VPC_default_routesFailure424.16test_vpc_redundant.py

@yadvryadvr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM didn't test it

@DaanHoogland
DaanHoogland merged commit 0c4ed1e into 4.19May 1, 2025
@DaanHoogland
DaanHoogland deleted the ui-updateVM-withsecgroup branch May 1, 2025 07:02
@github-project-automationgithub-project-automationBot moved this from In Progress to Done in ACS 4.20.1May 1, 2025
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Unable to edit a running instance in Advanced zone with security groups

8 participants

@Pearl1594@kiranchavala@blueorangutan@weizhouapache@DaanHoogland@vladimirpetrov@yadvr@harikrishna-patnala