-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Support ConfigDrive with VPC #10495
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
Support ConfigDrive with VPC #10495
Conversation
|
@blueorangutan package |
|
@vishesh92 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #10495 +/- ##
============================================
+ Coverage 15.98% 16.00% +0.01%
- Complexity 13086 13104 +18
============================================
Files 5650 5651 +1
Lines 495756 495843 +87
Branches 60018 60045 +27
============================================
+ Hits 79261 79370 +109
+ Misses 407641 407611 -30
- Partials 8854 8862 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12647 |
|
@blueorangutan test keepEnv |
|
@vishesh92 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-12556)
|
|
@blueorangutan package |
|
@vishesh92 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 12758 |
|
@blueorangutan test |
|
@vishesh92 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Pearl1594
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.
code lgtm
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.
Getting the following exception message after following these steps
- Create a vpc offering with the following supported services
- Create a vpc network offering with the following supported services
-
Create a vpc >> created successfully
-
Create vpc tier with network offering in step2 >> exception
Logs
2025-03-18 06:21:13,579 DEBUG [c.c.a.ApiServlet] (qtp1390913202-24:[ctx-96c1feff]) (logid:b7dcaa8a) ===START=== 10.0.3.251 -- GET vpcid=3e7bb50c-5293-4eb6-970c-63de57fdac0e&domainid=e2d0372e-03b9-11f0-8e52-1e008e000441&account=admin&networkOfferingId=443c4dc2-2a90-46cd-ae2b-e4e0f6ddca15&name=tier1&displayText=tier1&gateway=10.0.0.254&netmask=255.255.255.0&zoneId=750ce0c0-beef-4050-a3fd-e1dc96a8d435&aclid=fb40f16f-03b9-11f0-8e52-1e008e000441&command=createNetwork&response=json&sessionkey=XnqdGh2zpr_P2J7_9u80ECCcEDQ
2025-03-18 06:21:13,579 DEBUG [c.c.a.ApiServlet] (qtp1390913202-24:[ctx-96c1feff]) (logid:b7dcaa8a) Two factor authentication is already verified for the user 2, so skipping
2025-03-18 06:21:13,584 DEBUG [c.c.a.ApiServer] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) CIDRs from which account 'Account [{"accountName":"admin","id":2,"uuid":"29d75d84-03ba-11f0-8e52-1e008e000441"}]' is allowed to perform API calls: 0.0.0.0/0,::/0
2025-03-18 06:21:13,585 INFO [o.a.c.a.DynamicRoleBasedAPIAccessChecker] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) Account for user id 29d80648-03ba-11f0-8e52-1e008e000441 is Root Admin or Domain Admin, all APIs are allowed.
2025-03-18 06:21:13,585 DEBUG [o.a.c.a.StaticRoleBasedAPIAccessChecker] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) RoleService is enabled. We will use it instead of StaticRoleBasedAPIAccessChecker.
2025-03-18 06:21:13,585 DEBUG [o.a.c.r.ApiRateLimitServiceImpl] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) API rate limiting is disabled. We will not use ApiRateLimitService.
2025-03-18 06:21:13,614 DEBUG [c.c.u.AccountManagerImpl] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) Access granted to Account [{"accountName":"admin","id":2,"uuid":"29d75d84-03ba-11f0-8e52-1e008e000441"}] to Domain {"id":1,"name":"ROOT","path":"\/","uuid":"e2d0372e-03b9-11f0-8e52-1e008e000441"} by AffinityGroupAccessChecker
2025-03-18 06:21:13,622 DEBUG [c.c.u.AccountManagerImpl] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) Access granted to Account [{"accountName":"admin","id":2,"uuid":"29d75d84-03ba-11f0-8e52-1e008e000441"}] to NetworkOffering {"id":13,"name":"DefaultIsolatedNetworkOfferingForVpcNetworks","trafficType":"Guest","uuid":"443c4dc2-2a90-46cd-ae2b-e4e0f6ddca15"} by AffinityGroupAccessChecker
2025-03-18 06:21:13,636 WARN [c.c.n.NetworkServiceImpl] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) VPC public MTU already set at VPC creation phase to: 1500. Ignoring public MTU passed during VPC network tier creation
2025-03-18 06:21:13,651 DEBUG [c.c.n.v.VpcManagerImpl] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) Releasing lock for VPC {"id":1,"name":"vpc1","uuid":"3e7bb50c-5293-4eb6-970c-63de57fdac0e"}
2025-03-18 06:21:13,660 DEBUG [c.c.u.d.T.Transaction] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) Rolling back the transaction: Time = 19 Name = qtp1390913202-24; called by -TransactionLegacy.rollback:896-TransactionLegacy.removeUpTo:839-TransactionLegacy.close:663-Transaction.execute:36-NetworkServiceImpl.commitNetwork:2249-NetworkServiceImpl.createGuestNetwork:1800-NativeMethodAccessorImpl.invoke0:-2-NativeMethodAccessorImpl.invoke:77-DelegatingMethodAccessorImpl.invoke:43-Method.invoke:569-AopUtils.invokeJoinpointUsingReflection:344-ReflectiveMethodInvocation.invokeJoinpoint:198
2025-03-18 06:21:13,662 WARN [o.a.c.m.w.WebhookServiceImpl] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) Skipping delivering event Event {"description":"{\"event\":\"NETWORK.CREATE\",\"status\":\"Completed\"}","eventId":null,"eventType":"NETWORK.CREATE","eventUuid":null,"resourceType":"Network","resourceUUID":null} to any webhook as account ID is missing
2025-03-18 06:21:13,662 WARN [o.a.c.f.e.EventDistributorImpl] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) Failed to publish event [category: ActionEvent, type: NETWORK.CREATE] on bus webhookEventBus
2025-03-18 06:21:13,669 INFO [c.c.a.ApiServer] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) Service/provider combination Dhcp/VpcVirtualRouter is not supported by VPC VPC {"id":1,"name":"vpc1","uuid":"3e7bb50c-5293-4eb6-970c-63de57fdac0e"}
2025-03-18 06:21:13,670 INFO [c.c.a.ApiServlet] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) (userId=2 accountId=2 sessionId=node01lz1n22camp9tfx2lzvuaqmky3) 10.0.3.251 -- GET vpcid=3e7bb50c-5293-4eb6-970c-63de57fdac0e&domainid=e2d0372e-03b9-11f0-8e52-1e008e000441&account=admin&networkOfferingId=443c4dc2-2a90-46cd-ae2b-e4e0f6ddca15&name=tier1&displayText=tier1&gateway=10.0.0.254&netmask=255.255.255.0&zoneId=750ce0c0-beef-4050-a3fd-e1dc96a8d435&aclid=fb40f16f-03b9-11f0-8e52-1e008e000441&command=createNetwork&response=json&sessionkey=XnqdGh2zpr_P2J7_9u80ECCcEDQ 431 Service/provider combination Dhcp/VpcVirtualRouter is not supported by VPC VPC {"id":1,"name":"vpc1","uuid":"3e7bb50c-5293-4eb6-970c-63de57fdac0e"}
2025-03-18 06:21:13,670 DEBUG [c.c.a.ApiServlet] (qtp1390913202-24:[ctx-96c1feff, ctx-46b6c85e]) (logid:b7dcaa8a) ===END=== 10.0.3.251 -- GET vpcid=3e7bb50c-5293-4eb6-970c-63de57fdac0e&domainid=e2d0372e-03b9-11f0-8e52-1e008e000441&account=admin&networkOfferingId=443c4dc2-2a90-46cd-ae2b-e4e0f6ddca15&name=tier1&displayText=tier1&gateway=10.0.0.254&netmask=255.255.255.0&zoneId=750ce0c0-beef-4050-a3fd-e1dc96a8d435&aclid=fb40f16f-03b9-11f0-8e52-1e008e000441&command=createNetwork&response=json&sessionkey=XnqdGh2zpr_P2J7_9u80ECCcEDQ
|
[SF] Trillian test result (tid-12740)
|
shwstppr
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.
Code lgtm
|
@kiranchavala I am able to create the Network in the VPC. Please check if you selected the correct offering while creating the network. |
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.
LGTM
Tested the creation of vpc network offering with configdrive was able to launch the vm successfully



Description
This PR fixes #9706
Generated summary
This pull request includes changes to enhance the capabilities and provider configurations for DHCP and DNS services. The changes primarily involve updating the configuration in both the backend and frontend code.
Backend changes:
server/src/main/java/com/cloud/network/element/ConfigDriveNetworkElement.java: Updated thesetCapabilitiesmethod to include specific capabilities for DHCP and DNS services.Frontend changes:
ui/src/views/offering/AddVpcOffering.vue: AddedConfigDriveas a provider for both DHCP and DNS services in the VPC offering configuration.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?