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

Add support for Virtual disks introduced in Netbox 3.7 #364

Closed
smasharov opened this issue Jan 26, 2024 · 13 comments
Closed

Add support for Virtual disks introduced in Netbox 3.7 #364

smasharov opened this issue Jan 26, 2024 · 13 comments
Milestone

Comments

@smasharov
Copy link

New version of Netbox supports several virtual disks per VM

@bb-Ricardo
Copy link
Owner

Hi, yes I have seen this feature in the announcement. Would like to support this as well. But I'm using a helm chart for my test environment and currently stuck with 3.5.9 cause the author does not update it. Let's see If I get it to work

@bb-Ricardo
Copy link
Owner

great, now having 3.7.1 up and running.

Will look into supporting the new virtual disk components

@bb-Ricardo bb-Ricardo added this to the 1.6.0 milestone Jan 31, 2024
@bb-Ricardo
Copy link
Owner

Hi @smasharov, @patschi, @vacumet,

I just added the support to the latest development branch. Can you please check it out and see if it works for you?

Thank you

@patschi
Copy link

patschi commented Feb 3, 2024

Thank you so much, Ricardo!

It seems to work fine in my environment:

image
image

@smasharov
Copy link
Author

It works, but if the disk size is less than 1Gb it creates it with zero size.
Maybe it is worth to set them as the minimal 1Gb in such cases? I think the size should be rounded up all the times.

@bb-Ricardo
Copy link
Owner

Hi, great that it works, Valid point regarding the size. Will try to set it to 1 GB and also add the actual size to the description

@patschi
Copy link

patschi commented Feb 7, 2024

I just had two thoughts:

  1. I don't like the wording Independent_persistent, it looks a bit off. Maybe Independent-Persistent or so.
  2. It would be nice to have the assigned Storage Policy of the individual disk added to the description.

@bb-Ricardo
Copy link
Owner

Do you have an example of independent persistant?

@patschi
Copy link

patschi commented Feb 7, 2024

Here:
image

Just looks a bit off, IMHO.

@bb-Ricardo
Copy link
Owner

Ahh, thank you. This comes straight from the vCenter API. I could change it to look a bit nicer. Thanks for the hint.

@bb-Ricardo
Copy link
Owner

Hi,

just pushed another commit with the improved description.

I tried to find Storage Policy of the virtual disk but it seems you need an additional connection to the 'VMware Storage Policy Server' to query this information. I'm currently using vcsim for my test environment and this seems not supported.

@patschi
Copy link

patschi commented Feb 12, 2024

I see. Okay. I just saw the Virtual Disk object in netbox do also have tags support. It would be a general awesome feature if Storage Policies might be applied to disk objects with the name of the storage policy. That would be great to sort/filter. (e.g. any VMs running on vSAN using RAID-1, etc)

But that's probably opening another can of worms in terms of integration. I can test scripts or whatsoever on my vCenter, if that helps.

@bb-Ricardo
Copy link
Owner

Would be great if we could close this issue and open a separate one for the storage policy.

andreiKuznets0v pushed a commit to andreiKuznets0v/netbox-sync_try_vcloud that referenced this issue Oct 9, 2024
andreiKuznets0v pushed a commit to andreiKuznets0v/netbox-sync_try_vcloud that referenced this issue Oct 9, 2024
andreiKuznets0v pushed a commit to andreiKuznets0v/netbox-sync_try_vcloud that referenced this issue Oct 9, 2024
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

3 participants