Skip to content

Consider supporting multiple sources for a Resource #1104

Closed

Description

@bgilbert

Hmm that said we should probably also have nicer support for multiple URLs in included Ignition, so that one could upload configs to multiple S3 regions and have fallback; something like:

'{"ignition":{"config":{"replace":{"source0":"https://s3-us-east-1/mybucket/myconfig.ign", "source1": "https://s3-us-west-1/mybucket/myconfig.ign", "verification": "sha512here"}},"version":"3.1.0"}}'

(Multiple urls should probably require Verification to ensure they are the same and avoid nondeterminism)

Originally posted by @cgwalters in #1100 (comment)

Edit: per #1104 (comment), that would be:

'{"ignition":{"config":{"replace":{"sources":["https://s3-us-east-1/mybucket/myconfig.ign", "https://s3-us-west-1/mybucket/myconfig.ign"], "verification": "sha512here"}},"version":"3.1.0"}}'

Activity

  1. bgilbert commented on Sep 30, 2020

    @bgilbert
    ContributorAuthor

    If we wanted to do this, I'm thinking we'd have a sources array in Resource. If we fetch every source in parallel, with the first successful result winning (as we do for config sources in e.g. OpenStack), we can avoid being responsible for a timeout and backoff scheme.

  2. paulnivin commented on Oct 2, 2020

    @paulnivin

    If we fetch every source in parallel, with the first successful result winning (as we do for config sources in e.g. OpenStack), we can avoid being responsible for a timeout and backoff scheme.

    I think a timeout, backoff, and retry scheme would still be needed for intermittent network issues. For example, a sufficient part of the stack is available to retrieve the initial Ignition config (e.g. from user-data), but access to the referenced sources is not (yet) available (e.g. DNS failure, route failure, etc).

  3. bgilbert commented on Oct 2, 2020

    @bgilbert
    ContributorAuthor

    Right, I didn't phrase that well. Ignition already has a retry scheme for exactly the reason you mentioned. But I'd like to avoid adding logic for giving up on one resource and falling back to the next one.

  4. added
    jira
    on Oct 26, 2020
  5. bgilbert commented on May 5, 2022

    @bgilbert
    ContributorAuthor

    Closing in favor of #1276. More info in #1176 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    jira

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions