Bug 1128074
| Summary: | [oVirt-node] TypeError: in method 'matchpathcon', argument 1 of type 'char const *' | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Martin Pavlik <mpavlik> | ||||
| Component: | vdsm | Assignee: | Dan Kenigsberg <danken> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Gil Klein <gklein> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 3.5 | CC: | asegurap, bazulay, bugs, danken, ecohen, gklein, iheim, mgoldboi, mpavlik, ovirt-bugs, rbalakri, ycui, yeylon | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 3.5.0 | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | network | ||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-10-17 12:26:25 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | Network | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Which version of libselinux libselinux-python do you have?
Does running
python -c 'import selinux;selinux.restorecon("/etc/sysconfig/network-scripts/ifcfg-eth0")'
as root produce similar noises?
[root@localhost ~]# cat /etc/redhat-release
oVirt Node Hypervisor release 3.1.0_master (20140805.0) (Edited, Unsigned
[root@localhost ~]# python -c 'import selinux;selinux.restorecon("/etc/sysconfig/network-scripts/ifcfg-eth0")'
does not return anything
[root@localhost ~]# rpm -qa | grep selinux
libselinux-2.0.94-5.3.el6_4.1.x86_64
selinux-policy-targeted-3.7.19-231.el6_5.3.noarch
ovirt-node-selinux-3.1.0-0.0.master.20140805.git67e6b92.el6.noarch
selinux-policy-3.7.19-231.el6_5.3.noarch
libselinux-utils-2.0.94-5.3.el6_4.1.x86_64
libselinux-python-2.0.94-5.3.el6_4.1.x86_64
A quick search reveals bug 908916 (restorecon() does not handle unicode strings), but I don't understand how unicode() got into the filename, or why this has not been visible out of the node. Any guess, Toni? Martin, does this have a noticeable functional effect? What is your ls -Z /etc/sysconfig/network-scripts/ifcfg-eth0 no, no functional effect that I am aware of, I just noticed it when investigating other bug [root@localhost admin]# ls -Z /etc/sysconfig/network-scripts/ifcfg-eth0 -rw-rw-r--. root root system_u:object_r:net_conf_t:s0 /etc/sysconfig/network-scripts/ifcfg-eth0 oVirt 3.5 has been released and should include the fix for this issue. |
Created attachment 925127 [details] node logs Description of problem: after approval of node in engine following traceback appears in logs MainThread::DEBUG::2014-08-08 08:21:11,212::ifcfg::549::root::(writeConfFile) ignoring restorecon error in case SElinux is disabled Traceback (most recent call last): File "/usr/share/vdsm/network/configurators/ifcfg.py", line 546, in writeConfFile selinux.restorecon(fileName) File "/usr/lib64/python2.6/site-packages/selinux/__init__.py", line 76, in restorecon TypeError: in method 'matchpathcon', argument 1 of type 'char const *' Version-Release number of selected component (if applicable): oVirt Node Hypervisor release 3.1.0_master (20140805.0) (Edited, Unsigned)[root@localhost admin]# oVirt Engine Version: 3.5.0-0.0.master.20140804172041.git23b558e.el6 How reproducible: 100% Steps to Reproduce: 1. install ovirt node (PXE used) 2. register node form TUI to GUI 3. approve node in GUI Actual results: TypeError: in method 'matchpathcon', argument 1 of type 'char const *' Expected results: no erorro Additional info: