Skip to content

Unable to clone a network offering #13610

Description

@kiranchavala

problem

Unable to clone network offering if the supported service contains firewall

versions

ACS : 4.23 nightly build

The steps to reproduce the bug

  1. Create a network offering > select all the supported services

  2. Clone the network offering > the feature was introduced with the pr

#12357

Image

logs

2026-07-14 08:39:59,950 INFO  [c.c.c.ConfigurationManagerImpl] (qtp1151704483-24:[ctx-60699f5a, ctx-500ccd9b]) (logid:d1c37d1a) Cloning network offering test-kiran (id: 33) to new offering with name: test-kiran - Clone
2026-07-14 08:39:59,959 ERROR [c.c.a.ApiServer] (qtp1151704483-24:[ctx-60699f5a, ctx-500ccd9b]) (logid:d1c37d1a) unhandled exception executing api command: [Ljava.lang.String;@17ed2b38 java.lang.ClassCastException: class java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader 'bootstrap')
	at org.apache.cloudstack.api.command.admin.network.NetworkOfferingBaseCmd.getDetails(NetworkOfferingBaseCmd.java:438)
	at com.cloud.configuration.ConfigurationManagerImpl.createNetworkOffering(ConfigurationManagerImpl.java:7137)
	at com.cloud.configuration.ConfigurationManagerImpl.cloneNetworkOffering(ConfigurationManagerImpl.java:8389)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:109)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
	at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)

...

What to do about it?

Should be able to clone the network offerings

Metadata

Metadata

Assignees

Labels

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions