-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add ownership selection to VPC form #10124
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
Add ownership selection to VPC form #10124
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #10124 +/- ##
============================================
- Coverage 16.03% 16.03% -0.01%
- Complexity 12814 12815 +1
============================================
Files 5637 5637
Lines 493507 493527 +20
Branches 59831 59837 +6
============================================
Hits 79131 79131
- Misses 405600 405620 +20
Partials 8776 8776
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@BryanMLima a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
There seems to be a problem when creating VPCs in this environment, the same happens when using this one #10052 (comment), which did not change anything regarding the VPC form. In my local lab with the 4.20 version, this does not happen, the UI env is using version 4.19.1.2, so it is worth investigating. |
|
@BryanMLima , yes that is right. I'll see about updating it but in the meanwhile, |
|
@blueorangutan package |
|
@kiranchavala 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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11848 |
kiranchavala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found this small minor issue during filtering of vpc based on account domain
- Create domain and subdomain
- Create vpc under admin , domain and subdomain
- Navigate to filter under vpc , select the account
- Cloudstack UI doesn't list the vpc's that belong to the account
- Exception is thrown
- select the domain , domain selection doesn't persist
The API call works fine
(localcloud) 🐱 > list vpcs listall=true account=acdm1 domainid=9298426a-82a2-40a6-9830-2569124dff0d filter=name
{
"count": 1,
"vpc": [
{
"name": "vpc1"
}
]
}
(localcloud) 🐱 > list vpcs listall=true account=subdomain1 domainid=10cf3a25-b0fc-4501-93e0-8ecc4d355544 filter=name
{
"count": 1,
"vpc": [
{
"name": "subdomainvpc"
}
]
}
Screen recording
https://www.loom.com/share/bcef796e0f894f10a2a3f4952db8d240?sid=b0eda87f-73cf-4db9-b7b3-aa16f9b143b4
@kiranchavala, nice catch, though, this seems related to the I also tested the filter in other resources views, such as VM and Guest networks, and the domain is never set. I will try to investigate further, but this fix should be on another PR, as it is not related to this PR's changes. |
Thanks @BryanMLima I will create a separate issue for this |
kiranchavala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 4.20: Add ownership selection to VPC form (#10124)





Description
This PR adds the
OwnershipSelectioncomponent to VPC networks forms, allowing users to specify the account or project that will own the VPC.Fixes: #10121
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
How Has This Been Tested?
In a local lab with the following domain structure:
ROOT
|- dom-A
|- dom-B
\ - subdom-B
With a Root Admin account, I was able to create a VPC for a user in the ROOT, dom-A, dom-B and subdom-B domains. I validated that the account/project owner of the VPC was the one specified in the form, and not the caller account.
How did you try to break this feature and the system with this change?
With ACS set to Brazilian Portuguese, the VPC was always created to the caller account. With the changes of PR #10052, this situation does not happen.