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

In a multi datacenter/multi cluster environment, the cluster and datacenter attributes are all the same in console and csv output #38

Open
jsasunci opened this issue Aug 30, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@jsasunci
Copy link

Using python3.4 in a multi datacenter/multi cluster environment, the cluster and datacenter attributes are all the same in console and csv output. For each VM in the output, the cluster is repeated regardless of the cluster the VM is actually on, same symptom from the datacenter attribute in the output. It appears that both attributes are the firs dc or cluster seen, respectively. I'm not sure how to work around.

@waldirio
Copy link
Owner

waldirio commented Sep 9, 2021

Hello @JAsuncion1969

Thanks for the heads up. Are you able to provide some screenshot that will help me to reproduce?

From there, I'll fix this behavior and push a new version.

Thank you again!

@jsasunci
Copy link
Author

Thanks @waldirio I appreciate you looking into this. I can't share the exact output I'm seeing but I'm attaching some example output. The columns for "cluster" and "datacenter" (B and C in the example, respectively) are the ones that come out wrong. I've removed the output that isn't an issue but left in the Host and VM clusters with some info.
For my example system I have three Datacenter environments, each with two clusters:

Datacenters Clusters
Atlanta Atlanta01, Atlanta02
Rio Rio01, Rio02
Miami Miami01, Miami02

vinfo_example.csv

The output Datacenter all appear as a single DC as well as the output Cluster. I cannot see any reason that a particular cluster or DC is listed but after multiple attempts, they always appear to be the same values. On multiple VCenter servers, this happens on all of them.

I have tried this on both Python 3.4 and 3.6 with the same results.
Looking in the vinfo.py file, I can see that the coding for datacenter and clustercomputeresource are coded a bit differently than the other output columns.
Looking in the VCenter API documentation both datacenter and clustercomputeresource are managed objects but I'm unsure how those need to be handled differently.

Thanks,
Jeb

@waldirio
Copy link
Owner

Hello @JAsuncion1969

Thanks, I can see the data and the issue you are facing.

I'll be checking this ASAP and I'll keep you in touch.

Thank you
Waldirio

@waldirio waldirio self-assigned this Sep 14, 2021
@waldirio waldirio added the bug Something isn't working label Sep 14, 2021
@waldirio
Copy link
Owner

Hello @JAsuncion1969

I believe you saw the other update, from now, you should be able to use the binary which means, it's not necessary anymore to create a virtual environment, once you have python 3.6.8+, just download, change the permission chmod +x rvtools and execute it.

I'll be working on this current issue, and I believe in the next version, the report will be correct for you.

Thanks for being using the rvtools_python and sorry for the long time to fix this up.
Waldirio

@waldirio
Copy link
Owner

Hello @jsasunci

The version installed via pip is already updated, similar to the binary version. I'm back on this project.

Please, let me know if you are still facing the issue.

Sorry for my long time to reply, and thank you for your help.
Waldirio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants