Description
SUMMARY
When trying to deploy the vSphere Replication ovf, with the vmware_deploy_ovf, it fails and I get the following error message: «The virtual machine 'replication_ansibleTest_ovf' has a required vService dependency 'vCenter Extension Installation' which is not bound to a provider.»
ISSUE TYPE
Bug Report
? Missing Feature: 'vCenter Extension Installation' ?
COMPONENT NAME
vmware_deploy_ovf module
vSphere_Replication_OVF10.ovf file
ANSIBLE VERSION
ansible 2.7.4
config file = $HOME/Projects/97/etc/ansible.cfg
configured module search path = [u'$HOME/.virtualenvs/97/local/lib/python2.7/site-packages/ara/plugins/modules', u'$HOME/Projects/97/library']
ansible python module location = $HOME/.virtualenvs/97/local/lib/python2.7/site-packages/ansible
executable location = $HOME/.virtualenvs/97/bin/ansible
python version = 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516]
CONFIGURATION
CACHE_PLUGIN($HOME/Projects/109/etc/ansible.cfg) = jsonfile
CACHE_PLUGIN_CONNECTION($HOME/Projects/109/etc/ansible.cfg) = $HOME/.ansible/facts/
CACHE_PLUGIN_TIMEOUT($HOME/Projects/109/etc/ansible.cfg) = 3600
DEFAULT_ACTION_PLUGIN_PATH(env: ANSIBLE_ACTION_PLUGINS) = [u'$HOME/.virtualenvs/109/local/lib/python2.7/site-packages/ara/plugins/actions']
DEFAULT_CALLBACK_PLUGIN_PATH(env: ANSIBLE_CALLBACK_PLUGINS) = [u'$HOME/.virtualenvs/109/local/lib/python2.7/site-packages/ara/plugins/callbacks']
DEFAULT_FILTER_PLUGIN_PATH(env: ANSIBLE_FILTER_PLUGINS) = [u'$HOME/Projects/109/plugins/filter']
DEFAULT_GATHERING($HOME/Projects/109/etc/ansible.cfg) = smart
DEFAULT_HOST_LIST($HOME/Projects/109/etc/ansible.cfg) = [u'$HOME/Projects/109/inventories/T04', u'$HOME/Projects/109/inventories/setupenv']
DEFAULT_LOG_PATH($HOME/Projects/109/etc/ansible.cfg) = $HOME/.ansible/log/ansible.log
DEFAULT_MODULE_PATH(env: ANSIBLE_LIBRARY) = [u'$HOME/.virtualenvs/109/local/lib/python2.7/site-packages/ara/plugins/modules', u'$HOME/Projects/109/library']
DEFAULT_ROLES_PATH(env: ANSIBLE_ROLES_PATH) = [u'$HOME/Projects/109/roles.galaxy', u'$HOME/Projects/109/roles']
DEFAULT_STDOUT_CALLBACK($HOME/Projects/109/etc/ansible.cfg) = yaml
GALAXY_ROLE_SKELETON(env: ANSIBLE_GALAXY_ROLE_SKELETON) = $HOME/Projects/109/etc/skel/default
GALAXY_ROLE_SKELETON_IGNORE($HOME/Projects/109/etc/ansible.cfg) = [u'']
HOST_KEY_CHECKING($HOME/Projects/109/etc/ansible.cfg) = False
OS / ENVIRONMENT
VMWare ESXi 6.5
VMWare vCenter 6.5
VMWare vSphere Replication
6.5.1.1
8.1.0
pyvmomi==6.7.1
STEPS TO REPRODUCE
Download a vSphere Replication OVF from vmware.com (https://my.vmware.com/web/vmware/details?productId=614&downloadGroup=VR65). I tested with v6.5.1.1 and v8.1.0
Try to deploy it with the vmware_deploy_ovf module
tasks:
- name: Deloy replication from the ovf file from VMWare
vmware_deploy_ovf:
hostname: "vcenter.site.org"
username: "[email protected]"
password: "{{ ansible_ssh_pass }}"
validate_certs: no
ovf: "{{ ovf_dir }}"
name: "{{ vm_name }}_ansibleTest_ovf"
datacenter: "MY-DATACENTER"
datastore: "MYDS-VMFS01"
folder: "/host/MY-CLUSTER/"
properties:
password: "defaultPass"
ntpserver: "10.1.1.11,10.1.1.12"
vami.ip0.vSphere_Replication_Appliance: "10.2.1.20"
networks:
"Management Network": "VLAN_MGT"
power_on: yes
delegate_to: localhost
EXPECTED RESULTS
The Replication VM is deployed and booted!
ACTUAL RESULTS
The copy of the VM is working, but when it tries to boot, it fails with the message «The virtual machine 'replication_ansibleTest_ovf' has a required vService dependency 'vCenter Extension Installation' which is not bound to a provider.».
PLAY [Deploy vSphere Replication] ***************************************************************************************
TASK [Deloy replication from the ovf file from VMWare] ******************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.module_utils.vmware.TaskError: ("The virtual machine 'replication_ansibleTest_ovf' has a required vService dependency 'vCenter Extension Installation' which is not bound to a provider.", None)
fatal: [localhost -> localhost]: FAILED! => changed=false
module_stderr: |-
Traceback (most recent call last):
File "/home/user/.ansible/tmp/ansible-tmp-1543852033.81-154754349446242/AnsiballZ_vmware_deploy_ovf.py", line 113, in <module>
_ansiballz_main()
File "/home/user/.ansible/tmp/ansible-tmp-1543852033.81-154754349446242/AnsiballZ_vmware_deploy_ovf.py", line 105, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/user/.ansible/tmp/ansible-tmp-1543852033.81-154754349446242/AnsiballZ_vmware_deploy_ovf.py", line 48, in invoke_module
imp.load_module('__main__', mod, module, MOD_DESC)
File "/tmp/ansible_vmware_deploy_ovf_payload_zQUoPF/__main__.py", line 603, in <module>
File "/tmp/ansible_vmware_deploy_ovf_payload_zQUoPF/__main__.py", line 597, in main
File "/tmp/ansible_vmware_deploy_ovf_payload_zQUoPF/__main__.py", line 502, in power_on
File "/tmp/ansible_vmware_deploy_ovf_payload_zQUoPF/ansible_vmware_deploy_ovf_payload.zip/ansible/module_utils/vmware.py", line 68, in wait_for_task
File "/tmp/ansible_vmware_deploy_ovf_payload_zQUoPF/ansible_vmware_deploy_ovf_payload.zip/ansible/module_utils/six/__init__.py", line 744, in raise_from
ansible.module_utils.vmware.TaskError: ("The virtual machine 'replication_ansibleTest_ovf' has a required vService dependency 'vCenter Extension Installation' which is not bound to a provider.", None)
module_stdout: ''
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
to retry, use: --limit @/home/user/Projects/109/playground/deploy-vm-replicate.retry
PLAY RECAP **************************************************************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1
By googling this error, I found this KB article on vmware.com: https://kb.vmware.com/s/article/55027
So it's well known issue with the HTML5 version of the vSphere client, but works well with the Flash version and with the ovftool command at least with a non-outdated version (>=4.0.0 AFAIK) and if you proceed against the vcenter and not an ESXi node!
ovftool --acceptAllEulas \
-ds=MYDS-VMFS01 \
--prop:"password"="defaultPass" \
--prop:"ntpserver"="10.1.1.11,10.1.1.12" \
--prop:"vami.ip0.vSphere_Replication_Appliance"="10.2.1.20" \
--net:"Management Network"="VLAN_MGT" \
--powerOn \
--vService:installation=com.vmware.vim.vsm:extension_vservice \
/images/VMware/vSphereReplication_6.5.1.1/vSphere_Replication_OVF10.ovf \
vi://"[email protected]"@vcenter/MY-DATACENTER/host/MY-CLUSTER/