【问题标题】:Error in ovirt_disk module via ansible AWX通过 ansible AWX 在 ovirt_disk 模块中出错
【发布时间】:2020-02-11 05:48:21
【问题描述】:

我在尝试将磁盘添加到 RHVM 时遇到了有线错误。我已经检查了文档。所有参数对我来说似乎都是合法的。我需要额外的眼睛来验证这个案例。提前谢谢你

错误信息如下

"msg": "(ovirt_disk) 模块不支持的参数:activate 支持的参数包括:auth、bootable、description、download_image_path、fetch_nested、force、format、id、image_provider、interface、logical_unit、name、nested_attributes、openstack_volume_type、poll_interval ,配置文件,quota_id,可共享,大小,稀疏,稀疏,状态,storage_domain,storage_domains,超时,upload_image_path,vm_id,vm_name,等待“ }

角色中的参数如下

        "module_args": {
        "vm_name": "Jxyxyxyxy01",
        "activate": true,
        "storage_domain": "Data-xxx-Txxx",
        "description": "Created using Jira ticket CR-329",
        "format": "cow",
        "auth": {
            "timeout": 0,
            "url": "https://xxxxxx.com/ovirt-engine/api",
            "insecure": true,
            "kerberos": false,
            "compress": true,
            "headers": null,
            "token": "xxcddsvsdvdsvsdvdEFl0910KES84qL8Ff5NReA",
            "ca_file": null
        },
        "state": "present",
        "sparse": true,
        "interface": "virtio_scsi",
        "wait": true,
        "size": "20GiB",
        "name": "Jxyxyxyxy01_123"
    }

剧本如下。

 - name: Create New Disk size of {{ disk_size }} on {{ hostname }} using storage domain {{ vm_storage_domain }}
   ovirt_disk:
      auth: "{{ ovirt_auth }}"
      description: "Created using Jira ticket {{ issueKey }}"
      storage_domain:  "{{ vm_storage_domain }}"
      name: "{{ hostname }}_123" # name of the disk
      vm_name: "{{ hostname }}" #name of the virtual machine
      interface: "virtio_scsi"
      size: "{{ disk_size }}GiB"
      sparse: yes
      format: cow
      activate: yes
      wait: yes
      state: present
   register: vm_disk_results

【问题讨论】:

    标签: ansible


    【解决方案1】:

    activate parameter 是在 ansible 2.8 中添加的。

    升级您的 ansible 安装或删除该参数。

    【讨论】:

    • 谢谢 这是提取问题。删除参数后它的工作
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多