cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

[UI] Zone wizard fails on adding datastore cluster as primary storage

Open nvazquez opened this issue 1 year ago • 1 comments

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

nvazquez avatar Jan 25 '24 14:01 nvazquez

@harikrishna-patnala as our resident store cluster specialist ;) , can you have a look?

DaanHoogland avatar Jan 26 '24 10:01 DaanHoogland

@nvazquez , can you check if this is still an issue?

DaanHoogland avatar Mar 05 '25 16:03 DaanHoogland

I also found a bug in the Wizard for "Add Zone" (CloudStack 4.20)

Image

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.

davift avatar Mar 12 '25 17:03 davift