forked from eucalyptus/eucalyptus-rpmspec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eucalyptus.spec
1152 lines (890 loc) · 41.1 KB
/
eucalyptus.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
# Copyright 2009-2017 Hewlett Packard Enterprise Development Company LP
#
# Redistribution and use of this software in source and binary forms, with or
# without modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above
# copyright notice, this list of conditions and the
# following disclaimer.
#
# Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the
# following disclaimer in the documentation and/or other
# materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
# Meant to be used with ''rpmbuild -bc''
# You must also install coverity-analysis.
%bcond_with coverity
Summary: Eucalyptus cloud platform
Name: eucalyptus
Version: 4.4.0
Release: 0%{?build_id:.%build_id}%{?dist}
License: GPLv3
URL: http://www.eucalyptus.com
BuildRequires: ant >= 1.7
BuildRequires: ant-apache-regexp
BuildRequires: apache-ivy
BuildRequires: axis2-adb-codegen
BuildRequires: axis2-codegen
BuildRequires: axis2c-devel >= 1.6.0
BuildRequires: curl-devel
BuildRequires: eucalyptus-java-deps
BuildRequires: gengetopt
BuildRequires: java-1.8.0-openjdk-devel >= 1:1.8.0
BuildRequires: jpackage-utils
BuildRequires: json-c-devel
BuildRequires: libuuid-devel
BuildRequires: libvirt-devel >= 0.6
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: m2crypto
BuildRequires: openssl-devel
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: rampartc-devel >= 1.3.0
BuildRequires: swig
BuildRequires: systemd
BuildRequires: xalan-j2
BuildRequires: xalan-j2-xsltc
BuildRequires: /usr/bin/awk
Requires(pre): shadow-utils
Source0: %{tarball_basedir}.tar.xz
%description
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains bits that are shared by all Eucalyptus components
and is not particularly useful on its own -- to get a usable cloud you
will need to install Eucalyptus services as well.
%package axis2c-common
Summary: Eucalyptus cloud platform - Axis2/C shared components
Requires: %{name} = %{version}-%{release}
Requires: eucalyptus-selinux
Requires: httpd
Requires: perl(Digest::MD5)
Requires: perl(MIME::Base64)
%description axis2c-common
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains shared components used by all eucalyptus services
that are based on Axis2/C.
%package blockdev-utils
Summary: Eucalyptus cloud platform - shared block device utilities
Requires: %{name} = %{version}-%{release}
Requires: eucalyptus-selinux
Requires: libselinux-python
Requires: perl(Crypt::OpenSSL::RSA)
Requires: perl(Crypt::OpenSSL::Random)
Requires: perl(MIME::Base64)
Requires: /usr/bin/which
%description blockdev-utils
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains shared components used by all eucalyptus services
that connect to iSCSI targets.
%package common-java
Summary: Eucalyptus cloud platform - ws java stack
Requires: %{name} = %{version}-%{release}
Requires: %{name}-common-java-libs = %{version}-%{release}
Requires: eucalyptus-selinux
Requires: lvm2
Requires: /usr/bin/which
%{?systemd_requires}
Provides: %{name}-java-common = %{version}-%{release}
%description common-java
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains the common-java files.
%package common-java-libs
Summary: Eucalyptus cloud platform - ws java stack libs
Requires: eucalyptus-java-deps >= 4.4
Requires: eucalyptus-selinux
Requires: jpackage-utils
Requires: java-1.8.0-openjdk >= 1:1.8.0
%description common-java-libs
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains the java WS stack.
%package walrus
Summary: Eucalyptus cloud platform - walrus
Requires: %{name} = %{version}-%{release}
Requires: %{name}-common-java = %{version}-%{release}
Requires: eucalyptus-selinux
Requires: lvm2
%description walrus
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains storage component for your cloud: images and buckets
are handled by walrus. Typically this package is installed alongside the
cloud controller.
%package sc
Summary: Eucalyptus cloud platform - storage controller
Requires: %{name} = %{version}-%{release}
Requires: %{name}-blockdev-utils = %{version}-%{release}
Requires: %{name}-common-java = %{version}-%{release}
Requires: device-mapper-multipath
Requires: eucalyptus-selinux
Requires: iscsi-initiator-utils
Requires: librados2%{?_isa}
Requires: librbd1%{?_isa}
Requires: lvm2
Requires: scsi-target-utils
Requires: /usr/bin/rbd
Provides: eucalyptus-storage = %{version}-%{release}
%description sc
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains the storage controller part of eucalyptus, which
handles the elastic blocks for a given cluster. Typically you install it
alongside the cluster controller.
%package cloud
Summary: Eucalyptus cloud platform - cloud controller
Requires: %{name} = %{version}-%{release}
Requires: %{name}-common-java%{?_isa} = %{version}-%{release}
# Change this to Recommends in RHEL 8
Requires: %{name}-admin-tools = %{version}-%{release}
Requires: eucalyptus-selinux
Requires: euca2ools >= 2.0
Requires: eucanetd = %{version}-%{release}
Requires: libselinux-python
Requires: lvm2
Requires: perl(Getopt::Long)
Requires: postgresql
Requires: postgresql-server
Requires: python-argparse
Requires: rsync
%description cloud
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains the cloud controller part of eucalyptus. The cloud
controller needs to be reachable by both the cluster controller and from
the cloud clients.
%package cc
Summary: Eucalyptus cloud platform - cluster controller
Requires: %{name} = %{version}-%{release}
Requires: %{name}-axis2c-common = %{version}-%{release}
Requires: bridge-utils
Requires: dhcp >= 4.1.1-33.P1
Requires: eucalyptus-selinux
Requires: eucanetd = %{version}-%{release}
Requires: httpd
Requires: iproute
Requires: iptables
Requires: iputils
Requires: libselinux-python
Requires: python-argparse
Requires: rsync
Requires: vconfig
Requires: /usr/bin/which
%{?systemd_requires}
Provides: eucalyptus-cluster = %{version}-%{release}
%description cc
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains the cluster controller part of eucalyptus. It
handles a group of node controllers.
%package nc
Summary: Eucalyptus cloud platform - node controller
Requires: %{name} = %{version}-%{release}
Requires: %{name}-axis2c-common = %{version}-%{release}
Requires: %{name}-blockdev-utils = %{version}-%{release}
Requires: %{name}-imaging-toolkit = %{version}-%{release}
Requires: bridge-utils
Requires: device-mapper
Requires: device-mapper-multipath
Requires: euca2ools >= 3.2
Requires: eucalyptus-selinux > 0.2
Requires: eucanetd = %{version}-%{release}
Requires: httpd
Requires: iscsi-initiator-utils
Requires: kvm
# Ceph support requires librados2, librbd1, and *also* qemu-kvm-rhev.
Requires: librados2%{?_isa}
Requires: librbd1%{?_isa}
Requires: libvirt
Requires: libvirt-python
Requires: perl(Sys::Virt)
Requires: perl(Time::HiRes)
Requires: perl(XML::Simple)
Requires: qemu-kvm
# The next six come from storage/diskutil.c, which shells out to lots of stuff.
Requires: coreutils
Requires: curl
Requires: e2fsprogs
Requires: file
Requires: parted
Requires: vconfig
Requires: util-linux
Requires: /usr/bin/which
%{?systemd_requires}
Provides: eucalyptus-node = %{version}-%{release}
%description nc
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains the node controller part of eucalyptus. This
component handles instances.
%package admin-tools
Summary: Eucalyptus cloud platform - admin CLI tools
# A patched version of python's gzip is included, so we add the Python license
License: BSD and Python
Requires: euca2ools >= 3.2
Requires: eucalyptus-selinux
Requires: python-boto >= 2.1
Requires: python-prettytable
Requires: python-requestbuilder >= 0.4
Requires: python-requests
Requires: python-six
BuildArch: noarch
%description admin-tools
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains command line tools necessary for managing a
Eucalyptus cloud.
%package -n eucanetd
Summary: Eucalyptus cloud platform - edge networking daemon
License: GPLv3
Requires: dhcp >= 4.1.1-33.P1
Requires: ebtables
Requires: eucalyptus-selinux > 0.2
Requires: ipset
Requires: iptables
# nginx 1.9.13 added perl as a loadable module (EUCA-12734)
Requires: nginx >= 1.9.13
Requires: /usr/bin/which
%{?systemd_requires}
%description -n eucanetd
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains the daemon that controls the edge networking mode.
To use edge networking mode, all node controllers must have this package
installed.
%package imaging-toolkit
Summary: Eucalyptus cloud platform - image manipulation tookit
License: ASL 2.0
Requires: %{name} = %{version}-%{release}
# This includes both things under tools/imaging and storage.
Requires: euca2ools >= 3.1
Requires: eucalyptus-selinux
Requires: pv
Requires: python-argparse
Requires: python-lxml
Requires: python-requests
# The next seven come from storage/diskutil.c, which shells
# out to lots of stuff
Requires: coreutils
Requires: e2fsprogs
Requires: file
Requires: httpd
Requires: parted
Requires: util-linux
%description imaging-toolkit
Eucalyptus is a service overlay that implements elastic computing
using existing resources. The goal of Eucalyptus is to allow sites
with existing clusters and server infrastructure to co-host an elastic
computing service that is interface-compatible with Amazon AWS.
This package contains a toolkit used internally by Eucalyptus to download
and upload virtual machine images and to convert them between formats.
%prep
%setup -q -n %{tarball_basedir}
# Filter unwanted perl provides
cat << \EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} $* |\
sed -e '/perl(disconnect_iscsitarget_main.pl)/d' \
-e '/perl(connect_iscsitarget_main.pl)/d' \
-e '/perl(iscsitarget_common.pl)/d'
EOF
%global __perl_provides %{_builddir}/%{tarball_basedir}/%{name}-prov
chmod +x %{__perl_provides}
# Filter unwanted perl requires
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(disconnect_iscsitarget_main.pl)/d' \
-e '/perl(connect_iscsitarget_main.pl)/d' \
-e '/perl(iscsitarget_common.pl)/d'
EOF
%global __perl_requires %{_builddir}/%{tarball_basedir}/%{name}-req
chmod +x %{__perl_requires}
%build
export CFLAGS="%{optflags}"
export JAVA_HOME='/usr/lib/jvm/java-1.8.0' && export JAVA='$JAVA_HOME/jre/bin/java'
# Eucalyptus does not assign the usual meaning to prefix and other standard
# configure variables, so we can't realistically use %%configure.
./configure \
--prefix=/ \
--disable-bundled-jars \
--enable-debug \
--with-apache2-module-dir=%{_libdir}/httpd/modules \
--with-axis2=%{_datadir}/axis2-* \
--with-axis2c=%{axis2c_home} \
--with-db-home=%{_prefix} \
--with-extra-version=%{release}
%if %{with coverity}
# Meant to be used with rpmbuild -bc
%{coverity_analysis_dir}/bin/cov-build --dir .coverity-build make
%else
make %{?_smp_mflags}
%endif
%install
make install DESTDIR=$RPM_BUILD_ROOT
# Store admin tool config files
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/eucalyptus-admin
cp -Rp admin-tools/conf/* $RPM_BUILD_ROOT/%{_sysconfdir}/eucalyptus-admin
%files
%license LICENSE
%doc INSTALL README.md
%attr(-,eucalyptus,eucalyptus) %dir /etc/eucalyptus
%config(noreplace) /etc/eucalyptus/eucalyptus.conf
/etc/eucalyptus/eucalyptus-version
/etc/eucalyptus/faults/
# This is currently used for CC and NC httpd logs.
/etc/logrotate.d/eucalyptus
%attr(-,root,eucalyptus) %dir /usr/lib/eucalyptus
%attr(4750,root,eucalyptus) /usr/lib/eucalyptus/euca_rootwrap
%attr(-,root,eucalyptus) %dir /usr/libexec/eucalyptus
%{_tmpfilesdir}/eucalyptus.conf
/usr/sbin/euca-generate-fault
%dir /usr/share/eucalyptus
%doc /usr/share/eucalyptus/doc/
/usr/share/eucalyptus/faults/
/usr/share/eucalyptus/status/
%attr(-,eucalyptus,eucalyptus) %dir /var/lib/eucalyptus
%attr(-,eucalyptus,eucalyptus) %dir /var/lib/eucalyptus/keys
%attr(-,eucalyptus,eucalyptus) %dir /var/lib/eucalyptus/upgrade
%attr(-,eucalyptus,eucalyptus) %dir /var/log/eucalyptus
%attr(-,eucalyptus,eucalyptus) %dir /var/run/eucalyptus
%attr(-,eucalyptus,eucalyptus-status) %dir /var/run/eucalyptus/status
%files axis2c-common
# CC and NC
/etc/eucalyptus/httpd.conf
/usr/share/eucalyptus/policies
/usr/share/eucalyptus/euca_ipt
/usr/share/eucalyptus/floppy
/usr/share/eucalyptus/populate_arp.pl
%{axis2c_home}/services/EucalyptusGL/
%files blockdev-utils
# SC and NC
%{_udevrulesdir}/55-eucalyptus-openiscsi.rules
%{_libexecdir}/eucalyptus/check-iscsi-target-name
/usr/share/eucalyptus/connect_iscsitarget.pl
/usr/share/eucalyptus/connect_iscsitarget_main.pl
/usr/share/eucalyptus/connect_iscsitarget_sc.pl
/usr/share/eucalyptus/disconnect_iscsitarget.pl
/usr/share/eucalyptus/disconnect_iscsitarget_main.pl
/usr/share/eucalyptus/disconnect_iscsitarget_sc.pl
/usr/share/eucalyptus/get_iscsitarget.pl
/usr/share/eucalyptus/iscsitarget_common.pl
%files common-java
# cloud.d contains random stuff used by every Java component. Most of it
# probably belongs in /usr/share, but moving it will be painful.
# https://eucalyptus.atlassian.net/browse/EUCA-11002
%dir /etc/eucalyptus/cloud.d
%dir /etc/eucalyptus/cloud.d/elb-security-policy
%config(noreplace) /etc/eucalyptus/cloud.d/elb-security-policy/*
/etc/eucalyptus/cloud.d/scripts/
%{_libexecdir}/eucalyptus/euca-upgrade
/usr/sbin/eucalyptus-cloud
%ghost /var/lib/eucalyptus/services
%attr(-,eucalyptus,eucalyptus) /var/lib/eucalyptus/webapps/
%{_sysctldir}/70-eucalyptus-cloud.conf
%{_unitdir}/eucalyptus-cloud.service
%{_unitdir}/eucalyptus-cloud-upgrade.service
%files common-java-libs
/usr/share/eucalyptus/*jar*
%files cloud
/usr/sbin/euca-lictool
/usr/sbin/clcadmin-*
/usr/share/eucalyptus/lic_default
/usr/share/eucalyptus/lic_template
%attr(-,eucalyptus,eucalyptus) %dir /var/lib/eucalyptus/db
%files walrus
%attr(-,eucalyptus,eucalyptus) %dir /var/lib/eucalyptus/bukkits
%files sc
%attr(-,eucalyptus,eucalyptus) %dir /var/lib/eucalyptus/volumes
%files cc
%{axis2c_home}/services/EucalyptusCC/
%attr(-,eucalyptus,eucalyptus) %dir /var/lib/eucalyptus/CC
/usr/lib/eucalyptus/shutdownCC
/usr/sbin/clusteradmin-*
/usr/sbin/eucalyptus-cluster
/usr/share/eucalyptus/dynserv.pl
%{_unitdir}/eucalyptus-cc.service
%{_unitdir}/eucalyptus-cluster.service
%files nc
%doc tools/nc-hooks
%config(noreplace) /etc/eucalyptus/libvirt.xsl
%dir /etc/eucalyptus/nc-hooks
/etc/eucalyptus/nc-hooks/example.sh
%{axis2c_home}/services/EucalyptusNC/
%attr(-,eucalyptus,eucalyptus) %dir /var/lib/eucalyptus/instances
%{_libexecdir}/eucalyptus/nodeadmin-manage-volume-connections
%dir /etc/libvirt/hooks
/etc/libvirt/hooks/qemu
/usr/sbin/euca_test_nc
/usr/sbin/eucalyptus-node
/usr/share/eucalyptus/authorize-migration-keys
/usr/share/eucalyptus/detach.pl
/usr/share/eucalyptus/gen_kvm_libvirt_xml
/usr/share/eucalyptus/gen_libvirt_xml
/usr/share/eucalyptus/generate-migration-keys.sh
/usr/share/eucalyptus/getstats.pl
/usr/share/eucalyptus/get_bundle
/usr/share/eucalyptus/get_sys_info
/usr/share/eucalyptus/get_xen_info
/usr/share/eucalyptus/partition2disk
/usr/lib/modules-load.d/70-eucalyptus-node.conf
%{_unitdir}/eucalyptus-nc.service
%{_unitdir}/eucalyptus-node.service
%{_unitdir}/eucalyptus-node-keygen.service
%files admin-tools
# Non-functional placeholder whose error messages people point people
# to new tools (new in 4.3)
%{_sbindir}/euca_conf
# Old stuff (no replacements as of 4.3)
%{python_sitelib}/eucadmin*
%{_sbindir}/eureport-generate-report
%{_sbindir}/eureport-export-data
%{_sbindir}/eureport-delete-data
%{_mandir}/man8/eureport-*.8*
# New stuff (new in 4.2)
%{python_sitelib}/eucalyptus_admin*
%{_bindir}/euctl
%{_bindir}/euserv-*
%{_mandir}/man1/euctl.1*
%{_mandir}/man1/euserv-*.1*
%{_mandir}/man7/eucalyptus-admin.7*
%dir %{_sysconfdir}/eucalyptus-admin
%dir %{_sysconfdir}/eucalyptus-admin/conf.d
%config(noreplace) %{_sysconfdir}/eucalyptus-admin/eucalyptus-admin.ini
%config(noreplace) %{_sysconfdir}/eucalyptus-admin/conf.d/localhost.ini
%files -n eucanetd
%{_libexecdir}/eucalyptus/announce-arp
%{_sbindir}/eucanetd
%attr(-,eucalyptus,eucalyptus) /var/run/eucalyptus/net
/usr/share/eucalyptus/nginx_md.conf
/usr/share/eucalyptus/nginx_proxy.conf
/usr/lib/modules-load.d/70-eucanetd.conf
%{_sysctldir}/70-eucanetd.conf
%{_unitdir}/eucanetd.service
%{_unitdir}/eucanetd-dhcpd*.service
%{_unitdir}/eucanetd-nginx.service
%files imaging-toolkit
%{_libexecdir}/eucalyptus/euca-run-workflow
%{python_sitelib}/eucatoolkit*
%pre
getent group eucalyptus >/dev/null || groupadd -r eucalyptus
getent group eucalyptus-status >/dev/null || groupadd -r eucalyptus-status
getent passwd eucalyptus >/dev/null || \
useradd -r -g eucalyptus -G eucalyptus-status -d /var/lib/eucalyptus \
-s /sbin/nologin -c 'Eucalyptus cloud' eucalyptus || :
# This must go in the same package as /etc/eucalyptus/eucalyptus-version to
# ensure /etc/eucalyptus/.upgrade is correct.
if [ "$1" = 2 ]; then
# Back up the previous installation's jars since they are required for
# upgrade (EUCA-633)
BACKUPDIR="/var/lib/eucalyptus/upgrade/eucalyptus.backup.`date +%%s`"
mkdir -p "$BACKUPDIR"
EUCABACKUPS=""
for i in /var/lib/eucalyptus/keys/ /var/lib/eucalyptus/db/ /var/lib/eucalyptus/services /etc/eucalyptus/eucalyptus.conf /etc/eucalyptus/eucalyptus-version /usr/share/eucalyptus/; do
if [ -e $i ]; then
EUCABACKUPS="$EUCABACKUPS $i"
fi
done
OLD_EUCA_VERSION=`cat /etc/eucalyptus/eucalyptus-version`
echo "# This file was automatically generated by Eucalyptus packaging." > /etc/eucalyptus/.upgrade
echo "$OLD_EUCA_VERSION:$BACKUPDIR" >> /etc/eucalyptus/.upgrade
tar cf - $EUCABACKUPS 2>/dev/null | tar xf - -C "$BACKUPDIR" 2>/dev/null
fi
exit 0
%post common-java
%systemd_post eucalyptus-cloud.service
%sysctl_apply 70-eucalyptus-cloud.conf || :
%post cc
%systemd_post eucalyptus-cluster.service
%post nc
%systemd_post eucalyptus-node.service
# The stock policykit policy for libvirt allows members of the libvirt
# group to connect to the system instance without authenticating
getent group libvirt >/dev/null || groupadd -r libvirt
usermod -a -G libvirt eucalyptus || :
/usr/lib/systemd/systemd-modules-load || :
%post -n eucanetd
%systemd_post eucanetd.service
/usr/lib/systemd/systemd-modules-load || :
%sysctl_apply 70-eucanetd.conf || :
%preun common-java
%systemd_preun eucalyptus-cloud.service
%preun cc
%systemd_preun eucalyptus-cluster.service
%preun nc
%systemd_preun eucalyptus-node.service
%preun -n eucanetd
%systemd_preun eucanetd.service
/usr/lib/systemd/systemd-modules-load || :
%postun common-java
%systemd_postun eucalyptus-cloud.service
%postun cc
%systemd_postun eucalyptus-cluster.service
%postun nc
%systemd_postun eucalyptus-node.service
%postun -n eucanetd
%systemd_postun eucanetd.service
%changelog
* Fri Jan 20 2017 Garrett Holmstrom <[email protected]> - 4.4.0
- Moved euca-upgrade script to the same package as its systemd unit (EUCA-13139)
- Bumped minimum eucalyptus-java-deps version
* Tue Jan 17 2017 Matt Bacchi <[email protected]> - 4.4.0
- Removed 01_pg_kernel_params and /etc/eucalyptus/cloud.d/init.d (EUCA-12644)
* Fri Jan 13 2017 Garrett Holmstrom <[email protected]> - 4.4.0
- Bumped eucanetd and nc's eucalyptus-selinux minimum version to 0.2 (EUCA-12424)
* Fri Jan 6 2017 Garrett Holmstrom <[email protected]> - 4.4.0
- Added /etc/eucalyptus/faults (EUCA-12391)
- Let makefiles handle creation of /var/lib/eucalyptus/* (EUCA-508)
- Removed nodeadmin-(un)pack scripts (EUCA-13042)
* Thu Jan 5 2017 Garrett Holmstrom <[email protected]> - 4.4.0
- Removed file extension from authorize-migration-keys
* Thu Jan 5 2017 Matt Bacchi <[email protected]> - 4.4.0
- authorize-migration-keys is now a python script (EUCA-12883)
- Avoid packaging .pyc/.pyo byte compiled files in NC package (EUCA-12883)
* Thu Dec 22 2016 Matt Bacchi <[email protected]> - 4.4.0
- Add new eucanetd service files (EUCA-12424)
* Fri Dec 16 2016 Garrett Holmstrom <[email protected]> - 4.4.0
- Moved iscsidev.sh to $libexecdir/check-iscsi-target-name (EUCA-2414, EUCA-12646)
- Moved udev rules to /lib/udev/rules.d (EUCA-12645)
* Tue Dec 6 2016 Matt Bacchi <[email protected]> - 4.3.1
- Run systemd-modules-load in nc package post scriptlet (EUCA-12983)
* Fri Dec 2 2016 Matt Bacchi <[email protected]> - 4.3.1
- Added /etc/libvirt/hooks/qemu to nc package (EUCA-12594)
* Tue Nov 29 2016 Matt Bacchi <[email protected]> - 4.4.0
- Change README to README.md
* Tue Nov 15 2016 Garrett Holmstrom <[email protected]> - 4.4.0
- Added rbd dependency to the sc package (EUCA-12941)
* Fri Nov 11 2016 Matt Bacchi <[email protected]> - 4.4.0
- Removed vtun dependency and vtunall template (EUCA-12755)
* Wed Nov 9 2016 Garrett Holmstrom <[email protected]> - 4.3.1
- Added "coverity" build option
* Fri Nov 4 2016 Matt Bacchi <[email protected]> - 4.4.0
- Added nginx_md.conf (EUCA-12893)
* Tue Nov 1 2016 Matt Bacchi <[email protected]> - 4.4.0
- Removed getstats_net.pl (EUCA-12864)
* Thu Oct 27 2016 Garrett Holmstrom <[email protected]> - 4.3.1
- Bumped minimum eucalyptus-java-deps version (EUCA-12885)
* Wed Oct 12 2016 Garrett Holmstrom <[email protected]> - 4.4.0
- Version bump (4.4.0)
* Wed Oct 12 2016 Garrett Holmstrom <[email protected]> - 4.3.1
- Version bump (4.3.1)
* Fri Sep 9 2016 Garrett Holmstrom <[email protected]> - 4.3.0.1
- Added nginx >= 1.9.13 dependency to eucanetd package (EUCA-12734)
* Tue Aug 30 2016 Garrett Holmstrom <[email protected]> - 4.4.0
- Removed create-loop-devices script
- Removed conntrack_kernel_params script
* Tue Aug 30 2016 Garrett Holmstrom <[email protected]> - 4.3.0
- Switched to building against packaged dependencies (EUCA-10666)
- Fixed common-java package's post script on el7
- BuildRequired ant-apache-regexp
* Thu Aug 25 2016 Garrett Holmstrom <[email protected]> - 4.3.0.1
- Version bump (4.3.0.1)
- Moved /var/lib/eucalyptus backup script to cloud package
* Mon Aug 15 2016 Garrett Holmstrom <[email protected]> - 4.4.0
- Removed RHEL 6 support
- Moved euca-upgrade to cloud package
- Removed useless defattr statements
- Tagged license files as such
- Switched to building against packaged dependencies (EUCA-10666)
* Mon Aug 15 2016 Garrett Holmstrom <[email protected]> - 4.3.0
- Dropped eucalyptus-selinux dependency from admin-tools package
* Wed Jun 29 2016 Garrett Holmstrom <[email protected]> - 4.3.0
- Added nodeadmin-manage-volume-connections (EUCA-12514)
* Thu Jun 9 2016 Garrett Holmstrom <[email protected]> - 4.3.0
- Made eucalyptus-cloud pull in admin tools for convenience (EUCA-12429)
* Thu May 5 2016 Garrett Holmstrom <[email protected]> - 4.3.0
- Added node support scripts (EUCA-12285)
* Fri Apr 8 2016 Garrett Holmstrom <[email protected]> - 4.3.0
- Removed old admin tools, except for eureport-*
- eucalyptus-admin-tools may now be installed standalone
* Mon Apr 4 2016 Garrett Holmstrom <[email protected]> - 4.3.0
- Added dependencies on eucalyptus-selinux on el7
* Tue Mar 29 2016 Garrett Holmstrom <[email protected]> - 4.3.0
- Removed much of /etc/eucalyptus/cloud.d (EUCA-12005)
* Thu Mar 24 2016 Garrett Holmstrom <[email protected]> - 4.3.0
- Cleaned up calls to systemd macros
* Thu Mar 24 2016 Vasiliy Kochergin <[email protected]> - 4.3.0
- Don't install euca_mountwrap
* Mon Mar 21 2016 Garrett Holmstrom <[email protected]> - 4.2.2
- Added eucalyptus-admin(7) man page
* Mon Mar 21 2016 Matt Bacchi <[email protected]> - 4.3.0
- add --with-java-home to configure command for java 1.8 support
* Tue Mar 15 2016 Vasiliy Kochergin <[email protected]> - 4.3.0
- Switched to Java 1.8
* Thu Mar 10 2016 Garrett Holmstrom <[email protected]> - 4.2.2
- Added eucalyptus user to eucalyptus-status group (EUCA-12108)
* Mon Feb 29 2016 Eucalyptus Release Engineering <[email protected]> - 4.2.2
- Version bump (4.2.2)
* Thu Feb 18 2016 Eucalyptus Release Engineering <[email protected]> - 4.3.0
- Removed /etc/eucalyptus/cloud.d/www
* Wed Feb 17 2016 Eucalyptus Release Engineering <[email protected]> - 4.3.0
- Added qemu-kvm dependency to nc package (fixes /dev/kvm permissions)
* Tue Feb 16 2016 Eucalyptus Release Engineering <[email protected]> - 4.3.0
- Removed euca-get-credentials
* Wed Feb 10 2016 Eucalyptus Release Engineering <[email protected]> - 4.3.0
- Added compatibility symlinks for eucalyptus-cluster/node systemd units
* Tue Feb 9 2016 Eucalyptus Release Engineering <[email protected]> - 4.3.0
- Don't install euca-imager
- Added seabios dependency to nc package (EUCA-12003)
- Provide eucalyptus-node and eucalyptus-cluster
* Mon Feb 8 2016 Eucalyptus Release Engineering <[email protected]> - 4.3.0
- Removed old cruft
- Started loading sysctl values where needed on RHEL 7
- Started loading modules where needed on RHEL 7
* Wed Feb 3 2016 Eucalyptus Release Engineering <[email protected]> - 4.3.0
- Added systemd scriptlets
- Added systemd files
- Switched to stock eucalyptus.conf defaults
- Switched to eucalyptus-provided euca-WSDL2C.sh
- Added main executables for CC and NC
- Stopped tracking temporary CC and NC httpd config files
* Thu Jan 21 2016 Eucalyptus Release Engineering <[email protected]> - 4.3.0
- Depend on unversioned postgresql packages for RHEL 7
* Tue Nov 17 2015 Eucalyptus Release Engineering <[email protected]> - 4.3.0
- Fixed BuildRequires for RHEL 7
* Tue Nov 3 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.1
- Version bump (4.2.1)
* Fri Oct 30 2015 Eucalyptus Release Engineering <[email protected]> - 4.3.0
- Version bump (4.3.0)
* Tue Sep 22 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.0
- Added /var/run/eucalyptus/net to eucanetd package (EUCA-11411)
* Mon Sep 21 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.0
- Pulled in python-requestbuilder >= 0.4 to fix unsigned redirects (EUCA-11378)
* Tue Sep 8 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.0
- Remove vmware admin tools
* Tue Jul 28 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.0
- Added pv dep to imaging-toolkit package
* Thu Jul 16 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.0
- Bumped python-requestbuilder dep to >= 0.3.2
* Mon Jun 29 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.0
- Added more new admin tools
- Added /etc/eucalyptus-admin
* Mon Jun 22 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.0
- Added ELB security policies (EUCA-10985)
* Tue Apr 14 2015 Eucalyptus Release Engineering <[email protected]> - 4.1.1
- Added announce-arp support script for eucanetd (EUCA-10741)
* Thu Apr 9 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.0
- Version bump (4.2.0)
* Tue Apr 7 2015 Eucalyptus Release Engineering <[email protected]> - 4.2.0
- Removed pre-4.0 Requires/Provides/Obsoletes
- Removed postgresql91 dependencies (only needed for 4.0 -> 4.1 upgrades)
- Removed pre-el6 leftovers
- Added first batch of new admin, support scripts
* Mon Mar 23 2015 Eucalyptus Release Engineering <[email protected]> - 4.1.1
- Added libuuid-devel build dependency
* Mon Mar 9 2015 Eucalyptus Release Engineering <[email protected]> - 4.1.1
- Dropped euca-install-service-image (EUCA-10369)
* Tue Jan 20 2015 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Made eucalyptus-cc depend on eucanetd for conntrack_kernel_params (EUCA-10405)
* Thu Jan 15 2015 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Added sample NC hooks as doc files (EUCA-9680)
* Tue Jan 13 2015 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Moved conntrack_kernel_params to eucanetd package (EUCA-10314)
* Mon Jan 12 2015 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Fixed typo in old db-home configure script option (EUCA-10319)
* Tue Jan 6 2015 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Reversed eucanetd -> eucalyptus-nc dependency (EUCA-10219)
- Removed unused font dependency
- Added postgresql91 bits for upgrades from 4.0.x (EUCA-10150)
* Fri Dec 19 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Added euca-install-service-image to admin tools (EUCA-10201)
- Added service-images.yml for euca-install-service-image (EUCA-10202)
- Added PyYAML and euca2ools dependencies to support euca-install-service-image
* Tue Dec 2 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Added /usr/share/eucalyptus/status
* Mon Nov 3 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Added librados2 and librbd1 deps to sc and nc packages (EUCA-10099)
- Dropped drbd
* Wed Oct 8 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Added nginx_proxy.conf to eucanetd package
* Fri Oct 3 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Bumped nc's euca2ools dependency to >= 3.2
- Removed postgresql 9.1 dependencies (EUCA-9703)
* Fri Sep 5 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0
- Added eucalyptus-status group (EUCA-9958)
- Added /var/run/eucalyptus/status dir (EUCA-9958)
* Fri Sep 5 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.2
- Version bump (4.0.2)
* Tue Jul 22 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0-0
- Added build-time dependency on json-c-devel
* Thu Jun 19 2014 Eucalyptus Release Engineering <[email protected]> - 4.1.0-0
- Version bump (4.1.0)
- Added dependency on postgresql92 (EUCA-9700)
* Tue Jun 17 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.1-0
- Switched to monolithic source tarball naming
* Fri Jun 13 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.1-0
- Moved httpd-cc.conf and httpd-nc.conf to /var/run/eucalyptus
- Dropped osg package (EUCA-9468)
- Moved WS-Security client policies to /usr/share/eucalyptus/policies (EUCA-8706)
* Fri May 16 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0
- Ensure openssl allows for credential download
* Thu May 8 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0
- Dropped most new admin tool executables (EUCA-9064)
* Tue Apr 29 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0
- Added euca-(de)register service and euca-describe-service-types
* Fri Apr 4 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0
- Dropped unused validation stuff (EUCA-8569)
- Dropped old admin web UI stuff (EUCA-8616)
* Thu Feb 27 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0
- Added euca-run-workflow
* Thu Feb 20 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0
- Added new eucalyptus-imaging-toolkit subpackage
- Switched to stock dhcpd package (EUCA-6869)
- Renamed -eucanet subpackage to eucanetd (EUCA-8768)
* Fri Feb 14 2014 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0
- Add new admin tool executables
* Thu Nov 21 2013 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0
- Update java requires and build requires for RHEL 6.5 support
* Tue Nov 19 2013 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0
- Add get_bundle tool
* Mon Nov 11 2013 Eucalyptus Release Engineering <[email protected]> - 4.0.0-0
- Update to version 4.0.0