Skip to content

Commit 253a1a3

Browse files
author
Dean Troyer
committed
Move setup_develop call
Move setup_develop() call into the install_XXX() function as the distinction has no real purpose. This eliminates the configure_XXXclient() function for Nova and Swift. Also create install_cinderclient() as we will need it to handle dependencies in a followup patch. Chasing down another #$^%&&^^^$%%#$ prettytable version pin Change-Id: I61d761bc57a31caf2ed0ade326ab236eb2bb7358
1 parent 1b4b4be commit 253a1a3

4 files changed

Lines changed: 9 additions & 18 deletions

File tree

lib/cinder

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,10 @@ function init_cinder() {
365365
function install_cinder() {
366366
git_clone $CINDER_REPO $CINDER_DIR $CINDER_BRANCH
367367
setup_develop $CINDER_DIR
368+
}
368369

370+
# install_cinderclient() - Collect source and prepare
371+
function install_cinderclient() {
369372
git_clone $CINDERCLIENT_REPO $CINDERCLIENT_DIR $CINDERCLIENT_BRANCH
370373
setup_develop $CINDERCLIENT_DIR
371374
}

lib/nova

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,6 @@ function cleanup_nova() {
169169
sudo rm -rf $NOVA_STATE_PATH $NOVA_AUTH_CACHE_DIR
170170
}
171171

172-
# configure_novaclient() - Set config files, create data dirs, etc
173-
function configure_novaclient() {
174-
setup_develop $NOVACLIENT_DIR
175-
}
176-
177172
# configure_nova_rootwrap() - configure Nova's rootwrap
178173
function configure_nova_rootwrap() {
179174
# Deploy new rootwrap filters files (owned by root).
@@ -204,8 +199,6 @@ function configure_nova_rootwrap() {
204199

205200
# configure_nova() - Set config files, create data dirs, etc
206201
function configure_nova() {
207-
setup_develop $NOVA_DIR
208-
209202
# Put config files in ``/etc/nova`` for everyone to find
210203
if [[ ! -d $NOVA_CONF_DIR ]]; then
211204
sudo mkdir -p $NOVA_CONF_DIR
@@ -597,6 +590,7 @@ function init_nova() {
597590
# install_novaclient() - Collect source and prepare
598591
function install_novaclient() {
599592
git_clone $NOVACLIENT_REPO $NOVACLIENT_DIR $NOVACLIENT_BRANCH
593+
setup_develop $NOVACLIENT_DIR
600594
}
601595

602596
# install_nova() - Collect source and prepare
@@ -627,6 +621,7 @@ function install_nova() {
627621
fi
628622

629623
git_clone $NOVA_REPO $NOVA_DIR $NOVA_BRANCH
624+
setup_develop $NOVA_DIR
630625
}
631626

632627
# start_nova_api() - Start the API process ahead of other things

lib/swift

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ function configure_swift() {
106106
local swift_node_config
107107
local swift_log_dir
108108

109-
setup_develop $SWIFT_DIR
110-
111109
# Make sure to kill all swift processes first
112110
swift-init --run-dir=${SWIFT_DATA_DIR}/run all stop || true
113111

@@ -281,11 +279,6 @@ EOF
281279
tee /etc/rsyslog.d/10-swift.conf
282280
}
283281

284-
# configure_swiftclient() - Set config files, create data dirs, etc
285-
function configure_swiftclient() {
286-
setup_develop $SWIFTCLIENT_DIR
287-
}
288-
289282
# create_swift_disk - Create Swift backing disk
290283
function create_swift_disk() {
291284
local node_number
@@ -374,13 +367,14 @@ function init_swift() {
374367

375368
function install_swift() {
376369
git_clone $SWIFT_REPO $SWIFT_DIR $SWIFT_BRANCH
370+
setup_develop $SWIFT_DIR
377371
}
378372

379373
function install_swiftclient() {
380374
git_clone $SWIFTCLIENT_REPO $SWIFTCLIENT_DIR $SWIFTCLIENT_BRANCH
375+
setup_develop $SWIFTCLIENT_DIR
381376
}
382377

383-
384378
# start_swift() - Start running processes, including screen
385379
function start_swift() {
386380
# (re)start rsyslog

stack.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,9 +564,11 @@ echo_summary "Installing OpenStack project source"
564564
# Grab clients first
565565
install_keystoneclient
566566
install_glanceclient
567+
install_cinderclient
567568
install_novaclient
568569
# Check out the client libs that are used most
569570
git_clone $OPENSTACKCLIENT_REPO $OPENSTACKCLIENT_DIR $OPENSTACKCLIENT_BRANCH
571+
setup_develop $OPENSTACKCLIENT_DIR
570572

571573
# glance, swift middleware and nova api needs keystone middleware
572574
if is_service_enabled key g-api n-api s-proxy; then
@@ -627,16 +629,13 @@ fi
627629
echo_summary "Configuring OpenStack projects"
628630

629631
# Set up our checkouts so they are installed in the python path
630-
configure_novaclient
631-
setup_develop $OPENSTACKCLIENT_DIR
632632

633633
if is_service_enabled key g-api n-api s-proxy; then
634634
configure_keystone
635635
fi
636636

637637
if is_service_enabled s-proxy; then
638638
configure_swift
639-
configure_swiftclient
640639
if is_service_enabled swift3; then
641640
setup_develop $SWIFT3_DIR
642641
fi

0 commit comments

Comments
 (0)