Merge "fix testsuite name bugs and improve some ui details"
authorYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>
Mon, 22 Oct 2018 09:00:47 +0000 (09:00 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Mon, 22 Oct 2018 09:00:47 +0000 (09:00 +0000)
docker/Dockerfile
docs/testing/user/userguide/kubestone/deployment_capacity.rst [new file with mode: 0644]
docs/testing/user/userguide/overview.rst
docs/testing/user/userguide/test_cases.rst
docs/testing/user/userguide/test_scheduler_user_guide.rst [moved from docs/testing/user/userguide/testing_scheduler_user_guide.rst with 100% similarity]
utils/k8s_setup/k8s_config_pre.sh
utils/k8s_setup/kubectl_install.sh

index c91a60f..ef63e3b 100644 (file)
@@ -49,5 +49,7 @@ RUN git config --global http.sslVerify false
 RUN git clone -b $BRANCH https://gerrit.opnfv.org/gerrit/bottlenecks ${BOTTLENECKS_REPO_DIR}
 RUN git clone https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
 
+RUN bash ${BOTTLENECKS_REPO_DIR}/utils/k8s_setup/kubectl_install.sh
+
 RUN pip install -r ${BOTTLENECKS_REPO_DIR}/requirements/requirements.txt
 RUN pip install -U ${BOTTLENECKS_REPO_DIR}
diff --git a/docs/testing/user/userguide/kubestone/deployment_capacity.rst b/docs/testing/user/userguide/kubestone/deployment_capacity.rst
new file mode 100644 (file)
index 0000000..06cdd88
--- /dev/null
@@ -0,0 +1,59 @@
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+   .. http://creativecommons.org/licenses/by/4.0
+      .. (c) Huawei Technologies Co.,Ltd and others.
+
+***************************************************
+Kubenetes Stress Test of Deployment Capacity
+***************************************************
+
+Test Case
+=========
+
++-----------------------------------------------------------------------------+
+|Bottlenecks Kubestone Deployment Capacity Test                               |
+|                                                                             |
++--------------+--------------------------------------------------------------+
+|test case name| kubestone_deployment_capacity                                |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+|description   | Stress test regarding capacity of deployment                 |
++--------------+--------------------------------------------------------------+
+|configuration | config file:                                                 |
+|              |    testsuite/kubestone/testcases/deployment.yaml             |
+|              |                                                              |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+|test result   | Capcity, Life-Cycle Duration, Available Deployments          |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+
+Configuration
+============
+::
+
+  apiVersion: apps/v1
+  kind: Deployment
+  namespace: bottlenecks-kubestone
+  test_type: Horizontal-Scaling
+  scaling_steps: 10, 50, 100, 200
+  template: None
+  metadata:
+    name: nginx-deployment
+    labels:
+      app: nginx
+  spec:
+    replicas: 3
+    selector:
+      matchLabels:
+        app: nginx
+    template:
+      metadata:
+        labels:
+          app: nginx
+      spec:
+        containers:
+        - name: nginx
+          image: nginx:1.7.9
+          ports:
+          - containerPort: 80
+
index 725a4b9..a03229f 100644 (file)
@@ -57,30 +57,34 @@ Integration Description
 +-------------+----------------------+----------------------+
 | Fraser      |    Any               | POSCA                |
 +-------------+----------------------+----------------------+
+| Gambia      |    Any               | POSCA, kubestone     |
++-------------+----------------------+----------------------+
 
 Test suite & Test case Description
 ==================================
-+--------+----+-------------------------------------------+
-|POSCA   | 1  | posca_factor_ping                         |
-|        +----+-------------------------------------------+
-|        | 2  | posca_factor_system_bandwidth             |
-|        +----+-------------------------------------------+
-|        | 3  | posca_facotor_soak_througputs             |
-|        +----+-------------------------------------------+
-|        | 4  | posca_feature_vnf_scale_up                |
-|        +----+-------------------------------------------+
-|        | 5  | posca_feature_vnf_scale_out               |
-|        +----+-------------------------------------------+
-|        | 6  | posca_factor_storperf                     |
-|        +----+-------------------------------------------+
-|        | 7  | posca_factor_multistack_storage_parallel  |
-|        +----+-------------------------------------------+
-|        | 8  | posca_factor_multistack_storage           |
-|        +----+-------------------------------------------+
-|        | 9  | posca_feature_moon_resources              |
-|        +----+-------------------------------------------+
-|        | 10 | posca_feature_moon_tenants                |
-+--------+----+-------------------------------------------+
++----------+----+-------------------------------------------+
+|POSCA     | 1  | posca_factor_ping                         |
+|          +----+-------------------------------------------+
+|          | 2  | posca_factor_system_bandwidth             |
+|          +----+-------------------------------------------+
+|          | 3  | posca_facotor_soak_througputs             |
+|          +----+-------------------------------------------+
+|          | 4  | posca_feature_vnf_scale_up                |
+|          +----+-------------------------------------------+
+|          | 5  | posca_feature_vnf_scale_out               |
+|          +----+-------------------------------------------+
+|          | 6  | posca_factor_storperf                     |
+|          +----+-------------------------------------------+
+|          | 7  | posca_factor_multistack_storage_parallel  |
+|          +----+-------------------------------------------+
+|          | 8  | posca_factor_multistack_storage           |
+|          +----+-------------------------------------------+
+|          | 9  | posca_feature_moon_resources              |
+|          +----+-------------------------------------------+
+|          | 10 | posca_feature_moon_tenants                |
++----------+----+-------------------------------------------+
+|Kubestone | 1  | deployment_capacity                       |
++----------+----+-------------------------------------------+
 
 As for the abandoned test suite in the previous Bottlenecks releases, please
 refer to http://docs.opnfv.org/en/stable-danube/submodules/bottlenecks/docs/testing/user/userguide/deprecated.html.
index b6b1d17..2000341 100644 (file)
@@ -18,3 +18,4 @@ Bottlenecks - Test Cases
   ./posca/posca_feature_moon_resources.rst
   ./posca/posca_feature_moon_tenants.rst
   ./posca/posca_feature_vnf_scale_out.rst
+  ./kubestone/deployment_capacity.rst
index 05c3f1c..38e71d2 100644 (file)
@@ -59,8 +59,22 @@ while [[ $# > 0 ]]
      shift
 done
 
-if [[  ${INSTALLER_TYPE} == 'compass' ]]; then
-    sshpass -p root scp root@192.16.1.222:~/.kube/config ${K8S_CONFIG}
+if [[ ${INSTALLER_TYPE} == 'compass' ]]; then
+    sshpass -p root scp -o StrictHostKeyChecking=no root@192.16.1.222:~/.kube/config ${K8S_CONFIG}
 else
     echo "BOTTLENECKS EROOR: unrecognized installer"
 fi
+
+if [[ -f ${K8S_CONFIG} ]]; then
+    if [[ -d ~/.kube ]]; then
+        cp ${K8S_CONFIG} ~/.kube/config
+        echo "BOTTLENECKS INFO: copying k8s config to ~./kube"
+    else
+        mkdir ~/.kube
+        cp ${K8S_CONFIG} ~/.kube/config
+        echo "BOTTLENECKS INFO: copying k8s config to ~./kube"
+    fi
+else
+    echo "BOTTLENECKS ERROR: k8s config file does no exit (${K8S_CONFIG})"
+    exit 1
+fi
index 14f97f2..22c6197 100644 (file)
@@ -9,7 +9,7 @@
 ##############################################################################
 
 OS_TYPE=$(uname -a)
-OS_UBUNTU=$(echo $OS_TYPE | grep ubuntu)
+OS_UBUNTU=$(echo $OS_TYPE | grep Ubuntu)
 
 if [[ $OS_UBUNTU ]]; then
     apt-get update && apt-get install -y apt-transport-https