From: Loic Dachary Date: Mon, 26 Oct 2015 23:14:46 +0000 (+0900) Subject: openstack: tests: use new resources hint style X-Git-Tag: 1.1.0~766^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f03ecb6df52bf91a7312e46be42b68d7f64b468e;p=teuthology.git openstack: tests: use new resources hint style The memory cannot be lowered by the hint: test that it increases to 10GB instead of testing that it was lowered under a given limit. Signed-off-by: Loic Dachary --- diff --git a/teuthology/openstack/test/resources_hint.yaml b/teuthology/openstack/test/resources_hint.yaml index cb13ec48e..b8f595964 100644 --- a/teuthology/openstack/test/resources_hint.yaml +++ b/teuthology/openstack/test/resources_hint.yaml @@ -1,13 +1,13 @@ stop_worker: true machine_type: openstack openstack: - machine: - disk: 10 # GB - ram: 1024 # MB - cpus: 1 - volumes: - count: 1 - size: 2 # GB + - machine: + disk: 10 # GB + ram: 10000 # MB + cpus: 1 + volumes: + count: 1 + size: 2 # GB os_type: ubuntu os_version: "14.04" roles: @@ -16,7 +16,7 @@ roles: tasks: - exec: mon.a: - - test $(sed -n -e 's/MemTotal.* \([0-9][0-9]*\).*/\1/p' < /proc/meminfo) -lt 4000000 && echo "RAM" "size" "ok" + - test $(sed -n -e 's/MemTotal.* \([0-9][0-9]*\).*/\1/p' < /proc/meminfo) -ge 10000000 && echo "RAM" "size" "ok" - cat /proc/meminfo # wait for the attached volume to show up - for delay in 1 2 4 8 16 32 64 128 256 512 ; do if test -e /sys/block/vdb/size ; then break ; else sleep $delay ; fi ; done diff --git a/teuthology/openstack/test/resources_hint_no_cinder.yaml b/teuthology/openstack/test/resources_hint_no_cinder.yaml index 5ed2797a7..c603804a5 100644 --- a/teuthology/openstack/test/resources_hint_no_cinder.yaml +++ b/teuthology/openstack/test/resources_hint_no_cinder.yaml @@ -1,13 +1,13 @@ stop_worker: true machine_type: openstack openstack: - machine: - disk: 10 # GB - ram: 1024 # MB - cpus: 1 - volumes: - count: 0 - size: 2 # GB + - machine: + disk: 10 # GB + ram: 10000 # MB + cpus: 1 + volumes: + count: 0 + size: 2 # GB os_type: ubuntu os_version: "14.04" roles: @@ -17,4 +17,4 @@ tasks: - exec: mon.a: - cat /proc/meminfo - - test $(sed -n -e 's/MemTotal.* \([0-9][0-9]*\).*/\1/p' < /proc/meminfo) -lt 4000000 && echo "RAM" "size" "ok" + - test $(sed -n -e 's/MemTotal.* \([0-9][0-9]*\).*/\1/p' < /proc/meminfo) -ge 10000000 && echo "RAM" "size" "ok"