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

      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
    • Note Insights
    • 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 Note Insights 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

    This note has no invitees

  • 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
    # Unavailable global catalog source prevents resolution from succeeding ## Summary Background: https://bugzilla.redhat.com/show_bug.cgi?id=2076323 Currently, the OLM resolver is configured to perform resolution on a particular namespace based on the set of subscriptions in that namespace. To build a cache of potential solutions to resolution, the resolver queries for any catalogsource present in the namespace and in the global catalog namespace, a special namespace that is accessible for resolution across any namespace in the cluster. Resolution should be deterministic, in the sense that a particular set of inputs should always lead to the same content being applied to the cluster. In the case of potential ambiguity, such as when a particular catalog is in an error state and not responding, the resolver currently throws an error and does not provide a solution. This is logical, but causes all resolution to fail across the cluster whenever there is a problem with any catalog in the global catalog namespace. There needs to be way to provide determinstic resolution while still allowing for transient errors from catalogs to occur. There is essentially a tradeoff between correctness and UX, where being the most deterministic and correct from the point of view of the resolver leads to cases where resolution is not working across the entire cluster and so the UX is poor. ## Potential solutions * Only consider catalogs that are explicitly defined in the subscription spec for resolution when such a catalog is provided. This is explored in https://github.com/operator-framework/operator-lifecycle-manager/pull/2749 but is not a viable solution - dependencies of the originating subscription can come from the global catalog. Changing the behavior of resolution this way would break existing users who expect their dependency resolution to work as before. * Add an opt-in setting on the operator group in a particular namespace that enables transient catalog errors to be ignored during resolution. In that case, with the setting enabled, if a catalog is unreachable it's ignored for the purposes of resolution. * Lean on the SAT-solver for resolution determinism; e.g. operators that require deterministic resolution have constraints on unique label properties only available in the "correct catalog". * Perform a preemptive analysis -- when resolution is performed, if all the provided subscriptions in the namespace do not have any external dependencies, and all reference a catalog in the given namespace, do not reach out to the global catalog namespace when performing resolution ### Option 1 - namespace-scoped resolution toggle Add a toggle on an OLM resource present in the namespace where resolution occurs that indicates that dependencies should be resolved only within that namespace. Since an OperatorGroup must already be present in the namespace to successfully resolve, this API would be a natural place to add the toggle. This approach is similar to the [Fail Forward feature](https://github.com/operator-framework/enhancements/pull/110) which added a toggle on the OperatorGroup to change certain OLM behavior. This approach has some downsides, namely that this toggle would need to be enabled in every namespace in which resolution is occuring beforehand to ensure the new resolution behavior. It also further dilutes the OperatorGroup API, which was not intended to influence resolution decisions at all. It may be viable as a short-term solution if there are serious service degradation issues that cannot be addressed by the existing workaround (turning off default catalogs from the global catalog namespace and removing them). ### Option 2 - add first-class catalog dependency constraints Solving this issue in a more robust way would involve enabling support for constraints on a particular catalog that would be considered by the resolver during resolution. The resolver would only consider a particular catalog, or set of catalogs, if this constraint were provided. This doesn't exist in the OLM resolver today, but would be a feature candidate for the new resolver work as part of deppy. This would be a longer term solution, assuming the workaround(turning off default catalogs from the global catalog namespace and removing them) is sufficient for the time being. See https://issues.redhat.com/browse/RFE-2801 for an RFE that outlines this potential solution. ### Option 3 - treat existing behavior as a bug Based on meetings with PM and the SD team, it was determined that the existing behavior (where an unresponsive catalog prevents resolution globally) was problematic enough to be considered a bug, even though it was the product of a previous bugfix. The solution in this option is to simply treat the behavior as a bug, and simply allow resolution in the face of catalog connection problems. This is a deviation from existing behavior, since after the bugfix resolution may go through (with an incomplete picture of the catalogs on cluster). The bugfix would basically be an undo of https://github.com/operator-framework/operator-lifecycle-manager/pull/2290, the fix for the original issue. Additionally we could also, rather than just do "best effort", respect the subscription spec and fail resolution if any of the referenced catalog sources in the resolver context's subscriptions are unavailable. This would: - Keep with the intent of the user to source a package from a specific catalog source - Keep the mental model of resolving the whole namespace in unison - Solve the issue of blocking resolution if an unferenced global catalog source is down - Continue with a best effort basis to resolve dependencies ## Notes * Putting the knob on the operator-group may overload the operator group API * Putting the knob on the operator-group API would require it being enabled for every namespace in the cluster for resolution to be successful across the cluster * Release valve: turn off the global operators catalogs if those catalogs are failing * In the upstream world, there should not be any dependency on Red Hat registries * Resolution with incomplete information is potentially acceptable (should only cause rare problems, most operators do not use dependencies) * Using constraints would enable users to specify dependencies on specific catalogs * Must disable global catalog sources before removing them * Ensure that the particular catalog that isn't responding is surfaced via error/event

    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