Skip to content

Subscription Manager vs deployment configs #1404

@petervo

Description

@petervo

I spent way too long trying to figure out why the remote portion of my deployment refspecs would get reverted back to rhel-atomic-host-ostree after a booting into a rebased deployment. Breaking any further updates or changes. Eventually I figured out that it wasn't a ostree bug but subscription-manager was rewriting the deployment origin files.

While I understand the motivation here, this behavior is very unexpected and pretty much makes any sort of multiple remote workflows completely unworkable on a system running subscription-manager. At the very least this should be documented with a warning somewhere, or maybe it already is but I wasn't able to find it.

IMO subscription manager should not change configurations that users have explicitly configured and deployed on their own. One possible solution is to only automatically change deployments that are explicitly configured to be changed like that. This could be done by adding something to the remote config file in /etc/ostree/remote.d for example

managed-by-subscription = true

then subscription manager would only touch deployments for configurations where managed-by-subscription is a truthy value.

Or if @cgwalters prefers subscription manager doesn't pollute the ostree remote config files subscription manager can maintain it's own list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions