pcp
[Top] [All Lists]

Re: [pcp] qa/652 - systemd pmda

To: pcp@xxxxxxxxxxx
Subject: Re: [pcp] qa/652 - systemd pmda
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue, 07 Oct 2014 17:08:20 +1100
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5418A165.5070809@xxxxxxxxxxxxxxxx>
References: <5418A165.5070809@xxxxxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2
On 17/09/14 06:45, Ken McDonell wrote:
> Is failing and I can't see why ... no indication in the systemd pmda log 
> file.
> 
> .out.bad and .full files attached.

Frank helped with this a little, but we did not resolve it and dismissed it as 
an old platform issue.

Well, the problem is back on Centos 7 ... so I'm guessing it is worth 
understanding what's going wrong ... and for that I need some help as I know 
less than zippo about systemd or the PMDA.

Now it looks like the systemd pmda is running with the wrong uid ... on this 
system it is adm but strace shows

open("/run/log/journal/6b092c3ed31ed3412f8508b0df478269/system.journal", 
O_RDONLY|O_CLOEXEC) = -1 EACCES (Permission denied)

and sure enough /run/log/.../system.journal is owned by root

kenj@vm08:~/src/pcp/qa$ ls -l 
/run/log/journal/6b092c3ed31ed3412f8508b0df478269/system.journal
-rw-r-----. 1 root root 6516736 Oct  7 17:01 
/run/log/journal/6b092c3ed31ed3412f8508b0df478269/system.journal

Forcing the PMDA to run as root did not really help, although the problem 
changed ... 8^)> ... the PMDA now fails like this ...


select(6, [0 5], NULL, NULL, {48, 373602}) = 1 (in [5], left {43, 698763})
clock_gettime(CLOCK_MONOTONIC, {32506, 307799717}) = 0
read(5, "\2\0\0\0\2\0\0\0\0\0\0\0\20\0\0\0system.journal\0\0", 4112) = 32
read(5, 0x7fff7744e8a0, 4112)           = -1 EAGAIN (Resource temporarily 
unavailable)
clock_gettime(CLOCK_MONOTONIC, {32506, 307913495}) = 0
read(-1, 0x7fff7744e8a0, 4112)          = -1 EBADF (Bad file descriptor)
gettimeofday({1412661985, 179860}, NULL) = 0
select(6, [0 5], NULL, NULL, {60, 0})   = 1 (in [5], left {59, 968625})
clock_gettime(CLOCK_MONOTONIC, {32506, 340349457}) = 0
read(5, "\2\0\0\0\2\0\0\0\0\0\0\0\20\0\0\0system.journal\0\0", 4112) = 32
read(5, 0x7fff7744e8a0, 4112)           = -1 EAGAIN (Resource temporarily 
unavailable)
clock_gettime(CLOCK_MONOTONIC, {32506, 340704185}) = 0
read(-1, 0x7fff7744e8a0, 4112)          = -1 EBADF (Bad file descriptor)
gettimeofday({1412661985, 212670}, NULL) = 0
select(6, [0 5], NULL, NULL, {60, 0}

<Prev in Thread] Current Thread [Next in Thread>