RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 892316 - VDSM: Traceback with 'RuntimeError: No default policy found' when restarting vdsmd service and SELinux policy disabled.
Summary: VDSM: Traceback with 'RuntimeError: No default policy found' when restarting ...
Keywords:
Status: CLOSED DUPLICATE of bug 893065
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Douglas Schilling Landgraf
QA Contact: Haim
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-06 16:32 UTC by Omri Hochman
Modified: 2014-01-13 00:55 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-09 03:14:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Omri Hochman 2013-01-06 16:32:48 UTC
VDSM: When SELinux disable start vdsmd service throws Traceback with 'RuntimeError: No default policy found'. 

There's also an ERROR during 'yum update vdsm' (see below).

vdsm-python-4.10.2-3.0.el6ev.x86_64
vdsm-4.10.2-3.0.el6ev.x86_64
vdsm-xmlrpc-4.10.2-3.0.el6ev.noarch
vdsm-cli-4.10.2-3.0.el6ev.noarch

In: /etc/sysconfig/selinux  -->  SELINUX=disabled

Error during 'service vdsmd restart':
**************************************
[root@puma10 vdsm]# service vdsmd restart
Shutting down vdsm daemon: 
vdsm watchdog stop                                         [  OK  ]
vdsm stop                                                  [  OK  ]
vdsm: libvirt already configured for vdsm                  [  OK  ]
Starting iscsid: 
Exception in thread libvirtEventLoop (most likely raised during interpreter shutdown):Traceback (most recent call last):
  File "/usr/bin/vdsm-tool", line 143, in <module>
    sys.exit(main())
  File "/usr/bin/vdsm-tool", line 125, in main
    load_modules()
  File "/usr/bin/vdsm-tool", line 74, in load_modules
    module = imp.load_module(mod_name, mod_fobj, mod_absp, mod_desc)
  File "/usr/lib64/python2.6/site-packages/vdsm/tool/seboolsetup.py", line 21, in <module>
    import seobject
  File "/usr/lib64/python2.6/site-packages/seobject.py", line 952, in <module>
    class portRecords(semanageRecords):
  File "/usr/lib64/python2.6/site-packages/seobject.py", line 953, in portRecords
    valid_types =  setools.seinfo(setools.ATTRIBUTE,"port_type")[0]["types"]
  File "/usr/lib64/python2.6/site-packages/setools/__init__.py", line 49, in seinfo
    dict_list = _seinfo.seinfo(setype, name)
RuntimeError: No default policy found.
Starting up vdsm daemon: 
vdsm start                                                 [  OK  ]

--------------------------------------------
Note: Despite the Error vdsmd service starts.
--------------------------------------------

During 'yum update vdsm':
**************************
Total download size: 839 k
Is this ok [y/N]: y
Downloading Packages:
(1/5): python-ethtool-0.6-3.el6.x86_64.rpm                                                                                                         |  29 kB     00:00     
(2/5): vdsm-4.10.2-3.0.el6ev.x86_64.rpm                                                                                                            | 659 kB     00:00     
(3/5): vdsm-cli-4.10.2-3.0.el6ev.noarch.rpm                                                                                                        |  46 kB     00:00     
(4/5): vdsm-python-4.10.2-3.0.el6ev.x86_64.rpm                                                                                                     |  84 kB     00:00     
(5/5): vdsm-xmlrpc-4.10.2-3.0.el6ev.noarch.rpm                                                                                                     |  21 kB     00:00     
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                      26 MB/s | 839 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : vdsm-python-4.10.2-3.0.el6ev.x86_64                                                                                                                   1/10 
  Updating   : vdsm-xmlrpc-4.10.2-3.0.el6ev.noarch                                                                                                                   2/10 
  Updating   : vdsm-cli-4.10.2-3.0.el6ev.noarch                                                                                                                      3/10 
  Updating   : python-ethtool-0.6-3.el6.x86_64                                                                                                                       4/10 
  Updating   : vdsm-4.10.2-3.0.el6ev.x86_64                                                                                                                          5/10 
Traceback (most recent call last):
  File "/usr/bin/vdsm-tool", line 143, in <module>
    sys.exit(main())
  File "/usr/bin/vdsm-tool", line 125, in main
    load_modules()
  File "/usr/bin/vdsm-tool", line 74, in load_modules
    module = imp.load_module(mod_name, mod_fobj, mod_absp, mod_desc)
  File "/usr/lib64/python2.6/site-packages/vdsm/tool/seboolsetup.py", line 21, in <module>
    import seobject
  File "/usr/lib64/python2.6/site-packages/seobject.py", line 952, in <module>
    class portRecords(semanageRecords):
  File "/usr/lib64/python2.6/site-packages/seobject.py", line 953, in portRecords
    valid_types =  setools.seinfo(setools.ATTRIBUTE,"port_type")[0]["types"]
  File "/usr/lib64/python2.6/site-packages/setools/__init__.py", line 49, in seinfo
    dict_list = _seinfo.seinfo(setype, name)
RuntimeError: No default policy found.
Traceback (most recent call last):
  File "/usr/bin/vdsm-tool", line 143, in <module>
    sys.exit(main())
  File "/usr/bin/vdsm-tool", line 125, in main
    load_modules()
  File "/usr/bin/vdsm-tool", line 74, in load_modules
    module = imp.load_module(mod_name, mod_fobj, mod_absp, mod_desc)
  File "/usr/lib64/python2.6/site-packages/vdsm/tool/seboolsetup.py", line 21, in <module>
    import seobject
  File "/usr/lib64/python2.6/site-packages/seobject.py", line 952, in <module>
    class portRecords(semanageRecords):
  File "/usr/lib64/python2.6/site-packages/seobject.py", line 953, in portRecords
    valid_types =  setools.seinfo(setools.ATTRIBUTE,"port_type")[0]["types"]
  File "/usr/lib64/python2.6/site-packages/setools/__init__.py", line 49, in seinfo
    dict_list = _seinfo.seinfo(setype, name)
RuntimeError: No default policy found.
  Cleanup    : vdsm-4.10.2-2.0.el6.x86_64                                                                                                                            6/10 
  Cleanup    : vdsm-cli-4.10.2-2.0.el6.noarch                                                                                                                        7/10 
  Cleanup    : vdsm-xmlrpc-4.10.2-2.0.el6.noarch                                                                                                                     8/10 
  Cleanup    : vdsm-python-4.10.2-2.0.el6.x86_64                                                                                                                     9/10 
  Cleanup    : python-ethtool-0.6-2.el6.x86_64

Comment 2 Douglas Schilling Landgraf 2013-01-09 03:14:01 UTC

*** This bug has been marked as a duplicate of bug 893065 ***


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