For wrong vCenter details, salt-cloud create command get blocked
I am trying to run salt-cloud create VM command with wrong VMware vCenter details, salt-cloud sub-process get blocked.
Following are configuration and command I am running:
/etc/salt/cloud.providers
vcenter01:
driver: vmware
user: '<vcenter-user>'
password: '<vcenter-pwd>'
url: '<wrong-vcenter-ip>'
protocol: 'https'
port: 443
esxi_host_user: '<esxi-user>'
esxi_host_password: '<esxi-pwd>'
esxi_host_ssl_thumbprint: <ssl-thumbprint>
minion:
master: <master-ip>
win_installer: /root/Salt-Minion-2015.8.3-AMD64-Setup.exe
win_username: <win-admin-user>
win_password: <win-admin-password>
smb_port: 445
/etc/salt/cloud.profiles:
vm_prof:
provider: vcenter01
clonefrom: Win2008R2
num_cpus: 4
memory: 8GB
datastore: Test-cntr0
cluster: Test-Cluster
folder: Test-VMs
domain: test.com
devices:
disk:
Hard disk 1:
size: 5
Hard disk 2:
size: 2
scsi:
SCSI controller 1:
type: lsilogic
SCSI controller 2:
type: lsilogic_sas
bus_sharing: virtual
SCSI controller 3:
type: paravirtual
Command: salt-cloud -p vm_prof test-vm
@anandxoriant Can you please post the output of salt-cloud --versions-report here as well as the error you're seeing that is blocking?
Output of salt-cloud --versions-report:
Salt Version:
Salt: 2015.8.3
Dependency Versions:
Apache Libcloud: 0.15.1
Jinja2: 2.7.3
M2Crypto: 0.21.1
Mako: 1.0.0
PyYAML: 3.11
PyZMQ: 14.4.0
Python: 2.7.9 (default, Mar 1 2015, 12:57:24)
RAET: Not Installed
Tornado: 4.3
ZMQ: 4.0.5
cffi: 0.8.6
cherrypy: Not Installed
dateutil: Not Installed
gitdb: 0.5.4
gitpython: 0.3.2 RC1
ioflo: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.2
mysql-python: Not Installed
pycparser: 2.10
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: Not Installed
smmap: 0.8.2
timelib: Not Installed
System Versions:
dist: debian 8.2
machine: x86_64
release: 3.10.0-229.20.1.el7.x86_64
system: debian 8.2
Blocking Error:
salt-cloud cli command shows Could not connect to host '10.20.30.40'. Please check the debug log for more information. and remain block there only. Explicitly i need to kill that process using kill command
@anandxoriant Can you also post the output of the following commands:
salt-cloud -f test_vcenter_connection vcenter01 -l debug
pip show pyvmomi
root@cdff7c43eea0:/# salt-cloud -f test_vcenter_connection vcenter01 -l debug
[DEBUG ] Reading configuration from /etc/salt/cloud
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] Reading configuration from /etc/salt/cloud.providers
[DEBUG ] Reading configuration from /etc/salt/cloud.profiles
[DEBUG ] Configuration file path: /etc/salt/cloud
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[INFO ] salt-cloud starting
[DEBUG ] Could not LazyLoad parallels.avail_sizes
[DEBUG ] LazyLoaded parallels.avail_locations
[DEBUG ] LazyLoaded proxmox.avail_sizes
[DEBUG ] Could not LazyLoad saltify.destroy
[DEBUG ] Could not LazyLoad saltify.avail_sizes
[DEBUG ] Could not LazyLoad saltify.avail_images
[DEBUG ] Could not LazyLoad saltify.avail_locations
[DEBUG ] LazyLoaded rackspace.reboot
[DEBUG ] LazyLoaded openstack.list_locations
[DEBUG ] LazyLoaded rackspace.list_locations
[DEBUG ] Trying to execute 'vmware.test_vcenter_connection' with the following kwargs: {}
[INFO ] Starting new HTTPS connection (1): XX.XX.XX.XXX
[DEBUG ] ('Connection aborted.', gaierror(-2, 'Name or service not known'))
Could not connect to host 'XX.XX.XX.XXX'. Please check the debug log for more information.
root@cdff7c43eea0:/# pip show pyvmomi
---
Name: pyvmomi
Version: 5.5.0.2014.1.1
Location: /usr/local/lib/python2.7/dist-packages
Requires: requests, six
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.