Bug 947398

Summary: Unclear error message when connect vCenter server
Product: [Community] Virtualization Tools Reporter: tingting zheng <tzheng>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acathrow, dallan, dyasny, dyuan, gsun, jdenemar, leiwan, mzhan, rwu, tzheng, veillard, whuang, zpeng
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 819729 Environment:
Last Closed: 2013-05-13 14:25:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 819729    
Bug Blocks:    

Description tingting zheng 2013-04-02 10:32:39 UTC
The bug can also be reproduced on rhel7,so clone the bug to rhel7.
version:
libvirt-1.0.3-1.el7.x86_64

+++ This bug was initially created as a clone of Bug #819729 +++

Description of problem:
Unclear error message when connect vCenter server with virsh command "virsh -c esx://xxx.xxx.xxx.xxx/?no_verify=1", the error "internal error Could not find ComputeResource with name '(null)'" will be shown.

Version-Release number of selected component (if applicable):
# rpm -qa |grep libvirt
libvirt-client-0.9.10-16.el6.x86_64
libvirt-debuginfo-0.9.10-14.el6.x86_64
libvirt-0.9.10-16.el6.x86_64
libvirt-python-0.9.10-16.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.When connect ESXi server,pass the url of the Virtualcenter.

eg:virsh -c esx://<VirtualcenterIP>/?no_verify=1
Enter username for ip [root]:
Enter administrator's password for ip: 

  
Actual results:
[root@test ~]# virsh -c esx://10.66.6.123/?no_verify=1
Enter username for 10.66.6.123 [root]: administrator
Enter administrator's password for 10.66.6.123: 
error: internal error Could not find ComputeResource with name '(null)'
error: failed to connect to the hypervisor
[root@test ~]# 

Expected results:
There should be clear error messages given like:the host is neither an ESX 3.5, 4.x nor 5.x host

eg:# virsh -c esx://10.66.6.48/?no_verify=1
Enter username for 10.66.6.48 [root]: administrator
Enter administrator's password for 10.66.6.48:
error: internal error 10.66.6.48 is neither an ESX 3.5, 4.x nor 5.x host
error: failed to connect to the hypervisor

Additional info:

Comment 2 Dave Allan 2013-05-13 14:25:36 UTC

*** This bug has been marked as a duplicate of bug 819729 ***