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
    # Full end to end CI for ceph-ansible ## Problem ceph-ansible is used in TripleO deployment using ceph-ansible. It basically runs in scenario 1 and 4 jobs where a released ceph-ansible rpm is consumed. ### Repo link * ceph-ansible: https://github.com/ceph/ceph-ansible ### Epic Link: https://tree.taiga.io/project/tripleo-ci-board/epic/1053 ### Current Workflow New version of ceph-ansible lands in CentOS Build System and is consumed through storage repo in TripleO CI job. Currently Ceph developers, updates the release file for all release with the new base repo url from ceph-nautilus testing tag of the ceph repo and then tests it in scenario-1 and scenario-04. For example: https://review.opendev.org/#/c/501810/ updates the centos testing repo for ceph and https://review.opendev.org/#/c/501987/ a patch against tripleo heat templates to trigger the tripleo based scenario-01 and scenario-03 got triggered. It is a manual process and it requires a lot of effort. ### Vision In order to catch issues in ceph-ansible which affect ooo deployments before they get into ceph-ansible releases. ### Proposal trigger one of the existing tripleo jobs on every pull-request for ceph-ansible and publish back the results into a pull-request comment ### Work down till now #### Integrate ceph-ansible github repo with Zuul * Install the SF github app to ceph-ansible - Zuul will then receive event and be able to report CI result * https://softwarefactory-project.io/docs/user/zuul_user.html#install-a-github-app * https://github.com/apps/softwarefactory-project-zuul * Add Ceph-ansible to zuul rdo tenant in softwarefactory-project.io/r/config * https://softwarefactory-project.io/r/#/c/14203/ * Create a project pipeline in rdo config * Add github-check pipeline and noop job * https://review.rdoproject.org/r/#/c/17456/ * Add ceph-ansible Zuul job configuration * https://review.rdoproject.org/r/#/c/17600/ * Trigger zuul job on github PR using comments * https://github.com/ceph/ceph-ansible/pull/3576 #### Current Jobs defined for ceph-ansible Integration * tripleo-ceph-integration * https://github.com/rdo-infra/rdo-jobs/blob/06f406bfb2ba8df46d8271aa0689d11af95b5e4c/zuul.d/ceph-ansible.yaml * What above jobs are doing? * https://github.com/rdo-infra/rdo-jobs/blob/06f406bfb2ba8df46d8271aa0689d11af95b5e4c/playbooks/tripleo-ceph-integration/pre.yaml * Installing required packages and adding zuul user to mock group * https://github.com/rdo-infra/rdo-jobs/blob/06f406bfb2ba8df46d8271aa0689d11af95b5e4c/playbooks/tripleo-ceph-integration/run.yaml * Generating rpm using `make rpm` * Using `createrepo` to create the repo * https://github.com/rdo-infra/rdo-jobs/blob/06f406bfb2ba8df46d8271aa0689d11af95b5e4c/playbooks/tripleo-ceph-integration/post.yaml * Copy rpms and artifacts to zuul root log directory ### Work pending * Since rpm is already generated and repo is there, we need to pass this repo to other job * where rpm will be gets consumed in standalone scenario 1 & 4 jobs * https://github.com/rdo-infra/rdo-jobs/blob/master/playbooks/run-distgit.yaml#L111 * Build test packages needs to be improved if depends-on of ceph-ansible patch used in rdo reviews or vice versa * [better] Improve build-test-packages to build the rpm itself there as just like normal jobs by parsing git commit message * Need to find a list of files on which we need to trigger the job on each ceph-ansible PR * Add the job in cockpit for monitoring and maintaince ### Some reuse of the tools * Reuse distro-zuul-jobs to all DLRN or rpm related operations * https://pagure.io/zuul-distro-jobs ### Open Questions: * Do we want to run tripleo-jobs on each PR? * IF yes, then we need to find list of files going to change on which tripleo jobs will be triggered? * all ceph-ansible stable-4 branches trigger tripleo train * all ceph-ansible stable-3 branches trigger tripleo queens (or rocky) * Except scenario 1 & 4, is there any other fastest job we can run? * What about adding a post pipeline which got triggered automatically if a new release of ceph-ansible comes? ## Design Approach on passing yum repos file to TripleO CI Job [needs discussion with team] * Create a new release file and override the existing tripleo-ci release file * https://github.com/rdo-infra/rdo-jobs/blob/master/playbooks/run-distgit.yaml#L111 * Since release files are less updates * It might be error prone. * By Passing the rpm created by parent job as a zuul artifacts to the child job where tripleo-ci job will run * https://zuul-ci.org/docs/zuul/user/jobs.html#user-jobs-parent-results * https://zuul-ci.org/docs/zuul/user/jobs.html#return-artifacts * Introducing a custom var in release file which can be setted with the reponame created from the ceph-ansible/podman repo and enable it in the release file and enable the repo * Get the pull request and build the rpm there and install it from here in the job.

    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