<div dir="ltr">Adding Oved<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 10:47 AM, Richard Neuboeck <span dir="ltr"><<a href="mailto:hawk@tbi.univie.ac.at" target="_blank">hawk@tbi.univie.ac.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 09/01/2015 09:55 AM, Simone Tiraboschi wrote:<br>
> Indeed you had:<br>
> Thread-64::DEBUG::2015-08-31<br>
> 12:33:15,127::utils::661::root::(execCmd) /usr/bin/sudo -n<br>
> /usr/sbin/dmidecode -s system-uuid (cwd None)<br>
> Thread-64::DEBUG::2015-08-31<br>
> 12:33:15,153::utils::679::root::(execCmd) FAILED: <err> = '/dev/mem:<br>
> Operation not permitted\n'; <rc> = 1<br>
> Thread-64::WARNING::2015-08-31<br>
> 12:33:15,154::utils::812::root::(getHostUUID) Could not find host UUID.<br>
> Thread-64::DEBUG::2015-08-31<br>
><br>
> Can you please try executing?<br>
> /usr/sbin/dmidecode -s system-uuid<br>
<br>
</span>dmidecode always fails and according to the things I've read this is<br>
caused by the kernel restricting access to /dev/mem. But this<br>
shouldn't affect the root user. It does anyway. I've tried with<br>
selinux on and off. Is there a way around this problem? So far I<br>
didn't find anything really helpful by googling around. This problem<br>
seems only to affect these kind of machines. CentOS 7.1<br>
installations with the same kernel on another machine lets me run<br>
dmidecode without problems. I guess I'm missing something.<br>
<br>
[root@cube-one tmp]# dmidecode<br>
# dmidecode 2.12<br>
# SMBIOS entry point at 0xbafbaca0<br>
/dev/mem: Operation not permitted<br>
<br>
[root@cube-one tmp]# /usr/sbin/dmidecode -s system-uuid<br>
/dev/mem: Operation not permitted<br></blockquote><div><br></div><div>dmidecode -s system-uuid is failing cause it cannot read /dev/mem so VDSM fails getting the host UUID and so vdscli raise an exception about a None value on 'uuid' when hosted-engine calls getVdsCapabilities.</div><div>Any hint on that or any workaround?</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
[root@cube-one tmp]# grep DEVMEM<br>
/boot/config-3.10.0-229.11.1.el7.x86_64<br>
CONFIG_STRICT_DEVMEM=y<br>
<br>
Cheers<br>
<span class=""><font color="#888888">Richard<br>
<br>
--<br>
/dev/null<br>
<br>
</font></span></blockquote></div><br></div></div>