Browse code

Merge "remove configuration for boto section"

Jenkins authored on 2016/01/07 04:18:34
Showing 2 changed files
... ...
@@ -13,7 +13,6 @@ if is_service_enabled tempest; then
13 13
     elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
14 14
         echo_summary "Initializing Tempest"
15 15
         configure_tempest
16
-        init_tempest
17 16
     elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then
18 17
         # local.conf Tempest option overrides
19 18
         :
... ...
@@ -35,7 +35,6 @@
35 35
 #
36 36
 # - install_tempest
37 37
 # - configure_tempest
38
-# - init_tempest
39 38
 
40 39
 # Save trace setting
41 40
 _XTRACE_TEMPEST=$(set +o | grep xtrace)
... ...
@@ -67,9 +66,6 @@ BUILD_TIMEOUT=${BUILD_TIMEOUT:-196}
67 67
 # have tempest installed in DevStack by default.
68 68
 INSTALL_TEMPEST=${INSTALL_TEMPEST:-"True"}
69 69
 
70
-BOTO_MATERIALS_PATH="$FILES/images/s3-materials/cirros-${CIRROS_VERSION}"
71
-BOTO_CONF=/etc/boto.cfg
72
-
73 70
 # Cinder/Volume variables
74 71
 TEMPEST_VOLUME_DRIVER=${TEMPEST_VOLUME_DRIVER:-default}
75 72
 TEMPEST_DEFAULT_VOLUME_VENDOR="Open Source"
... ...
@@ -131,7 +127,6 @@ function configure_tempest {
131 131
     local flavor_lines
132 132
     local public_network_id
133 133
     local public_router_id
134
-    local boto_instance_type="m1.tiny"
135 134
     local ssh_connect_method="fixed"
136 135
 
137 136
     # Save IFS
... ...
@@ -202,14 +197,12 @@ function configure_tempest {
202 202
                 nova flavor-create m1.nano 42 64 0 1
203 203
             fi
204 204
             flavor_ref=42
205
-            boto_instance_type=m1.nano
206 205
             if [[ ! ( $available_flavors =~ 'm1.micro' ) ]]; then
207 206
                 nova flavor-create m1.micro 84 128 0 1
208 207
             fi
209 208
             flavor_ref_alt=84
210 209
         else
211 210
             # Check Nova for existing flavors, if ``DEFAULT_INSTANCE_TYPE`` is set use it.
212
-            boto_instance_type=$DEFAULT_INSTANCE_TYPE
213 211
             IFS=$'\r\n'
214 212
             flavors=""
215 213
             for line in $available_flavors; do
... ...
@@ -254,15 +247,6 @@ function configure_tempest {
254 254
             awk '{print $2}')
255 255
     fi
256 256
 
257
-    EC2_URL=$(get_endpoint_url ec2 public || true)
258
-    if [[ -z $EC2_URL ]]; then
259
-        EC2_URL="$EC2_SERVICE_PROTOCOL://$SERVICE_HOST:8773/"
260
-    fi
261
-    S3_URL=$(get_endpoint_url s3 public || true)
262
-    if [[ -z $S3_URL ]]; then
263
-        S3_URL="http://$SERVICE_HOST:${S3_SERVICE_PORT:-3333}"
264
-    fi
265
-
266 257
     iniset $TEMPEST_CONFIG DEFAULT use_syslog $SYSLOG
267 258
 
268 259
     # Oslo
... ...
@@ -275,8 +259,6 @@ function configure_tempest {
275 275
     # Timeouts
276 276
     iniset $TEMPEST_CONFIG compute build_timeout $BUILD_TIMEOUT
277 277
     iniset $TEMPEST_CONFIG volume build_timeout $BUILD_TIMEOUT
278
-    iniset $TEMPEST_CONFIG boto build_timeout $BUILD_TIMEOUT
279
-    iniset $TEMPEST_CONFIG boto http_socket_timeout 5
280 278
 
281 279
     # Identity
282 280
     iniset $TEMPEST_CONFIG identity uri "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:5000/v2.0/"
... ...
@@ -422,16 +404,6 @@ function configure_tempest {
422 422
     fi
423 423
     iniset $TEMPEST_CONFIG network-feature-enabled api_extensions $network_api_extensions
424 424
 
425
-    # boto
426
-    iniset $TEMPEST_CONFIG boto ec2_url "$EC2_URL"
427
-    iniset $TEMPEST_CONFIG boto s3_url "$S3_URL"
428
-    iniset $TEMPEST_CONFIG boto s3_materials_path "$BOTO_MATERIALS_PATH"
429
-    iniset $TEMPEST_CONFIG boto ari_manifest cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-initrd.manifest.xml
430
-    iniset $TEMPEST_CONFIG boto ami_manifest cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-blank.img.manifest.xml
431
-    iniset $TEMPEST_CONFIG boto aki_manifest cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-vmlinuz.manifest.xml
432
-    iniset $TEMPEST_CONFIG boto instance_type "$boto_instance_type"
433
-    iniset $TEMPEST_CONFIG boto http_socket_timeout 30
434
-
435 425
     # Orchestration Tests
436 426
     if is_service_enabled heat; then
437 427
         if [[ ! -z "$HEAT_CFN_IMAGE_URL" ]]; then
... ...
@@ -574,12 +546,6 @@ function configure_tempest {
574 574
         iniset $TEMPEST_CONFIG service_available cinder "False"
575 575
     fi
576 576
 
577
-    if is_ssl_enabled_service "key" || is_service_enabled tls-proxy; then
578
-        # Use the ``BOTO_CONFIG`` environment variable to point to this file
579
-        iniset -sudo $BOTO_CONF Boto ca_certificates_file $SSL_BUNDLE_FILE
580
-        sudo chown $STACK_USER $BOTO_CONF
581
-    fi
582
-
583 577
     # Auth
584 578
     iniset $TEMPEST_CONFIG auth tempest_roles "Member"
585 579
     if [[ $TEMPEST_USE_TEST_ACCOUNTS == "True" ]]; then
... ...
@@ -641,35 +607,6 @@ function install_tempest {
641 641
     popd
642 642
 }
643 643
 
644
-# init_tempest() - Initialize EC2 images
645
-function init_tempest {
646
-    local base_image_name=cirros-${CIRROS_VERSION}-${CIRROS_ARCH}
647
-    # /opt/stack/devstack/files/images/cirros-${CIRROS_VERSION}-${CIRROS_ARCH}-uec
648
-    local image_dir="$FILES/images/${base_image_name}-uec"
649
-    local kernel="$image_dir/${base_image_name}-vmlinuz"
650
-    local ramdisk="$image_dir/${base_image_name}-initrd"
651
-    local disk_image="$image_dir/${base_image_name}-blank.img"
652
-    if is_service_enabled nova; then
653
-        # If the CirrOS uec downloaded and the system is UEC capable
654
-        if [ -f "$kernel" -a -f "$ramdisk" -a -f "$disk_image" -a  "$VIRT_DRIVER" != "openvz" \
655
-            -a \( "$LIBVIRT_TYPE" != "lxc" -o "$VIRT_DRIVER" != "libvirt" \) ]; then
656
-            echo "Prepare aki/ari/ami Images"
657
-            mkdir -p $BOTO_MATERIALS_PATH
658
-            ( #new namespace
659
-                # euca2ools should be installed to call euca-* commands
660
-                is_package_installed euca2ools || install_package euca2ools
661
-                # tenant:demo ; user: demo
662
-                source $TOP_DIR/accrc/demo/demo
663
-                euca-bundle-image -r ${CIRROS_ARCH} -i "$kernel" --kernel true -d "$BOTO_MATERIALS_PATH"
664
-                euca-bundle-image -r ${CIRROS_ARCH} -i "$ramdisk" --ramdisk true -d "$BOTO_MATERIALS_PATH"
665
-                euca-bundle-image -r ${CIRROS_ARCH} -i "$disk_image" -d "$BOTO_MATERIALS_PATH"
666
-            ) 2>&1 </dev/null | cat
667
-        else
668
-            echo "Boto materials are not prepared"
669
-        fi
670
-    fi
671
-}
672
-
673 644
 # Restore xtrace
674 645
 $_XTRACE_TEMPEST
675 646