Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

vmware_guest

ANSIBLE VERSION

ansible 2.4.0 (devel 4653f892c8) last updated 2017/08/21 13:26:39 (GMT +550)
config file = /srv/IT-DevOps/ansible/vmware-vmmgmt/ansible.cfg
configured module search path = [u'/srv/IT-DevOps/ansible/library']
ansible python module location = /srv/ansible/lib/ansible
executable location = /srv/ansible/bin/ansible
python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

CONFIGURATION

host_key_checking = False
roles_path = ../roles
library = ../library

OS / ENVIRONMENT

NAME="CentOS Linux"
VERSION="7 (Core)"

SUMMARY

When running the vmwre_guest module and we don't specify the folder name (which is not a required parameter), and we have a top level folder before any data center, it fails with error:

fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "No folder matched the path: /vm"}

STEPS TO REPRODUCE

At vmware level, create a folder before creating a datacenter and rest hierarchy will be same as usual. You can create cluster & resource pool as you want. When you try to create a virtual machine using vmware_guest module, it takes default value of folder as /vm, which is not true in this case as correct path is /[first folder]/[data center]/vm. Hence the creation of virtual machine fails. This is the same case with other vmware modules such as vmware_snapshot.

- name: Deploy VM from template or Remove VM based on Choice
vmware_guest:
hostname: "{{ vmware_vcenter }}"
username: "{{ vmware_user }}"
password: "{{ vmware_pass }}"
name: "{{ vmware_guest }}"
datacenter: "{{ vmware_datacenter }}"
template: "{{ vmware_template }}"
cluster: "{{ vmware_cluster }}"
resource_pool: "{{ vmware_resource_pool }}"
#folder: "{{ vmware_folder }}"
networks: "{{ vmware_networks }}"
hardware:
memory_mb: "{{ vmware_memory }}"
num_cpus: "{{ vmware_cpu }}"
validate_certs: no
state: "{{ state }}"
force: yes
wait_for_ip_address: yes

EXPECTED RESULTS

It should create the virtual machine without giving any error with template specified.

ACTUAL RESULTS

It failed and no virtual machine is created.

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

ansible-doc

ANSIBLE VERSION

$ansible --version
ansible 2.2.0 (devel ff52e01a11) last updated 2016/09/19 17:08:46 (GMT +800)
lib/ansible/modules/core: (detached HEAD 488f082761) last updated 2016/09/17 16:52:51 (GMT +800)
lib/ansible/modules/extras: (detached HEAD 24da3602c6) last updated 2016/09/17 16:52:51 (GMT +800)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides

CONFIGURATION

OS / ENVIRONMENT

N/A

SUMMARY

when performing ansible-doc -l, the process will fail with

ERROR! module netapp_e_lun_mapping has a documentation error formatting or is missing documentation

STEPS TO REPRODUCE

Fresh install an Ubuntu 16.04.1 LTS

git clone from ansible repo

source hacking/env-setup

ansible-doc -l

ansible-doc -vvvv -l

EXPECTED RESULTS

a list of ansible modules should appear

ACTUAL RESULTS

Using /etc/ansible/ansible.cfg as config file
[DEPRECATION WARNING]: docker is kept for backwards compatibility but usage is
discouraged. The module documentation details page may explain more about this
rationale..
This feature will be removed in a future release. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
[WARNING]: While constructing a mapping from
/home/rook/ansible/lib/ansible/modules/core/network/junos/junos_config.py, line
88, column 5, found a duplicate dict key (required). Using last defined value
only.

[WARNING]: While constructing a mapping from
/home/rook/ansible/lib/ansible/modules/extras/storage/netapp/netapp_e_auth.py,
line 10, column 5, found a duplicate dict key (api_url). Using last defined value
only.

[WARNING]: While constructing a mapping from
/home/rook/ansible/lib/ansible/modules/extras/storage/netapp/netapp_e_auth.py,
line 10, column 5, found a duplicate dict key (api_username). Using last defined
value only.

[WARNING]: While constructing a mapping from
/home/rook/ansible/lib/ansible/modules/extras/storage/netapp/netapp_e_auth.py,
line 10, column 5, found a duplicate dict key (api_password). Using last defined
value only.

[WARNING]: While constructing a mapping from /home/rook/ansible/lib/ansible/modul
es/extras/storage/netapp/netapp_e_lun_mapping.py, line 11, column 3, found a
duplicate dict key (api_url). Using last defined value only.

[WARNING]: While constructing a mapping from /home/rook/ansible/lib/ansible/modul
es/extras/storage/netapp/netapp_e_lun_mapping.py, line 11, column 3, found a
duplicate dict key (api_username). Using last defined value only.

[WARNING]: While constructing a mapping from /home/rook/ansible/lib/ansible/modul
es/extras/storage/netapp/netapp_e_lun_mapping.py, line 11, column 3, found a
duplicate dict key (api_password). Using last defined value only.

ERROR! module netapp_e_lun_mapping has a documentation error formatting or is missing documentation