Airship
      • 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

      This note has no invitees

    • Publish Note

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

      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.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      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
    • Note Insights New
    • Engagement control
    • Make a copy
    • 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 Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy 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

    This note has no invitees

  • Publish Note

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

    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.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- tags: Discussion --- # Discussing Phases, Plans and "States" [TOC] Before we talk about phases, lets define a state , meaning a collection of phases articulating a common purpose on the lifecycle as a state. I claim that states are different than phase plans given that they just indicate an overalll purpose for a particular collection of phases or a plan. A plan is a colllection of phases that articulate a complete lifecycle. ## States At a high level these are the states | State | What is happening | | -------- | -------- | | Initialize | Essentially get airshipctl, pull documents etc. | | Prepare | Validation, Initilization type activities | | Physical Validation | Validate Target Infrastructure Hardware | | Ephemeral | Deploy, Configure and Use the ephemerall cluster | | Target Lifecycle | Configure, and Scale Target Cluster | | Target Workload Lifecycle | Deploy Services for teh Target Cluster | | Subcluster Lifecycle | Deploy Subclusters| | Subcluster Workload Lifecycle |Deploy Sub Cluster level Infrastcuture and Services | | Subcluster Tenant Workloads | Lifecyce for the applications on the subcluster | :::warning During some of these states we need to perform activities that are not necessarily articulated as a phase. i.e. validate hardware, which is TBD wha it looks like, debatable as to wheter its something driven by a phase articulated by driving a container image with a collection of redfish commands , analysis and results. Or some extension to airshipctl, regardless this is Airship v3 scope. ::: ### Prepare State Actuate actions such as gathering the documents, validating them. Deal with the secrets if needed i.e. generate them, build images as needed. These state does not fully need to be repeated every time. Parts of it might be required for updates or upgrades . ### Physical Validation State These is intended to provvide validation testing for the infrastructure such as the examples below. Given the ability to configure some of these aspects eventually to Metal3 and Ironic, theh need to validate or tests some of the examples below will subside. * Local Hardware Verification * Machine, CPU, Manufacturer, RAM, Product Name, Bonding, NIC port assignments * North-South Network Connectivity * IP endpoint and TCP/UDP port flow validation checks * MTU Validation * Validation Over Jumbo Frames expectations, i.e. MTU 9000 * Check Raid Devices * Checks the Raid Configuration on the Server ### Ephemeral Lifecycle State During these state we execute phases that bootstrap the ephemeral host all the way to sing the cluster on the host to initialize the control plane in the target cluster. ### Target Lifecycle State Durind tehse state we execute phjases that complete the fully realized target control. Meeans the cluster will be fly scaled. It will linclude all aspects for the infrastcuture management it requires. Infrastructure would be elements that the paltform uses to manage itself , or requires to deploy these infrstcuture elements, such as : * CAPI * Helm Operator * CNI * CSI ### Target Workload Lifecycle State During these phase we deliver services to the target cluster. A service is a cpability it provides to the intended targets of tegh custer, as well as soem core services that might be needed by the target cluster for management reasons. Examples would be : - Openstack Helm - LMA Stack - Other services, i.e., if we needed to deliver a platform offered S3 service, we could configure it here. - Extension to the basic CNI would go here, i.e Multus ### Subcluster Lifecycle State These state drives the construction of subclusters when appropriate. Incluuding identifying vBMH's to the complegte configuration and scale of a subcluster . ### Subcluster Workload Lifecycle State These state drives delivery of the infrastcture and services it might provide. - Services here refers to items such as MinIO S3 services - Infrastructure wold be things like Storage Class definitions, etc. ### Subcluster/Tenant Workloads State These state is an abstraction that starts the moment a subcluster is available to a tenant, or whenever a baremetal cluster is ready to allow tenants to interact with the cluster. At this point a tenant is given the appropriate credentials (with appropriate Auth/AuthZ privileges) and enddpoint for a cluster . The tenant is responsible for managing the lifecycle of their applications any way they desire. Conceptualy they would be able to use airship phase document approach if they choose to, but its not mandatory. ## Phases The image below is a depiction of the potential target for a collection of phases that deliver a complete end to end cycle. :::warning **WAIT ISSUE** : Missing are some of the interim "validation states", to be defined using the generic container interface. These validation states are required after the deployment of phases that cannot abide with the wait logic provided by the phase executors. Common reason is the inability of the artifacts been deployed to provide adequate status state. ::: ![](https://i.imgur.com/lvDcvrk.png) ### Prepare Phases | Phase | Purpose | | -------- | -------- | | document validate | | | secret-generate | | | generate iso | | | generate qcow | | ### Physical Validation Phases | Phase | Purpose | | -------- | -------- | | baremetal validate "test X" | | | baremetal validate "test suite" | | ### Ephemeral Lifecycle Phases | Phase | Purpose | | -------- | -------- | | remotedirect-ephemeral | | | initinfra-networking-ephemeral | | | initinfra-ephemeral | | | clusterctl-init-ephemeral | | | controlplane-ephemeral | | ### Target Lifecycle Phases | Phase | Purpose | | -------- | -------- | | initinfra-networking-target | | | initinfra-target | | | clusterctl-init-target | | | clusterctl-move | | | workers-target | | | workers-classification | | ### Target Workload Lifecycle Phases | Phase | Purpose | | -------- | -------- | | workload-target | SIP+Vino could be here , its articulated as a composite if you need to use it or not| | workload-config-target | CR's.. | Single phase that is a collection of artifacts for workloads. We would use the manifests structure using composites and types to adequately incorporae variations as neededd . i.e. MultiTenant type has no osh Other type like Anuket(CNTT) : would include OSH composites and functions in the type definition for the wlorkload-target phase. ### Subcluster Lifecycle Phases | Phase | Purpose | | -------- | -------- | | platform-initinfra | | | controlpane | | | workers | | ### Subcluster Workloads Lifecycle Phases | Phase | Purpose | | -------- | -------- | | initinfra | | | workload | | ### Subcluster/Tenant Workloads Phases | Phase | Purpose | | -------- | -------- | | workload | Tenant applications are delivered via these phases | :::warning The ultimate goal is to conceptally hve a handfull of phases that can be reused in different contexts. We had a discussion abot potentially enhancing metadat.yaml ```yaml phase: path: manifests/site/test-site/phases docEntryPointPrefix: manifests/site/test-site ???Use ClusterName??? inventory: path: manifests/site/test-site/host-inventory ``` :::danger Would change https://github.com/airshipit/airshipctl/blob/master/pkg/phase/helper.go helper.phaseEntryPointBasePath = filepath.Join(helper.targetPath, helper.phaseRepoDir, helper.metadata.PhaseMeta.DocEntryPointPrefix) + <ClusterName> ::: Th ebelow patchsets introdces an interim solution to deal with aspects of the WAIT ISSUE mentioned above. https://review.opendev.org/c/airship/airshipctl/+/774548/13/tools/deployment/33_cluster_move_target_node.sh ```yaml --- kind: Phase metadata: name: initinfra-ephemeral steps: - apply-initinfra-resources - wait-for-nodes - report-steps --- kind: phase-step metadata: name: applyinitinfra-resources executorRef: kind: kubernetes-apply entrypoint:... --- kind: PhasePlan metadata: name: greenfield phases: - initinfra-ephemeral - control-plane ``` ::: ## Plans

    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
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    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