Title: Unable to delete shared network (specifyVlan=false and no services) · Issue #10261 · apache/cloudstack · GitHub
Open Graph Title: Unable to delete shared network (specifyVlan=false and no services) · Issue #10261 · apache/cloudstack
X Title: Unable to delete shared network (specifyVlan=false and no services) · Issue #10261 · apache/cloudstack
Description: Unable to delete shared network (with specifyVlan=false and no services) ISSUE TYPE Bug Report COMPONENT NAME Networks CLOUDSTACK VERSION 4.19.1 CONFIGURATION OS / ENVIRONMENT Agnostic of OS STEPS TO REPRODUCE Create a VM, say testvm. Cr...
Open Graph Description: Unable to delete shared network (with specifyVlan=false and no services) ISSUE TYPE Bug Report COMPONENT NAME Networks CLOUDSTACK VERSION 4.19.1 CONFIGURATION OS / ENVIRONMENT Agnostic of OS STEPS ...
X Description: Unable to delete shared network (with specifyVlan=false and no services) ISSUE TYPE Bug Report COMPONENT NAME Networks CLOUDSTACK VERSION 4.19.1 CONFIGURATION OS / ENVIRONMENT Agnostic of OS STEPS ...
Opengraph URL: https://github.com/apache/cloudstack/issues/10261
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to delete shared network (specifyVlan=false and no services)","articleBody":"\u003c!--\nVerify first that your issue/request is not already reported on GitHub.\nAlso test if the latest release and main branch are affected too.\nAlways add information AFTER of these HTML comments, but no need to delete the comments.\n--\u003e\n\n\nUnable to delete shared network (with specifyVlan=false and no services)\n\n##### ISSUE TYPE\n\u003c!-- Pick one below and delete the rest --\u003e\n * Bug Report\n\n##### COMPONENT NAME\n\u003c!--\nCategorize the issue, e.g. API, VR, VPN, UI, etc.\n--\u003e\n~~~\nNetworks\n~~~\n\n##### CLOUDSTACK VERSION\n\u003c!--\nNew line separated list of affected versions, commit ID for issues on main branch.\n--\u003e\n\n~~~\n4.19.1\n~~~\n\n##### CONFIGURATION\n\u003c!--\nInformation about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise\n--\u003e\n\n\n##### OS / ENVIRONMENT\n\u003c!--\nInformation about the environment if relevant, N/A otherwise\n--\u003e\nAgnostic of OS\n\n\n##### STEPS TO REPRODUCE\n\u003c!--\nFor bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.\n\nFor new features, show how the feature would be used.\n--\u003e\n\n1. Create a VM, say testvm.\n2. Create a network offering for Shared network with specifyVlan = false and no services ; enable the network offering.\n3. Create a shared network using this offering and provide only IPv4 gateway and netmask (no IP range provided).\nEx: `create network acltype=domain name=test-shared-network displaytext=test-shared-network networkofferingid=3dc6968e-6503-4fa3-8a38-09da72d7a846 gateway=1.1.1.1 netmask=255.255.255.0 physicalnetworkid=7691b1b8-2438-4843-9802-cb7f458d7757 zoneid=5b53d47b-d56a-4e6d-927c-3b61a58edf9f`\n4. Stop the VM testvm and attach network created (addNicToVirtualMachine) in step3, to the VM.\n5. Start the VM - this will fail.\n6. Remove the network (removeNicFromVirtualMachine) in step3, from the VM. Now, start the VM.\n7. Delete the network created in step 3 - It fails with below exception. \n\n```\n2025-01-24 05:00:13,653 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-37:ctx-c898771c job-126) (logid:65c35a14) Unexpected exception while executing org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd\njava.lang.NullPointerException\n at com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:178)\n at com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:232)\n at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.deleteVlansInNetwork(NetworkOrchestrator.java:3452)\n at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator$13.doInTransaction(NetworkOrchestrator.java:3352)\n at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator$13.doInTransaction(NetworkOrchestrator.java:3344)\n at com.cloud.utils.db.Transaction$2.doInTransaction(Transaction.java:50)\n at com.cloud.utils.db.Transaction.execute(Transaction.java:40)\n at com.cloud.utils.db.Transaction.execute(Transaction.java:47)\n at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.destroyNetwork(NetworkOrchestrator.java:3344)\n at com.cloud.network.NetworkServiceImpl.deleteNetwork(NetworkServiceImpl.java:2695)\n at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n at java.base/java.lang.reflect.Method.invoke(Method.java:566)\n at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)\n at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)\n at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:107)\n at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)\n at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)\n at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)\n at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)\n at com.sun.proxy.$Proxy168.deleteNetwork(Unknown Source)\n at org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd.execute(DeleteNetworkCmd.java:72)\n at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:172)\n at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:112)\n at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:654)\n\n```\n\n8. Also, List VM (listVirtualMachines) with networkid (of network in Step 3) list the VM testvm, but doesn't show the nic \n\n\u003c!-- You can also paste gist.github.com links for larger files --\u003e\n\n\u003c!-- Paste example playbooks or commands between quotes below --\u003e\n\n\u003c!-- You can also paste gist.github.com links for larger files --\u003e\n\n##### EXPECTED RESULTS\n\u003c!-- What did you expect to happen when running the steps above? --\u003e\n\n~~~\nList VM with the network shouldn't show the VM when not attached to the network, and Network has to be deleted without any issues.\n~~~\n\n##### ACTUAL RESULTS\n\u003c!-- What actually happened? --\u003e\n\n\u003c!-- Paste verbatim command output between quotes below --\u003e\n~~~\nList VM with the network shows the VM when it is not attached to the network, and delete network fails with an NPE.\n~~~\n","author":{"url":"https://github.com/sureshanaparti","@type":"Person","name":"sureshanaparti"},"datePublished":"2025-01-24T05:46:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/10261/cloudstack/issues/10261"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:75f1d108-23d6-daa1-8566-b4828b6556c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8B0:C8AE2:3F9B1F:5AA517:6A4E6D86 |
| html-safe-nonce | 30cc87b8ff6201883f604472dbd7a186ccd013b07c1f090ddce60a19e7ddaa65 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEIwOkM4QUUyOjNGOUIxRjo1QUE1MTc6NkE0RTZEODYiLCJ2aXNpdG9yX2lkIjoiNDAxMzQ3NjE3NjI5MDgwMzA3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 42cbbe6597f0ee9e187311f9ea93b25b29ee7d8c376acf1badb4ea5c30566f45 |
| hovercard-subject-tag | issue:2808558991 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/10261/issue_layout |
| twitter:image | https://opengraph.githubassets.com/713d0f511b305d4513a017923379482f9c73542ddcbff376819dce4d981bcbd5/apache/cloudstack/issues/10261 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/713d0f511b305d4513a017923379482f9c73542ddcbff376819dce4d981bcbd5/apache/cloudstack/issues/10261 |
| og:image:alt | Unable to delete shared network (with specifyVlan=false and no services) ISSUE TYPE Bug Report COMPONENT NAME Networks CLOUDSTACK VERSION 4.19.1 CONFIGURATION OS / ENVIRONMENT Agnostic of OS STEPS ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sureshanaparti |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width