You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue/Feature Description:
Create Host using osdsctl with wrong parameter value. This throws error releated to JSON format. Now this error is not very intuitive for user to understand Why this issue to fixed / feature is needed(give scenarios or use cases):
For better error response. How to reproduce, in case of a bug:
Using CLI try to create Host
--osType Linux
ERROR: Request body has an error: doesn't match the schema: Error at "/osType":JSON value is not one of the allowed values
root@aks-VirtualBox:~/gopath/src/github.com/sodafoundation/installer/ansible# osdsctl host create ash-host1 --ip 127.0.0.1 --availabilityZones default --accessMode RW --osType linux
ERROR: Request body has an error: doesn't match the schema: Error at "/accessMode":JSON value is not one of the allowed values
root@aks-VirtualBox:~/gopath/src/github.com/sodafoundation/installer/ansible# osdsctl host create ash-host1 --ip 127.0.0.1 --availabilityZones default --accessMode rw --osType linux
ERROR: Request body has an error: doesn't match the schema: Error at "/accessMode":JSON value is not one of the allowed values
Other Notes / Environment Information: (Please give the env information, log link or any useful information for this issue)
Correct format is:
Issue/Feature Description:
Create Host using osdsctl with wrong parameter value. This throws error releated to JSON format. Now this error is not very intuitive for user to understand
Why this issue to fixed / feature is needed(give scenarios or use cases):
For better error response.
How to reproduce, in case of a bug:
Using CLI try to create Host
Other Notes / Environment Information: (Please give the env information, log link or any useful information for this issue)
Correct format is:
The text was updated successfully, but these errors were encountered: