Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1099909

Summary: RHEVM-PYTHON-SDK: branding issue in error messages
Product: Red Hat Enterprise Virtualization Manager Reporter: Ilia Meerovich <iliam>
Component: ovirt-engine-sdkAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED ERRATA QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: aberezin, gklein, iheim, iliam, ncredi, oramraz, pstehlik, rbalakri, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: rhevm-sdk-python- Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-11 21:13:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1142923, 1156165    
Description Flags
Patch to fix the branding in error messages none

Description Ilia Meerovich 2014-05-21 13:36:12 UTC
imeerovi@imeerovi ~/git/ART (loginAsUser) $ rpm -q rhevm-cli
imeerovi@imeerovi ~/git/ART (loginAsUser) $ /usr/bin/rhevm-shell -r -c -l -u moo@boo -I  -S 3600 -d
  ================================================================================================================== ERROR ================================================================================================================
                                                                                        oVirt API connection failure, [Errno 111] Connection refused


                                                                                                           Welcome to RHEVM shell


[RHEVM shell (disconnected)]# 

It seems that the bug is in src/cli/, in __error_to_string function you have incorrect error_patterns

Comment 1 Juan Hernández 2014-05-21 14:07:15 UTC
This is strange, that problem was fixed in version rhevm-cli-, the one that you are using. Please try to download the .rpm file and do the following:

  # rpm2cpio rhevm-cli- | cpio -di
  # vi ./usr/lib/python2.6/site-packages/cli/

And check that, in line 202. Do you see there RHEV or oVirt?

Comment 2 Ilia Meerovich 2014-05-21 14:16:16 UTC
it comes from sdk now (and you have 2 more branding issues in sdk):

imeerovi@imeerovi /tmp $ grep -rn 'oVirt' /usr/lib/python2.6/site-packages/ovirtsdk/* | grep ERROR
/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/        Exception.__init__(self, '[ERROR]::oVirt API connection failure, %s' % expect)
/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/        Exception.__init__(self, '[ERROR]::oVirt sdk is disconnected from the server.')
/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/        Exception.__init__(self, '[ERROR]::oVirt API request failure.' + self.__str__())
imeerovi@imeerovi /tmp $ rpm -q rhevm-sdk-python

Comment 3 Juan Hernández 2014-05-21 14:56:25 UTC
Created attachment 898044 [details]
Patch to fix the branding in error messages

Comment 5 Petr Beňas 2014-09-19 09:06:01 UTC
[root@pb-rh35 ~]# grep -rn 'oVirt' /usr/lib/python2.6/site-packages/ovirtsdk/* | grep ERROR
[root@pb-rh35 ~]# rpm -qa rhevm-cli

Comment 8 errata-xmlrpc 2015-02-11 21:13:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.