Skip to content

Commit

Permalink
Merge pull request #31 from stfc/split_benchmarks
Browse files Browse the repository at this point in the history
split storage benchmarks into seperate roles
  • Loading branch information
DavidFair authored Oct 4, 2024
2 parents b163a25 + 649d63c commit 50fd682
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion AnsiblePlaybooks/meerkat/deploy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ resource "null_resource" "ansible_playbook" {
depends_on = [openstack_compute_instance_v2.Instance, openstack_sharedfilesystem_share_v2.share, openstack_sharedfilesystem_share_access_v2.share_access, openstack_blockstorage_volume_v3.volumes, openstack_compute_volume_attach_v2.vol_attach]
count = length(openstack_compute_instance_v2.Instance)
provisioner "local-exec" {
command = "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i staging-openstack.yaml -l ${local.vm_names[count.index]} ${var.playbook_path} --extra-vars 'share_path=${openstack_sharedfilesystem_share_v2.share.export_locations[0].path} access_key=${openstack_sharedfilesystem_share_access_v2.share_access.access_key} vm_count=${count.index}'"
command = "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i staging-openstack.yaml -l ${local.vm_names[count.index]} ${var.playbook_path}"
# command = "ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i staging-openstack.yaml -l ${local.vm_names[count.index]} ${var.playbook_path} --extra-vars 'share_path=${openstack_sharedfilesystem_share_v2.share.export_locations[0].path} access_key=${openstack_sharedfilesystem_share_access_v2.share_access.access_key} vm_count=${count.index}'"
}
}

4 changes: 3 additions & 1 deletion AnsiblePlaybooks/meerkat/meerkat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
- role: setup_openstack
- role: update_machine
- role: setup_storage_benchmark
- role: run_local_storage_benchmark
- role: attach_volume
- role: run_volume_storage_benchmark
- role: attach_manila
- role: run_storage_benchmark
- role: run_manila_storage_benchmark


- hosts: cpu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
- name: change manila folder owner
ansible.builtin.file:
path: /mnt/manila{{ vm_count }}
owner: "{{ user }}"
owner: "{{ user }}"
mode: '0664'
become: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- name: Run local storage benchmark
shell: "./benchmark.sh -p /home/{{ user }} -s local"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- name: Run manila share benchmark
shell: ./benchmark.sh -p /mnt/manila_{{ share_id }} -s manila
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- name: Run volume storage benchmark
shell: ./benchmark.sh -p /mnt/volume -s volume
2 changes: 1 addition & 1 deletion AnsiblePlaybooks/meerkat/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ variable "image_name" {

variable "keypair_name" {
description = "The keypair to be used"
default =
default = "<ssh-key>"
}

variable "network_name" {
Expand Down

0 comments on commit 50fd682

Please sign in to comment.