APIs SDKs and Xen-ng
-
@vahric-0 said in APIs SDKs and Xen-ng:
One thing, i can not delete created test network because of HA, is it normal ?
IDK. What error did you receive?
-
@Danp I was getting error like below but right now i can delete it ? How it could happen ?
network.delete { "network": "7d1cd2b9-15a3-6aa5-20bf-ac22e8ad362f" } { "code": "HA_IS_ENABLED", "params": [], "task": { "uuid": "f8c23f0a-7525-c5b7-07e3-923d431acccc", "name_label": "Async.VLAN.destroy", "name_description": "", "allowed_operations": [], "current_operations": {}, "created": "20240521T08:40:24Z", "finished": "20240521T08:40:24Z", "status": "failure", "resident_on": "OpaqueRef:c790d455-3678-4ae0-a02f-40a16bb0f394", "progress": 1, "type": "<none/>", "result": "", "error_info": [ "HA_IS_ENABLED" ], "other_config": {}, "subtask_of": "OpaqueRef:NULL", "subtasks": [], "backtrace": "(((process xapi)(filename ocaml/xapi/rbac.ml)(line 205))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 95)))" }, "message": "HA_IS_ENABLED()", "name": "XapiError", "stack": "XapiError: HA_IS_ENABLED() at Function.wrap (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/_XapiError.mjs:16:12) at default (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/_getTaskResult.mjs:11:29) at Xapi._addRecordToCache (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1029:24) at file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1063:14 at Array.forEach (<anonymous>) at Xapi._processEvents (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1053:12) at Xapi._watchEvents (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1226:14)" }
-
@vahric-0 You're saying that it worked in one instance but failed in a prior attempt? Did something change in the environment in between the attempts? Was the vlan in use by any VMs?
-
@Danp No, vlans was created only for test no any vm is attached
XO should not say to me this is used , you can not delete it ?
why its generating HA_IS_ENABLED message ? -
@vahric-0 Sorry, but I'm not sure that I understand your setup. Perhaps it would help if you restated the issue making sure to address the following items --
- Is HA enabled on your pool?
- Are you able to delete the VLAN using XOA web interface?
- Are you able to delete the VLAN using XOA API?
- etc
-
HA is enabled for the pool
After first creation network via api , i can not deleye it from gui
i did not tried delete vlan via apiI will try to reproduce
-
yeap , i did it again
-
-
@vahric-0 It is recommended to disable HA whenever you are performing maintenance (adjusting networking, applying updates, etc) on your pool.
-
@Danp if this is the rule , what i can say.
I will try one thing more because to create xostore step by step I shutdown servers and add disks after that i could delete the network -
@vahric-0 I didn't understand what you were trying to say above. Are you unable to temporarily disable HA to perform maintenance?
-
@Danp No of course i can disable it , okay i will not struggle with it
After disable HA , i could delete it , thanks