tetra12 opened a new issue #5313:
URL: https://github.com/apache/cloudstack/issues/5313


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Storage, zone
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main 
branch.
   -->
   
   ~~~
   4.16.0-Snapshot
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   Basic Zone
   KVM
   LocalStorage for Guest/SystemVMs were enabled Globally and during Basic Zone 
setup
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   Ubuntu 20.04.2
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   Created a Basic Zone. Then decided to completely remove it, but that won't 
work due to: 
   ```
   (localcloud) 🐱 > list zones
   {
     "count": 1,
     "zone": [
       {
         "allocationstate": "Enabled",
         "dhcpprovider": "VirtualRouter",
         "dns1": "8.8.8.8",
         "id": "83bc4dda-449b-483c-8b42-2c652c1b92d6",
         "internaldns1": "193.x.x.x",
         "localstorageenabled": true,
         "name": "zone0",
         "networktype": "Basic",
         "resourcedetails": {
           "system.vm.use.local.storage": "true"
         },
         "securitygroupsenabled": true,
         "tags": [],
         "zonetoken": "4aea8564-8f4c-33d5-ab75-e39034e428b8"
       }
     ]
   }
   (localcloud) 🐱 > delete zone id=83bc4dda-449b-483c-8b42-2c652c1b92d6 
   🙈 Error: (HTTP 530, error code 4250) The zone cannot be deleted because 
there are storage volumes in this zone.
   
   ```
   I'd expect to be able to remove an empty zone, since all other primitives 
were removed too
   
![zone](https://user-images.githubusercontent.com/45828526/129382693-73b60650-2e34-46cf-95eb-3db3b7ecb18c.png)
   
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   An empty Zone was removed
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   An empty Zone can't be removed
   ~~~
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to