Skip to content

Conversation

@Pearl1594
Copy link
Contributor

@Pearl1594 Pearl1594 commented Apr 15, 2025

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
Copy link

codecov bot commented Apr 15, 2025

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           
Flag Coverage Δ
uitests 4.28% <ø> (+<0.01%) ⬆️
unittests 15.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

@kiranchavala
Copy link
Contributor

@blueorangutan ui

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member

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

@DaanHoogland
Copy link
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
Member

I think the SG field is shown only if

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

@weizhouapache
Copy link
Member

fyi

#10493 has a related change

@weizhouapache
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@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

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

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-13021)

@Pearl1594
Copy link
Contributor Author

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 vladimirpetrov April 25, 2025 08:52
@Pearl1594 Pearl1594 moved this to In Progress in ACS 4.20.1 Apr 29, 2025
@Pearl1594
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@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

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

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

@vladimirpetrov
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

Copy link
Contributor

@vladimirpetrov vladimirpetrov left a comment

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

[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:

Test Result Time (s) Test File
test_02_redundant_VPC_default_routes Failure 424.16 test_vpc_redundant.py

Copy link
Member

@rohityadavcloud rohityadavcloud left a comment

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.19 May 1, 2025
48 of 49 checks passed
@DaanHoogland DaanHoogland deleted the ui-updateVM-withsecgroup branch May 1, 2025 07:02
@github-project-automation github-project-automation bot moved this from In Progress to Done in ACS 4.20.1 May 1, 2025
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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