rh-openstack-ci-team
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Commmon Tempest Role Design ###### tags: `Design` ## What https://github.com/openstack/openstack-ansible-os_tempest ## WHY tripleo and openstack-ansible have successfully shared a common tempest role 1.5 years. Let's share more code vs. write our own. This enable us to have more people checking the code, more functionalities, and work more with upstream community. :::success **Specific goals:** * Write less code, share more * Drink more beer * A common skip list would get more tempest errors written up as bugs and keep failing tempest tests out of CI runs. * Save time, energy and sanity ::: ## Design ### Current examples of TripleO and OpenStack Ansible * [Console log](https://logserver.rdoproject.org/openstack-component-common/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-8-ovb-3ctlr_1comp-featureset001-clients-master/e558e46/job-output.txt) * [Tempest results](https://logserver.rdoproject.org/openstack-component-common/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-8-ovb-3ctlr_1comp-featureset001-clients-master/e558e46/logs/undercloud/var/log/tempest/stestr_results.html.gz) ### Current infrared The two teams already share python-tempestconf [link](https://opendev.org/openstack/python-tempestconf) ``` "test -e ~/.virtualenvs/.tempest_conf/bin/activate && source ~/.virtualenvs/.tempest_conf/bin/activate\n source ~/keystonerc\n /usr/bin/discover-tempest-config --deployer-input ~/ir-tempest-deployer-input.conf --debug -v --create --image http://rhos-qe-mirror-tlv.usersys.redhat.com/images/cirros-0.4.0-x86_64-disk.img identity.uri $OS_AUTH_URL identity.admin_password $OS_PASSWORD scenario.img_dir ~/tempest-dir/etc identity.region regionOne orchestration.stack_owner_role heat_stack_owner --out ~/tempest-dir/etc/tempest.conf ``` * jenkins log [link](https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/QE/view/OSP15/job/phase2-15_director-rhel-8.1-virthost-1cont_1comp-ipv4-geneve-lvm-ssl/28/artifact/.sh/07-tempest.log) * python-tempestconf is used for generating tempest.conf in infrared: https://github.com/redhat-openstack/infrared/blob/master/plugins/tempest/tasks/configure/run.yml#L54 :::info * question: are we using the same python-tempestconf? ::: ### infrared-plugin * should be roughly the equivalant of the common-logging infrared plugin * example [link](https://github.com/openstack/ansible-role-collect-logs/blob/master/infrared_plugin/plugin.spec) * Will openstack-ansible allow for an infrared plugin file in the role? ( we think so ) * If we expose an infrared based job voting against os_tempest repo, they will allow it. ### shared skip list * Shared tempest skip list * Design [link](https://hackmd.io/twHmV2f2SGCMvfHjLMoGoA) * Documentation [link](https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_ade/720434/1/check/openstack-tox-docs/ade701d/docs/) * Source [link](https://opendev.org/openstack/openstack-tempest-skiplist) ### supported tempest plugins openstack-ansible supported tempest plugins [link](https://github.com/openstack/openstack-ansible-os_tempest/blob/d866a8f6b99b856b764ca7e9bcd79b36b6f39195/vars/main.yml) ### missing tempest plugin support and tempestconfig generation in tempestconf * ironic plugin in development * WIP - https://review.opendev.org/#/c/720705/ * Octavia tempest plugin ### How are tests removed from the skip list? * Featureset021 * This job run only the failing tests on the skiplist * If a test start to pass on featureset021, that means, the test is 'fixed' * In the cockpit there's a session to check these, once the test pass a few times, we can remove it. ### Design requirements * Core rights on skip list repo * os_tempest will work from train release onwards. * Jenkins can read results * Any polarion requirements? * Tempest whitebox plugin [link](https://opendev.org/x/whitebox-tempest-plugin) * It can be enabled just by adding tempest_service_enable_whitebox in ostempest default vars. * What else?? ### Questions / What don't we know yet??? * ADD YOUR THOUGHTS AND QUESTIONS AND CONCERNS HERE!!! * :question:Installation of tempest (rpm package vs git source code) is this included in this work or the role assumes tempest framework is already on the system ? * :a: Yes, it is included, you can install by git, pip, rpm, etc * :question:Does design allows to use Depends-On tempest framework changes / plugins, eg. Depends-On: change from whitebox tempest plugin in development change * :a: On zuul side, yes, in jenkins, maybe @B_hkIsryS2Sxpv62Mkw57Q can answer * :question:in IR all post-deployment steps for preparing the env are extraced in 'cloud-config' plugin (like external network and such) - does this overlap? (psedlak) * :a: All these are parsed setting facts that we passes to os_tempest role * :question:ir tempest does have support for custom commands also custom package injection (imo mostly used for plugins or component specific tests) (psedlak) * :a: If this is related to packages to be installed based on plugins, os_tempest have that, custom commands, it doesn't, and it can be implemented as well * ir tempest has slight support for (psedlak): * [q] repeated runs (used by upgrade/update jobs - pre, middle, post upgrade) * :a: We are using this on our upgrade jobs, basically we call the playbook twice, with different options IIRC * [q] separated test-sets (runs tempest once for set A, then for set B - generates separated result files etc, not sure how much that is used or for what though) * :a: We don't have this, but doesn't seems to be hard to do * [q] i would recommend that someone with deep understanding of os_tempest/design goes over infrared tempest plugin spec (and code) and highlights the main differences/featue inparity (could be on some meeting with ir folks to speed it up) * :a: This is possible to implement in os_tempest I guess, right now we don't have this support. * :question: ~~possibly **octario integration** should be considered too~~ * ~~https://github.com/redhat-openstack/octario~~ * actually octario already dropped tempest role in past https://github.com/redhat-openstack/octario/commit/e75d63d027435a8fa4f2962bd1ce2e04f86dcc01#diff-2df3916027434b271aa80e3ca19ea382 so if then maybe just check it is used with openstack-ansible-os_tempest role ### INTERESTED IN HELPING? * weshay * arxcruz * psedlak-just-parttime/consultation * Chandan Kumar * Amol * marios * soniya ### Meeting notes 4/22/2020:

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully