Clean up and organize the download and configuration of source repositories.
Change-Id: Iaf38c0aed0a83ebf9a5da3505fe92c9fa200ac1e
... | ... |
@@ -11,8 +11,6 @@ |
11 | 11 |
# install_quantumclient |
12 | 12 |
# install_quantum_agent_packages |
13 | 13 |
# install_quantum_third_party |
14 |
-# setup_quantum |
|
15 |
-# setup_quantumclient |
|
16 | 14 |
# configure_quantum |
17 | 15 |
# init_quantum |
18 | 16 |
# configure_quantum_third_party |
... | ... |
@@ -343,11 +341,13 @@ function init_quantum() { |
343 | 343 |
# install_quantum() - Collect source and prepare |
344 | 344 |
function install_quantum() { |
345 | 345 |
git_clone $QUANTUM_REPO $QUANTUM_DIR $QUANTUM_BRANCH |
346 |
+ setup_develop $QUANTUM_DIR |
|
346 | 347 |
} |
347 | 348 |
|
348 | 349 |
# install_quantumclient() - Collect source and prepare |
349 | 350 |
function install_quantumclient() { |
350 | 351 |
git_clone $QUANTUMCLIENT_REPO $QUANTUMCLIENT_DIR $QUANTUMCLIENT_BRANCH |
352 |
+ setup_develop $QUANTUMCLIENT_DIR |
|
351 | 353 |
} |
352 | 354 |
|
353 | 355 |
# install_quantum_agent_packages() - Collect source and prepare |
... | ... |
@@ -356,14 +356,6 @@ function install_quantum_agent_packages() { |
356 | 356 |
quantum_plugin_install_agent_packages |
357 | 357 |
} |
358 | 358 |
|
359 |
-function setup_quantum() { |
|
360 |
- setup_develop $QUANTUM_DIR |
|
361 |
-} |
|
362 |
- |
|
363 |
-function setup_quantumclient() { |
|
364 |
- setup_develop $QUANTUMCLIENT_DIR |
|
365 |
-} |
|
366 |
- |
|
367 | 359 |
# Start running processes, including screen |
368 | 360 |
function start_quantum_service_and_check() { |
369 | 361 |
# Start the Quantum service |
... | ... |
@@ -556,117 +556,99 @@ if [[ $TRACK_DEPENDS = True ]] ; then |
556 | 556 |
fi |
557 | 557 |
|
558 | 558 |
|
559 |
-# Check Out Source |
|
560 |
-# ---------------- |
|
559 |
+# Check Out and Install Source |
|
560 |
+# ---------------------------- |
|
561 | 561 |
|
562 | 562 |
echo_summary "Installing OpenStack project source" |
563 | 563 |
|
564 |
-# Grab clients first |
|
564 |
+# Install clients libraries |
|
565 | 565 |
install_keystoneclient |
566 | 566 |
install_glanceclient |
567 | 567 |
install_cinderclient |
568 | 568 |
install_novaclient |
569 |
-# Check out the client libs that are used most |
|
569 |
+if is_service_enabled swift glance; then |
|
570 |
+ install_swiftclient |
|
571 |
+fi |
|
572 |
+if is_service_enabled quantum nova; then |
|
573 |
+ install_quantumclient |
|
574 |
+fi |
|
575 |
+ |
|
570 | 576 |
git_clone $OPENSTACKCLIENT_REPO $OPENSTACKCLIENT_DIR $OPENSTACKCLIENT_BRANCH |
571 | 577 |
setup_develop $OPENSTACKCLIENT_DIR |
572 | 578 |
|
573 |
-# glance, swift middleware and nova api needs keystone middleware |
|
574 |
-if is_service_enabled key g-api n-api s-proxy; then |
|
575 |
- # unified auth system (manages accounts/tokens) |
|
579 |
+if is_service_enabled key; then |
|
576 | 580 |
install_keystone |
581 |
+ configure_keystone |
|
577 | 582 |
fi |
578 | 583 |
|
579 | 584 |
if is_service_enabled s-proxy; then |
580 |
- install_swiftclient |
|
581 | 585 |
install_swift |
586 |
+ configure_swift |
|
587 |
+ |
|
582 | 588 |
if is_service_enabled swift3; then |
583 | 589 |
# swift3 middleware to provide S3 emulation to Swift |
584 | 590 |
git_clone $SWIFT3_REPO $SWIFT3_DIR $SWIFT3_BRANCH |
591 |
+ setup_develop $SWIFT3_DIR |
|
585 | 592 |
fi |
586 | 593 |
fi |
587 | 594 |
|
588 | 595 |
if is_service_enabled g-api n-api; then |
589 | 596 |
# image catalog service |
590 | 597 |
install_glance |
598 |
+ configure_glance |
|
599 |
+fi |
|
600 |
+ |
|
601 |
+if is_service_enabled cinder; then |
|
602 |
+ install_cinder |
|
603 |
+ configure_cinder |
|
604 |
+fi |
|
605 |
+ |
|
606 |
+if is_service_enabled quantum; then |
|
607 |
+ install_quantum |
|
608 |
+ install_quantum_third_party |
|
591 | 609 |
fi |
610 |
+ |
|
592 | 611 |
if is_service_enabled nova; then |
593 | 612 |
# compute service |
594 | 613 |
install_nova |
614 |
+ cleanup_nova |
|
615 |
+ configure_nova |
|
595 | 616 |
fi |
617 |
+ |
|
596 | 618 |
if is_service_enabled n-novnc; then |
597 | 619 |
# a websockets/html5 or flash powered VNC console for vm instances |
598 | 620 |
git_clone $NOVNC_REPO $NOVNC_DIR $NOVNC_BRANCH |
599 | 621 |
fi |
622 |
+ |
|
600 | 623 |
if is_service_enabled n-spice; then |
601 | 624 |
# a websockets/html5 or flash powered SPICE console for vm instances |
602 | 625 |
git_clone $SPICE_REPO $SPICE_DIR $SPICE_BRANCH |
603 | 626 |
fi |
627 |
+ |
|
604 | 628 |
if is_service_enabled horizon; then |
605 | 629 |
# dashboard |
606 | 630 |
install_horizon |
631 |
+ configure_horizon |
|
607 | 632 |
fi |
608 |
-if is_service_enabled quantum; then |
|
609 |
- install_quantum |
|
610 |
- install_quantumclient |
|
611 |
- install_quantum_third_party |
|
612 |
-fi |
|
613 |
-if is_service_enabled heat; then |
|
614 |
- install_heat |
|
615 |
- install_heatclient |
|
616 |
-fi |
|
617 |
-if is_service_enabled cinder; then |
|
618 |
- install_cinder |
|
619 |
-fi |
|
633 |
+ |
|
620 | 634 |
if is_service_enabled ceilometer; then |
621 | 635 |
install_ceilometerclient |
622 | 636 |
install_ceilometer |
623 | 637 |
fi |
624 | 638 |
|
625 |
- |
|
626 |
-# Initialization |
|
627 |
-# ============== |
|
628 |
- |
|
629 |
-echo_summary "Configuring OpenStack projects" |
|
630 |
- |
|
631 |
-# Set up our checkouts so they are installed in the python path |
|
632 |
- |
|
633 |
-if is_service_enabled key g-api n-api s-proxy; then |
|
634 |
- configure_keystone |
|
635 |
-fi |
|
636 |
- |
|
637 |
-if is_service_enabled s-proxy; then |
|
638 |
- configure_swift |
|
639 |
- if is_service_enabled swift3; then |
|
640 |
- setup_develop $SWIFT3_DIR |
|
641 |
- fi |
|
642 |
-fi |
|
643 |
- |
|
644 |
-if is_service_enabled g-api n-api; then |
|
645 |
- configure_glance |
|
646 |
-fi |
|
647 |
- |
|
648 |
-if is_service_enabled nova; then |
|
649 |
- # First clean up old instances |
|
650 |
- cleanup_nova |
|
651 |
- configure_nova |
|
652 |
-fi |
|
653 |
- |
|
654 |
-if is_service_enabled horizon; then |
|
655 |
- configure_horizon |
|
656 |
-fi |
|
657 |
- |
|
658 |
-if is_service_enabled quantum; then |
|
659 |
- setup_quantumclient |
|
660 |
- setup_quantum |
|
661 |
-fi |
|
662 |
- |
|
663 | 639 |
if is_service_enabled heat; then |
640 |
+ install_heat |
|
641 |
+ install_heatclient |
|
664 | 642 |
configure_heat |
665 | 643 |
configure_heatclient |
666 | 644 |
fi |
667 | 645 |
|
668 |
-if is_service_enabled cinder; then |
|
669 |
- configure_cinder |
|
646 |
+if is_service_enabled tls-proxy; then |
|
647 |
+ configure_CA |
|
648 |
+ init_CA |
|
649 |
+ init_cert |
|
650 |
+ # Add name to /etc/hosts |
|
651 |
+ # don't be naive and add to existing line! |
|
670 | 652 |
fi |
671 | 653 |
|
672 | 654 |
if [[ $TRACK_DEPENDS = True ]] ; then |
... | ... |
@@ -678,14 +660,6 @@ if [[ $TRACK_DEPENDS = True ]] ; then |
678 | 678 |
exit 0 |
679 | 679 |
fi |
680 | 680 |
|
681 |
-if is_service_enabled tls-proxy; then |
|
682 |
- configure_CA |
|
683 |
- init_CA |
|
684 |
- init_cert |
|
685 |
- # Add name to /etc/hosts |
|
686 |
- # don't be naive and add to existing line! |
|
687 |
-fi |
|
688 |
- |
|
689 | 681 |
|
690 | 682 |
# Syslog |
691 | 683 |
# ------ |