Skip to content

not possible to add lxc mount point as bind #8982

Open
@mrrudy

Description

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

ansible [core 2.14.16]
  config file = /opt/semphore/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True

Community.general Version


# /usr/lib/python3/dist-packages/ansible_collections
Collection        Version
----------------- -------
community.general 6.6.2  

# /root/.ansible/collections/ansible_collections
Collection        Version
----------------- -------
community.general 9.4.0 

Configuration

CONFIG_FILE() = /opt/semphore/ansible.cfg
DEFAULT_CONNECTION_PLUGIN_PATH(/opt/semphore/ansible.cfg) = ['/opt/semphore/connection_plugin']
DEFAULT_REMOTE_USER(/opt/semphore/ansible.cfg) = semaphore
DEFAULT_VAULT_PASSWORD_FILE(/opt/semphore/ansible.cfg) = /root/.vault_pass.txt
HOST_KEY_CHECKING(/opt/semphore/ansible.cfg) = False
INTERPRETER_PYTHON(/opt/semphore/ansible.cfg) = auto_silent

OS / Environment

Debian 12

Steps to Reproduce

- hosts: group_nas_mount:&proxmox_all_lxc
  become: true
  gather_facts: true
  vars_files:
    - ../vault/secrets.yml
    - ../vars/pve_conf.yml

  tasks:
    - name: Add mountpoint
      community.general.proxmox:
        api_user: "{{ api_user  }}"
        api_token_id: "{{ api_token_id  }}"
        api_token_secret: "{{ api_token_secret }}"
        api_host: "{{ proxmox_node }}"
        vmid: "{{ ct_id }}"
        hostname: "{{ proxmox_hostname }}"
        node: "{{ proxmox_node }}"
        mounts:
          mp0: "/mnt/nas,mp=/mnt/nas" # this generates error
#          mp0: "volume=/mnt/nas,mp=/mnt/nas" # this generates error as well
#          mp0: "local-zfs:2,mp=/mnt/test/"   # this works fine
        update: true
      delegate_to: "{{ proxmox_node }}"

Expected Results

pct set 104 -mp0 /mnt/nas,mp=/mnt/nas

Actual Results

TASK [Add mountpoint] ******************************************************************************************************************************************************************
fatal: [tailscaletest -> nas-06]: FAILED! => {"changed": false, "msg": "Configuration of lxc VM 104 failed with exception: Internal error", "vmid": 104}

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Metadata

Assignees

No one assigned

    Labels

    bugThis issue/PR relates to a bugmodulemodulepluginsplugin (any type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions