apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2k stars 1.09k forks source link

Support ConfigDrive option in VPC network offerings #9706

Open kiranchavala opened 2 weeks ago

kiranchavala commented 2 weeks ago

ISSUE TYPE

Enhancement/Improvement request

COMPONENT NAME

Component: VPC

CLOUDSTACK VERSION

Cloudstack version 4.19.1.1

SUMMARY

Support ConfigDrive option in VPC network offerings

Currently, Cloudstack supports config drive option for Network offering for (L2, Isolated networks, shared networks).

Steps to reproduce the issue

  1. Navigate to Service Offerings > VPC offerings > Create vpc offering with following supported services

UserData : ConfigDrive Dns : VpcVirtualRouter Dhcp : VpcVirtualRouter

There is no configdrive option for DHCP and DNS (Supported service).

The config drive option is present only for Userdata (Supported service)

Screenshot 2024-09-19 at 10 39 22 AM

Screenshot 2024-09-19 at 10 47 27 AM

  1. Navigate to Service Offering > Network offering > Create Network offering > Select VPC >

UserData : ConfigDrive Dns : ConfigDrive Dhcp : ConfigDrive

  1. Navigate to Networks > VPC networks > Create a vpc network based on the offering mentioned in step 1

  2. Navigate to Network > VPC networks > Create a vpc tier based on the offering mentioned in step 2

  3. Exception

Service/provider combination Dhcp/ConfigDrive is not supported by VPC [VPC

Screenshot 2024-09-18 at 11 28 37 AM

Also, we cannot create a network offering with the following supported service configuration

UserData : ConfigDrive Dns : VpcVirtualRouter Dhcp : VpcVirtualRouter

Exception message

Cannot enable subset of Services, Please specify the complete list of Services: UserData, Dns, Dhcp for Service Provider ConfigDrive

Expected behaviour

Since Cloudstack supports ConfigDrive for other network offerings , it should support for Vpc network offerings

This will be helpful for end users who don't want to use Cloudinit option for deploying vm's in vpc network tier

Ref:

https://github.com/apache/cloudstack/pull/9329

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Using+ConfigDrive+for+Metadata%2C+Userdata+and+Password#:~:text=CLOUDSTACK%2D9813%20%2D%20(),%2Dkeys)%20and%20password%20files

https://docs.redhat.com/en/documentation/red_hat_openstack_platform/15/html/instances_and_images_guide/ch-configdrive#ch-configdrive

weizhouapache commented 2 weeks ago

is it a UI bug of vpc offering creation dialog ? @vishesh92

vishesh92 commented 2 weeks ago

is it a UI bug of vpc offering creation dialog ? @vishesh92

To support configdrive for VPC, changes are required in both frontend and backend.