Skip to content

Conversation

@rsafrono
Copy link
Contributor

The test implements a scenario when test VM has a period of high CPU load during the test.
Scenario:

  1. Get VM power consumption in idle state
  2. Run a process that causes high CPU load of VM for 30 seconds and make sure that VM power consumption metrics increased accordingly
  3. After high CPU load process completed get VM metrics again and make sure that value is similar to the one received in step 1

The test implements a scenario when test VM has a period of
high CPU load during the test.
Scenario:
1. Get VM power consumption in idle state
2. Run a process that causes high CPU load of VM for 30 seconds and
   make sure that VM power consumption metrics increased accordingly
3. After high CPU load process completed get VM metrics again and
   make sure that value is similar to the one received in step 1
port_id=$({{ openstack_cmd }} port list --device-id='{{ test_vm_id }}' --network '{{ kepler_test_vm_network }}' -c id -f value)
floating_ip=$({{ openstack_cmd }} floating ip list --port $port_id -c 'Floating IP Address' -f value)
ssh_options='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
ssh -i '{{ kepler_test_vm_key }}' $ssh_options '{{kepler_test_vm_user}}'@$floating_ip 'nohup timeout 30 openssl speed -multi $(grep -ci processor /proc/cpuinfo) > /dev/null 2>&1 &'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ssh -i '{{ kepler_test_vm_key }}' $ssh_options '{{kepler_test_vm_user}}'@$floating_ip 'nohup timeout 30 openssl speed -multi $(grep -ci processor /proc/cpuinfo) > /dev/null 2>&1 &'
ssh -i '{{ kepler_test_vm_key }}' $ssh_options '{{ kepler_test_vm_user }}'@$floating_ip 'nohup timeout 30 openssl speed -multi $(grep -ci processor /proc/cpuinfo) > /dev/null 2>&1 &'

until: value2.rc == 0 and (value2.stdout|float > value1.stdout|float)

- name: |
TEST Check kepler metrics dynamics when test VM is under load for some time
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're using the custom xml logger, I recommend checking the output, since I am not sure how these three tasks will be reported, since they have the same name.
I think they'll each get a testcase entry in the XML, but I don't know if polarion will like that or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants