Skip to content

Can't modify CPU or Memory after a VM is created. #1831

Open
@Rylon

Description

@Rylon
SUMMARY

Can't modify CPU or Memory after a VM is created.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

vmware_guest

ANSIBLE VERSION
ansible --version
ansible [core 2.15.3]
  config file = /de-ansible/ansible.cfg
  configured module search path = ['/de-ansible/library', '/de-ansible/roles/*/library', '/de-ansible/roles-vendored/*/library']
  ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible
  ansible collection location = /de-ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True
COLLECTION VERSION
# /usr/local/lib/python3.10/dist-packages/ansible_collections
Collection       Version
---------------- -------
community.vmware 3.9.0
CONFIGURATION
ansible-config dump --only-changed
ANY_ERRORS_FATAL(/de-ansible/ansible.cfg) = True
CALLBACKS_ENABLED(/de-ansible/ansible.cfg) = ['timing_and_inventory_details']
COLLECTIONS_ON_ANSIBLE_VERSION_MISMATCH(/de-ansible/ansible.cfg) = error
COLLECTIONS_PATHS(/de-ansible/ansible.cfg) = ['/de-ansible/collections', '/usr/share/ansible/collections']
CONFIG_FILE() = /de-ansible/ansible.cfg
DEFAULT_CALLBACK_PLUGIN_PATH(/de-ansible/ansible.cfg) = ['/de-ansible/callback_plugins']
DEFAULT_FILTER_PLUGIN_PATH(/de-ansible/ansible.cfg) = ['/de-ansible/filter_plugins']
DEFAULT_FORCE_HANDLERS(/de-ansible/ansible.cfg) = True
DEFAULT_INVENTORY_PLUGIN_PATH(/de-ansible/ansible.cfg) = ['/de-ansible/inventory_plugins']
DEFAULT_JINJA2_NATIVE(/de-ansible/ansible.cfg) = True
DEFAULT_LOOKUP_PLUGIN_PATH(/de-ansible/ansible.cfg) = ['/de-ansible/lookup_plugins']
DEFAULT_ROLES_PATH(/de-ansible/ansible.cfg) = ['/de-ansible/roles-vendored', '/de-ansible/roles', '/usr/share/ansible/collections']
DEFAULT_STDOUT_CALLBACK(/de-ansible/ansible.cfg) = yaml
DEFAULT_TIMEOUT(/de-ansible/ansible.cfg) = 10
OS / ENVIRONMENT
STEPS TO REPRODUCE

Create a VM using community.vmware.vmware_guest, with the following hardware config:

hardware:
      hotadd_cpu:              true
      hotremove_cpu:           true
      hotadd_memory:           true
      memory_reservation_lock: true
      memory_mb:               1024
      num_cpus:                1

Next, re-run the playbook but change the hardware config to this:

hardware:
      hotadd_cpu:              true
      hotremove_cpu:           true
      hotadd_memory:           true
      memory_reservation_lock: true
      memory_mb:               2048
      num_cpus:                2
EXPECTED RESULTS

The CPU and RAM should be modified.

ACTUAL RESULTS

There are no changes made, nor any errors output to explain why. VMware Vcenter logs do not even show an attempt to change the config, which suggests Ansible is not even issuing the request?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue/PR relates to a bugneeds_triageNeeds a first human triage before being processed.python3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions