[katello-devel] moving of systems between environments

Mike McCune mmccune at redhat.com
Thu Aug 16 23:55:23 UTC 2012


On 08/16/2012 06:26 AM, Dmitri Dolguikh wrote:
> On 16/08/12 01:50 PM, Sachin Ghai wrote:
>>
>>
>> On 08/16/2012 02:06 PM, Sachin Ghai wrote:
>>>
>>>
>>> On 08/15/2012 06:05 AM, Mike McCune wrote:
>>>> On 08/14/2012 07:25 AM, Lukas Zapletal wrote:
>>>>> On Tue, Aug 14, 2012 at 01:56:29PM +0100, Dmitri Dolguikh wrote:
>>>>>> Hey all,
>>>>>>
>>>>>> the above functionality is in master as of yesterday.
>>>>>>
>>>>>> To move the system using web ui: on system detail screen, change the
>>>>>> environment name to the one you intend to move the system to. Once
>>>>>> completed, the system will reside in the new environment.
>>>>>> To move the system via cli: katello system update --org=Blah
>>>>>> --name=My_system --new_environment=<environment name goes here>
>>>>>>
>>>>>> To verify that the system has been moved successfully: pull
>>>>>> entitlement certificate and verify that the content urls have been
>>>>>> updated to use the new environment. Please note that if the content
>>>>>> that the system has been subscribed to is not available in the new
>>>>>> environment, the entitlement certificate is not going to have it
>>>>>> either.
>>>>>>
>>>>>
>>>>> Great. And how does a real-world scenario look like? I mean, does rhsm
>>>>> automatically pull entitlement certs every X hours? Or do I need to
>>>>> take
>>>>> some explicit action on the client?
>>>>>
>>>>>
>>>>
>>>> I would imagine a 'subscription-manager refresh' would do it... that
>>>> said, I tried out the above with an install of the latest from git.
>>>> Some
>>>> notes:
>>>>
>>>> * The webUI worked fine, the system shows up in the next environment I
>>>> moved it to
>>>>
>>>> * Tried a 'subscription-manager refresh' and took a look at the
>>>> redhat.repos file and it still pointed at /dev/ but I had moved the
>>>> system to test
>>>>
>>>> * tried 'yum repolist', same thing
>>>
>>> I observed same behaviour. Since I moved the system from 'test' to 'dev'
>>> env, the redhat.repo was still showing the 'test' in URL.
>>>
>>> Content URLs in entitlement cert also points to 'test' env instead of
>>> dev. Logs are here:
>>> http://pastebin.test.redhat.com/102204
>>>
>>
>> The candlepin version installed on katello server is:
>>
>> candlepin-0.5.32-1.el6.noarch
> 0.5.32-1 was tagged on May 3rd - candlepin changes required to support
> moving of systems were in master on June 6th. Not sure what you can do
> about this short of installing later candlepin release by hand...
>


works great as you say ...

my only feedback would be to say perhaps a bit extra in the messaging 
when you move the environment:

"This system's environment has been updated.  Next time it checks in 
with the Katello server it will point at the <ENV> environment and 
content will be available."

something like that.  Nice work thou!


Mike




More information about the katello-devel mailing list