Bug 1214281

Summary: On exec ovirt-node-setup displayed ImportError: No module named system_config_keyboard.keyboard
Product: [oVirt] ovirt-node Reporter: Oleg Gashev <oleg>
Component: GeneralAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED NOTABUG QA Contact: yileye <lyi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: bugs, ecohen, fabian.deutsch, fdeutsch, gklein, jboggs, leiwang, lsurette, mgoldboi, ovirt-bugs, rbalakri, ycui, yeylon
Target Milestone: ovirt-3.6.0-rcFlags: ylavi: ovirt-3.6.0?
ylavi: planning_ack+
fdeutsch: devel_ack?
ycui: testing_ack+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: node
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-25 12:58:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Added system-config-keyboard-base to Requires none

Description Oleg Gashev 2015-04-22 10:51:47 UTC
Created attachment 1017365 [details]
Added system-config-keyboard-base to Requires

Description of problem:


Version-Release number of selected component (if applicable):
Fedora 22 server beta

How reproducible:


Steps to Reproduce:
1. Install fedora 22 server
2. Exec dnf install ovirt-node-setup
3. Exec exec ovirt-node-setup


Actual results:
# ovirt-node-setup

Traceback (most recent call last):
  File /usr/lib64/python2.7/runpy.py, line 162, in _run_module_as_main
    __main__, fname, loader, pkg_name)
  File /usr/lib64/python2.7/runpy.py, line 72, in _run_code
    exec code in run_globals
  File /usr/lib/python2.7/site-packages/ovirt/node/setup/__main__.py, line 26, in <module>
    from ovirt.node import app, setup
  File /usr/lib/python2.7/site-packages/ovirt/node/app.py, line 24, in <module>
    from ovirt.node.config import defaults
  File /usr/lib/python2.7/site-packages/ovirt/node/config/defaults.py, line 24, in <module>
    from ovirt.node.utils import storage, process, fs, AugeasWrapper, console,   File /usr/lib/python2.7/site-packages/ovirt/node/utils/system.py, line 29, in <module>
    import system_config_keyboard.keyboard
ImportError: No module named system_config_keyboard.keyboard

Expected results:
executed without errors.

Additional info:

Comment 1 Fabian Deutsch 2015-04-22 13:33:13 UTC
Oleg, thanks for your report.

Please note that ovirt-node-setup is _not_ intended to be installed directly on Fedora. It is only intended to be used in the ovirt-node iso.

Nevertheless we can update the rpm dependency to also require the necessary package to fullfill the requirement.

Comment 4 Fabian Deutsch 2015-11-25 12:58:04 UTC
Oh - This is actually not a bug.

Because someone tried to install ovirt-node on a regular host. This is not intended.

Comment 5 Ying Cui 2015-11-26 03:29:51 UTC
(In reply to Fabian Deutsch from comment #4)
> Oh - This is actually not a bug.
> 
> Because someone tried to install ovirt-node on a regular host. This is not
> intended.

So Fabian, then need to drop the patch?

Comment 6 Fabian Deutsch 2015-11-26 08:31:02 UTC
No, it does not do any harm.