Symptoms
Task "Collect resources usage statistics" fails with error:
exec /usr/local/pem/etc/web_cluster/lvestat.py at host 11068 failed: Traceback (most recent call last):
File "/usr/local/pem/etc/web_cluster/lvestat.py", line 4, in <module>
import lvehelper
ImportError: No module named lvehelper
Cause
As a result of 'lve-stats' upgrade, the necessary files (e.g. lvestat.py
) were removed.
Its absence causes the error.
The behavior is caused by software issue #POA-108900, which has been fixed in 7.0 version of Odin Automation.
Workaround
Downgrade lve-stats
and the depending packages:
yum downgrade lve-utils-1.5-2.35.el6.cloudlinux.x86_64 alt-python27-cllib-1.2-11.3.el6.cloudlinux.noarch lve-stats-0.10-51.el6.noarch
Also it is recommended that you add lve-stats to YUM excludes to prevent it from being updated in future. You can do it by modifying yum.conf, e.g.
# grep exclude /etc/yum.conf
exclude=lve-stats*
#