Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize option in vmware_guest module doesn't work for FreeBSD #43189

Closed
karthik120 opened this issue Jul 24, 2018 · 3 comments
Closed

Customize option in vmware_guest module doesn't work for FreeBSD #43189

karthik120 opened this issue Jul 24, 2018 · 3 comments
Labels
affects_2.6 This issue/PR affects Ansible v2.6 bsd BSD community bug This issue/PR relates to a bug. cloud module This issue/PR relates to a module. support:community This issue/PR relates to code supported by the Ansible community. vmware VMware community

Comments

@karthik120
Copy link

SUMMARY

When I attempt to clone a FreeBSD 10.1 VM (openvm tools already installed in it) to new one e.x cloning B from A where A being source and B being the destination. The play ends with the error
Customize option in vmware_guest module doesn't work for FreeBSD . However, new VM B is created. When you turn on the machine B, you would notice the IP address and hostname of the source A in it instead of the one that I set using customize option in vmware_guest.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

vmware_guest

ANSIBLE VERSION
ansible 2.6.1
  config file = /home/builders/ansible_scripts/ansible.cfg
  configured module search path = [u'/home/builders/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Sep 15 2016, 22:37:39) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]

CONFIGURATION

ansible-config dump --only-changed
DEFAULT_FORKS(/home/builders/ansible_scripts/ansible.cfg) = 25
DEFAULT_GATHERING(/home/builders/ansible_scripts/ansible.cfg) = explicit
DEFAULT_MODULE_NAME(/home/builders/ansible_scripts/ansible.cfg) = shell

OS / ENVIRONMENT

CentOS 7.2

STEPS TO REPRODUCE
  1. Have a source VM as FreeBSD 10.1 with OpenVm tools installed
  2. Run the playbook with the hosts as localhost
---
- name: Clone VM from one to another
  vmware_guest:
    hostname: '{{ vcenter_hostname }}'
    username: '{{ vcenter_username }}'
    password: '{{ vcenter_password }}'
    validate_certs: '{{ validate_certs }}'
    name: '{{ vm_name }}'
    state: '{{ state }}'
    template: '{{ vm_template }}'
    datacenter: '{{ cluster_name }}'
    folder: '{{ folder_name }}'
    cluster: '{{ cluster }}'
    hardware:
      memory_mb: '{{ ram }}'
      num_cpus: '{{ cpu }}'
      scsi: '{{ scsi }}'
    customization:
      hostname: '{{ vm_name }}'
    networks:
    - name: VM-NETWORK
      ip: '{{ ip_address }}'
      netmask: '{{ netmask }}'
      gateway: '{{ gateway }}'
      type: '{{ type }}'
    wait_for_ip_address: yes
  delegate_to: localhost
  register: deploy
EXPECTED RESULTS

New VM gets created with the hostname provided in the customize section

ACTUAL RESULTS

New VM is created with the hostname and IP address of the Source VM instead of a new name provided in customization section. Also, the play ends in the error with the message below
Customize option in vmware_guest module doesn't work for FreeBSD


@karthik120
Copy link
Author

As far as I am thinking, this could be a bug in Vmware itself. I am not sure, where to report this.

@ansibot
Copy link
Contributor

ansibot commented Jul 24, 2018

@ansibot ansibot added affects_2.6 This issue/PR affects Ansible v2.6 bug This issue/PR relates to a bug. cloud module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. vmware VMware community labels Jul 24, 2018
@Akasurde
Copy link
Member

@karthik120 Thanks for reporting this issue. FreeBSD is not support platform customization, you can check this matrix - http://partnerweb.vmware.com/programs/guestOS/guest-os-customization-matrix.pdf .
I will close this as this is VMware Bug/Feature itself. You may want to contact VMware support for this. Thanks.

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Jul 24, 2018
@dagwieers dagwieers added the bsd BSD community label Jan 18, 2019
@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.6 This issue/PR affects Ansible v2.6 bsd BSD community bug This issue/PR relates to a bug. cloud module This issue/PR relates to a module. support:community This issue/PR relates to code supported by the Ansible community. vmware VMware community
Projects
None yet
Development

No branches or pull requests

4 participants