Guests with large memory requirements can use default flavors, so
removing the special flavor for ppc64 since new qemu requires more
memory - http://wiki.qemu.org/ChangeLog/2.4 - PowerPC.
Users should set DEFAULT_INSTANCE_TYPE to one of the default
flavors available in local.conf, as m1.tiny.
DocImpact
Change-Id: I0fd275dc7342cc2daa83e9a2bd79d30e7defa3e4
| ... | ... |
@@ -402,6 +402,28 @@ these default images; in that case, you will want to populate |
| 402 | 402 |
IMAGE_URLS="http://foo.bar.com/image.qcow," |
| 403 | 403 |
IMAGE_URLS+="http://foo.bar.com/image2.qcow" |
| 404 | 404 |
|
| 405 |
+ |
|
| 406 |
+Instance Type |
|
| 407 |
+------------- |
|
| 408 |
+ |
|
| 409 |
+``DEFAULT_INSTANCE_TYPE`` can be used to configure the default instance |
|
| 410 |
+type. When this parameter is not specified, Devstack creates additional |
|
| 411 |
+micro & nano flavors for really small instances to run Tempest tests. |
|
| 412 |
+ |
|
| 413 |
+For guests with larger memory requirements, ``DEFAULT_INSTANCE_TYPE`` |
|
| 414 |
+should be specified in the configuration file so Tempest selects the |
|
| 415 |
+default flavors instead. |
|
| 416 |
+ |
|
| 417 |
+KVM on Power with QEMU 2.4 requires 512 MB to load the firmware - |
|
| 418 |
+`QEMU 2.4 - PowerPC <http://wiki.qemu.org/ChangeLog/2.4>`__ so users |
|
| 419 |
+running instances on ppc64/ppc64le can choose one of the default |
|
| 420 |
+created flavors as follows: |
|
| 421 |
+ |
|
| 422 |
+ :: |
|
| 423 |
+ |
|
| 424 |
+ DEFAULT_INSTANCE_TYPE=m1.tiny |
|
| 425 |
+ |
|
| 426 |
+ |
|
| 405 | 427 |
IP Version |
| 406 | 428 |
---------- |
| 407 | 429 |
|
| ... | ... |
@@ -205,21 +205,12 @@ function configure_tempest {
|
| 205 | 205 |
if [[ -z "$DEFAULT_INSTANCE_TYPE" ]]; then |
| 206 | 206 |
available_flavors=$(nova flavor-list) |
| 207 | 207 |
if [[ ! ( $available_flavors =~ 'm1.nano' ) ]]; then |
| 208 |
- if is_arch "ppc64"; then |
|
| 209 |
- # Qemu needs at least 128MB of memory to boot on ppc64 |
|
| 210 |
- nova flavor-create m1.nano 42 128 0 1 |
|
| 211 |
- else |
|
| 212 |
- nova flavor-create m1.nano 42 64 0 1 |
|
| 213 |
- fi |
|
| 208 |
+ nova flavor-create m1.nano 42 64 0 1 |
|
| 214 | 209 |
fi |
| 215 | 210 |
flavor_ref=42 |
| 216 | 211 |
boto_instance_type=m1.nano |
| 217 | 212 |
if [[ ! ( $available_flavors =~ 'm1.micro' ) ]]; then |
| 218 |
- if is_arch "ppc64"; then |
|
| 219 |
- nova flavor-create m1.micro 84 256 0 1 |
|
| 220 |
- else |
|
| 221 |
- nova flavor-create m1.micro 84 128 0 1 |
|
| 222 |
- fi |
|
| 213 |
+ nova flavor-create m1.micro 84 128 0 1 |
|
| 223 | 214 |
fi |
| 224 | 215 |
flavor_ref_alt=84 |
| 225 | 216 |
else |