Skip to content
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

Is hierarchical path for datastore (pool) supported for vSphere?" #666

Open
nis-ste opened this issue Apr 16, 2024 · 1 comment
Open

Is hierarchical path for datastore (pool) supported for vSphere?" #666

nis-ste opened this issue Apr 16, 2024 · 1 comment

Comments

@nis-ste
Copy link

nis-ste commented Apr 16, 2024

For example, my datastore path on vSphere looks like this:

EXAMPLE_DC/Level1/Level2/Level3/dc1_openshift_datastore_1_ssd

which I define as a pool in the ~/.kcli/config.yml:

mysphere:
 ...
 ...
 pool: "EXAMPLE_DC/Level1/Level2/Level3/dc1_openshift_datastore_1_ssd"

If I list all host infos with the command:

kcli info host

all datastores are listed just by their names, without their hierarchical path.

if i try to use the hierarchical path to the datastore like metioned above, i get a KeyError exception from

https://github.com/karmab/kcli/blob/fbf766ca3f7e929131ba646bef501a0122e87e26/kvirt/providers/vsphere/init.py#L188

(Line 188): if datastores[pool] != self.dc.name:

If I get it right, arround line 1626 the datastore names are just added by their plain name not by a full path or uuid.

@karmab
Copy link
Owner

karmab commented Apr 28, 2024

what does kcli list pool print in your case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants