-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cluster member evacuation via web UI fails, but works via CLI #989
Comments
Yep, the API call from the UI is wrong. |
Sure, will do that right away! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Required information
incus info
Issue description
Evacuating a cluster member via the web UI shows an error message, although it works via the CLI.
Steps to reproduce
Evacuating via the web UI fails. It shows this error (see screenshot):
However, using the CLI works:
incus cluster evacuate incus-pri
(No problem. The cluster is evacuated.)
When using the web UI, after clicking the Evacuate button, the HTTP request and response are as follows:
HTTP request:
POST https://incus-pri:8443/1.0/cluster/members/incus-pri/state
Request body:
{"action":"evacuate","mode":"start"}
HTTP response:
HTTP/2 400 Bad Request
Response body:
{"type":"error","status":"","status_code":0,"operation":"","error_code":400,"error":"Invalid value \"start\" (not one of [auto migrate live-migrate stop stateful-stop force-stop])","metadata":null}
Information to attach
Hopefully the provided information is sufficient. It appears to be a relatively simple and innocent issue.
Screenshot with the web UI error:
![Screenshot 2024-07-12 at 14-05-13 incus-pri Incus UI](https://private-user-images.githubusercontent.com/16524/348406937-26e29f64-3142-424a-9ab3-e22ad0fcb388.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMjc5MzEsIm5iZiI6MTcyMTIyNzYzMSwicGF0aCI6Ii8xNjUyNC8zNDg0MDY5MzctMjZlMjlmNjQtMzE0Mi00MjRhLTlhYjMtZTIyYWQwZmNiMzg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDE0NDcxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFhMjA2M2FjY2M1NzI3Y2M4YWJiYmE4M2QxNTRjZGUxOGNkNDQ3M2ZkMTk0MWU2OTYwODljNmJjNGM2ZWQzMWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OkQvANh2eqMTL1vvyc6TM7ln4s_xB92yqW2Emk0rylo)
The text was updated successfully, but these errors were encountered: