Dear Ceph Gurus - This is just a report about an annoying warning we keep getting every time our logs are rotated. ibust[8241/8241]: Warning: HOME environment variable not set. Disabling LTTng-UST per-user tracing. (in setup_local_apps() at lttng-ust-comm.c:305)- I am running ceph 9.0.3 in SL6.7 (or Centos 6.7) # cat /etc/redhat-release - logrotate is run daily in our cluster, and ceph logs have a specific config. # rpm -qf /etc/logrotate.d/ceph- Each time logrotate is executed, we received a daily notice with the message ibust[8241/8241]: Warning: HOME environment variable not set. Disabling LTTng-UST per-user tracing. (in setup_local_apps() at lttng-ust-comm.c:305)- It seems that logrotate for ceph invokes a 'service ceph reload' which is executed as env -i PATH=/sbin:/usr/sbin:/bin:/usr/bin TERM=xterm-256color /etc/init.d/ceph reload- The 'env -i' sets an empty environment, and that is why we keep receiving that message. Looking further, '/etc/init.d/ceph reload' actually runs something as '/usr/bin/ceph-conf -c /etc/ceph/ceph.conf -n mon<id> host' where ceph-conf is a binary using liblttng-ust.so.0 # env -i /usr/bin/ceph-conf -c /etc/ceph/ceph.conf -n <id> - To fix this, I had to set 'export HOME=/root' in /usr/lib64/ceph/ceph_common.sh Cheers Goncalo -- Goncalo Borges Research Computing ARC Centre of Excellence for Particle Physics at the Terascale School of Physics A28 | University of Sydney, NSW 2006 T: +61 2 93511937 |
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com