When the deployment fails because the external network has been improperly configured in the extra_vars file, the cleanup will fail with the following error:
TASK [frmenguy.nfvbench : Delete generator image] ******************************
task path: /root/.ansible/roles/frmenguy.nfvbench/tasks/cleanup.yml:140
fatal: [localhost]: FAILED! => {
"msg": "The conditional check 'generator_image.openstack_image.owner == project_id' failed. The error was: error while evaluating conditional (generator_image.openstack_image.owner == project_id): 'None' has no attribute 'owner'\n\nThe error appears to be in '/root/.ansible/roles/frmenguy.nfvbench/tasks/cleanup.yml': line 140, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Delete generator image\n ^ here\n"
}
PLAY RECAP *********************************************************************
localhost : ok=26 changed=6 unreachable=0 failed=1 skipped=26 rescued=0 ignored=0
2021-10-18 15:15:34,397 - xtesting.ci.run_tests - INFO - Test result:
+--------------------------+------------------+------------------+----------------+
| TEST CASE | PROJECT | DURATION | RESULT |
+--------------------------+------------------+------------------+----------------+
| nfvbench_cleanup | nfvbench | 01:26 | FAIL |
+--------------------------+------------------+------------------+----------------+
The cleanup will be incomplete. In particular, the nfvbench project and nfvbench user will not be deleted.