Use magnum specific flavor
As infra uses public cloud to run jenkins jobs, some cloud provider do not have large disk space, for example, only 20GB root disk, not fit for k8s bay instance space requirements. According to infra core said, if two instances are booted, each with 10GB, it could all meet in back end clouds. So we need to create specific flavor for magnum use. It is verified in local env 8GB can work, so we will use 8GB now. Closes-Bug: #1484772 Change-Id: I159623f77ad7e3083a5296b0ccc7d65cfb57e001
This commit is contained in:
parent
5587d2149a
commit
644cfdf8b5
|
@ -80,6 +80,10 @@ EOF
|
|||
echo_summary "Generate a key-pair"
|
||||
nova keypair-add default
|
||||
|
||||
# Create magnum specific flavor for use in functional tests.
|
||||
echo_summary "Create a flavor"
|
||||
nova flavor-create m1.magnum 100 2048 8 1
|
||||
|
||||
# Run functional tests
|
||||
echo "Running magnum functional test suite"
|
||||
sudo -E -H -u jenkins tox -e functional -- --concurrency=1
|
||||
|
@ -89,6 +93,10 @@ EXIT_CODE=$?
|
|||
echo_summary "Running keypair-delete"
|
||||
nova keypair-delete default
|
||||
|
||||
# Delete the flavor used in the functional test.
|
||||
echo_summary "Running flavor-delete"
|
||||
nova flavor-delete m1.magnum
|
||||
|
||||
# Save the logs
|
||||
sudo mv ../logs/* /opt/stack/logs/
|
||||
|
||||
|
|
|
@ -93,8 +93,8 @@ class BaseMagnumClient(base.TestCase):
|
|||
keypair_id='default',
|
||||
external_network_id=cls.nic_id,
|
||||
image_id=cls.image_id,
|
||||
flavor_id='m1.small',
|
||||
docker_volume_size=5,
|
||||
flavor_id='m1.magnum',
|
||||
docker_volume_size=1,
|
||||
coe='kubernetes',
|
||||
)
|
||||
return baymodel
|
||||
|
|
Loading…
Reference in New Issue