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.
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": "cd088007d3b84e7fa894478e6 fe667c4",
"domain": {
"name": "XXXXX"
}
}
}
}
}
# POST to the API
results = requests.post(get_token_ur l, json=body, verify=False)
token = results.headers['X-Subject -Token']
#Deletion
volume_id = [
'c3b803ee-f1ab-428d-bc55-0 1b380c36d4 9',
'065ba0b3-959a-4dc0-af23-1 7b8a109936 7',
'b282ea13-5e24-48fb-b7e2-8 4fce097362 1',
'aa87fc71-ae1b-47ee-82fc-b cd73a59538 d',
'a72cc934-473e-4cde-8eb0-7 43ca058e35 0'
]
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.
Tks
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.
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": "cd088007d3b84e7fa894478e6
"domain": {
"name": "XXXXX"
}
}
}
}
}
# POST to the API
results = requests.post(get_token_ur
token = results.headers['X-Subject
#Deletion
volume_id = [
'c3b803ee-f1ab-428d-bc55-0
'065ba0b3-959a-4dc0-af23-1
'b282ea13-5e24-48fb-b7e2-8
'aa87fc71-ae1b-47ee-82fc-b
'a72cc934-473e-4cde-8eb0-7
]
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
print(r.text)
error with cloud portal can't delete sys vol.
Tks
The red error box may give you a clue. Is the disk you are trying to delete in the proper state?
ASKER
How to check?
Look in your cloud console. On the right there appears to be some choices for you in the more... menu.
ASKER
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
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 sshBy 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 peopleNo, 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 TRIALMembers 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.