Skip to content

Instantly share code, notes, and snippets.

@pgrosu
Created August 23, 2017 18:53
Show Gist options
  • Save pgrosu/c05e428b5e95fcd81a7a9b1b4c74f149 to your computer and use it in GitHub Desktop.
Save pgrosu/c05e428b5e95fcd81a7a9b1b4c74f149 to your computer and use it in GitHub Desktop.
PR-60 UAT for Ubuntu and Centos
--------------------------------------------------
Starting the Acceptance Tests...
--------------------------------------------------
Feature: Running an end-to-end acceptance test # tests/bdd/features/moc-0.5-release/end-to-end-acceptance-test.feature:1
Scenario: Importing/Removing Image, DB/Ceph consistency # tests/bdd/features/moc-0.5-release/end-to-end-acceptance-test.feature:3
Given RBD will create an image # tests/bdd/steps/rbd_create.py:8
| image_name |
| bmi-test-image |
-> Checking that no pre-existing bmi-test-image is present in Ceph, before creating it...
Running: rbd ls | grep bmi-test-image
-> Creating the bmi-test-image image in Ceph...
Running: rbd create bmi-test-image --size 1 --image-format 2
-> Checking that bmi-test-image exists in Ceph...
Running: rbd ls | grep bmi-test-image
And BMI log line-count will be measured at the beginning # tests/bdd/steps/bmi_environment.py:49
Running: cat $BMI_CONFIG | grep log | cut -f3 -d' ' | tail -n 1
Running: wc -l /var/log/bmi/logs/ims.log | cut -f1 -d' '
When BMI will import an image # tests/bdd/steps/bmi_import.py:7
| image_name | project_name |
| bmi-test-image | bmi_infra |
Running: bmi import bmi_infra bmi-test-image
-> Checking that bmi-test-image exists in Ceph...
Running: bmi db ls | grep bmi-test-image
-> Checking that 112233445566778899img2 exists in BMI's database...
Running: rbd ls | grep 112233445566778899img2
And BMI will provision a node # tests/bdd/steps/bmi_provision.py:8
| image_name | project_name | network_name | node_name | NIC |
| bmi-test-image | bmi_infra | bmi_network | bmi_node | bmi_port |
INFO:hil.ext.auth.null:In request context 623dbe2a-e7bc-4ff4-997b-848d113e12d9: successful authentication with null backend.
INFO:hil.rest:In request context 623dbe2a-e7bc-4ff4-997b-848d113e12d9: API call: show_node(nodename=u'bmi_node')
INFO:werkzeug:127.0.0.1 - - [23/Aug/2017 17:20:22] "GET /node/bmi_node HTTP/1.1" 200 -
INFO:hil.ext.auth.null:In request context a6e11d06-178b-49f3-b1b2-21ce98174f99: successful authentication with null backend.
INFO:hil.rest:In request context a6e11d06-178b-49f3-b1b2-21ce98174f99: API call: node_connect_network(node=u'bmi_node', nic=u'bmi_port', network=u'bmi_network', channel=u'null')
INFO:werkzeug:127.0.0.1 - - [23/Aug/2017 17:20:22] "POST /node/bmi_node/nic/bmi_port/connect_network HTTP/1.1" 202 -
127.0.0.1 - - [23/Aug/2017 17:20:23] "PUT /provision/ HTTP/1.1" 200 -
Running: bmi pro bmi_infra bmi_node bmi-test-image bmi_network bmi_port
-> Checking that bmi_node exists in BMI's database...
Running: bmi db ls | grep bmi_node
-> Checking that 112233445566778899img3 exists in Ceph...
Running: rbd ls | grep 112233445566778899img3
-> Checking that 112233445566778899img3 is advertised by TGT...
Running: sudo tgt-admin -s | grep 112233445566778899img3 | grep Backing | grep store | grep path
Then BMI will create a snapshot of a node # tests/bdd/steps/bmi_snap.py:7
| project_name | node_name | snapshot_name |
| bmi_infra | bmi_node | bmi-test-image-snapshot |
INFO:hil.ext.auth.null:In request context 456923db-9c80-47fc-bd56-35ad8c04a0e4: successful authentication with null backend.
INFO:hil.rest:In request context 456923db-9c80-47fc-bd56-35ad8c04a0e4: API call: list_project_nodes(project=u'bmi_infra')
INFO:werkzeug:127.0.0.1 - - [23/Aug/2017 17:20:34] "GET /project/bmi_infra/nodes HTTP/1.1" 200 -
127.0.0.1 - - [23/Aug/2017 17:20:36] "PUT /create_snapshot/ HTTP/1.1" 200 -
Running: bmi snap create bmi_infra bmi_node bmi-test-image-snapshot
-> Checking that bmi-test-image-snapshot exists in BMI's database...
Running: bmi db ls | grep bmi-test-image-snapshot
-> Checking that 112233445566778899img4 exists in Ceph...
Running: rbd ls | grep 112233445566778899img4
Then RBD will confirm the snapshot exists # tests/bdd/steps/rbd_ls.py:4
| snapshot_name |
| bmi-test-image-snapshot |
-> Checking that 112233445566778899img4 exists in Ceph...
Running: rbd ls | grep 112233445566778899img4
And BMI will remove a snapshot # tests/bdd/steps/bmi_snap.py:53
| snapshot_name | project_name |
| bmi-test-image-snapshot | bmi_infra |
INFO:hil.ext.auth.null:In request context c3c31e20-81d1-4da8-886d-369b6a5d336e: successful authentication with null backend.
INFO:hil.rest:In request context c3c31e20-81d1-4da8-886d-369b6a5d336e: API call: list_project_nodes(project=u'bmi_infra')
INFO:werkzeug:127.0.0.1 - - [23/Aug/2017 17:20:38] "GET /project/bmi_infra/nodes HTTP/1.1" 200 -
127.0.0.1 - - [23/Aug/2017 17:20:39] "DELETE /remove_image/ HTTP/1.1" 200 -
Running: bmi snap rm bmi_infra bmi-test-image-snapshot
-> Checking that 112233445566778899img4 is removed from BMI's database...
Running: bmi db ls | grep 112233445566778899img4
-> Checking that 112233445566778899img4 is removed from Ceph...
Running: rbd ls | grep 112233445566778899img4
Then BMI will deprovision a node # tests/bdd/steps/bmi_deprovision.py:5
| project_name | network_name | node_name | NIC |
| bmi_infra | bmi_network | bmi_node | bmi_port |
INFO:hil.ext.auth.null:In request context c569906f-6e4c-4d5b-acff-247f7bc78902: successful authentication with null backend.
INFO:hil.rest:In request context c569906f-6e4c-4d5b-acff-247f7bc78902: API call: node_detach_network(node=u'bmi_node', nic=u'bmi_port', network=u'bmi_network')
INFO:werkzeug:127.0.0.1 - - [23/Aug/2017 17:20:40] "POST /node/bmi_node/nic/bmi_port/detach_network HTTP/1.1" 202 -
127.0.0.1 - - [23/Aug/2017 17:20:40] "DELETE /deprovision/ HTTP/1.1" 200 -
-> Checking that bmi_node is removed from BMI's database...
Running: bmi db ls | grep bmi_node
-> Checking that 112233445566778899img3 is removed from Ceph...
Running: rbd ls | grep 112233445566778899img3
-> Checking that 112233445566778899img3 is unadvertised by TGT...
Running: tgt-admin -s | grep 112233445566778899img3 | grep Backing | grep store | grep path
And BMI will remove an image # tests/bdd/steps/bmi_rm.py:4
| image_name | project_name |
| bmi-test-image | bmi_infra |
INFO:hil.ext.auth.null:In request context 47fdf088-2950-450d-9800-a016cc8ceb61: successful authentication with null backend.
INFO:hil.rest:In request context 47fdf088-2950-450d-9800-a016cc8ceb61: API call: list_project_nodes(project=u'bmi_infra')
INFO:werkzeug:127.0.0.1 - - [23/Aug/2017 17:20:41] "GET /project/bmi_infra/nodes HTTP/1.1" 200 -
127.0.0.1 - - [23/Aug/2017 17:20:42] "DELETE /remove_image/ HTTP/1.1" 200 -
Running: bmi rm bmi_infra bmi-test-image
-> Checking that 112233445566778899img2 is removed from BMI's database...
Running: bmi db ls | grep 112233445566778899img2
-> Checking that 112233445566778899img2 is removed from Ceph...
Running: rbd ls | grep 112233445566778899img2
Then RBD will confirm the removed image's clone # tests/bdd/steps/rbd_rm.py:4
| image_name | project_name |
| bmi-test-image | bmi_infra |
-> Checking that 112233445566778899img2 is removed from Ceph...
Running: rbd ls | grep 112233445566778899img2
And RBD will remove the created image # tests/bdd/steps/rbd_rm.py:23
| image_name |
| bmi-test-image |
Running: rbd rm bmi-test-image
-> Checking that bmi-test-image is removed from Ceph...
Running: rbd ls | grep image_name
And BMI log line-count will be measured at the end # tests/bdd/steps/bmi_environment.py:60
Running: cat $BMI_CONFIG | grep log | cut -f3 -d' ' | tail -n 1
Running: wc -l /var/log/bmi/logs/ims.log | cut -f1 -d' '
Feature: Ensuring that the environment conforms to the specifications # tests/bdd/features/moc-0.5-release/system_requirements.feature:1
Scenario: Validating the environment specifications # tests/bdd/features/moc-0.5-release/system_requirements.feature:3
Given Ceph (RBD) version # tests/bdd/steps/bmi_environment.py:20
| ceph_version |
| 10.2.9 |
Running: rbd --version | cut -f3 -d' '
And dnsmasq version # tests/bdd/steps/bmi_environment.py:32
| dnsmasq_version |
| 2.66 |
Running: dnsmasq -version | head -n1 | cut -f3 -d' '
And Linux target framework (tgt) # tests/bdd/steps/bmi_environment.py:41
| tgt_version |
| 1.0.63 |
Running: tgtadm --version | head -n1 | cut -f1 -d' '
2 features passed, 0 failed, 0 skipped
2 scenarios passed, 0 failed, 0 skipped
15 steps passed, 0 failed, 0 skipped, 0 undefined
Took 0m35.336s
--------------------------------------------------
Completion of Acceptance Tests!
--------------------------------------------------
=== BMI passed the acceptance criteria! ===
[centos@pgrosu-ubuntu16 acceptance-tests]$
--------------------------------------------------
Starting the Acceptance Tests...
--------------------------------------------------
Feature: Running an end-to-end acceptance test # tests/bdd/features/moc-0.5-release/end-to-end-acceptance-test.feature:1
Scenario: Importing/Removing Image, DB/Ceph consistency # tests/bdd/features/moc-0.5-release/end-to-end-acceptance-test.feature:3
Given RBD will create an image # tests/bdd/steps/rbd_create.py:8
| image_name |
| bmi-test-image |
-> Checking that no pre-existing bmi-test-image is present in Ceph, before creating it...
Running: rbd ls | grep bmi-test-image
-> Creating the bmi-test-image image in Ceph...
Running: rbd create bmi-test-image --size 1 --image-format 2
-> Checking that bmi-test-image exists in Ceph...
Running: rbd ls | grep bmi-test-image
And BMI log line-count will be measured at the beginning # tests/bdd/steps/bmi_environment.py:49
Running: cat $BMI_CONFIG | grep log | cut -f3 -d' ' | tail -n 1
Running: wc -l /var/log/bmi/logs/ims.log | cut -f1 -d' '
When BMI will import an image # tests/bdd/steps/bmi_import.py:7
| image_name | project_name |
| bmi-test-image | bmi_infra |
Running: bmi import bmi_infra bmi-test-image
-> Checking that bmi-test-image exists in Ceph...
Running: bmi db ls | grep bmi-test-image
-> Checking that 112233445566778899img2 exists in BMI's database...
Running: rbd ls | grep 112233445566778899img2
And BMI will provision a node # tests/bdd/steps/bmi_provision.py:8
| image_name | project_name | network_name | node_name | NIC |
| bmi-test-image | bmi_infra | bmi_network | bmi_node | bmi_port |
INFO:hil.ext.auth.null:In request context a22f1bfc-d3b1-4215-b2c9-7316256ce092: successful authentication with null backend.
INFO:hil.rest:In request context a22f1bfc-d3b1-4215-b2c9-7316256ce092: API call: show_node(nodename=u'bmi_node')
INFO:werkzeug:127.0.0.1 - - [23/Aug/2017 15:48:38] "GET /node/bmi_node HTTP/1.1" 200 -
INFO:hil.ext.auth.null:In request context be269ef3-c45f-4b44-a321-cb8c255ee965: successful authentication with null backend.
INFO:hil.rest:In request context be269ef3-c45f-4b44-a321-cb8c255ee965: API call: node_connect_network(node=u'bmi_node', nic=u'bmi_port', network=u'bmi_network', channel=u'null')
INFO:werkzeug:127.0.0.1 - - [23/Aug/2017 15:48:38] "POST /node/bmi_node/nic/bmi_port/connect_network HTTP/1.1" 202 -
127.0.0.1 - - [23/Aug/2017 15:48:38] "PUT /provision/ HTTP/1.1" 200 -
Running: bmi pro bmi_infra bmi_node bmi-test-image bmi_network bmi_port
-> Checking that bmi_node exists in BMI's database...
Running: bmi db ls | grep bmi_node
-> Checking that 112233445566778899img3 exists in Ceph...
Running: rbd ls | grep 112233445566778899img3
-> Checking that 112233445566778899img3 is advertised by TGT...
Running: sudo tgt-admin -s | grep 112233445566778899img3 | grep Backing | grep store | grep path
Then BMI will create a snapshot of a node # tests/bdd/steps/bmi_snap.py:7
| project_name | node_name | snapshot_name |
| bmi_infra | bmi_node | bmi-test-image-snapshot |
INFO:hil.ext.auth.null:In request context de59208a-c8ab-41fb-80c2-d255225367f1: successful authentication with null backend.
INFO:hil.rest:In request context de59208a-c8ab-41fb-80c2-d255225367f1: API call: list_project_nodes(project=u'bmi_infra')
INFO:werkzeug:127.0.0.1 - - [23/Aug/2017 15:48:49] "GET /project/bmi_infra/nodes HTTP/1.1" 200 -
127.0.0.1 - - [23/Aug/2017 15:48:52] "PUT /create_snapshot/ HTTP/1.1" 200 -
Running: bmi snap create bmi_infra bmi_node bmi-test-image-snapshot
-> Checking that bmi-test-image-snapshot exists in BMI's database...
Running: bmi db ls | grep bmi-test-image-snapshot
-> Checking that 112233445566778899img4 exists in Ceph...
Running: rbd ls | grep 112233445566778899img4
Then RBD will confirm the snapshot exists # tests/bdd/steps/rbd_ls.py:4
| snapshot_name |
| bmi-test-image-snapshot |
-> Checking that 112233445566778899img4 exists in Ceph...
Running: rbd ls | grep 112233445566778899img4
And BMI will remove a snapshot # tests/bdd/steps/bmi_snap.py:53
| snapshot_name | project_name |
| bmi-test-image-snapshot | bmi_infra |
INFO:hil.ext.auth.null:In request context 3f889fd3-1d2a-4b59-8e02-7e3a4883647e: successful authentication with null backend.
INFO:hil.rest:In request context 3f889fd3-1d2a-4b59-8e02-7e3a4883647e: API call: list_project_nodes(project=u'bmi_infra')
INFO:werkzeug:127.0.0.1 - - [23/Aug/2017 15:48:53] "GET /project/bmi_infra/nodes HTTP/1.1" 200 -
127.0.0.1 - - [23/Aug/2017 15:48:54] "DELETE /remove_image/ HTTP/1.1" 200 -
Running: bmi snap rm bmi_infra bmi-test-image-snapshot
-> Checking that 112233445566778899img4 is removed from BMI's database...
Running: bmi db ls | grep 112233445566778899img4
-> Checking that 112233445566778899img4 is removed from Ceph...
Running: rbd ls | grep 112233445566778899img4
Then BMI will deprovision a node # tests/bdd/steps/bmi_deprovision.py:5
| project_name | network_name | node_name | NIC |
| bmi_infra | bmi_network | bmi_node | bmi_port |
INFO:hil.ext.auth.null:In request context 0c8e6892-75e9-42fa-b7d0-8a649a13ef1d: successful authentication with null backend.
INFO:hil.rest:In request context 0c8e6892-75e9-42fa-b7d0-8a649a13ef1d: API call: node_detach_network(node=u'bmi_node', nic=u'bmi_port', network=u'bmi_network')
INFO:werkzeug:127.0.0.1 - - [23/Aug/2017 15:48:55] "POST /node/bmi_node/nic/bmi_port/detach_network HTTP/1.1" 202 -
127.0.0.1 - - [23/Aug/2017 15:48:55] "DELETE /deprovision/ HTTP/1.1" 200 -
-> Checking that bmi_node is removed from BMI's database...
Running: bmi db ls | grep bmi_node
-> Checking that 112233445566778899img3 is removed from Ceph...
Running: rbd ls | grep 112233445566778899img3
-> Checking that 112233445566778899img3 is unadvertised by TGT...
Running: tgt-admin -s | grep 112233445566778899img3 | grep Backing | grep store | grep path
And BMI will remove an image # tests/bdd/steps/bmi_rm.py:4
| image_name | project_name |
| bmi-test-image | bmi_infra |
INFO:hil.ext.auth.null:In request context 797081a9-0216-48fc-bde3-e68d9fce2b0d: successful authentication with null backend.
INFO:hil.rest:In request context 797081a9-0216-48fc-bde3-e68d9fce2b0d: API call: list_project_nodes(project=u'bmi_infra')
INFO:werkzeug:127.0.0.1 - - [23/Aug/2017 15:48:56] "GET /project/bmi_infra/nodes HTTP/1.1" 200 -
127.0.0.1 - - [23/Aug/2017 15:48:56] "DELETE /remove_image/ HTTP/1.1" 200 -
Running: bmi rm bmi_infra bmi-test-image
-> Checking that 112233445566778899img2 is removed from BMI's database...
Running: bmi db ls | grep 112233445566778899img2
-> Checking that 112233445566778899img2 is removed from Ceph...
Running: rbd ls | grep 112233445566778899img2
Then RBD will confirm the removed image's clone # tests/bdd/steps/rbd_rm.py:4
| image_name | project_name |
| bmi-test-image | bmi_infra |
-> Checking that 112233445566778899img2 is removed from Ceph...
Running: rbd ls | grep 112233445566778899img2
And RBD will remove the created image # tests/bdd/steps/rbd_rm.py:23
| image_name |
| bmi-test-image |
Running: rbd rm bmi-test-image
-> Checking that bmi-test-image is removed from Ceph...
Running: rbd ls | grep image_name
And BMI log line-count will be measured at the end # tests/bdd/steps/bmi_environment.py:60
Running: cat $BMI_CONFIG | grep log | cut -f3 -d' ' | tail -n 1
Running: wc -l /var/log/bmi/logs/ims.log | cut -f1 -d' '
Feature: Ensuring that the environment conforms to the specifications # tests/bdd/features/moc-0.5-release/system_requirements.feature:1
Scenario: Validating the environment specifications # tests/bdd/features/moc-0.5-release/system_requirements.feature:3
Given Ceph (RBD) version # tests/bdd/steps/bmi_environment.py:20
| ceph_version |
| 10.2.9 |
Running: rbd --version | cut -f3 -d' '
And dnsmasq version # tests/bdd/steps/bmi_environment.py:32
| dnsmasq_version |
| 2.66 |
Running: dnsmasq -version | head -n1 | cut -f3 -d' '
And Linux target framework (tgt) # tests/bdd/steps/bmi_environment.py:41
| tgt_version |
| 1.0.63 |
Running: tgtadm --version | head -n1 | cut -f1 -d' '
2 features passed, 0 failed, 0 skipped
2 scenarios passed, 0 failed, 0 skipped
15 steps passed, 0 failed, 0 skipped, 0 undefined
Took 0m33.864s
--------------------------------------------------
Completion of Acceptance Tests!
--------------------------------------------------
=== BMI passed the acceptance criteria! ===
ubuntu@pgrosu-ubuntu16:~/acceptance-tests$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment