Link to home
Start Free TrialLog in
Avatar of Lucky Tham
Lucky Tham

asked on

Unable to delete system volume in private cloud

hi,

why can't delete my system volumes with error. checked has no more VM, snaps, etc.

use postman to delete with error. ps check my postman.
User generated image
use python script to delete with error. ps check my python code

import requests

get_token_url = "https://iam-apigateway-proxy.domain.com/v3/auth/tokens"

body = {
    "auth": {
        "identity": {
            "methods": [
                "password"
            ],
            "password": {
                "user": {
                    "domain": {
                        "name": "XXXXX"
                    },
                    "name": "XXXXX",
                    "password": "XXXXX"
                }
            }
        },
        "scope": {
            "project": {
                "id": "cd088007d3b84e7fa894478e6fe667c4",
                "domain": {
                    "name": "XXXXX"
                }
            }
        }
    }
}

# POST to the API
results = requests.post(get_token_url, json=body, verify=False)


token = results.headers['X-Subject-Token']

#Deletion

volume_id = [
    'c3b803ee-f1ab-428d-bc55-01b380c36d49',
    '065ba0b3-959a-4dc0-af23-17b8a1099367',
    'b282ea13-5e24-48fb-b7e2-84fce0973621',
    'aa87fc71-ae1b-47ee-82fc-bcd73a59538d',
    'a72cc934-473e-4cde-8eb0-743ca058e350'

]

delete_url = "https://evs.domain.com/v2/cd088007d3b84e7fa894478e6fe667c4/volumes/"
headers = {
    'content-type': "application/json",
    'X-Auth-Token': token
}
for id in volume_id:
    r = requests.delete(delete_url + id, headers=headers, verify=False)
    print(r.text)


error with cloud portal can't delete sys vol.
 
User generated image


 Tks
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

The red error box may give you a clue. Is the disk you are trying to delete in the proper state?
Avatar of Lucky Tham
Lucky Tham

ASKER

How to check?
Look in your cloud console. On the right there appears to be some choices for you in the more... menu.
Is possible to SSH to the host to use openstack command line like curl to force remove it for fusion cloud 6.3 under the floating IP that I have for manageone cloud portal.

How to find the right mgmt host ip to ssh, root and password as the lower level design is not setup by me.

Is there a anyway to discover all ip, username, password and what each of this node function to map up a complete topology for my easy searching and don't need to aski peoples
You will have to check the documentation.
How to find the right mgmt host ip to ssh
By querying Cinder

Is there a anyway to discover all ip, username, password and what each of this node function to map up a complete topology for my easy searching and don't need to aski people
No, this is not configured in OpenStack. Everything between components are Keystone authentication (In Hauwei's case I think it is IAM)
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.