/
openstack-nova.spec
1435 lines (1069 loc) · 49.5 KB
/
openstack-nova.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
%global with_doc 1
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
Name: openstack-nova
Version: 2011.3
Release: 0.20110629.1133.4%{?dist}
Summary: OpenStack Compute (nova)
Group: Development/Languages
License: ASL 2.0
URL: http://openstack.org/projects/compute/
Source0: http://nova.openstack.org/tarballs/nova-2011.3~d2.tar.gz
Source1: %{name}-README.rhel6
Source2: %{name}-noVNC-snap2011.03.24.tgz
Source6: %{name}.logrotate
# Initscripts
Source11: %{name}-api.init
Source12: %{name}-compute.init
Source13: %{name}-network.init
Source14: %{name}-objectstore.init
Source15: %{name}-scheduler.init
Source16: %{name}-volume.init
Source17: %{name}-direct-api.init
Source18: %{name}-ajax-console-proxy.init
Source19: %{name}-vncproxy.init
Source20: %{name}-sudoers
Source21: %{name}-polkit.pkla
Source22: %{name}-rhel-ifc-template
#Patch1: %{name}-rhel-config-paths.patch
Patch2: %{name}-guestfs-image-injects.patch
Patch3: %{name}-bexar-libvirt.xml.template.patch
Patch4: %{name}-rhel-netcat.patch
Patch5: %{name}-rhel-ajaxterm-path.patch
Patch6: %{name}-s3server-quickfix.patch
Patch7: %{name}-scsi-target-utils-support.patch
Patch8: %{name}-rpc-improvements.patch
Patch9: %{name}-api-graceful-shutdown.patch
BuildRoot: %{_tmppath}/nova-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-distutils-extra >= 2.18
BuildRequires: python-netaddr
Requires: python-nova = %{version}-%{release}
Requires: %{name}-config = %{version}
Requires: sudo
Requires: euca2ools = 1.3.1-3gd
Requires(post): chkconfig grep sudo libselinux-utils
Requires(postun): initscripts
Requires(preun): chkconfig
Requires(pre): shadow-utils qemu-kvm
%description
Nova is a cloud computing fabric controller (the main part of an IaaS system)
built to match the popular AWS EC2 and S3 APIs. It is written in Python, using
the Tornado and Twisted frameworks, and relies on the standard AMQP messaging
protocol, and the Redis KVS.
Nova is intended to be easy to extend, and adapt. For example, it currently
uses an LDAP server for users and groups, but also includes a fake LDAP server,
that stores data in Redis. It has extensive test coverage, and uses the Sphinx
toolkit (the same as Python itself) for code and user documentation.
%package noVNC
Summary: OpenStack Nova VNC console service
Group: Applications/System
License: LGPL v3 with exceptions
URL: https://github.com/openstack/noVNC
Requires: %{name} = %{version}-%{release}
%description noVNC
This package contains noVNC code and daemon which is required for accessing
instances's console using VNC.
%package node-full
Summary: OpenStack Nova full node installation
Group: Applications/System
Requires: %{name} = %{version}-%{release}
Requires: %{name}-cc-config = %{version}
Requires: %{name}-api = %{version}-%{release}
Requires: %{name}-compute = %{version}-%{release}
Requires: %{name}-instancemonitor = %{version}-%{release}
Requires: %{name}-network = %{version}-%{release}
Requires: %{name}-noVNC = %{version}-%{release}
Requires: %{name}-objectstore = %{version}-%{release}
Requires: %{name}-scheduler = %{version}-%{release}
Requires: %{name}-volume = %{version}-%{release}
Requires: openstack-client
Requires: openstack-glance = %{version}
Requires: openstack-glance-doc = %{version}
%if 0%{?with_doc}
Requires: %{name}-doc = %{version}-%{release}
%endif
%description node-full
This package installs full set of OpenStack Nova packages and Cloud Controller
configuration.
%package node-compute
Summary: OpenStack Nova compute node installation
Group: Applications/System
Requires: %{name} = %{version}-%{release}
Requires: %{name}-compute-config = %{version}
Requires: %{name}-compute = %{version}-%{release}
Requires: %{name}-instancemonitor = %{version}-%{release}
%description node-compute
This package installs compute set of OpenStack Nova packages and Compute node
configuration.
%package -n python-nova
Summary: Nova Python libraries
Group: Applications/System
Requires: vconfig
Requires: PyXML
Requires: curl
Requires: m2crypto
Requires: libvirt-python
Requires: python-anyjson >= 0.2.4
Requires: python-IPy >= 0.70
Requires: python-boto >= 1.9b
Requires: python-carrot >= 0.10.5
Requires: python-daemon = 1.5.5
Requires: python-eventlet >= 0.9.12-1.1.el6
Requires: python-gflags >= 1.3
Requires: python-lockfile = 0.8
Requires: python-mox >= 0.5.0
Requires: python-paste
Requires: python-paste-deploy
Requires: python-redis
Requires: python-routes >= 1.12.3
Requires: python-sqlalchemy >= 0.6
Requires: python-suds >= 0.4.0
Requires: python-tornado
Requires: python-twisted-core >= 10.1.0
Requires: python-twisted-web >= 10.1.0
Requires: python-webob
Requires: python-netaddr
Requires: python-glance
Requires: python-novaclient
Requires: python-sqlalchemy-migrate
Requires: radvd
Requires: iptables iptables-ipv6
Requires: iscsi-initiator-utils
Requires: scsi-target-utils
Requires: lvm2
Requires: socat
Requires: coreutils
Requires: python-libguestfs
%description -n python-nova
Nova is a cloud computing fabric controller (the main part of an IaaS system)
built to match the popular AWS EC2 and S3 APIs. It is written in Python, using
the Tornado and Twisted frameworks, and relies on the standard AMQP messaging
protocol, and the Redis KVS.
This package contains the %{name} Python library.
%package api
Summary: A nova API server
Group: Applications/System
Requires: %{name} = %{version}-%{release}
Requires: start-stop-daemon
%description api
Nova is a cloud computing fabric controller (the main part of an IaaS system)
built to match the popular AWS EC2 and S3 APIs. It is written in Python, using
the Tornado and Twisted frameworks, and relies on the standard AMQP messaging
protocol, and the Redis KVS.
This package contains the %{name} API Server.
%package compute
Summary: A nova compute server
Group: Applications/System
Requires: %{name} = %{version}-%{release}
Requires: start-stop-daemon
Requires: libvirt-python
Requires: libvirt >= 0.8.2
Requires: libxml2-python
Requires: rabbitmq-server
Requires: python-cheetah
%description compute
Nova is a cloud computing fabric controller (the main part of an IaaS system)
built to match the popular AWS EC2 and S3 APIs. It is written in Python, using
the Tornado and Twisted frameworks, and relies on the standard AMQP messaging
protocol, and the Redis KVS.
This package contains the %{name} Compute Worker.
%package instancemonitor
Summary: A nova instancemonitor server
Group: Applications/System
Requires: %{name} = %{version}-%{release}
Requires: start-stop-daemon
%description instancemonitor
Nova is a cloud computing fabric controller (the main part of an IaaS system)
built to match the popular AWS EC2 and S3 APIs. It is written in Python, using
the Tornado and Twisted frameworks, and relies on the standard AMQP messaging
protocol, and the Redis KVS.
This package contains the %{name} instance monitor.
%package network
Summary: A nova network server
Group: Applications/System
Requires: %{name} = %{version}-%{release}
Requires: start-stop-daemon
%description network
Nova is a cloud computing fabric controller (the main part of an IaaS system)
built to match the popular AWS EC2 and S3 APIs. It is written in Python, using
the Tornado and Twisted frameworks, and relies on the standard AMQP messaging
protocol, and the Redis KVS.
This package contains the %{name} Network Controller.
%package objectstore
Summary: A nova objectstore server
Group: Applications/System
Requires: %{name} = %{version}-%{release}
Requires: start-stop-daemon
%description objectstore
Nova is a cloud computing fabric controller (the main part of an IaaS system)
built to match the popular AWS EC2 and S3 APIs. It is written in Python, using
the Tornado and Twisted frameworks, and relies on the standard AMQP messaging
protocol, and the Redis KVS.
This package contains the %{name} object store server.
%package scheduler
Summary: A nova scheduler server
Group: Applications/System
Requires: %{name} = %{version}-%{release}
Requires: start-stop-daemon
%description scheduler
Nova is a cloud computing fabric controller (the main part of an IaaS system)
built to match the popular AWS EC2 and S3 APIs. It is written in Python, using
the Tornado and Twisted frameworks, and relies on the standard AMQP messaging
protocol, and the Redis KVS.
This package contains the %{name} Scheduler.
%package volume
Summary: A nova volume server
Group: Applications/System
Requires: %{name} = %{version}-%{release}
Requires: start-stop-daemon
%description volume
Nova is a cloud computing fabric controller (the main part of an IaaS system)
built to match the popular AWS EC2 and S3 APIs. It is written in Python, using
the Tornado and Twisted frameworks, and relies on the standard AMQP messaging
protocol, and the Redis KVS.
This package contains the %{name} Volume service.
%if 0%{?with_doc}
%package doc
Summary: Documentation for %{name}
Group: Documentation
BuildRequires: python-sphinx
BuildRequires: python-nose
# Required to build module documents
BuildRequires: python-IPy
BuildRequires: python-boto
#BuildRequires: python-carrot
#BuildRequires: python-daemon
BuildRequires: python-eventlet
BuildRequires: python-gflags
#BuildRequires: python-mox
#BuildRequires: python-redis
BuildRequires: python-routes >= 1.12.3
BuildRequires: python-sqlalchemy
BuildRequires: python-tornado
BuildRequires: python-twisted-core
BuildRequires: python-twisted-web
BuildRequires: python-webob
%description doc
Nova is a cloud computing fabric controller (the main part of an IaaS system)
built to match the popular AWS EC2 and S3 APIs. It is written in Python, using
the Tornado and Twisted frameworks, and relies on the standard AMQP messaging
protocol, and the Redis KVS.
This package contains documentation files for %{name}.
%endif
%prep
%setup -q -n nova-%{version}
#patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p0
%patch5 -p0
%patch6 -p1
%patch7 -p1
#patch8 -p1
%patch9 -p0
install %{SOURCE1} README.rhel6
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%if 0%{?with_doc}
export PYTHONPATH="$( pwd ):$PYTHONPATH"
pushd doc
sphinx-build -b html source build/html
popd
# Fix hidden-file-or-dir warnings
rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo
%endif
# Setup directories
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/images
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/instances
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/keys
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/networks
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/tmp
install -d -m 755 %{buildroot}%{_localstatedir}/log/nova
cp -rp nova/CA %{buildroot}%{_sharedstatedir}/nova
# Install initscripts for Nova services
install -p -D -m 755 %{SOURCE11} %{buildroot}%{_initrddir}/%{name}-api
install -p -D -m 755 %{SOURCE12} %{buildroot}%{_initrddir}/%{name}-compute
install -p -D -m 755 %{SOURCE13} %{buildroot}%{_initrddir}/%{name}-network
install -p -D -m 755 %{SOURCE14} %{buildroot}%{_initrddir}/%{name}-objectstore
install -p -D -m 755 %{SOURCE15} %{buildroot}%{_initrddir}/%{name}-scheduler
install -p -D -m 755 %{SOURCE16} %{buildroot}%{_initrddir}/%{name}-volume
install -p -D -m 755 %{SOURCE17} %{buildroot}%{_initrddir}/%{name}-direct-api
install -p -D -m 755 %{SOURCE18} %{buildroot}%{_initrddir}/%{name}-ajax-console-proxy
install -p -D -m 755 %{SOURCE19} %{buildroot}%{_initrddir}/%{name}-vncproxy
# Install sudoers
install -p -D -m 440 %{SOURCE20} %{buildroot}%{_sysconfdir}/sudoers.d/%{name}
# Install logrotate
install -p -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
# Install pid directory
install -d -m 755 %{buildroot}%{_localstatedir}/run/nova
# Install template files
install -p -D -m 644 nova/auth/novarc.template %{buildroot}%{_datarootdir}/nova/novarc.template
install -p -D -m 644 nova/cloudpipe/client.ovpn.template %{buildroot}%{_datarootdir}/nova/client.ovpn.template
install -p -D -m 644 nova/virt/libvirt.xml.template %{buildroot}%{_datarootdir}/nova/libvirt.xml.template
install -p -D -m 644 nova/virt/interfaces.template %{buildroot}%{_datarootdir}/nova/interfaces.template
install -p -D -m 644 %{SOURCE22} %{buildroot}%{_datarootdir}/nova/interfaces.rhel.template
# Clean CA directory
find %{buildroot}%{_sharedstatedir}/nova/CA -name .gitignore -delete
find %{buildroot}%{_sharedstatedir}/nova/CA -name .placeholder -delete
install -d -m 755 %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d
install -p -D -m 644 %{SOURCE21} %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d/50-%{name}.pkla
# Fixing ajaxterm installation
mv %{buildroot}%{_datarootdir}/nova/euca-get-ajax-console %{buildroot}%{_bindir}
rm -fr %{buildroot}%{_datarootdir}/nova/{install_venv.py,nova-debug,pip-requires,clean-vlans,with_venv.sh,esx} %{buildroot}%{_datarootdir}/nova/ajaxterm/configure*
# Remove unneeded in production stuff
rm -fr %{buildroot}%{python_sitelib}/run_tests.*
rm -f %{buildroot}%{_bindir}/nova-combined
rm -f %{buildroot}/usr/share/doc/nova/README*
# Add noVNC console
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/noVNC
tar zxf %{SOURCE2} -C %{buildroot}%{_sharedstatedir}/nova/noVNC
%clean
rm -rf %{buildroot}
%pre
getent group nova >/dev/null || groupadd -r nova
getent passwd nova >/dev/null || \
useradd -r -g nova -G nova,nobody,qemu -d %{_sharedstatedir}/nova -s /sbin/nologin \
-c "OpenStack Nova Daemons" nova
exit 0
%post -p /bin/bash
nova_option () {
grep "$1" %{_sysconfdir}/nova/nova.conf | cut -d= -f2 | grep "$2" >/dev/null
return $?
}
if ! fgrep '#includedir /etc/sudoers.d' /etc/sudoers 2>&1 >/dev/null; then
echo '#includedir /etc/sudoers.d' >> /etc/sudoers
fi
if %{_sbindir}/selinuxenabled; then
echo -e "\033[47m\033[1;31m***************************************************\033[0m"
echo -e "\033[47m\033[1;31m*\033[0m \033[40m\033[1;31m \033[47m\033[1;31m*\033[0m"
echo -e "\033[47m\033[1;31m*\033[0m \033[40m\033[1;31m >> \033[5mYou have SELinux enabled on your host !\033[25m << \033[47m\033[1;31m*\033[0m"
echo -e "\033[47m\033[1;31m*\033[0m \033[40m\033[1;31m \033[47m\033[1;31m*\033[0m"
echo -e "\033[47m\033[1;31m*\033[0m \033[40m\033[1;31mPlease disable it by setting \`SELINUX=disabled' \033[47m\033[1;31m*\033[0m"
echo -e "\033[47m\033[1;31m*\033[0m \033[40m\033[1;31min /etc/sysconfig/selinux and don't forget \033[47m\033[1;31m*\033[0m"
echo -e "\033[47m\033[1;31m*\033[0m \033[40m\033[1;31mto reboot your host to apply that change! \033[47m\033[1;31m*\033[0m"
echo -e "\033[47m\033[1;31m*\033[0m \033[40m\033[1;31m \033[47m\033[1;31m*\033[0m"
echo -e "\033[47m\033[1;31m***************************************************\033[0m"
fi
if rpmquery openstack-nova-cc-config 1>&2 >/dev/null; then
# Cloud controller node detected, assuming that is contains database
# Database init/migration
if [ $1 -lt 2 ]; then
echo "New installation"
echo "Please refer http://wiki.openstack.org/NovaInstall/RHEL6Notes for instructions"
fi
upgrade_db=0
if nova_option 'sql_connection' 'mysql://'; then
# Assuming that we have MySQL server on the same node with Cloud Controller
echo "Nova database: MySQL"
service mysqld status 2>&1 >/dev/null
if [ "$?" = 0 ]; then
upgrade_db=1
else
echo "mysqld is not running, skipping Nova db sync"
fi
elif nova_option 'sql_connection' 'sqlite://'; then
echo "Nova database: SQLite"
upgrage_db=1
else
echo "Nova database: UNSUPPORTED by this RPM postscript"
echo "Please ensure that it's running and migrate db"
fi
if [ "$upgrade_db" -eq "1" ]; then
echo "Performing Nova database upgrade:"
%{_bindir}/nova-manage db sync
fi
fi
# api
%post api
/sbin/chkconfig --add %{name}-api
/sbin/chkconfig --add %{name}-direct-api
%preun api
if [ $1 -eq 0 ] ; then
/sbin/service %{name}-api stop >/dev/null 2>&1
/sbin/service %{name}-direct-api stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-api
/sbin/chkconfig --del %{name}-direct-api
fi
%postun api
if [ $1 -eq 1 ] ; then
/sbin/service %{name}-api condrestart
/sbin/service %{name}-direct-api condrestart
fi
# compute
%post compute
/sbin/chkconfig --add %{name}-ajax-console-proxy
/sbin/chkconfig --add %{name}-compute
%preun compute
if [ $1 -eq 0 ] ; then
/sbin/service %{name}-ajax-console-proxy stop >/dev/null 2>&1
/sbin/service %{name}-compute stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-ajax-console-proxy
/sbin/chkconfig --del %{name}-compute
fi
%postun compute
if [ $1 -eq 1 ] ; then
/sbin/service %{name}-ajax-console-proxy condrestart
/sbin/service %{name}-compute condrestart
fi
# network
%post network
/sbin/chkconfig --add %{name}-network
%preun network
if [ $1 -eq 0 ] ; then
/sbin/service %{name}-network stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-network
fi
%postun network
if [ $1 -eq 1 ] ; then
/sbin/service %{name}-network condrestart
fi
# objectstore
%post objectstore
/sbin/chkconfig --add %{name}-objectstore
%preun objectstore
if [ $1 -eq 0 ] ; then
/sbin/service %{name}-objectstore stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-objectstore
fi
%postun objectstore
if [ $1 -eq 1 ] ; then
/sbin/service %{name}-objectstore condrestart
fi
# scheduler
%post scheduler
/sbin/chkconfig --add %{name}-scheduler
%preun scheduler
if [ $1 -eq 0 ] ; then
/sbin/service %{name}-scheduler stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-scheduler
fi
%postun scheduler
if [ $1 -eq 1 ] ; then
/sbin/service %{name}-scheduler condrestart
fi
# volume
%post volume
/sbin/chkconfig --add %{name}-volume
%preun volume
if [ $1 -eq 0 ] ; then
/sbin/service %{name}-volume stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-volume
fi
%postun volume
if [ $1 -eq 1 ] ; then
/sbin/service %{name}-volume condrestart
fi
%files
%defattr(-,root,root,-)
%doc README README.rhel6
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/sudoers.d/%{name}
%dir %attr(0755, nova, root) %{_localstatedir}/log/nova
%dir %attr(0755, nova, root) %{_localstatedir}/run/nova
%{_bindir}/nova-console
%{_bindir}/nova-debug
%{_bindir}/nova-logspool
%{_bindir}/nova-manage
%{_bindir}/nova-spoolsentry
%{_bindir}/stack
%{_datarootdir}/nova
%defattr(-,nova,nobody,-)
%dir %{_sharedstatedir}/nova
%{_sharedstatedir}/nova/CA
%{_sharedstatedir}/nova/images
%{_sharedstatedir}/nova/instances
%{_sharedstatedir}/nova/keys
%{_sharedstatedir}/nova/networks
%{_sharedstatedir}/nova/tmp
%files noVNC
%{_bindir}/nova-vncproxy
%{_initrddir}/%{name}-vncproxy
%{_sharedstatedir}/nova/noVNC
%doc %{_sharedstatedir}/nova/noVNC/LICENSE.txt
%doc %{_sharedstatedir}/nova/noVNC/README.md
%files -n python-nova
%defattr(-,root,root,-)
%doc LICENSE
%{python_sitelib}/nova
%{python_sitelib}/nova-%{version}-*.egg-info
%files api
%defattr(-,root,root,-)
%{_initrddir}/%{name}-api
%{_initrddir}/%{name}-direct-api
%{_bindir}/nova-api
%{_bindir}/nova-direct-api
%defattr(-,nova,nobody,-)
%config(noreplace) %{_sysconfdir}/nova/api-paste.ini
%files compute
%defattr(-,root,root,-)
%{_sysconfdir}/polkit-1/localauthority/50-local.d/50-openstack-nova.pkla
%{_bindir}/euca-get-ajax-console
%{_bindir}/nova-ajax-console-proxy
%{_bindir}/nova-compute
%{_initrddir}/%{name}-compute
%{_initrddir}/%{name}-ajax-console-proxy
%{_datarootdir}/nova/ajaxterm
%files instancemonitor
%defattr(-,root,root,-)
%{_bindir}/nova-instancemonitor
#{_initrddir}/%{name}-instancemonitor
%files network
%defattr(-,root,root,-)
%{_bindir}/nova-network
%{_bindir}/nova-dhcpbridge
%{_initrddir}/%{name}-network
%files objectstore
%defattr(-,root,root,-)
%{_bindir}/nova-import-canonical-imagestore
%{_bindir}/nova-objectstore
%{_initrddir}/%{name}-objectstore
%files scheduler
%defattr(-,root,root,-)
%{_bindir}/nova-scheduler
%{_initrddir}/%{name}-scheduler
%files volume
%defattr(-,root,root,-)
%{_bindir}/nova-volume
%{_initrddir}/%{name}-volume
%if 0%{?with_doc}
%files doc
%defattr(-,root,root,-)
%doc LICENSE doc/build/html
%endif
%files node-full
%files node-compute
%changelog
* Thu Jul 21 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2011.3-0.20110629.1133.4
- Backported 882af3e9461b0d38c818adf28b77d13687c2f2ca commit from master
* Wed Jul 06 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2011.3-0.20110629.1133.3
- Backported nova-api-graceful-shutdown patch LP#805604
* Mon Jul 04 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2011.3-0.20110629.1133.2
- Fixed initscripts for Nova services
* Fri Jul 01 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2011.3-0.20110629.1133.1
- Diablo-2 versioning
* Wed Jun 01 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.96.bzr1130
- Update to bzr1130
* Wed Jun 01 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.95.bzr1129
- Update to bzr1129
* Wed Jun 01 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.94.bzr1128
- Update to bzr1128
* Wed Jun 01 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.93.bzr1127
- Update to bzr1127
* Wed Jun 01 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.92.bzr1126
- Update to bzr1126
* Wed Jun 01 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.91.bzr1125
- Update to bzr1125
* Tue May 31 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.90.bzr1124
- Update to bzr1124
* Tue May 31 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.89.bzr1123
- Update to bzr1123
* Tue May 31 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.88.bzr1122
- Update to bzr1122
* Tue May 31 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.87.bzr1121
- Update to bzr1121
* Tue May 31 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.86.bzr1120
- Update to bzr1120
* Tue May 31 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.85.bzr1119
- Update to bzr1119
* Sat May 28 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.84.bzr1118
- Update to bzr1118
* Sat May 28 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.83.bzr1117
- Update to bzr1117
* Fri May 27 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.82.bzr1116
- Update to bzr1116
* Wed May 25 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.81.bzr1109
- Update to bzr1109
* Wed May 25 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.80.bzr1108
- Update to bzr1108
* Wed May 25 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.79.bzr1107
- Update to bzr1107
* Wed May 25 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.78.bzr1105
- Update to bzr1105
* Tue May 24 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.77.bzr1104
- Update to bzr1104
* Tue May 24 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.76.bzr1103
- Update to bzr1103
* Tue May 24 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.75.bzr1102
- Update to bzr1102
* Mon May 23 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.74.bzr1101
- Update to bzr1101
* Sat May 21 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.73.bzr1099
- Update to bzr1099
* Sat May 21 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.72.bzr1098
- Update to bzr1098
* Fri May 20 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.71.bzr1097
- Update to bzr1097
* Fri May 20 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.70.bzr1096
- Update to bzr1096
* Fri May 20 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.69.bzr1095
- Update to bzr1095
* Fri May 20 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.68.bzr1094
- Update to bzr1094
* Fri May 20 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.67.bzr1092
- Update to bzr1092
* Fri May 20 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.66.bzr1090
- Update to bzr1090
* Fri May 20 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.65.bzr1089
- Update to bzr1089
* Fri May 20 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.64.bzr1088
- Update to bzr1088
* Thu May 19 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.63.bzr1087
- Update to bzr1087
* Wed May 18 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.62.bzr1086
- Update to bzr1086
* Wed May 18 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.61.bzr1085
- Update to bzr1085
* Wed May 18 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.60.bzr1084
- Update to bzr1084
* Wed May 18 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.59.bzr1083
- Update to bzr1083
* Wed May 18 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.58.bzr1082
- Update to bzr1082
* Tue May 17 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.57.bzr1081
- Update to bzr1081
* Tue May 17 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.56.bzr1080
- Update to bzr1080
* Tue May 17 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.55.bzr1079
- Update to bzr1079
* Tue May 17 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.54.bzr1078
- Update to bzr1078
* Tue May 17 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.53.bzr1077
- Update to bzr1077
* Tue May 17 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.52.bzr1076
- Update to bzr1076
* Tue May 17 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.51.bzr1075
- Update to bzr1075
* Mon May 16 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.50.bzr1073
- Update to bzr1073
* Sat May 14 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.49.bzr1072
- Update to bzr1072
* Thu May 12 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.48.bzr1066
- Update to bzr1066
* Wed May 11 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.47.bzr1065
- Update to bzr1065
* Wed May 11 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.46.bzr1064
- Update to bzr1064
* Wed May 11 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.45.bzr1063
- Update to bzr1063
* Wed May 11 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.44.bzr1062
- Update to bzr1062
* Tue May 10 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.43.bzr1061
- Update to bzr1061
* Sat May 07 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.42.bzr1058
- Update to bzr1058
* Sat May 07 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.41.bzr1057
- Update to bzr1057
* Sat May 07 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.40.bzr1056
- Update to bzr1056
* Fri May 06 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.39.bzr1055
- Update to bzr1055
* Thu May 05 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.38.bzr1054
- Update to bzr1054
* Thu May 05 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.37.bzr1053
- Update to bzr1053
* Tue May 03 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.36.bzr1052
- Added support for scsi-target-utils
* Tue May 03 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.35.bzr1052
- Update to bzr1052
* Tue May 03 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.34.bzr1051
- Update to bzr1051
* Tue May 03 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.33.bzr1050
- Update to bzr1050
* Tue May 03 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.32.bzr1049
- Update to bzr1049
* Tue May 03 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.31.bzr1048
- Update to bzr1048
* Mon May 02 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.30.bzr1047
- Update to bzr1047
* Mon May 02 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.29.bzr1046
- Update to bzr1046
* Mon May 02 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.28.bzr1043
- Update to bzr1043
* Sun May 01 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.27.bzr1039
- Update to bzr1039
* Fri Apr 29 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.26.bzr1035
- Update to bzr1035
* Thu Apr 28 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.25.bzr1034
- Update to bzr1034
* Thu Apr 28 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.24.bzr1033
- Update to bzr1033
* Wed Apr 27 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2011.3-0.23.bzr1032
- created separate package for noVNC due licensing issue
* Wed Apr 27 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.22.bzr1032
- Update to bzr1032
* Tue Apr 26 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2011.3-0.21.bzr1031
- Updated patch6
* Tue Apr 26 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.20.bzr1031
- Update to bzr1031
* Mon Apr 25 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2011.3-0.19.bzr1030
- Floating IPs merged to trunk
* Thu Apr 21 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.18.bzr1010
- Update to bzr1010
* Thu Apr 21 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.17.bzr1009
- Update to bzr1009
* Thu Apr 21 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.16.bzr1008
- Update to bzr1008
* Wed Apr 20 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.15.bzr1007
- Update to bzr1007
* Wed Apr 20 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.14.bzr1006
- Update to bzr1006
* Tue Apr 19 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.13.bzr1005
- Update to bzr1005
* Tue Apr 19 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.12.bzr1004
- Update to bzr1004
* Tue Apr 19 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2011.3-0.11.bzr1000
- Updated dependency on python-routes with version 1.12.3
* Tue Apr 19 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.11.bzr1003
- Update to bzr1003
* Tue Apr 19 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2011.3-0.10.bzr1000
- Updated floating IP patch, kudos to Ilya Alekseyev
* Tue Apr 19 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.9.bzr1000
- Update to bzr1000
* Tue Apr 19 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.8.bzr998
- Update to bzr998
* Tue Apr 19 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.7.bzr997
- Update to bzr997
* Mon Apr 18 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.6.bzr996
- Update to bzr996
* Mon Apr 18 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.5.bzr994
- Update to bzr994
* Sun Apr 17 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.4.bzr993
- Update to bzr993
* Fri Apr 15 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.3.bzr992
- Update to bzr992
* Fri Apr 15 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.3-0.2.bzr991
- Update to bzr991
* Fri Apr 15 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2011.3-0.1.bzr990
- Diablo versioning
* Fri Apr 15 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.2-0.112.bzr989
- Update to bzr989
* Thu Apr 14 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2011.2-0.111.bzr988
- Uncommented initial db sync on fresh install
- Added banner with link to instructions
* Thu Apr 14 2011 Ilya Alekseyev <ialekseev@griddynamics.com> - 2011.2-0.110.bzr988
- Patch for auto assigning floating ips (AWS EC2 behaviour emulation) added
* Thu Apr 14 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.2-0.109.bzr988
- Update to bzr988
* Thu Apr 14 2011 Andrey Brindeyev <abrindeyev@griddynamics.com> - 2011.2-0.108.bzr987
- Fixed an odd typo
* Thu Apr 14 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.2-0.107.bzr987
- Update to bzr987
* Wed Apr 13 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.2-0.106.bzr986
- Update to bzr986
* Wed Apr 13 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.2-0.105.bzr985
- Update to bzr985
* Wed Apr 13 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.2-0.104.bzr984
- Update to bzr984
* Wed Apr 13 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.2-0.103.bzr983
- Update to bzr983
* Tue Apr 12 2011 Mr. Jenkins GD <openstack@griddynamics.net> - 2011.2-0.102.bzr981