Open mrrudy opened 1 month ago
Files identified in the description:
plugins/modules/proxmox
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @Ajpantuso @Thulium-Drake @UnderGreen @joshainglis @karmab @krauthosting click here for bot help
I did some investigation and was able to notice that
parse_disk_string("/mnt/nas,mp=/mnt/nas") does ok and gives:
{'mp': '/mnt/nas', 'host_path': '/mnt/nas'}
but the build_volume throws the error as there is nor storage neither volume defined.
The proxmox module is currently in a completely unusable state:
"tmp-dir:300/subvol-300-disk-0.s /bvol,a /cl=1,size=0T"
"tmplog-dir:300/vm-300-disk-0.raw,mp=/var/log,mountoptions=noatime,size=32M"
storage = local
and the fact, that the plugin prohibited overriding the default value (its mutally exclusive with disk_volume and disk), this default value is also sent to the proxmox API, which is pretty sure also wrong.I can not invest further time into tracking down the remaining bugs and will revert to an older working version. If anyone is interested, my fixes so far are in this changeset: https://github.com/markusj/community.general/commit/a7d378c787aaaedf9e7c5dda8166982a8e116504
The changes introduced in https://github.com/ansible-collections/community.general/pull/8720 break the logic of the modified method
I'm not sure this broke anything that wasn't broken before. Since vol_string
was undefined in that code path, and is used a few lines later, it would simply have crashed with a different error message before. The problem was introduced in #8646, a follow-up to #8542.
@Lithimlin please take a look, since you created #8542 and #8646.
I'll take a look ASAP. I was pretty sure I took care of all variants the Proxmox API allowed, but evidently, I must've overlooked some.
If anyone is interested, my fixes so far are in this changeset: markusj@a7d378c
Thanks a lot! This will speed up things a lot.
The right thing to do with the size is probably to allow for strings (32M
, 0T
) and not just assume GiB as a unit. This was a misinterpretation of the Proxmox API docs on my end.
I also wasn't aware that the (old) storage
parameter could cause such problems. I'll see how those can be fixed.
To be completely honest though, it might be easiest to just completely re-write the module at this point. As @markusj said, it's in a very unstable state, and trying to "improve" things as I have done can have unforeseen side-effects. I'll see what I can do in the coming days but unfortunately, I cannot promise I'll have time to look at the issue in-depth.
Summary
When I try to add a mount point that is only host source and guest destination ("/mnt/nas,mp=/mnt/nas") in the community.general.proxmox I get FAILD.
Issue Type
Bug Report
Component Name
proxmox
Ansible Version
Community.general Version
Configuration
OS / Environment
Debian 12
Steps to Reproduce
Expected Results
pct set 104 -mp0 /mnt/nas,mp=/mnt/nas
Actual Results
Code of Conduct