Bug 854519 - rhevm-shell does not exit shell when using -f option with non-existing file
Summary: rhevm-shell does not exit shell when using -f option with non-existing file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.4.0
Assignee: Ravi Nori
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On: 895559
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-05 08:52 UTC by Ilia Meerovich
Modified: 2016-07-05 00:07 UTC (History)
8 users (show)

Fixed In Version: ovirt-3.4.0-alpha1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 12212 0 None None None Never

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


Note You need to log in before you can comment on or make changes to this bug.