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
    # Validation tests in the component pipeline ###### tags: `Design` ## VF has 3 main packages: * validations-libs * validations-common * tripleo-validations ## First goal is to tests the Validation Framework itself: * Trigger a Centos8 job ## Validation can be execute in two different ways: * validation.py or tripleo-validation.py : a Python cli script that can use to run validation. The speficity of the validation.py is that it can be execute without any openstack or tripleo requirements, on a freshly new installed system (CentOS family or Debian). The main goal is to allow customer to run validation, either from another or system, or before starting the Undercloud installation. * tripleoclient CLI : openstack tripleo validator This command is part of the python-tripleoclient project. It's the main entry point for customer to run validation. ## Upstream CI functional job. The functional job use the validation.py script to execute a set of knwon good validations in order to test the framework (python code): * https://github.com/openstack/validations-libs/tree/master/playbooks * https://github.com/openstack/validations-libs/blob/master/roles/validations/tasks/validations.yaml * https://zuul.opendev.org/t/openstack/build/03fc1a460dc74d18bafaa5497d3fbd77 ## jobs: * One job to execute validations pre/post standalone * One job to execute validations pre/post standalone upgrade/update * One job to execute validations pre/post undercloud deployment and pre/post overcloud deployment ## Implementation: * The main implementation is to use the roles used by upstream functional tests in the VF: * https://github.com/openstack/validations-libs/tree/master/roles * Some new features should be added in order to prepare the environment. For now the CI jobs is using upstream openstack roles to install and configure requirements. * The validations that will be triggered should be stable like the functional does. * The calls should be both with: * validation scripts (validation.py and tripleo-validation.py) for the step 1 (non UC installation) * tripleo cli commands: openstack tripleo validator ## todo: * implement the workflow in tripleo-quickstart: * play the VF roles as pre uc step only in component testing cases * play the VF roles as post uc, then pre oc, post oc. * create a setup roles in VF for components * add component validation jobs in rdo-jobs -------------------------- ## reset design session w/ Mathieu ### install * validations are 100% rpm installed ### execution * a role * task * bindep install or ansible install rpms * a generic role that can run $x validations * task will * vars * /validations * a very generic test of validations itself * /compute * validations related to compute * /network Compute Example In each var file will be a list of tests: - validation-$component-tests: - check-ram - check-ftype,f12e * Bascially.. One generic validation role * Injection of validations in about 3-4 places in the job * pre undercloud validation * if component is defined * pre overcloud validation * execute based on variable: component * so only compute validations run when "component: compute" * any post overcloud * if component is defined. ### Reviews: * https://review.rdoproject.org/r/#/c/31281/ -> components job definition * https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/755382 -> tqe playbook * https://review.opendev.org/c/openstack/tripleo-validations/+/755390 -> t-v roles ### Test jobs: * https://review.rdoproject.org/zuul/build/aed7d3594e54475f95684dc3b8b311f4/log/job-output.txt#4075 ### List validations per components ### Component CI documentation #### Upstream CI: * https://zuul.opendev.org/t/openstack/jobs * Check and gate against reviews: * py3* jobs * pep8 * mutlinode jobs for TripleO * jobs are defined on each Projects: * https://github.com/openstack/python-tripleoclient/blob/master/zuul.d/layout.yaml * or https://github.com/openstack/validations-libs/blob/master/.zuul.yaml ```flow st=>start: Review XyZ e=>end: Merged op=>operation: Check jobs cond=>condition: zuul/reviewers op2=>operation: Gates cond2=>check: Check Gates st->op->cond cond(yes)->op2 cond(no)->op op2->cond2 cond2(yes)->e cond2(no)->op2 ``` #### RDO CI: * https://review.rdoproject.org/zuul/jobs * https://review.rdoproject.org/zuul/job/periodic-tripleo-ci-centos-8-standalone-compute-master-validation * Components pipeline: * List of the components: https://trunk.rdoproject.org/centos8-master/component/ * Run daily * Run only tripleo-ci jobs * Job definition for components is located here: * https://review.rdoproject.org/r/gitweb?p=rdo-jobs.git;a=blob;f=zuul.d/component-jobs.yaml;h=81b54194cd72176bf880b7374b4e37a440b6b643;hb=HEAD * Each job inherit from tripleo-ci parent jobs and has few variables: * release * component * dlrn_server_url * Components CI for validations schema: ```sequence rdo jobs->quickstart: $component jobs quickstart-->$project/roles: pull external projects Note right of $project/roles: oooq requirements* $project/roles-->quickstart: install TV CI role* $project/roles-->quickstart: install ansible roles quickstart-->standalone jobs: run standalone job standalone jobs->run validations: if $component Note right of run validations: Run Validations per $component Note right of run validations: t-validations Components List* run validations->standalone jobs: passed or failed ``` * [quickstart requirements](https://github.com/openstack/tripleo-quickstart/blob/master/quickstart-extras-requirements.txt) * [tripleo-validations CI roles](https://github.com/openstack/tripleo-validations/tree/master/roles/tripleo_validations) * [tripleo-validations Components List](https://github.com/openstack/tripleo-validations/blob/master/roles/tripleo_validations/vars/main.yml#L2) --- ## Current Results: * https://review.rdoproject.org/zuul/builds?job_name=periodic-tripleo-ci-centos-8-standalone-network-master-validation * https://review.rdoproject.org/zuul/builds?job_name=periodic-tripleo-ci-centos-8-standalone-compute-master-validation * https://review.rdoproject.org/zuul/builds?job_name=periodic-tripleo-ci-centos-8-standalone-tripleo-master-validation * ## How to specify which validation runs in a component #### validations config * https://review.opendev.org/c/openstack/tripleo-validations/+/777248/13/roles/tripleo_validations/vars/main.yml #### periodic rdo ci config * https://github.com/rdo-infra/rdo-jobs.git * example parent standalone job and child validation job ``` - job: name: periodic-tripleo-ci-centos-8-standalone-compute-master parent: periodic-tripleo-ci-centos-8-standalone-component-master vars: component: compute - job: name: periodic-tripleo-ci-centos-8-standalone-compute-master-validation parent: periodic-tripleo-ci-centos-8-standalone-component-master-validation vars: component: compute ``` * required next steps * fill out the other components * socialize validation jobs to component owners * review validation skip list * remove all validations from upstream jobs * one standalone job w/ validations in the name is fine. * 16.2 / 17 component lines * every component validation job in upstream/rdo should have an equivilant in OSP.

    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