-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtendrl-node-agent.spec
232 lines (173 loc) · 8.22 KB
/
tendrl-node-agent.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
Name: tendrl-node-agent
Version: 1.6.3
Release: 9%{?dist}
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 <[email protected]> - 1.6.3-10
- Log rotation for tendrl log files
* Sat Jul 14 2018 Rohan Kanade <[email protected]> - 1.6.3-9
- Bugfixes (https://github.com/Tendrl/node-agent/milestone/9)
* Wed Jul 04 2018 Rohan Kanade <[email protected]> - 1.6.3-8
- Bugfixes (https://github.com/Tendrl/node-agent/milestone/9)
* Mon Jun 18 2018 Shubhendu Tripathi <[email protected]> - 1.6.3-7
- Bugfixes (https://github.com/Tendrl/node-agent/milestone/8)
* Thu May 31 2018 Rohan Kanade <[email protected]> - 1.6.3-6
- Bugfixes (https://github.com/Tendrl/node-agent/milestone/7)
* Wed May 16 2018 Rohan Kanade <[email protected]> - 1.6.3-5
- Bugfixes (https://github.com/Tendrl/node-agent/milestone/6)
* Fri May 04 2018 Rohan Kanade <[email protected]> - 1.6.3-4
- Bugfixes (https://github.com/Tendrl/node-agent/milestone/6)
* Tue Apr 24 2018 Rohan Kanade <[email protected]> - 1.6.3-3
- Bugfixes (https://github.com/Tendrl/node-agent/milestone/5)
* Fri Apr 20 2018 Rohan Kanade <[email protected]> - 1.6.3-2
- Bugfixes (https://github.com/Tendrl/node-agent/milestone/5)
* Wed Apr 18 2018 Rohan Kanade <[email protected]> - 1.6.3-1
- Support gluster nodes/bricks with fqdn, IP, short name
- Serialisation of Tendrl objects
- Bugfixes
* Thu Mar 22 2018 Rohan Kanade <[email protected]> - 1.6.2-1
- Bugfixes (https://github.com/Tendrl/node-agent/milestone/4)
* Wed Mar 07 2018 Rohan Kanade <[email protected]> - 1.6.1-1
- Auto expand clusters managed by Tendrl
* Sat Feb 17 2018 Rohan Kanade <[email protected]> - 1.6.0-1
- API to un-manage clusters managed by Tendrl
* Fri Feb 02 2018 Rohan Kanade <[email protected]> - 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 <[email protected]> - 1.5.4-16
- Bugfixes
* Sat Dec 09 2017 Rohan Kanade <[email protected]> - 1.5.4-15
- Bugfixes
* Thu Dec 07 2017 Rohan Kanade <[email protected]> - 1.5.4-14
- Bugfixes
* Thu Dec 07 2017 Rohan Kanade <[email protected]> - 1.5.4-13
- Bugfixes
* Wed Dec 06 2017 Rohan Kanade <[email protected]> - 1.5.4-12
- Bugfixes
* Wed Dec 06 2017 Rohan Kanade <[email protected]> - 1.5.4-11
- Bugfixes
* Tue Dec 05 2017 Rohan Kanade <[email protected]> - 1.5.4-10
- Bugfixes
* Thu Nov 30 2017 Rohan Kanade <[email protected]> - 1.5.4-9
- Bugfixes
* Mon Nov 27 2017 Rohan Kanade <[email protected]> - 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 <[email protected]> - 1.5.4-7
- Fix NodeContext.status in node_sync
* Fri Nov 24 2017 Rohan Kanade <[email protected]> - 1.5.4-6
- Bugfixes
* Tue Nov 21 2017 Rohan Kanade <[email protected]> - 1.5.4-5
- Remove collectd.service dependency
* Tue Nov 21 2017 Rohan Kanade <[email protected]> - 1.5.4-4
- Bugfixes-3 tendrl-node-agent v1.5.4
* Sat Nov 18 2017 Rohan Kanade <[email protected]> - 1.5.4-3
- Bugfixes-2 tendrl-node-agent v1.5.4
* Fri Nov 10 2017 Rohan Kanade <[email protected]> - 1.5.4-2
- Bugfixes tendrl-node-agent v1.5.4
* Thu Nov 02 2017 Rohan Kanade <[email protected]> - 1.5.4-1
- Release tendrl-node-agent v1.5.4
* Fri Oct 13 2017 Rohan Kanade <[email protected]> - 1.5.3-2
- BugFixes for tendrl-node-agent v1.5.3
* Thu Oct 12 2017 Rohan Kanade <[email protected]> - 1.5.3-1
- Release tendrl-node-agent v1.5.3
* Fri Sep 15 2017 Rohan Kanade <[email protected]> - 1.5.2-1
- Release tendrl-node-agent v1.5.2
* Fri Aug 25 2017 Rohan Kanade <[email protected]> - 1.5.1-1
- Release tendrl-node-agent v1.5.1
* Fri Aug 04 2017 Rohan Kanade <[email protected]> - 1.5.0-1
- Release tendrl-node-agent v1.5.0
* Mon Jun 19 2017 Rohan Kanade <[email protected]> - 1.4.2-1
- Release tendrl-node-agent v1.4.2
* Sun Jun 11 2017 Rohan Kanade <[email protected]> - 1.4.1-2
- Fixes https://github.com/Tendrl/commons/issues/586
* Thu Jun 08 2017 Rohan Kanade <[email protected]> - 1.4.1-1
- Release tendrl-node-agent v1.4.1
* Fri Jun 02 2017 Rohan Kanade <[email protected]> - 1.4.0-2
- Fixes https://github.com/Tendrl/node-agent/issues/481
* Fri Jun 02 2017 Rohan Kanade <[email protected]> - 1.4.0-1
- Release tendrl-node-agent v1.4.0
* Thu May 18 2017 Rohan Kanade <[email protected]> - 1.3.0-1
- Release tendrl-node-agent v1.3.0
* Tue Apr 18 2017 Rohan Kanade <[email protected]> - 1.2.3-1
- Release tendrl-node-agent v1.2.3
* Sat Apr 01 2017 Rohan Kanade <[email protected]> - 1.2.2-1
- Release tendrl-node-agent v1.2.2
* Tue Nov 01 2016 Timothy Asir Jeyasingh <[email protected]> - 0.0.1-1
- Initial build.