Skip to content

Commit

Permalink
Launch test VM with hugepages, if requested so
Browse files Browse the repository at this point in the history
Signed-off-by: Bohdan Dobrelia <[email protected]>
  • Loading branch information
bogdando committed Oct 23, 2024
1 parent 215bae0 commit 6d57c94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs_dev/assemblies/development_environment.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ EDPM_COMPUTE_CEPH_ENABLED=false TLS_ENABLED=true DNS_DOMAIN=ooo.test make standa

This will disable the Ceph deployment, as the CI is not deploying with Ceph.

To configure hugepages, use `EDPM_CONFIGURE_HUGEPAGES=true`.

=== Snapshot/revert

When the deployment of the Standalone OpenStack is finished, it's a
Expand Down
6 changes: 5 additions & 1 deletion tests/roles/development_environment/files/pre_launch.bash
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ ${BASH_ALIASES[openstack]} image show cirros || \
${BASH_ALIASES[openstack]} image create --container-format bare --disk-format $DISK_FORMAT cirros < /tmp/$RAW

# Create flavor
HPARGS=" "
if [ "${EDPM_CONFIGURE_HUGEPAGES:-false}" = "true" ] ; then
HPARGS="set huge_pages --property hw:mem_page_size=2MB"
fi
${BASH_ALIASES[openstack]} flavor show m1.small || \
${BASH_ALIASES[openstack]} flavor create set huge_pages --property hw:mem_page_size=2MB--ram 512 --vcpus 1 --disk 1 --ephemeral 1 m1.small
${BASH_ALIASES[openstack]} flavor create $HPARGS --ram 512 --vcpus 1 --disk 1 --ephemeral 1 m1.small

# Create networks
${BASH_ALIASES[openstack]} network show private || ${BASH_ALIASES[openstack]} network create private --share
Expand Down

0 comments on commit 6d57c94

Please sign in to comment.