You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "kiranchavala (via GitHub)" <gi...@apache.org> on 2026/02/25 09:10:45 UTC

[I] Provide a global setting to set the default network offering for Differnet network types ( L2/Isolated/Shared) [cloudstack]

kiranchavala opened a new issue, #12705:
URL: https://github.com/apache/cloudstack/issues/12705

   ### The required feature described as a wish
   
   As a User/Admin/Operator 
   
   
   Currently, there is a global setting "cloud.kubernetes.cluster.network.offering"  which is set to "DefaultNetworkOfferingforKubernetesService".
   
   When a user executes the  api (createKubernetesCluster)  and doesn't provide a network, cloudstack uses the  global setting value to automatically create a network  based on the network offering
   
   https://cloudstack.apache.org/api/apidocs-4.22/apis/createKubernetesCluster.html
   
   
   Similarly, when a user executes the deployVirtualMachine api call , cloudstack uses the offerings mentioned in the sql query  to launch vm based on the network offering
   
   https://cloudstack.apache.org/api/apidocs-4.22/apis/deployVirtualMachine.html
   
   deploy virtualmachine serviceofferingid=<> templateid=<>  zoneid=<>
   
   ```
   mysql> SELECT id, name, display_text, `default`, for_vpc FROM cloud.network_offerings WHERE   availability = 'Required' AND system_only = 0;
   +----+----------------------------------------------------+----------------------------------------------------------------+---------+---------+
   | id | name                                               | display_text                                                   | default | for_vpc |
   +----+----------------------------------------------------+----------------------------------------------------------------+---------+---------+
   | 10 | DefaultIsolatedNetworkOfferingWithSourceNatService | Offering for Isolated networks with Source Nat service enabled |       1 |       0 |
   | 28 | DefaultNetworkOfferingforKubernetesService         | Network Offering used for CloudStack Kubernetes service        |       1 |       0 |
   | 29 | DefaultNSXNetworkOfferingforKubernetesService      | Network Offering for NSX CloudStack Kubernetes Service         |       1 |       0 |
   | 30 | DefaultNSXVPCNetworkOfferingforKubernetesService   | Network Offering for NSX CloudStack Kubernetes service on VPC  |       1 |       1 |
   +----+----------------------------------------------------+----------------------------------------------------------------+---------+---------+
   4 rows in set (0.01 sec)
   
   ```
   
   Now if a Admin user wants to  use differnet network offering as the default, he has to first mark all the offerings mentioned in the sql query as optional
   
   
   <img width="818" height="578" alt="Image" src="https://github.com/user-attachments/assets/5cd1c5de-273a-4329-a09d-b93d526699ed" />
   
   
   Next, he has to make sure the newly created network offering as Required 
   
   
   <img width="1344" height="673" alt="Image" src="https://github.com/user-attachments/assets/a4c981e5-bdb8-4e02-8fba-0c81c3170d9c" />
   
   
   ```
   mysql> SELECT id, name, display_text, `default`, for_vpc FROM cloud.network_offerings WHERE   availability = 'Required' AND system_only = 0;
   +----+------+--------------+---------+---------+
   | id | name | display_text | default | for_vpc |
   +----+------+--------------+---------+---------+
   | 31 | test | test         |       0 |       0 |
   +----+------+--------------+---------+---------+
   1 row in set (0.00 sec)
   
   ```
   
   
   
   It's a tedious process and i think  if CloudStack can have default global setting for  each network type it would be beneficial from admin and 
   
   users who doesn't want to provide the network id during  vm deployment  and let cloudstack handle the network creation part
   
   Default.isolated.network.offering
   Default.shared.network.offering
   Default.l2.network.offering
   Default.vpc.network.offering
   Default.shared.network.offering
   Default.nsx.network.offering
   Default.netris.network.offering
   
   Ref
   
   https://github.com/apache/cloudstack/issues/12116#issuecomment-3576829083
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Provide a global setting to set the default network offering for Differnet network types ( L2/Isolated/Shared) [cloudstack]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #12705:
URL: https://github.com/apache/cloudstack/issues/12705#issuecomment-4805828080

   This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org