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

VMware: Unable to create vSphere Cluster in idempotent manner #64354

Closed
kclinden opened this issue Nov 3, 2019 · 9 comments
Closed

VMware: Unable to create vSphere Cluster in idempotent manner #64354

kclinden opened this issue Nov 3, 2019 · 9 comments
Labels
affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. cloud collection:community.vmware collection Related to Ansible Collections work module This issue/PR relates to a module. needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md support:community This issue/PR relates to code supported by the Ansible community. vmware VMware community

Comments

@kclinden
Copy link

kclinden commented Nov 3, 2019

SUMMARY

Playbook fails on create vSphere Cluster when running second time

ISSUE TYPE
  • Bug Report
COMPONENT NAME

vmware_cluster

ANSIBLE VERSION
ansible 2.9.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/klinden/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /home/klinden/.local/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.15+ (default, Oct  7 2019, 17:39:04) [GCC 7.4.0]
CONFIGURATION
DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = [u'/home/klinden/hosts']
OS / ENVIRONMENT

Ubuntu on Windows 2019 WSL

NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
STEPS TO REPRODUCE

Run playbook a second time on an empty vCenter instance.

---
# Configure vCenter

- name: Configure vCenter
  hosts: localhost
  gather_facts: false
  connection: local
  vars:
    vcenter_hostname: vcsa-01a.corp.local
    vcenter_username: 'administrator@regiona.local'
    vcenter_password: 'VMware1!'
    datacenter_name: 'OneCloud'
    cluster_name: 'Cluster-01'
    esxi_hostname: esx-01a.corp.local
    esxi_username: 'root'
    esxi_password: 'VMware1!'
    validate_certs: false
    state: present
  tasks:
    - name: Create Datacenter
      vmware_datacenter:
        hostname: '{{ vcenter_hostname }}'
        username: '{{ vcenter_username }}'
        password: '{{ vcenter_password }}'
        datacenter_name: '{{ datacenter_name }}'
        validate_certs: '{{ validate_certs }}'
        state: present
    - name: Create Cluster
      vmware_cluster:
        hostname: '{{ vcenter_hostname }}'
        username: '{{ vcenter_username }}'
        password: '{{ vcenter_password }}'
        validate_certs: '{{ validate_certs }}'
        datacenter_name: '{{ datacenter_name }}'
        cluster_name: '{{ cluster_name }} '
        state: present
    - name: Add ESXi Host to vCenter
      vmware_host:
        hostname: '{{ vcenter_hostname }}'
        username: '{{ vcenter_username }}'
        password: '{{ vcenter_password }}'
        validate_certs: '{{ validate_certs }}'
        datacenter: '{{ datacenter_name }}'
        cluster: '{{ cluster_name }} '
        esxi_hostname: '{{ esxi_hostname }}'
        esxi_username: '{{ esxi_username }}'
        esxi_password: '{{ esxi_password }}'
        state: present
EXPECTED RESULTS
ACTUAL RESULTS

@ansibot
Copy link
Contributor

ansibot commented Nov 3, 2019

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Nov 3, 2019

@ansibot
Copy link
Contributor

ansibot commented Nov 3, 2019

@kclinden, just so you are aware we have a dedicated Working Group for vmware.
You can find other people interested in this in #ansible-vmware on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

click here for bot help

@ansibot ansibot added affects_2.9 This issue/PR affects Ansible v2.9 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 Nov 3, 2019
@Akasurde
Copy link
Member

@kclinden Thanks for reporting this issue. Could you please provide -vvvv output for cluster task for second run ?

Thanks

needs_info

@Akasurde Akasurde changed the title Unable to create vSphere Cluster in idempotent manner VMware: Unable to create vSphere Cluster in idempotent manner Nov 15, 2019
@ansibot ansibot added needs_info This issue requires further information. Please answer any outstanding questions. and removed needs_triage Needs a first human triage before being processed. labels Nov 15, 2019
@kclinden
Copy link
Author

@kclinden Thanks for reporting this issue. Could you please provide -vvvv output for cluster task for second run ?

Thanks

needs_info

I will try to get more verbosity for you in the next week.

@ansibot
Copy link
Contributor

ansibot commented Dec 23, 2019

@kclinden This issue is waiting for your response. Please respond or the issue will be closed.

click here for bot help

@Akasurde
Copy link
Member

@kclinden Any news?

@kclinden
Copy link
Author

kclinden commented Jan 19, 2020

Unfortunately I haven’t had any time to dive back into this and have since started to focus on terraform instead.

@ansibot ansibot removed the needs_info This issue requires further information. Please answer any outstanding questions. label Jan 19, 2020
@ansibot ansibot added collection Related to Ansible Collections work collection:community.vmware needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md labels Apr 29, 2020
@Akasurde
Copy link
Member

Akasurde commented Aug 4, 2020

Thank you very much for your interest in Ansible. This plugin/module is no longer maintained in this repository and has been migrated to https://github.com/ansible-collections/vmware

Migrated this issue in the above repository - ansible-collections/community.vmware#335.

If you have further questions please stop by IRC or the mailing list:

@Akasurde Akasurde closed this as completed Aug 4, 2020
@ansible ansible locked and limited conversation to collaborators Sep 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.9 This issue/PR affects Ansible v2.9 bug This issue/PR relates to a bug. cloud collection:community.vmware collection Related to Ansible Collections work module This issue/PR relates to a module. needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md 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

3 participants