Reduce instance RAM requirements to 512 Mb

Change-Id: I6dfa3851674bbc9a719bf4a524e16a530d1cfca5
This commit is contained in:
Ilya Shakhat 2015-04-27 19:42:47 +03:00
parent 37ac860fb8
commit 477f0ef121
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ def build_image():
LOG.info('Using existing flavor: %s', flavor_name)
else:
openstack_client.nova.flavors.create(name=flavor_name,
ram=1024, vcpus=1, disk=3)
ram=512, vcpus=1, disk=3)
LOG.info('Created flavor %s', flavor_name)
if glance.get_image(openstack_client.glance, image_name):

View File

@ -54,7 +54,7 @@ def check_server_console(nova_client, server_id, len_limit=100):
dict(id=server_id, msg=line))
LOG.error(message)
return message
if re.search(r'error', line, flags=re.IGNORECASE):
if re.search(r'\[error', line, flags=re.IGNORECASE):
LOG.error('Error message in instance %(id)s console: %(msg)s',
dict(id=server_id, msg=line))
elif re.search(r'warn', line, flags=re.IGNORECASE):

View File

@ -44,7 +44,7 @@ resources:
disk_format: qcow2
location: https://cloud-images.ubuntu.com/releases/14.04.1/release/ubuntu-14.04-server-cloudimg-amd64-disk1.img
min_disk: 3
min_ram: 1000
min_ram: 512
name: shaker_image_build_template
master_image_server_port: