Git Product home page Git Product logo

ansible-role-nfvbench's People

Contributors

frmenguy avatar glm35 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232 mgora

ansible-role-nfvbench's Issues

Cleanup failure when the generator image does not exist in openstack

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.

export OS_CLOUD=openstack for nfvbench user

Exporting OS_CLOUD=openstack for nfvbench user would allow to use openstack CLI from the traffic generator VM out of the box. This is not necessary for the traffic generator operation, but it would be useful for troubleshooting.

A possible implementation: at traffic generator VM creation (tasks/create_server.yml), create a file /home/nfvbench/.bashrc.d/openstack containing the name of the openstack cloud defined in /etc/openstack/clouds.yaml. The file must be readable by nfvbench user.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.