<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>

<p dir="auto">vmware_guest</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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)]"><pre class="notranslate"><code class="notranslate">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)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="host_key_checking = False
roles_path = ../roles
library = ../library"><pre lang="[defaults]" class="notranslate"><code class="notranslate">host_key_checking = False
roles_path = ../roles
library = ../library
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="NAME=&quot;CentOS Linux&quot;
VERSION=&quot;7 (Core)&quot;"><pre class="notranslate"><code class="notranslate">NAME="CentOS Linux"
VERSION="7 (Core)"
</code></pre></div>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">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:<br>
<code class="notranslate">fatal: [localhost]: FAILED! =&gt; {"changed": false, "failed": true, "msg": "No folder matched the path: /vm"}</code></p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>

<p dir="auto">At vmware level, create a folder before creating a datacenter and rest hierarchy will be same as usual. You can create cluster &amp; 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.</p>

<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Deploy VM from template or Remove VM based on Choice
   vmware_guest:
    hostname: &quot;{{ vmware_vcenter }}&quot;
    username: &quot;{{ vmware_user }}&quot;
    password: &quot;{{ vmware_pass }}&quot;
    name: &quot;{{ vmware_guest }}&quot;
    datacenter: &quot;{{ vmware_datacenter }}&quot;
    template: &quot;{{ vmware_template }}&quot;
    cluster: &quot;{{ vmware_cluster }}&quot;
    resource_pool: &quot;{{ vmware_resource_pool }}&quot;
    #folder: &quot;{{ vmware_folder }}&quot;
    networks: &quot;{{ vmware_networks }}&quot;
    hardware:
      memory_mb: &quot;{{ vmware_memory }}&quot;
      num_cpus: &quot;{{ vmware_cpu }}&quot;
    validate_certs: no
    state: &quot;{{ state }}&quot;
    force: yes
    wait_for_ip_address: yes
"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Deploy VM from template or Remove VM based on Choice</span>
   <span class="pl-ent">vmware_guest</span>:
    <span class="pl-ent">hostname</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vmware_vcenter }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">username</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vmware_user }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">password</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vmware_pass }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vmware_guest }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">datacenter</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vmware_datacenter }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">template</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vmware_template }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">cluster</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vmware_cluster }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">resource_pool</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vmware_resource_pool }}<span class="pl-pds">"</span></span>
    <span class="pl-c"><span class="pl-c">#</span>folder: "{{ vmware_folder }}"</span>
    <span class="pl-ent">networks</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vmware_networks }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">hardware</span>:
      <span class="pl-ent">memory_mb</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vmware_memory }}<span class="pl-pds">"</span></span>
      <span class="pl-ent">num_cpus</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vmware_cpu }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">validate_certs</span>: <span class="pl-s">no</span>
    <span class="pl-ent">state</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ state }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">force</span>: <span class="pl-s">yes</span>
    <span class="pl-ent">wait_for_ip_address</span>: <span class="pl-s">yes</span>
</pre></div>

<h5 dir="auto">EXPECTED RESULTS</h5>

<p dir="auto">It should create the virtual machine without giving any error with template specified.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>

<p dir="auto">It failed and no virtual machine is created.</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>

<p dir="auto">ansible-doc</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$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
"><pre class="notranslate"><code class="notranslate">$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

</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

<h5 dir="auto">OS / ENVIRONMENT</h5>

<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">when performing ansible-doc -l, the process will fail with</p>
<blockquote>
<p dir="auto">ERROR! module netapp_e_lun_mapping has a documentation error formatting or is missing documentation</p>
</blockquote>
<h5 dir="auto">STEPS TO REPRODUCE</h5>

<ol dir="auto">
<li>Fresh install an Ubuntu 16.04.1 LTS</li>
<li>git clone from ansible repo</li>
<li>source hacking/env-setup</li>
<li>ansible-doc -l</li>
</ol>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-doc -vvvv -l"><pre class="notranslate"><code class="notranslate">ansible-doc -vvvv -l
</code></pre></div>

<h5 dir="auto">EXPECTED RESULTS</h5>

<p dir="auto">a list of ansible modules should appear</p>
<h5 dir="auto">ACTUAL RESULTS</h5>


<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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"><pre class="notranslate"><code class="notranslate">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
</code></pre></div>