[katello-devel] Proper way to remove repo from environment

Tomas Strachota tstrachota at redhat.com
Tue Jan 24 17:05:28 UTC 2012


On 01/24/2012 05:52 PM, Tomas Strachota wrote:
> On 01/24/2012 05:35 PM, Mike McCune wrote:
>> On 01/24/2012 04:18 AM, Ivan Nečas wrote:
>>> Hi all,
>>>
>>> Do we officially support removing (or let's say demoting) a repository
>>> from some environment. There is a command in CLI:
>>>
>>> repo delete --name base --product zoo --env Dev
>>>
>>> This removes the repository from environment, but:
>>> 1. it's supported only from CLI (AFAIK)
>>> 2. it changes the environment without a changeset. In my understanding
>>> changeset should be the only way how to change anything in the
>>> environment (at least for auditing purposes).
>>>
>>> So is this really a way how it should work? Or do we have some plan on
>>> this feature?
>>>
>>
>> no, we should not offer that command as it stands now. All changes to
>> content in every environment should be done with a changeset. API calls
>> and CLI commands or UI screens that make blanket changes to content in
>> environments without a changeset violate this rule and concept we are
>> maintaining in Katello.
>>
>> In future versions of Katello we will support 'demotion' of content
>> including Products, Repos, Packages, Errata, etc ... but for now we are
>> forward moving only.
>>
>> I'd recommend you remove this CLI command for now until we can tie it
>> into a larger demotion based changeset feature.
>>
>> Mike
>
>
> Ok, I'll remove the cli command and disable the api for deleting repos.
>
> Tomas

Well thinking about it twice (thanks Ivan for hint), we should only 
block deleting repos from all other environments apart from Locker, right?

Can we delete only those repos from locker that haven't been promoted 
yet or can we delete it at any circumstances? What's the correct 
behaviour here?

Thanks,
Tomas





More information about the katello-devel mailing list