Name: tendrl-node-agent Version: 1.6.3 Release: 20190515T045259.75cf4b0 BuildArch: noarch Summary: Module for Tendrl Node Agent Source0: %{name}-%{version}.tar.gz License: LGPLv2+ URL: https://github.com/Tendrl/node-agent BuildRequires: python-urllib3 BuildRequires: python2-devel BuildRequires: pytest BuildRequires: systemd BuildRequires: python-mock BuildRequires: python-setuptools Requires: collectd Requires: collectd-ping Requires: python-jinja2 Requires: tendrl-commons Requires: hwinfo Requires: python-netifaces Requires: python-netaddr Requires: python-setuptools Requires: rsyslog %description Python module for Tendrl node bridge to manage storage node in the sds cluster %prep %setup # Remove bundled egg-info rm -rf %{name}.egg-info %build %{__python} setup.py build # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %{__python} setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES install -m 0755 --directory $RPM_BUILD_ROOT%{_sysconfdir}/tendrl/node-agent install -m 0755 --directory $RPM_BUILD_ROOT%{_datadir}/tendrl/node-agent install -m 0755 --directory $RPM_BUILD_ROOT%{_sharedstatedir}/tendrl install -m 0755 --directory $RPM_BUILD_ROOT%{_libdir}/collectd/gluster/low_weight install -m 0755 --directory $RPM_BUILD_ROOT%{_libdir}/collectd/gluster/heavy_weight install -m 0755 --directory $RPM_BUILD_ROOT%{_sysconfdir}/collectd_template install -Dm 0644 tendrl-node-agent.service $RPM_BUILD_ROOT%{_unitdir}/tendrl-node-agent.service install -Dm 0644 tendrl-node-agent.socket $RPM_BUILD_ROOT%{_unitdir}/tendrl-node-agent.socket install -Dm 0640 etc/tendrl/node-agent/node-agent.conf.yaml.sample $RPM_BUILD_ROOT%{_sysconfdir}/tendrl/node-agent/node-agent.conf.yaml install -Dm 0644 etc/tendrl/node-agent/logging.yaml.syslog.sample $RPM_BUILD_ROOT%{_sysconfdir}/tendrl/node-agent/node-agent_logging.yaml install -Dm 644 etc/tendrl/node-agent/*.sample $RPM_BUILD_ROOT%{_datadir}/tendrl/node-agent/ mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rsyslog.d install -Dm 644 etc/rsyslog.d/tendrl-node-agent.conf $RPM_BUILD_ROOT/%{_sysconfdir}/rsyslog.d/tendrl-node-agent.conf install -Dm 0644 etc/logrotate.d/tendrl-node-agent_logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/tendrl-node-agent_logrotate.conf cp -a tendrl/node_agent/monitoring/collectd/collectors/* $RPM_BUILD_ROOT%{_libdir}/collectd/ cp -a tendrl/node_agent/monitoring/collectd/templates/gluster/* $RPM_BUILD_ROOT%{_sysconfdir}/collectd_template/ cp -a tendrl/node_agent/monitoring/collectd/templates/node/* $RPM_BUILD_ROOT%{_sysconfdir}/collectd_template/ %post getent group tendrl >/dev/null || groupadd -r tendrl getent passwd tendrl-user >/dev/null || \ useradd -r -g tendrl -d /var/lib/tendrl -s /sbin/nologin \ -c "Tendrl node user" tendrl-user systemctl enable tendrl-node-agent >/dev/null 2>&1 || : %systemd_post tendrl-node-agent.service %preun %systemd_preun tendrl-node-agent.service %postun %systemd_postun_with_restart tendrl-node-agent.service %check py.test -v tendrl/node-agent/tests || : %files -f INSTALLED_FILES %dir %{_sysconfdir}/tendrl/node-agent %dir %{_datadir}/tendrl/node-agent %dir %{_sharedstatedir}/tendrl %attr(0655, root, root) %{_sysconfdir}/collectd_template/* %attr(0655, root, root) %{_libdir}/collectd/* %doc README.rst %license LICENSE %{_datadir}/tendrl/node-agent/ %config(noreplace) %{_sysconfdir}/tendrl/node-agent/*.yaml %{_unitdir}/tendrl-node-agent.service %{_unitdir}/tendrl-node-agent.socket %config(noreplace) %{_sysconfdir}/rsyslog.d/tendrl-node-agent.conf %config(noreplace) %{_sysconfdir}/logrotate.d/tendrl-node-agent_logrotate.conf %changelog * Fri Jan 18 2019 Gowtham Shanmugasundaram - 1.6.3-10 - Log rotation for tendrl log files * Sat Jul 14 2018 Rohan Kanade - 1.6.3-9 - Bugfixes (https://github.com/Tendrl/node-agent/milestone/9) * Wed Jul 04 2018 Rohan Kanade - 1.6.3-8 - Bugfixes (https://github.com/Tendrl/node-agent/milestone/9) * Mon Jun 18 2018 Shubhendu Tripathi - 1.6.3-7 - Bugfixes (https://github.com/Tendrl/node-agent/milestone/8) * Thu May 31 2018 Rohan Kanade - 1.6.3-6 - Bugfixes (https://github.com/Tendrl/node-agent/milestone/7) * Wed May 16 2018 Rohan Kanade - 1.6.3-5 - Bugfixes (https://github.com/Tendrl/node-agent/milestone/6) * Fri May 04 2018 Rohan Kanade - 1.6.3-4 - Bugfixes (https://github.com/Tendrl/node-agent/milestone/6) * Tue Apr 24 2018 Rohan Kanade - 1.6.3-3 - Bugfixes (https://github.com/Tendrl/node-agent/milestone/5) * Fri Apr 20 2018 Rohan Kanade - 1.6.3-2 - Bugfixes (https://github.com/Tendrl/node-agent/milestone/5) * Wed Apr 18 2018 Rohan Kanade - 1.6.3-1 - Support gluster nodes/bricks with fqdn, IP, short name - Serialisation of Tendrl objects - Bugfixes * Thu Mar 22 2018 Rohan Kanade - 1.6.2-1 - Bugfixes (https://github.com/Tendrl/node-agent/milestone/4) * Wed Mar 07 2018 Rohan Kanade - 1.6.1-1 - Auto expand clusters managed by Tendrl * Sat Feb 17 2018 Rohan Kanade - 1.6.0-1 - API to un-manage clusters managed by Tendrl * Fri Feb 02 2018 Rohan Kanade - 1.5.5-1 - Raise alert when node goes down, when cluster health changes - Add georep related alert also for volume alert count increment - Add volume status related alert also for volume alert count increment * Mon Dec 11 2017 Rohan Kanade - 1.5.4-16 - Bugfixes * Sat Dec 09 2017 Rohan Kanade - 1.5.4-15 - Bugfixes * Thu Dec 07 2017 Rohan Kanade - 1.5.4-14 - Bugfixes * Thu Dec 07 2017 Rohan Kanade - 1.5.4-13 - Bugfixes * Wed Dec 06 2017 Rohan Kanade - 1.5.4-12 - Bugfixes * Wed Dec 06 2017 Rohan Kanade - 1.5.4-11 - Bugfixes * Tue Dec 05 2017 Rohan Kanade - 1.5.4-10 - Bugfixes * Thu Nov 30 2017 Rohan Kanade - 1.5.4-9 - Bugfixes * Mon Nov 27 2017 Rohan Kanade - 1.5.4-8 - Fixing volume heal info to update under correct brick - Supress service enable message during package update * Fri Nov 24 2017 Rohan Kanade - 1.5.4-7 - Fix NodeContext.status in node_sync * Fri Nov 24 2017 Rohan Kanade - 1.5.4-6 - Bugfixes * Tue Nov 21 2017 Rohan Kanade - 1.5.4-5 - Remove collectd.service dependency * Tue Nov 21 2017 Rohan Kanade - 1.5.4-4 - Bugfixes-3 tendrl-node-agent v1.5.4 * Sat Nov 18 2017 Rohan Kanade - 1.5.4-3 - Bugfixes-2 tendrl-node-agent v1.5.4 * Fri Nov 10 2017 Rohan Kanade - 1.5.4-2 - Bugfixes tendrl-node-agent v1.5.4 * Thu Nov 02 2017 Rohan Kanade - 1.5.4-1 - Release tendrl-node-agent v1.5.4 * Fri Oct 13 2017 Rohan Kanade - 1.5.3-2 - BugFixes for tendrl-node-agent v1.5.3 * Thu Oct 12 2017 Rohan Kanade - 1.5.3-1 - Release tendrl-node-agent v1.5.3 * Fri Sep 15 2017 Rohan Kanade - 1.5.2-1 - Release tendrl-node-agent v1.5.2 * Fri Aug 25 2017 Rohan Kanade - 1.5.1-1 - Release tendrl-node-agent v1.5.1 * Fri Aug 04 2017 Rohan Kanade - 1.5.0-1 - Release tendrl-node-agent v1.5.0 * Mon Jun 19 2017 Rohan Kanade - 1.4.2-1 - Release tendrl-node-agent v1.4.2 * Sun Jun 11 2017 Rohan Kanade - 1.4.1-2 - Fixes https://github.com/Tendrl/commons/issues/586 * Thu Jun 08 2017 Rohan Kanade - 1.4.1-1 - Release tendrl-node-agent v1.4.1 * Fri Jun 02 2017 Rohan Kanade - 1.4.0-2 - Fixes https://github.com/Tendrl/node-agent/issues/481 * Fri Jun 02 2017 Rohan Kanade - 1.4.0-1 - Release tendrl-node-agent v1.4.0 * Thu May 18 2017 Rohan Kanade - 1.3.0-1 - Release tendrl-node-agent v1.3.0 * Tue Apr 18 2017 Rohan Kanade - 1.2.3-1 - Release tendrl-node-agent v1.2.3 * Sat Apr 01 2017 Rohan Kanade - 1.2.2-1 - Release tendrl-node-agent v1.2.2 * Tue Nov 01 2016 Timothy Asir Jeyasingh - 0.0.1-1 - Initial build.