Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Issue with running rhevm-shell from build definition

When I run rhevm-shell (command line tool to redhat enterprise enterprise virtual manager) from RTC build definition (command line -Jazz build engine) I get following error.

Traceback (most recent call last):
  File "/usr/bin/rhevm-shell", line 9, in <module>
    load_entry_point('rhevm-shell==3.1.1.2-SNAPSHOT', 'console_scripts', 'rhevm-shell')()
  File "/usr/lib/python2.6/site-packages/ovirtcli/main.py", line 27, in main
    context = OvirtCliExecutionContext(sys.argv, parser)
  File "/usr/lib/python2.6/site-packages/ovirtcli/context.py", line 45, in __init__
    super(OvirtCliExecutionContext, self).__init__(args=args, option_parser=option_parser)
  File "/usr/lib/python2.6/site-packages/cli/context.py", line 69, in __init__
    self.terminal = create(self.Terminal)
  File "/usr/lib/python2.6/site-packages/cli/object.py", line 26, in create
    obj = cls(sys.stdin, sys.stdout, sys.stderr, **kwargs)
  File "/usr/lib/python2.6/site-packages/cli/platform/posix/terminal.py", line 36, in __init__
    self._tty = os.open('/dev/tty', os.O_RDWR)
OSError: [Errno 6] No such device or address: '/dev/tty'

Any idea how to fix this issue ?
I am using RTC 3.0.1.1

When I run the same from command prompt it works fine.

0 votes



One answer

Permanent link
I don't think this is related to RTC, I think this is related to something in your environment or OS. I don't know the particular tools, but that it complains that there is no device /dev/tty, tells me you should probably use a different device or device name. This might or might not be related to environment settings not available if you run in the JBE, which even might be running on a different machine. You could e.g. try to dump the environment in the build. Maybe you inherit /dev/tty from your user login settings and JBE does not?

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,132
× 562

Question asked: May 18 '13, 7:40 a.m.

Question was seen: 5,710 times

Last updated: May 22 '13, 7:40 a.m.

Confirmation Cancel Confirm