Comment thread started by Anonymous on DRS Doctor

Full comments
Jul 01, 2016

It seems to try to verify the certificate even though I've commented it out in the configuration file as instructed. Any tips?

Jamess-iMac:Drm-Diagnostic-Tool james$ ./doctor
Starting Drs Doctor with log interval of 300 secs
Enter VC User Password:
pyVmomi version is less than 6.0, Certificate verification will not be done
Got exception while logging in...
(vim.fault.HostConnectFault) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
msg = '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)',
faultCause = <unset>,
faultMessage = (vmodl.LocalizableMessage) []
}
Jamess-iMac:Drm-Diagnostic-Tool james$

*** The Configuration File ***
Jamess-iMac:Drm-Diagnostic-Tool james$ cat conf/testbed.conf
#################################################
#
# Testbed configuration file for the 'DRS Doctor'
#
#################################################

# IP address or Hostname of vCenter to connect, Eg: 'xx.xx.xx.xxx', Hostname should be specified instaed of IP if SSL certficate validtion is required
vcip : '[removed]'

# Login username for the vCenter
vc_usr : 'james'

# Name of the cluster to monitor, Eg: 'My cluster', 'cluster23-1'
cluster : '[removed]'

# Log interval in secs. Eg. 180, 300, 600 etc. Resource usage information is collected for every 'Log_interval' secs and a new log will be generated.
# Since resource data collection for the whole inventory is heavy on VC, Minimum allowed log interval is 120 secs. Default is 300
log_interval : 300

# CA pem file location, comment this out if SSL certificate verfication of VC is not required
# ca_certs : ''
Jamess-iMac:Drm-Diagnostic-Tool james$

*** Versions ***
Jamess-iMac:Drm-Diagnostic-Tool james$ pyenv local
2.7.6
Jamess-iMac:Drm-Diagnostic-Tool james$ pip list
awscli (1.10.44)
botocore (1.4.34)
colorama (0.3.3)
docutils (0.12)
futures (3.0.5)
jmespath (0.9.0)
pip (8.1.2)
pyasn1 (0.1.9)
python-dateutil (2.5.3)
pyvmomi (5.5.0.2014.1.1)
PyYAML (3.11)
requests (2.10.0)
rsa (3.4.2)
s3transfer (0.0.1)
setuptools (23.1.0)
six (1.10.0)
wheel (0.29.0)
Jamess-iMac:Drm-Diagnostic-Tool james$

Jul 03, 2016

Can you please try these commands in python interactive mode (give your vc ip, username and password) and see what error you are getting.

from pyVim import connect
si = connect.SmartConnect(host = "your vc ip", user = "username", pwd = "password", port = 443)
print si.content.about.version

Jul 02, 2016

Since your pyvmomi version is less than 6.0 version certificate validation will not be done. You have the right combination o f pyvmomi and python not sure why you are seeing this error.

Jul 02, 2016

Are you providing the ip of the machine or hostname?

Jul 05, 2016

I have been providing the hostname. I can try it via IP and see if I have different results.

Jul 05, 2016

I tried with the IP instead and got the same result. I confirmed that I have pyyaml (3.11) and pyvmomi (5.5.0.2014.1.1) and that I'm using Python 2.7.6.

Jamess-iMac:Drm-Diagnostic-Tool james$ ./doctor
Starting Drs Doctor with log interval of 300 secs
Enter VC User Password:
pyVmomi version is less than 6.0, Certificate verification will not be done
Got exception while logging in...
(vim.fault.HostConnectFault) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
msg = '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)',
faultCause = <unset>,
faultMessage = (vmodl.LocalizableMessage) []
}

Jul 05, 2016

can you try the below commands in python interactive mode. This will help in getting more details of exception (like line number)

from pyVim import connect
si = connect.SmartConnect(host = "your vc ip", user = "username", pwd = "password", port = 443)
print si.content.about.version

Jul 05, 2016

I couldn't even get the import to work, so I took a guess that this is a version/dependency issue. I tried moving over to Windows where I don't have to deal with the OS X system's implementation of Python and it worked right away. On Windows, the process was: install python 2.7.12, upgrade pip, install pyyaml and pyvmomi, run the tool. Took all of 30 seconds! For anyone reading this: it may be worth sorting out the issues if you want to run this long term. Since I'm just testing at the moment, Windows (or Linux, I'm sure) provides a much easier way to get this thing off the ground. And I believe it's mostly a Python issue, not any issue with the Fling.

Jul 05, 2016