Skip to content

Unable to execute updateNetworkOffering api call when availability=Required is passed #7510

@kiranchavala

Description

@kiranchavala
ISSUE TYPE
  • Improvement/Enhancement request
COMPONENT NAME

Component: UI, API

CLOUDSTACK VERSION
4.18 


SUMMARY

Unable to execute updateNetworkOffering api call when availability=Required is passed

Steps to reproduce the issue

Case 1

  1. Log in as admin user

  2. Create some network offerings, make sure to select guest type as isolated and source nat in supported services

Let's say you have created a network offering 1

  1. Edit the network offering (network offering 1) and change the availability to true

Screenshot

Screenshot 2023-05-10 at 3 42 37 PM
  1. Exception

"System already has network offering id=10 (DefaultIsolatedNetworkOfferingWithSourceNatService) with availability Required"

Expected behavior

Ideally admin user should be allowed to set multiple network offerings with source nat as availability required

At any given point only 1 network offering can be set with availability as required

Case 2

  1. Login as admin user

  2. Create some network offerings, make sure to select guest type as isolated and do not select source nat in supported services

Let's say you have created network offering 2

  1. Edit the network offering (network offering 2) and change the availability to true

  2. Exception

"Availability can be Required only for networkOfferings of type Isolated and with SourceNat enabled"

Expected behavior

Ideally, other network offerings can also be set with availability required, there could be a use case for a normal user to access of network offerings which doesn't contain source nat as a supported service

Currently, available network offerings are

(DefaultIsolatedNetworkOfferingForVpcNetworksWithInternalLB)
(DefaultSharedNetscalerEIPandELBNetworkOffering)
(DefaultL2NetworkOfferingVlan)
(DefaultSharedNetworkOfferingWithSGService)
(DefaultSharedNetworkOffering)
(DefaultIsolatedNetworkOfferingForVpcNetworksNoLB)
(DefaultIsolatedNetworkOfferingForVpcNetworks)
(DefaultL2NetworkOffering)
(DefaultTungstenSharedNetworkOfferingWithSGService)
(DefaultL2NetworkOfferingConfigDriveVlan)
(DefaultIsolatedNetworkOffering)
(DefaultL2NetworkOfferingConfigDrive)
(DefaultNetworkOfferingforKubernetesService)
(DefaultIsolatedNetworkOfferingWithSourceNatService)
(QuickCloudNoServices)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions