[UI] Zone wizard fails on adding datastore cluster as primary storage
ISSUE TYPE
- Bug Report
COMPONENT NAME
UI
CLOUDSTACK VERSION
4.17, 4.18, main
OS / ENVIRONMENT
Vmware env, Datastore cluster primary storage
SUMMARY
The Zone wizard fails at the primary storage adding step when creating a zone. As a workaround the primary storage can be added manually without any issues.
STEPS TO REPRODUCE
- Create zone in the UI
- Select a datastore cluster as primary storage
EXPECTED RESULTS
Zone added successfully
ACTUAL RESULTS
Zone creation fails at datastore cluster addition, with error:
2024-01-18 10:11:26,296 ERROR [c.c.h.v.r.VmwareResource] (DirectAgent-183:ctx-3eb3d0b3 hypervisor1.hyperv.dub, cmd: ListDataStoreObjectsCommand) (logid:d2ce3d0d) Failed to list files at path [] due to: [].
2024-01-18 10:11:26,298 ERROR [c.c.a.ApiServer] (qtp1970436060-12103:ctx-af97a8df ctx-b6f7cfd4) (logid:d2ce3d0d) unhandled exception executing api command: [Ljava.lang.String;@2a6f93d
com.cloud.utils.exception.CloudRuntimeException: Failed to list datastore objects
@harikrishna-patnala as our resident store cluster specialist ;) , can you have a look?
@nvazquez , can you check if this is still an issue?
I also found a bug in the Wizard for "Add Zone" (CloudStack 4.20)
After labeling the traffic types (see pictures) and clicking "Next",if you every have to click on "Previous" those labels will have disappeared.
It might look like a cosmetic issue but it ends up not sending those parameters (kvmnetworklabel=cloudbr1 and kvmnetworklabel=cloudbr0) in the GET HTTP Request (causing a lot of paint to troubleshoot why some times it works and some times it does not).
I validated the assumption by running multiple times with and without clicking on the "Previous" button in different pages ahead (does not need to go back to the "Physical Network" page.