Skip to content

Make domainid optional in assignVirtualMachine - #13213

Merged
DaanHoogland merged 1 commit into
apache:4.20from
scclouds:adjust-assignvmcmd-parameters
Sep 7, 2026
Merged

Make domainid optional in assignVirtualMachine#13213
DaanHoogland merged 1 commit into
apache:4.20from
scclouds:adjust-assignvmcmd-parameters

Conversation

@winterhazel

Copy link
Copy Markdown
Member

Description

assignVirtualMachine demands providing a domainid, even though there are situations in which it is not required, such as when moving an instance to a project using projectid. This patch removes this restriction.

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

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

How Has This Been Tested?

  • I verified that it was possible to assign resources via the UI for both accounts and projects
  • I verified that it was possible to assign resources via the API by providing only the projectid and virtualmachineid parameters
  • I verified that it was possible to assign resources via the API by providing only the account, domainid, and virtualmachineid parameters
  • I verified that when both projectid and domainid are provided, domainid is ignored and the VM is moved to the project

@winterhazel

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@winterhazel 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 17973

@winterhazel

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@winterhazel 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 17974

@DaanHoogland

Copy link
Copy Markdown
Contributor
03:57:02 ERROR: We couldn't grab the PR author. Something went wrong querying the GitHub API.

@winterhazel , I think we are hitting one of our limits here. I’ll try some more in the backend.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 17984

@JoaoJandre JoaoJandre 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

@blueorangutan

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@weizhouapache weizhouapache 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.

code lgtm

@weizhouapache

Copy link
Copy Markdown
Member

@winterhazel
can you explore if the use case can be covered by smoke test test_assign_vm.py ?

@blueorangutan

blueorangutan commented Jun 19, 2026

Copy link
Copy Markdown

[SF] Trillian test result (tid-16360)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 51824 seconds
Marvin logs: [archive removed]
Smoke tests completed. 141 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@DaanHoogland DaanHoogland added this to the 4.20.4 milestone Jun 19, 2026
@winterhazel

Copy link
Copy Markdown
Member Author

@winterhazel can you explore if the use case can be covered by smoke test test_assign_vm.py ?

@weizhouapache it is not, this test does not check assignment to projects currently.

@DaanHoogland DaanHoogland moved this from Backlog to Ready in CloudStack Testing Aug 31, 2026
@sudo87 sudo87 self-assigned this Sep 7, 2026

@sudo87 sudo87 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, tested it as well

@sudo87 sudo87 moved this from Ready to In review in CloudStack Testing Sep 7, 2026
@DaanHoogland
DaanHoogland merged commit 3a79799 into apache:4.20 Sep 7, 2026
@github-project-automation github-project-automation Bot moved this from In review to Done in CloudStack Testing Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

6 participants