Bug 1071194 - targetcli.service has an error when env TERM is not set
targetcli.service has an error when env TERM is not set
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Lingshan Zhu
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-05 06:41 UTC by Lingshan Zhu
Modified: 2017-12-05 06:50 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lingshan Zhu 2017-12-05 06:41:15 UTC
After "systemctl start targetcli.service" then "systemctl status targetcli.service", we can see:

● targetcli.service - "Generic Target-Mode Service (fb)"
   Loaded: loaded (/usr/lib/systemd/system/targetcli.service; enabled;
vendor preset: disabled)
   Active: active (exited) since Tue 2017-11-28 17:45:59 CST; 3min 23s
ago
  Process: 1753 ExecStart=/usr/bin/targetcli restoreconfig
$CONFIG_FILE (code=exited, status=1/FAILURE)
 Main PID: 1753 (code=exited, status=1/FAILURE)
    Tasks: 0 (limit: 19660)
   CGroup: /system.slice/targetcli.service

Nov 28 17:45:59 localhost targetcli[1753]:   File
"/usr/lib/python2.7/site-packages/targetcli/ui_root.py", line 26, in
<module>
Nov 28 17:45:59 localhost targetcli[1753]:     from configshell_fb
import ExecutionError
Nov 28 17:45:59 localhost targetcli[1753]:   File
"/usr/lib/python2.7/site-packages/configshell_fb/__init__.py", line
27, in <module>
Nov 28 17:45:59 localhost targetcli[1753]:     from .shell import
ConfigShell
Nov 28 17:45:59 localhost targetcli[1753]:   File
"/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 53,
in <module>
Nov 28 17:45:59 localhost targetcli[1753]:     oldTerm =
os.environ['TERM']
Nov 28 17:45:59 localhost targetcli[1753]:   File
"/usr/lib64/python2.7/UserDict.py", line 40, in __getitem__
Nov 28 17:45:59 localhost targetcli[1753]:     raise KeyError(key)
Nov 28 17:45:59 localhost targetcli[1753]: KeyError: 'TERM'
Nov 28 17:45:59 localhost systemd[1]: Started "Generic Target-Mode
Service (fb)".
Comment 1 Lingshan Zhu 2017-12-05 06:49:35 UTC
SR submitted:
https://build.opensuse.org/request/show/548528
Comment 2 Lingshan Zhu 2017-12-05 06:50:40 UTC
Fixed