#141 What is the process to change default profile name with zero down time?
Opened 5 years ago by jaruga. Modified 5 years ago

Now modules/ruby has "default" as a default profile, and only have "default" profile in it.
I want to change it to "common".
What is the process to prevent a down time?

https://pagure.io/releng/fedora-module-defaults/blob/master/f/ruby.yaml

document: modulemd-defaults
version: 1
data:
    module: ruby
    profiles:
        2.5: [default]
        2.6: [default]

https://src.fedoraproject.org/modules/ruby/blob/master/f/ruby.yaml#_107

    profiles:
        default:
            rpms:
                - ruby

My guess is we need below processes, right?

  1. Add "common" profile to https://src.fedoraproject.org/modules/ruby/blob/master/f/ruby.yaml , push, and build. Then there are 2 profiles "default" and "common" are available.
  2. Change "default" to "common" in https://pagure.io/releng/fedora-module-defaults/blob/master/f/ruby.yaml , then it is merged.
  3. Remove "default" profile in https://src.fedoraproject.org/modules/ruby/blob/master/f/ruby.yaml . push and build.

This is hard.

This hard processes happen as the profile setting is manged separately.
Related to https://pagure.io/releng/fedora-module-defaults/issue/97


Metadata Update from @psabata:
- Issue tagged with: Meeting

5 years ago

We discussed this during today's meeting and we agreed that profiles shouldn't be dropped during the lifetime of a stream to avoid unnecessary breakage.

  * AGREED: Profiles cannot be removed during the lifetime of the stream
    in order to avoid breaking scripts. Options may exist for
    exceptional cases on an individual basis.  (contyk, 15:41:06)

Other than that, your proposed workflow is valid. Step 3 shouldn't be implemented, however, unless there is an actual need for it.

This needs to be added to some documentation or guidelines. Any volunteers?

Metadata Update from @psabata:
- Issue untagged with: Meeting

5 years ago

Metadata Update from @asamalik:
- Issue tagged with: needs-docs

5 years ago

Log in to comment on this ticket.

Metadata