Comments (5)
@erSitzt this is a proper concern. There is no easy way to find a VM and the only way seems to be to iterate through all VMs and then get the right guest OS name.
How are you creating VMs with different VMs? Do you use CAPVCD or CSE? Could you explain your cluster creation process.
from cloud-director-named-disk-csi-driver.
maybe @Vivida1 can elaborate...
But at last in my environment i can get the vms UUID in the guest with something like dmidecode
ubuntu@rke2-zentrale-infra-agent-1:~$ sudo dmidecode | grep VMware
Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform
Serial Number: VMware-42 21 de 28 b7 d6 76 25-ea ad 43 3c 7c e4 45 ec
Description: VMware SVGA II
And in vsphere ( using powerCLI to test it )
get-vm rke2-zentrale-infra-agent-1 |
Select Name,
@{N='UUID';E={$_.ExtensionData.Config.Uuid}}
Name UUID
---- ----
rke2-zentrale-infra-agent-1 4221de28-b7d6-7625-eaad-433c7ce445ec
Not sure if that works everywhere, but looks to be a better match than hoping for identical names.
P.S. had to edit.. dmidecode UUID does not match completely, but VMware Serial Number does.
from cloud-director-named-disk-csi-driver.
And even if this is very old...
This looks like the UUID / VMware Serial Number is used when provisioning VMs. I did not check if its still the same logic, but if it is... This is the way :)
from cloud-director-named-disk-csi-driver.
How are you creating VMs with different VMs? Do you use CAPVCD or CSE? Could you explain your cluster creation process.
Combination of Terraform and Ansible (+RKE2). Obviously VM names are defined in Terraform and K8s node names are defined inside the Ansible Playbook. In our case the VM names equal their hostnames, the K8s node names equal their FQDN.
As a workaround we changed the K8s Node Names to the VM Hostname instead of its FQDN.
But of course it would be much nicer if the CSI can derive the VM name instead of just assuming it to be the K8s node name. If it cannot derive the VM name, it still can fallback to using the Node ID.
from cloud-director-named-disk-csi-driver.
Thanks @Vivida1. I will check about how to get the hostname set within the guest by querying the VM properties.
If there is no clear way to do so, will you be okay with setting some guestinfo parameters that can be retrieved from the VM properties?
from cloud-director-named-disk-csi-driver.
Related Issues (20)
- Support / documentation for installation on clusters not managed via VCD-CSE HOT 7
- Filesystem XFS is mounted as ext4 (fsType: ext4 / filesystem: xfs) HOT 1
- Prepend cluster name in PVC name HOT 1
- Mount failed: exit status 32 (mount point does not exist) HOT 5
- Are named accross a few organization supported?
- Documentation of necessary Role Rights HOT 1
- Support for IDs inside vcloud-csi-config.yaml
- Pods with volume stuck in ContainerCreating with Multi-Attach error due to dangling volumeattachments
- Add priorityClassName to csi-node and csi controller
- Allow dynamic "maxVolumesPerNode" like in vSphere's CSI driver
- Snapshot Support HOT 8
- CSI volume snapshot HOT 1
- Unable to mount the PVC to the pod in RKE cluster HOT 6
- Can not pull image cloud-director-named-disk-csi-driver from Harbor HOT 3
- SecurityContext problem HOT 7
- Volume metrics HOT 2
- Retag csi images following SemVer syntax HOT 2
- Add support for fsGroup to named-disk-driver
- Increase max number of volumes on a node HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-director-named-disk-csi-driver.