Bug 854519

Summary: rhevm-shell does not exit shell when using -f option with non-existing file
Product: Red Hat Enterprise Virtualization Manager Reporter: Ilia Meerovich <iliam>
Component: ovirt-engine-cliAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Ilia Meerovich <iliam>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: acathrow, bazulay, ecohen, iheim, jkt, oramraz, pstehlik, Rhev-m-bugs
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: ovirt-3.4.0-alpha1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Embargoed:
Bug Depends On: 895559    
Bug Blocks:    

Description Ilia Meerovich 2012-09-05 08:52:44 UTC
I'm passing file that doesn't exists, I can see error but shell remains open:
"""
[imeerovi@imeerovi ART]$ rhevm-shell -l "https://aqua-rhel.qa.lab.tlv.redhat.com:443/api/" -u "vdcadmin.tlv.redhat.com" -p "123456" -I -f bug

 ==========================================
 >>> connected to RHEVM manager 3.1.0.0 <<<
 ==========================================


error: [Errno 2] No such file or directory: 'bug'

[RHEVM shell (connected)]#
"""

If i understand correct -f option will be very useful for system scripts.
So in order to ease system programmers life maybe it will be better to close connection with rc and message rather remain it open.


rpm version: rhevm-cli-3.1.0.10-1.el6ev.noarch

Comment 1 Michael Pasternak 2013-02-19 16:35:46 UTC
the thing is that shell currently writes only to own private I/O stream, so by implementing this RFE entire script output will be swallowed,

postponing this BZ till #895559 got implemented

Comment 2 Ilia Meerovich 2014-01-21 10:54:26 UTC
verified with ovirt-engine-cli-3.4.0.2-1.20140112.git01360ed.el6.noarch

Comment 3 Itamar Heim 2014-06-12 14:11:41 UTC
Closing as part of 3.4.0