Closed adoerler closed 5 months ago
can you test the version from the rck/pvc
branch ( https://github.com/LINBIT/linstor-proxmox/tree/rck/pvc ) please:
git fetch
git checkout -b rck/pvc origin/rck/pvc
scp LINSTORPlugin.pm root@${HOST}:/usr/share/perl5/PVE/Storage/Custom/
scp ./LINBIT/PluginHelper.pm root@${HOST}:/usr/share/perl5/LINBIT/PluginHelper.pm
ssh root@${HOST} "systemctl restart pvedaemon"
Hi @rck ,
an you test the version from the rck/pvc branch
thanks you!
I can confirm that the version in branch rck/pvc
works :-)
I'm not sure if you've been notified about my comment in the closed issue.
I think the valid_state
regex should either read:
sub valid_state_name {
$_[0] =~ /^vm-\d+-state-.+\z/i
}
to allow uppercase snapshot names or you should ensure (which would be even better) that the snapshot name provided by Proxmox gets converted to lower case characters.
I saw that one and thanks, I might squeeze in one of the variants. I like the "convert to lowercase" a bit more. In general I think the limitation as it is now is fair, then users just have to play according the rules the plugin has and using only lowercase names is not the end of the world. There are a lot more limitations, funny users could also trigger names not valid on DRBD or LINSTOR level. Or maybe names not valid on ZFS/LVM level and so on. "do stupid things, get stupid results"
I like the "convert to lowercase" a bit more only lowercase names is not the end of the world.
absolutely. I see no reason for allowing upper case characters, but handling a case where creation of resource fails by converting the input string to lower case seems a good idea.
There are a lot more limitations, funny users could also trigger names not valid on DRBD or LINSTOR level.
I can imagine... many cases to handle on many many systems out there :-)
Hi,
we are evaluating
linstor-proxmox
on Proxmox 8.2.2 in combination with Talos andproxmox-csi-plugin
.When using proxmox-csi-plugin to provision persistent volumes for Kubernetes running as VMs on Proxmox, proxmox-csi-plugin creates disk named like:
vm-9999-pvc-124c0df4-16f5-46bc-a295-ecd24f145fb2'
.Provisioning fails as this name is not allowed by
linstor-proxmox
.The error is like:
None of the regexes provided in PluginHelper.pm allows such a name.
The controller of
proxmox-cis-plugin
creates the name like this:Where
vmID
is hardcoded to9999
andpvc
equalsrequest.GetName()
from the csi request, which seems to bepvc-<UUID>
provided by Kubernetes.Would you consider adding another regex or should we try to ask on
proxmox-cis-plugin
side for a way to configure the naming of the disks?Best regards and many thanks in advance!
Andreas