-
Notifications
You must be signed in to change notification settings - Fork 1
/
splice.spec
1210 lines (1018 loc) · 52.4 KB
/
splice.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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#SELinux
%global selinux_policyver %(%{__sed} -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp || echo 0.0.0)
Name: splice
Version: 0.146
Release: 1%{?dist}
Summary: Framework for tracking entitlement consumption
Group: Development/Languages
License: GPLv2+
URL: https://github.com/splice/splice-server
# Source0: https://github.com/splice/splice-server/zipball/master/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: rpm-python
BuildRequires: python-sphinx
BuildRequires: python-sphinxcontrib-httpdomain
Requires: mongodb-server
Requires: mod_ssl
Requires: mod_wsgi
Requires: python-oauth2
Requires: python-httplib2
#
# Below RPMs are newer versions not yet in EPEL or RHEL
# We have the source stored in our git repo under 'deps'
#
Requires: Django >= 1.4.1
Requires: python-django-tastypie >= 0.9.14
Requires: python-django-tastypie-mongoengine
Requires: m2crypto >= 0.21.1.pulp-7
#
# RPMs from Splice Project
#
#Requires: report-server-import >= 0.53
#Requires: rhic-serve-rcs >= 0.15
#
# Our own sub RPMs
#
Requires: %{name}-selinux = %{version}-%{release}
Requires: %{name}-common = %{version}-%{release}
#
# rhic-serve's mod_wsgi configuration will cause Splice to be unusable
#
Conflicts: rhic-serve
#
%description
Framework for metering entitlement consumption
%package celery
Summary: Splice Celery Tasks
Group: Development/Languages
Requires: python-celery >= 3.0
Requires: django-celery >= 3.0.9
Requires: rabbitmq-server
Requires: librabbitmq
%description celery
Splice Celery Tasks
%package selinux
Summary: Splice SELinux policy
Group: Development/Languages
BuildRequires: rpm-python
BuildRequires: make
BuildRequires: checkpolicy
BuildRequires: selinux-policy-devel
# el6, selinux-policy-doc is the required RPM which will bring below 'policyhelp'
BuildRequires: /usr/share/selinux/devel/policyhelp
BuildRequires: hardlink
Requires: selinux-policy >= %{selinux_policyver}
Requires(post): policycoreutils-python
Requires(post): selinux-policy-targeted
Requires(post): /usr/sbin/semodule, /sbin/fixfiles, /usr/sbin/semanage
Requires(postun): /usr/sbin/semodule
%description selinux
SELinux policy for Splice
%package common
Summary: Splice common components
Group: Development/Languages
Requires: %{name}-common-config = %{version}-%{release}
Requires: python-certutils >= 0.15
Requires: python-mongoengine >= 0.7.5
Requires: pymongo
Requires: pymongo-gridfs
# Explicity require the v8 package. The ruby-v8 package has a false provides
# that makes it so that v8 is not installed.
# See https://bugzilla.redhat.com/show_bug.cgi?id=971595
Requires: v8
%description common
Splice common components
%package common-config
Summary: Splice common config components
Group: Development/Languages
Requires: python-isodate
Requires: httpd
%description common-config
Splice common config components
%package doc
Summary: Splice documentation
Group: Development/Languages
BuildRequires: python-sphinx
BuildRequires: python-sphinxcontrib-httpdomain
%description doc
Splice documentation
%prep
%setup -q
%build
pushd src
%{__python} setup.py build
popd
# SELinux Configuration
cd selinux
perl -i -pe 'BEGIN { $VER = join ".", grep /^\d+$/, split /\./, "%{version}.%{release}"; } s!0.0.0!$VER!g;' splice-server.te
./build.sh
cd -
# Sphinx documentation
pushd doc
make html
popd
%install
rm -rf %{buildroot}
pushd src
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/
mkdir -p %{buildroot}/%{_sysconfdir}/splice
mkdir -p %{buildroot}/%{_sysconfdir}/pki/%{name}
mkdir -p %{buildroot}/%{_sysconfdir}/rc.d/init.d
mkdir -p %{buildroot}/%{_var}/lib/%{name}
mkdir -p %{buildroot}/%{_var}/log/%{name}
mkdir -p %{buildroot}/%{_var}/log/%{name}/celery
mkdir -p %{buildroot}/%{_bindir}
# Install WSGI script & httpd conf
cp -R srv %{buildroot}
cp etc/httpd/conf.d/%{name}.conf %{buildroot}/%{_sysconfdir}/httpd/conf.d/
cp -R etc/splice %{buildroot}/%{_sysconfdir}
cp -R etc/rc.d/init.d %{buildroot}/%{_sysconfdir}/rc.d
# Copy Cert Data
cp -R etc/pki/%{name} %{buildroot}/%{_sysconfdir}/pki/
# Remove egg info
rm -rf %{buildroot}/%{python_sitelib}/*.egg-info
# Remove unit tests
rm -rf %{buildroot}/%{python_sitelib}/splice/entitlement/tests
rm %{buildroot}/%{_sysconfdir}/splice/logging/unittests.cfg
# Install SELinux policy modules
cd selinux
./install.sh %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_datadir}/%{name}/selinux
cp enable.sh %{buildroot}%{_datadir}/%{name}/selinux
cp uninstall.sh %{buildroot}%{_datadir}/%{name}/selinux
cp relabel.sh %{buildroot}%{_datadir}/%{name}/selinux
cd -
# Documentation
mkdir -p %{buildroot}/%{_docdir}/%{name}
cp LICENSE %{buildroot}/%{_docdir}/%{name}
cp -R doc/_build/html %{buildroot}/%{_docdir}/%{name}
# Scripts
cp bin/splice-debug %{buildroot}/%{_bindir}/splice-debug
%clean
rm -rf %{buildroot}
%post
#
# If https certs haven't been generated, generate them and update https config file
#
if [ ! -f /etc/pki/splice/generated/Splice_HTTPS_server.cert ]
then
splice_cert_gen_setup.py /etc/httpd/conf.d/splice.conf
fi
%pre common-config
getent group splice >/dev/null || groupadd -r splice
getent passwd splice >/dev/null || \
useradd -r -g splice -G apache -d %{_var}/lib/%{name} -s /sbin/nologin \
-c "splice user" splice
exit 0
%post common
touch %{_var}/log/%{name}/general.log
touch %{_var}/log/%{name}/splice.log
touch %{_var}/log/%{name}/spacewalk_splice_tool.log
chown -R apache:splice %{_var}/log/%{name}
chown -R splice:splice %{_var}/log/%{name}/celery
chmod -R g+rwX %{_var}/log/%{name}
#
# If there is no Splice Server identity certificate, generate a new one for testing
# This step will be removed during production, the splice server cert must come from
# access.redhat.com eventually
#
if [ ! -f /etc/pki/consumer/Splice_identity.cert ]
then
if [ ! -d /etc/pki/consumer ]
then
mkdir /etc/pki/consumer
fi
splice_cert_gen_identity.py --cacert /etc/pki/splice/Splice_CA.cert --cakey /etc/pki/splice/Splice_CA.key --outcert /etc/pki/consumer/Splice_identity.cert --outkey /etc/pki/consumer/Splice_identity.key
fi
# Mongo must be started. Ideally, this would be done in seperate startup
# script. This is a workaround for now.
chkconfig mongod on
service mongod start
%post selinux
# Enable SELinux policy modules
if /usr/sbin/selinuxenabled ; then
%{_datadir}/%{name}/selinux/enable.sh %{_datadir}
fi
# Continuing with using posttrans, as we did this for Pulp and it worked for us.
# restorcecon wasn't reading new file contexts we added when running under 'post' so moved to 'posttrans'
# Spacewalk saw same issue and filed BZ here: https://bugzilla.redhat.com/show_bug.cgi?id=505066
%posttrans selinux
if /usr/sbin/selinuxenabled ; then
%{_datadir}/%{name}/selinux/relabel.sh %{_datadir}
# TODO:
# **Remove for Production**: This is only to aid test/development
semanage fcontext -a -t splice_cert_t "/etc/pki/consumer/Splice(.*)?"
restorecon /etc/pki/consumer/Splice*
fi
%preun selinux
# Clean up after package removal
if [ $1 -eq 0 ]; then
%{_datadir}/%{name}/selinux/uninstall.sh
%{_datadir}/%{name}/selinux/relabel.sh
fi
exit 0
%files
%defattr(-,root,root,-)
%{python_sitelib}/%{name}/checkin_service
%{python_sitelib}/%{name}/entitlement/__init__.py*
%{python_sitelib}/%{name}/entitlement/apis.py*
%{python_sitelib}/%{name}/entitlement/checkin.py*
%{python_sitelib}/%{name}/entitlement/models.py*
%{python_sitelib}/%{name}/entitlement/on_startup.py*
%{python_sitelib}/%{name}/entitlement/views.py*
%{python_sitelib}/%{name}/manage.py*
%{python_sitelib}/%{name}/managers
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%config(noreplace) %{_sysconfdir}/rc.d/init.d/splice_all
%attr(755,root,root) %{_bindir}/splice-debug
%defattr(-,apache,apache,-)
%dir /srv/%{name}
/srv/%{name}/webservices.wsgi
%doc
%files celery
%defattr(-,root,root,-)
%{python_sitelib}/%{name}/entitlement/tasks.py*
%config(noreplace) %{_sysconfdir}/splice/celery/celerybeat
%config(noreplace) %{_sysconfdir}/splice/celery/celeryd
%config(noreplace) %{_sysconfdir}/rc.d/init.d/splice_celerybeat
%config(noreplace) %{_sysconfdir}/rc.d/init.d/splice_celeryd
%dir %{_var}/log/%{name}/celery
%attr(775,root,splice) %{_var}/log/%{name}/celery
%files common
%defattr(-,root,root,-)
%{python_sitelib}/%{name}/common
%exclude %{python_sitelib}/%{name}/common/__init__.py*
%exclude %{python_sitelib}/%{name}/common/config.py*
%{python_sitelib}/%{name}/__init__.py*
%config(noreplace) %{_sysconfdir}/%{name}
%exclude %{_sysconfdir}/%{name}/splice.conf
%exclude %{_sysconfdir}/%{name}/logging/basic.cfg
%defattr(-,apache,splice,-)
%dir %{_sysconfdir}/pki/%{name}
%{_sysconfdir}/pki/%{name}
%dir %{_var}/lib/%{name}
%dir %{_var}/log/%{name}
%attr(775,apache,splice) %{_var}/log/%{name}
%attr(775,splice,splice) %{_var}/log/%{name}/celery
%attr(775,apache,splice) %{_var}/lib/%{name}
%files common-config
%defattr(-,root,root,-)
%dir %{python_sitelib}/%{name}/common
%{python_sitelib}/%{name}/common/__init__.py*
%{python_sitelib}/%{name}/common/config.py*
%config(noreplace) %{_sysconfdir}/%{name}
%attr(0640, root, splice) %{_sysconfdir}/%{name}/splice.conf
%exclude %{_sysconfdir}/%{name}/conf.d
%files selinux
%defattr(-,root,root,-)
%doc selinux/%{name}-server.fc selinux/%{name}-server.if selinux/%{name}-server.te
%{_datadir}/%{name}/selinux/*
%{_datadir}/selinux/*/%{name}-server.pp
%{_datadir}/selinux/devel/include/apps/%{name}-server.if
%files doc
%doc %{_docdir}/%{name}
%changelog
* Wed Sep 11 2013 John Matthews <[email protected]> 0.146-1
- 1006593 - splice log rolling sets incorrect permissions
* Tue Sep 03 2013 Chris Duryee (beav) <[email protected]>
- 1003574 - after clean installation spacewalk-splice-checkin complains about
/var/log/splice/general.log ([email protected])
* Tue Aug 27 2013 Chris Duryee (beav) <[email protected]>
- 1001715: remove celery from selinux config ([email protected])
* Tue Aug 27 2013 Chris Duryee (beav) <[email protected]>
- 1001228: fix files section for splice-common ([email protected])
* Wed Aug 14 2013 John Matthews <[email protected]> 0.142-1
- 978432 - tests are packaged in splice ([email protected])
- do not build debug packages for python-mongoengine ([email protected])
* Tue Jul 30 2013 Chris Duryee (beav) <[email protected]>
- 985417: console logger should be ERROR ([email protected])
* Thu Jul 25 2013 John Matthews <[email protected]> 0.140-1
- Splice server 'mod_wsgi' app will now run as 'splice' group
- Update spelling error in Splice_CA ([email protected])
* Thu Jul 25 2013 John Matthews <[email protected]> 0.139-1
- Change name of splice CA to Splice_CA.cert ([email protected])
* Mon Jul 22 2013 John Matthews <[email protected]> 0.138-1
- Changed name of field "organization_id" to "organization_label" to reflect
what we are storing ([email protected])
- Automatic commit of package [python-django-tastypie] minor release
[0.9.14-6]. ([email protected])
- Adding python-dateutil back to Requires and requires >= 1.5, < 2.0
- Automatic commit of package [python-django-tastypie] minor release
[0.9.14-5]. ([email protected])
- Missed a duplicate requires for python-dateutil15 ([email protected])
- Automatic commit of package [python-django-tastypie] minor release
[0.9.14-4]. ([email protected])
- Modify python-dateutil requires to contain version 1.5 or greater
- Automatic commit of package [python-django-tastypie] minor release
[0.9.14-3]. ([email protected])
- 977890 - python-dateutil-1.5-4.el6sam.noarch.rpm is not being installed
* Tue Jul 16 2013 Chris Duryee (beav) <[email protected]>
- add deleted field ([email protected])
* Tue Jul 16 2013 John Matthews <[email protected]> 0.136-1
- Moving creation of 'splice' group to common-config ([email protected])
* Tue Jul 16 2013 John Matthews <[email protected]> 0.135-1
- 978390 - splice config files should be protected ([email protected])
* Tue Jul 16 2013 John Matthews <[email protected]> 0.134-1
- Remove 'tests' dir from being packaged ([email protected])
* Tue Jul 16 2013 John Matthews <[email protected]> 0.133-1
- 978432 - tests are packaged in splice ([email protected])
* Tue Jul 16 2013 John Matthews <[email protected]> 0.132-1
- 978409 - (CVE-2009-3555) splice: /etc/httpd/conf.d/splice.conf has default
"SSLInsecureRenegotiation on" setting ([email protected])
* Tue Jul 16 2013 John Matthews <[email protected]> 0.131-1
- 977453 - splice components should use same license ([email protected])
- Commented out several tests based on our pieces of functionality we have
commented out of the main server ([email protected])
* Tue Jun 18 2013 James Slagle <[email protected]> 0.130-1
- 972915 - set perms/owner on /var/lib/splice as well ([email protected])
- Update build config to remove git repos that no longer exist
* Mon Jun 17 2013 James Slagle <[email protected]> 0.129-1
- Enable and start mongod ([email protected])
- Require v8 package ([email protected])
* Mon Jun 17 2013 John Matthews <[email protected]> 0.128-1
- 974966 - Comment out calls to celery components ([email protected])
* Fri Jun 14 2013 James Slagle <[email protected]> 0.127-1
- Remove rhic_serve log file handler. It creates a superfulous file.
- Package splice-debug script ([email protected])
* Thu Jun 13 2013 John Matthews <[email protected]> 0.126-1
- Fix permissions on /var/log/splice in the spec file ([email protected])
* Mon Jun 10 2013 John Matthews <[email protected]> 0.125-1
- 928372 - Missing dependencies for splice-common package
- Update sample to use 'checkin_date' ([email protected])
* Wed Jun 05 2013 John Matthews <[email protected]> 0.124-1
- Add python-django-tastypie-mongoengine to Requires ([email protected])
- Automatic commit of package [python-django-tastypie-mongoengine] minor
release [0.2.3-5]. ([email protected])
- Adding python-django-tastypie-mongoengine to deps ([email protected])
* Wed Jun 05 2013 John Matthews <[email protected]> 0.123-1
- Commenting out startup of un-needed pieces for SAM integration
* Wed Jun 05 2013 John Matthews <[email protected]> 0.122-1
- Automatic commit of package [python-django-tastypie] minor release
[0.9.14-2]. ([email protected])
- Removed older files from python-django-tastypie 0.9.12 ([email protected])
- Upgrade python-django-tastypie to 0.9.14 ([email protected])
* Wed Jun 05 2013 John Matthews <[email protected]> 0.121-1
- Comment out requires on rhic_serve and report-server. Testing to confirm
they are not needed ([email protected])
- Updating bos.py script to use chcon instead of restorecon to work past an
issue when applying a context to a path that contains a symlink which breaks
regexes restorecon relies on ([email protected])
* Tue Jun 04 2013 James Slagle <[email protected]> 0.120-1
- Require pymongo-gridfs ([email protected])
* Tue Jun 04 2013 James Slagle <[email protected]> 0.119-1
- Add sphinx deps ([email protected])
- Refactor packaging a bit to not require celery ([email protected])
- Add splice-debug script ([email protected])
- Adding 'splice-reports' to our builder script 'bos' ([email protected])
* Thu May 23 2013 Chris Duryee (beav) <[email protected]>
- change 'date' field on MPU to 'checkin_date' ([email protected])
* Wed May 22 2013 John Matthews <[email protected]> 0.117-1
- Removing pymongo-gridfs dep ([email protected])
* Fri May 17 2013 John Matthews <[email protected]> 0.116-1
- Fix for newer version of tastypie which no longer passes in 'request' to
obj_update ([email protected])
* Fri May 17 2013 John Matthews <[email protected]> 0.115-1
- Handle if 'updated' or 'created' are passed into JSON with "" values
* Fri May 17 2013 John Matthews <[email protected]> 0.114-1
- Fix for newer version of tastypie so we don't delete the collection on upload
- Updated marketing product usage JSON example ([email protected])
* Mon May 13 2013 John Matthews <[email protected]> 0.113-1
- Update to work with python-django-tastypie-0.9.14, also add requires for
python-oauth2 and python-httplib2 ([email protected])
* Wed May 08 2013 John Matthews <[email protected]> 0.112-1
- Changing 'entitlement_status' to a Dictionary ([email protected])
- Fix error: TypeError: option values must be strings ([email protected])
- Fix deps on splice-common ([email protected])
* Thu Apr 25 2013 James Slagle <[email protected]> 0.111-1
- Add missing import ([email protected])
* Thu Apr 25 2013 James Slagle <[email protected]> 0.110-1
- Update test for different dep ([email protected])
* Thu Apr 25 2013 James Slagle <[email protected]> 0.109-1
- Remove dependencies on rhic-serve. ([email protected])
* Wed Apr 24 2013 John Matthews <[email protected]> 0.108-1
- Added OAuth Authentication and a 'ping' API to test SpliceAuth which contains
both OAuth and X509 as Authentication methods ([email protected])
* Tue Apr 16 2013 John Matthews <[email protected]> 0.107-1
- Fix for splice.common.api 'complete_hook', reset 'self.all_objects' on each
request ([email protected])
* Fri Apr 12 2013 John Matthews <[email protected]> 0.106-1
- Small cleanup ([email protected])
- Update for spliceserver API ([email protected])
- Removing sphix generated _build from git ([email protected])
- Updated shinx docs for splice.common.apis ([email protected])
- Sample curl script and json to exercise splice.common.apis
- use server name instead of server hostname ([email protected])
* Mon Apr 08 2013 John Matthews <[email protected]> 0.105-1
- Add allow inheritance to splice.common.models ([email protected])
- use candlepin from upstream ([email protected])
- Updated BaseResource based on integration work getting
MarkertingProductUsageResouce to work with Report Server - added the
'complete_hook' to be called after all objects have been serialized from REST
request - move some base classes from unit tests to splice.common so we can
reuse functionality in ReportServer - Moved ProductUsageResource into
splice.common.api, more updates may be desired so inherits from BaseResource
- add additional fields per wes ([email protected])
- add spacewalk-reports rpm ([email protected])
- Changed sample data and removed comment ([email protected])
- add unit tests for deserializer ([email protected])
- Add new deserializer to handle zipped json data ([email protected])
- add entitlement status field to MPU ([email protected])
- Updates to Pool/Product/Rules API, curl scripts to upload real data from
Candlepin to Splice APIs - from_test_json.py will talk to candlepin and form
sample .json data - then upload*.sh scripts under playpen will send the
sample .json to splice APIs ([email protected])
- unit tests for MarketingProductUsage ([email protected])
- marketing product tracking support ([email protected])
- Added support for decoding base64 rules from Candlepin as well as
splice.common API to accept Rules being uploaded to us ([email protected])
- Updates and unit tests for Pool & Product API ([email protected])
- Fixes problem when passed in manifest is called manifest.zip
- Require a --host to be specified ([email protected])
- Introduced a BaseResource to handle most of the update logic we want for our
APIs Reworked SpliceServerResource to use BaseResource Added Product & Pool
API, unit tests lacking, will be in commit later today ([email protected])
- Changing SpliceServer models attribute of "modified" to "updated"
- add spacewalk-splice-tool ([email protected])
- forgot a file ([email protected])
- use master instead of buildtest branch for spacewalk ([email protected])
- rebuild candlepin from source, and install newer candlepin.
- Added ability to fetch Pool & Product data from Candlepin and save to mongo
- Fetch/Parse Pool & Product data from Candlepin ([email protected])
- First steps for getting subscription manifest data from Candlepin
- Open 8443 for Candlepin in iptables ([email protected])
- Fixed issue with using pub sshkey instead of priv for ssh, added more print
statements ([email protected])
- Tweaks to fix provisioning a Spacewalk+Candlepin ([email protected])
- Provisioning script to lauch a modified Spacewalk with Candlepin
- EC2 provisioning script to install Spacewalk & Candlepin together on same
instance ([email protected])
- EC2 provisioning script to install Spacewalk & Candlepin together on same
instance ([email protected])
- EC2 provisioning scripts to launch a Spacewalk instance
- Touchups to launch Report Server and fix to source functions.sh for launch
RCS ([email protected])
- Added a provisioning script for ReportServer, fixed EBS volume to be set to
delete on termination ([email protected])
- Minor cleanup of Log statements no longer needed ([email protected])
- Moved launch EC2 scripts to python-boto ([email protected])
* Thu Jan 31 2013 John Matthews <[email protected]> 0.104-1
- Adding debug info to track down issue with SpliceServer upload in
ReportServer ([email protected])
* Thu Jan 31 2013 John Matthews <[email protected]> 0.103-1
- Adding debug info for splice.common.api SpliceServer ([email protected])
* Thu Jan 31 2013 John Matthews <[email protected]> 0.102-1
- Adding requires of "python-isodate" to splice-common ([email protected])
* Thu Jan 31 2013 John Matthews <[email protected]> 0.101-1
- Removing requirement of django.http being available to use
splice.common.exceptions (needed by spacewalk-splice-tool)
- Fix unit test to allow mocked method to accept "gzip" arg
- Adding "spacewalk-splice-tool" and "splice-socketreport" to list of packages
to build ([email protected])
- Update ec2 instance tag to reflect the rpm version of the RCS which was setup
- Small logging update ([email protected])
- Prefix ec2 instance of launched RCS with whoami ([email protected])
* Wed Jan 23 2013 John Matthews <[email protected]> 0.100-1
- Bump requires on report server to version with gzip support
* Wed Jan 23 2013 John Matthews <[email protected]> 0.99-1
- Adding gzip to request for upload of ProductUsage data, seeing improvements
from 10k entries of 35MB compressed to 240k ([email protected])
- Unit tests for uploading an empty body on ProductUsage, requires update from
ReportServer API ([email protected])
- Update comments in SingleTaskInfo ([email protected])
- Fix exception with get_all_rhics() when body is empty ([email protected])
- Debug scripts to help isolate celerybeat issues during daemon mode
- Added ability to create test data from any start date ([email protected])
- Test script to help test timing for fetch/update of the tracker entry in a
ProductUsage document ([email protected])
* Thu Jan 17 2013 John Matthews <[email protected]> 0.98-1
- Added @single_task_instance to product usage task ([email protected])
- Added @single_instance_task decorator to restrict celery tasks spawned by
different processes to a global single task running at a time
- Add mongo port to config file ([email protected])
- Removing manage.py's usage of "dev.settings" ([email protected])
* Tue Jan 15 2013 John Matthews <[email protected]> 0.97-1
- Removed traces of older usage of "since" with product usage upload
- Update exception middleware to return a plain text exception traceback that
is easier to read for REST API calls opposed to HTML text
- Update path for splice identity cert ([email protected])
- Don't log large message bodies ([email protected])
- Added index for ProductUsage to fix: database error: too much data for sort()
with no index. ([email protected])
* Mon Jan 14 2013 John Matthews <[email protected]> 0.96-1
- Increasing verbosity for celerybeat launcher ([email protected])
- Fix how /var/run/ was being owned by 'splice' because of celeryd/celerybeat
chown of the basedir containing their pid lock files ([email protected])
- First steps on change to upload ProductUsage based on which endpoint it's
been sent to, opposed to a last processed timestamp ([email protected])
- Update to use tee for builder output ([email protected])
- Run 'restorecon' so apache is able to serve content with SELinux enabled
- Script to build all splice subprojects and form a yum repo
* Mon Jan 07 2013 John Matthews <[email protected]> 0.95-1
- Adding a logging perm workaround to /etc/init.d/splice_all
* Mon Jan 07 2013 John Matthews <[email protected]> 0.94-1
- Update for perms on /var/log/splice, celery files will be in own subdir
* Mon Jan 07 2013 John Matthews <[email protected]> 0.93-1
- Cleanup RHIC sync task ([email protected])
- Fix for dev_setup.py with creating 'splice' user ([email protected])
* Thu Jan 03 2013 John Matthews <[email protected]> 0.92-1
- Clean up of launch RCS scripts ([email protected])
- Update splice.spec to change home dir of 'splice' user to '/var/lib/splice'
- Update dev_setup.py to create 'splice' user ([email protected])
* Thu Jan 03 2013 John Matthews <[email protected]> 0.91-1
- Update group perms for /var/log/splice ([email protected])
* Thu Jan 03 2013 John Matthews <[email protected]> 0.90-1
- Adding 'waitfor' function to install script for RCS ([email protected])
- Celery tasks now execute as 'splice' user ([email protected])
- Continuing to debug intermittent issues with RCS ec2 scripts
* Wed Jan 02 2013 John Matthews <[email protected]> 0.89-1
- Fix intermittent timing error with launch of new RCS & mark EBS volume as
delete on termination true ([email protected])
- Fix for upload tasks of Splice Server metadata and ProductUsage to append "/"
to end of URL ([email protected])
- Updates for latest build of splice-certmaker ([email protected])
* Tue Dec 11 2012 John Matthews <[email protected]> 0.88-1
- Moved SpliceServerResource from report server codebase to here
- Modified upload task to include uploading Splice Server metadata & unit tests
- On a '500' write Request & Exception to splice.log AND
/var/log/httpd/error_log ([email protected])
- Fix for timezone aware issues, updated mongo connection to use tz_aware=True,
updated common utils method to add tzinfo if not set ([email protected])
- Adding API for uploading splice server metadata ([email protected])
- Update iptables for 8080 to allow splice-certmaker to accept external upload.
- Small refactor to splice_server_client to support uploading a new data:
Splice Server Metadata ([email protected])
- Update for uploading product data to splice-certmaker and changed config val:
product_json_cache ([email protected])
- Introduced env var SPLICE_CONFIG. Allows unittests to override logging config
to silence output to console ([email protected])
- Update from testing, single script now able to launch a working
RCS+splice_certmaker ([email protected])
* Fri Nov 30 2012 John Matthews <[email protected]> 0.87-1
- Fixes being unable to create Splice Server identity certificate on a clean
install. Ordering was an issue, splice-common %%post was running before the
requires of python-certutil was installed. ([email protected])
- Comment for conf file about splice-certmaker being co-located by default
* Thu Nov 29 2012 John Matthews <[email protected]> 0.86-1
- Update config values for new location of splice server identity certificate
- Update to include splice-certmaker, also enhancements for setting hostname
automatically ([email protected])
* Thu Nov 29 2012 John Matthews <[email protected]> 0.85-1
- Update for splice-certmaker conf for temporary product_data location Spec
update for selinux rules for splice server identity certificate context
labeling ([email protected])
- Fix spec ([email protected])
* Thu Nov 29 2012 John Matthews <[email protected]> 0.84-1
- Update to work with co-located splice-certmaker ([email protected])
- Update location of Splice Server identity certificate ([email protected])
- Merge branch 'master' of github.com:splice/splice-server ([email protected])
- A few config updates ([email protected])
* Wed Nov 28 2012 John Matthews <[email protected]> 0.83-1
- Update client piece of uploading product usage data to use common
BaseConnection ([email protected])
- Moved rhic_serve_client code to use BaseConnection ([email protected])
- Adding support for 'gzip' encoding to BaseConnection, also changed to return
(status_code, response_body) ([email protected])
- Update candlepin_client.py to reuse BaseConnection from common/connect, added
HTTP option to BaseConnection ([email protected])
- Spec change: splice-common-config now includes /etc/splice/splice.conf and
/etc/splice/logging/basic.cfg ([email protected])
- Set propagate back to 0 to avoid duplicate messages being logged
- Celery tasks will no longer be scheduled if the Splice Server Identity
Certificate is invalid ([email protected])
- Remove Splice Server Identity cert/key for now and leave in
conf.d/server.conf ([email protected])
- Update dev_setup.py to account for /etc/splice/conf.d ([email protected])
- Return a '500' with an error message if the servers Identity Certificate is
invalid ([email protected])
- Adding Splice Server's identity cert/key to config file so it's explicit and
easy to modify ([email protected])
* Mon Nov 26 2012 John Matthews <[email protected]> 0.82-1
- Test tag/build after splice-common work has been merged in
* Wed Nov 14 2012 James Slagle <[email protected]> 0.81.common_config-1
- Set branch name in version field instead of release ([email protected])
- common-config subpackage ([email protected])
- api doc update" ([email protected])
- Exclude dev from packaging ([email protected])
- Add mongoengine auth to common/settings.py ([email protected])
- Don't need to check for existence of options as much now that defautls are
set ([email protected])
- Set full tastypie debug in dev.settings ([email protected])
- Config updates ([email protected])
- Rename _LOG so that it gets imported via * ([email protected])
- Add config for sign_days ([email protected])
- Move logging config to splice.conf ([email protected])
- initialize config from common settings ([email protected])
- Set test db name dynamically ([email protected])
- Common settings.py ([email protected])
- Add missing dev logging config ([email protected])
- Config updates to accomodate fact that CELERYBEAT_SCHEDULE must be set
directly in settings.py ([email protected])
- Fix config file name ([email protected])
- Include all config files under /etc/splice in common subpackage
- Initial config refactoring ([email protected])
* Tue Nov 13 2012 John Matthews <[email protected]> 0.80-1
- Again saw collision with 0.79 ([email protected])
- Problem tagging 0.78, manual bump of version and will retry
- Fix issue with rhic lookup tasks being marked as expired and not running
because of how we set a default value for 'initiated' ([email protected])
- Example to gather system facts ([email protected])
- Update ProductUsage to sanitize facts on save to mongo ([email protected])
- Add timing info for product usage import ([email protected])
- Update script to generate simulated data with valid system facts
- Automatic commit of package [python-ordereddict] minor release [1.1-6].
- Adding python-orderreddict 1.1 version from fedora 18, needed by django-
celery ([email protected])
- Update script to upload fake product usage data for X number of instances and
X entries ([email protected])
* Tue Nov 13 2012 John Matthews <[email protected]>
- Problem tagging 0.78, manual bump of version and will retry
- Fix issue with rhic lookup tasks being marked as expired and not running
because of how we set a default value for 'initiated' ([email protected])
- Example to gather system facts ([email protected])
- Update ProductUsage to sanitize facts on save to mongo ([email protected])
- Add timing info for product usage import ([email protected])
- Update script to generate simulated data with valid system facts
- Automatic commit of package [python-ordereddict] minor release [1.1-6].
- Adding python-orderreddict 1.1 version from fedora 18, needed by django-
celery ([email protected])
- Update script to upload fake product usage data for X number of instances and
X entries ([email protected])
* Tue Nov 13 2012 John Matthews <[email protected]>
- Fix issue with rhic lookup tasks being marked as expired and not running
because of how we set a default value for 'initiated' ([email protected])
- Update ProductUsage to sanitize facts on save to mongo ([email protected])
- Add timing info for product usage import ([email protected])
* Fri Nov 02 2012 James Slagle <[email protected]> 0.79-1.common_config
- Include all config files under /etc/splice in common subpackage
* Fri Nov 02 2012 James Slagle <[email protected]> 0.78-1.common_config
- Initial config refactoring ([email protected])
* Wed Oct 31 2012 John Matthews <[email protected]> 0.77-1
- splice-common now owns /var/log/splice ([email protected])
* Wed Oct 31 2012 John Matthews <[email protected]> 0.76-1
- adding spacewalk splice tool to logging config ([email protected])
* Wed Oct 31 2012 John Matthews <[email protected]> 0.75-1
- Fixes for upload product usage task ([email protected])
- Fix typo in upload product usage task ([email protected])
* Wed Oct 31 2012 John Matthews <[email protected]> 0.74-1
- Allow product usage upload task to not run if 'servers' is commented out in
config, also added more exception handling in other client pieces
* Wed Oct 31 2012 John Matthews <[email protected]> 0.73-1
- Enable product usage task, needs more testing ([email protected])
- Bump requires of mongoengine to 0.7.5 ([email protected])
- Upload logging ([email protected])
* Wed Oct 31 2012 John Matthews <[email protected]> 0.72-1
- Bump requires of python-certutils ([email protected])
* Wed Oct 31 2012 John Matthews <[email protected]> 0.71-1
- Fix typo in %%post of splice-common ([email protected])
- Added check of essential configuration certificates to startup, will LOG a
warning if something isn't correct ([email protected])
- Small change to config comments ([email protected])
- base connection module to make rest calls ([email protected])
* Wed Oct 31 2012 John Matthews <[email protected]> 0.70-1
- Adding in logging configuration for unit tests ([email protected])
- Move generation of Splice Server identity certificate to splice-common
- Update how we call config.init(), remove 'config' calling back into
settings.py to avoid any cyclical dep issues ([email protected])
- Update config so connections to rhic_serve are secured by the Splice Server
identity certificate ([email protected])
- Added celery task for uploading product usage data along with unit tests,
untested beyond unit tests ([email protected])
* Mon Oct 29 2012 James Slagle <[email protected]> 0.69-1
- Read config file path from settings ([email protected])
* Mon Oct 29 2012 John Matthews <[email protected]> 0.68-1
- packaging fix for %%post in splice-common ([email protected])
* Mon Oct 29 2012 John Matthews <[email protected]> 0.67-1
- Get SpliceServer uuid from Splice Server identity certificate, also fix so
'hostname' is recorded on SpliceServer object ([email protected])
- Logging configuration is now controlled by /etc/splice/logging/basic.cfg,
specified in /etc/splice/server.conf ([email protected])
- Update config value name for rhic serve URL ([email protected])
- Update client side scripts to test X509 auth for syncing rhics
- Update client side of product usage to use the Splice Server Identity
Certificate for SSL communication ([email protected])
- Fix type in config for identity certificate private key
* Mon Oct 29 2012 John Matthews <[email protected]> 0.66-1
- Add Splice_testing_root_CA.cert/key to splice-common RPM
* Mon Oct 29 2012 John Matthews <[email protected]> 0.65-1
- Move /etc/splice/server.conf to splice-common so we can share between splice
applications ([email protected])
- Update for client side of X509 authentication with syncing RHICs
* Fri Oct 26 2012 John Matthews <[email protected]> 0.64-1
- Correct for cakey in %%post ([email protected])
* Fri Oct 26 2012 John Matthews <[email protected]> 0.63-1
- Fix for correct name of splice_cert_gen_setup.py ([email protected])
* Fri Oct 26 2012 John Matthews <[email protected]> 0.62-1
- Generate Splice Server identity certificate now on a new install in %%post
- Split verification CAs into verify RHIC and verify Splice Server Identity,
changed productusage API to use x509authentication ([email protected])
- Update so unittests work with rhic_server.rcs requirement
- Add step to actually build the documentation ([email protected])
- Update sphinx conf.py ([email protected])
- Add doc build and packaging ([email protected])
* Fri Oct 26 2012 John Matthews <[email protected]> 0.61-1
- Updated for new location of HTTPS SSL CA Cert ([email protected])
- Adding %%post step that will auto generate https ssl certs if they don't
exist ([email protected])
- Update for name of default https certs ([email protected])
* Fri Oct 26 2012 John Matthews <[email protected]> 0.60-1
- Update for init.d script to fix a problem see on initial start
* Fri Oct 26 2012 John Matthews <[email protected]> 0.59-1
- Fixes while testing with latest report-server-import & rhic-serve RPMs
report-server-import is importing rhic-serve-rest, creating a problem where
requests aren't served the rhic-serve-rest models.py is requiring some
certificate settings in settings.py, we needed to add them to allow things to
proceed, this should be re-examined later and changed so we can get all
values from config file ([email protected])
* Thu Oct 25 2012 John Matthews <[email protected]> 0.58-1
- Update for CertificateParseException thrown by python-certutils
- Moved location of HTTPS certs to use what python-certutils generates
- Update checkin.py to remove cert validation and rely on
X509CertificateAuthentication, some refactoring and cleanup to support this
- Added unique constraint to product usage data and unit tests for product
usage import API ([email protected])
- ProductUsage.splice_server is now a string, set it to the splice server's
uuid ([email protected])
* Fri Oct 19 2012 John Matthews <[email protected]> 0.57-1
- Create splice-common RPM and moving model definitions into it to make it
easier to consume in Report Server ([email protected])
* Thu Oct 18 2012 John Matthews <[email protected]> 0.56-1
- Integrate with new splice-certgen and update config for new rhic_serve
instance ([email protected])
- Beginning to integrate report server's product usage import API, needs more
work ([email protected])
- Experimenting with a way to force 500's to be logged/written to apache error
log, not yet working ([email protected])
- Automatic commit of package [Django] minor release [1.4.1-6.splice].
- Package is just called python-sphinx on fedora ([email protected])
* Tue Oct 16 2012 John Matthews <[email protected]> 0.55-1
- Update for name change of python-django-celery to django-celery to match what
is in epel ([email protected])
* Mon Oct 15 2012 James Slagle <[email protected]> 0.54-1
- Migrate to python-certutils package ([email protected])
* Mon Oct 15 2012 John Matthews <[email protected]> 0.53-1
- Fix for when log file doesn't exist ([email protected])
* Fri Oct 12 2012 John Matthews <[email protected]> 0.52-1
- More selinux fixes for packaging ([email protected])
* Fri Oct 12 2012 John Matthews <[email protected]> 0.51-1
- Fixes for selinux policy ([email protected])
- Remove steps of disabling selinux ([email protected])
- Update to reflect new build instance ([email protected])
* Fri Oct 12 2012 John Matthews <[email protected]> 0.50-1
- SELinux policy ([email protected])
- Added dep for django-picklefield for django-celery ([email protected])
* Fri Oct 05 2012 John Matthews <[email protected]> 0.49-1
- Bumping number of RHICs to fetch on each pagination call
- Touch up test script so we can vary gzip/limit and other params
- Configuring splice server to use mod_defalte to gzip data, updating rhic
serve client to handle gzip response adding test script to isolate behavior
- Update speed of test script so it's quicker to load test rhics for syncing
* Thu Oct 04 2012 John Matthews <[email protected]> 0.48-1
- Performance improvement for syncing RHICs, new UUIDs are broken out and a
bulk insert is done, updates proceed sequentially as before, speed up seen
about 20X improvement. ([email protected])
* Tue Oct 02 2012 John Matthews <[email protected]> 0.47-1
- Removed the 'removal' logic that was deleting a RHIC if it wasn't on rhic-
serve - If rhic-serve deletes a rhic it will keep the RHIC in the DB and
mark it as 'deleted=True' ([email protected])
* Tue Oct 02 2012 John Matthews <[email protected]> 0.46-1
- Added pagination support for syncing all rhics ([email protected])
* Tue Oct 02 2012 John Matthews <[email protected]> 0.45-1
- Updated to return '404' during checkin when a RHIC is confirmed NOT FOUND
from parent chain, added test scripts to create a RHIC to throw a 404 with