Chandan Kumar
    • Create new note
    • Create a note from template
      • 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
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me 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
    • Save as template
    • 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 Create Help
Create Create new note Create a note from template
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
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me 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
    # CI Job Diff ## Problem In TripleO CI, we have multiple CI jobs runned using featureset files, defined in [tripleo-quickstart/config/general_config](https://opendev.org/openstack/tripleo-quickstart/src/branch/master/config/general_config). Once the CI job finishes, we collect lots of data from the environment using [ansible-role-collect-logs](https://opendev.org/openstack/ansible-role-collect-logs). The CI job runs on: * Periodic, check and gate pipeline in rdo-cloud as third party jobs * on CentOS 7 and RHEL 8 * Upstream check and gate jobs * on CentOS On Multiple times the same job started failing with various reasons: * Time out * Reasons: * Time taken in pulling containers * tasks taking maximum time during execution * undercloud/standalone/overcloud deploy failures * Reasons: * Difference in RPM/pip packages/ containers used * common example: podman & ceph-ansible & Ansible * use of older version of package * container tags difference coming from other places * Environment vars * mix of python2 and python3 * mix of pip and rpm * Deployment configuration difference * Variance in passing/skipping of tempest tests * Varience in config used in downstream and upstream Since the deployment is always complex, so it is very hard to find out what is the actual reason of failures. In day to day debugging in TripleO CI, we compares the pass and failed job of same featureset manually. We compare: * the yum repo files, rpm packages version * Containers used and from where they are coming from * Ansible run time taken * Comparing the failed log file and finding out what went wrong. ## Solution The aim here is to compare fs01 or standalone passed and failed jobs and extract meaningful info which makes debugging easier. So the comparison consists of: * RHEL vs RHEL standalone/FS01 passed & failed job * RHEL vs centos standalone/FS01 passed & failed job List of things needs to be compared: * rpm * rpms installed with in containers * tempest results * systemd services status * pip results * Ara output measuring time * might be useful for finding timeout ### Using logreduce logreduce can help in comparing log files between passed and failed jobs and find the error easily. But there are other things which cannot be achieved using that. ## Work proposal Initial Goal: Having a MVP which will compare passed and failed FS01 job Example implementation as a zuul-jobs: ``` # zuul.yaml --- - job: compare-rhel-centos dependencies: - fs01-centos - fs01-rhel run: compare.yaml - project: check: jobs: - fs01-centos - fs01-rhel - compare-rhel-centos # compare.yaml --- - tasks: fetch result - tasks: generate report ``` See this phoronix-merge-result implemented in: https://review.opendev.org/#/c/679082/ For the child job to fetch result from parent job, the parent job needs to indicate their log using zuul_return artifacts: * return artifact example: https://review.opendev.org/#/c/679082/5/roles/fetch-phoronix-results/tasks/main.yaml@21 * fetch parent artifact example: https://review.opendev.org/#/c/679082/5/roles/phoronix-combine-results/tasks/main.yaml@8 ## Task breakdown * Get the passed and failed fs01 job * Download the required files from logs * Extend this tool to parse the task where it got failed then navigate to required file and use the logreduce to compare the log file and show exact error or issue. * Pass the script to compare rpm * The script will print rpm packages with same version and different version * Extend the rpm version compare script to find what reviews got merged between two versions. * For tempest results: * Check the list of tempest tests passed and failed * Including container-diff tool as a part of collect-logs tool? ## Questions Once we have scripts available how it can be get consumed. * As a service * Running manually on demand * Consumed as a part of zuul job ## Proposer * Ronelle Landy ## Consumer * TripleO CI team ## Available Tools * https://github.com/GoogleContainerTools/container-diff * written in Golang * https://github.com/omron93/containerdiff * Quite old no longer maintained * https://github.com/sshnaidm/jcomparison * Job times compare tool ## Notes from meeting [11/09/2019] * rpm varies based on deployment * in downstream, we have manifest files what wents in terms of rpm, containers * in checks, highight the package built in from depends-on should be noted * gathering infomation in a format * comparing would be second step * Make it as a Rest service * use container-diff to collect rpms * http://paste.openstack.org/show/775119/ * https://63135da7b256b2e67b7c-35f4a35ba7daf66e9666e7e697074949.ssl.cf2.rackcdn.com/683530/1/check/tripleo-ci-centos-7-containers-multinode/cc2accd/logs/undercloud/var/log/extra/podman/containers/keystone/podman_info.log.txt.gz * Checking difference between promotion and check job * Diff between recheck * comparsion between previous and current tripleo promotion hash per branch * non tripleo git changes * starting with * container-diff * rpm diff * list of patches merged into that * rdo-infra -> start from scratch * In future think about other distros * Merge sova into grafana * pull database * time comparison, rpm diff and logreduce link

    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