[Freeipa-devel] [PATCHES 0146-0152] Server Roles v2

Martin Babinsky mbabinsk at redhat.com
Sun Jun 12 15:29:59 UTC 2016


On 06/10/2016 05:42 PM, Martin Babinsky wrote:
> On 06/10/2016 02:22 PM, Jan Cholasta wrote:
>> On 9.6.2016 17:06, Martin Babinsky wrote:
>>> On 06/09/2016 03:54 PM, Petr Vobornik wrote:
>>>> On 06/09/2016 01:02 PM, Martin Babinsky wrote:
>>>>> On 06/07/2016 07:01 PM, Pavel Vomacka wrote:
>>>>>>
>>>>>>
>>>>>> On 06/07/2016 12:07 PM, Martin Babinsky wrote:
>>>>>>> On 06/03/2016 05:25 PM, Martin Babinsky wrote:
>>>>>>>> I am sending rebased patches implementing
>>>>>>>> http://www.freeipa.org/page/V4/Server_Roles
>>>>>>>>
>>>>>>>> I hope the patches work since I have had a lot of fun rebasing
>>>>>>>> them on
>>>>>>>> top of thin client and DNS locations effort.
>>>>>>>>
>>>>>>>> https://fedorahosted.org/freeipa/ticket/5181
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> Sending updated patches according to Jan's interactive review.
>>>>>>>
>>>>>>> Since the name of attributes returned by API commands and
>>>>>>> signature of
>>>>>>> `server-role-find` have changed, a small update in WebUI patches is
>>>>>>> required.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> NACK, why did you remove sizelimit from server_role_find
>>>>>> command's? Is
>>>>>> it possible to return it back? It breaks WebUI.
>>>>>
>>>>> Indeed, this was caused by changing the base class of the command.
>>>>> It is
>>>>> fixed in updated patches.
>>>>>
>>>>
>>>> NACK
>>>>
>>>> Option timelimit? of command server_role_find in ipalib, not in API
>>>> file:
>>>> Int('timelimit?', autofill=False)
>>>> Option sizelimit? of command server_role_find in ipalib, not in API
>>>> file:
>>>> Int('sizelimit?', autofill=False)
>>>>
>>>> There are one or more changes to the API.
>>>> Either undo the API changes or update API.txt and increment the major
>>>> version in VERSION.
>>>> Makefile:159: recipe for target 'version-update' failed
>>>> make: *** [version-update] Error 1
>>>>
>>>
>>> Oops, seems like a missed API.txt update.
>>>
>>> Fixed.
>>
>> "ipa server-role-find" does not return the "IPA master" role for my
>> server ("ipa-server-role $HOSTNAME 'IPA master'" does).
>>
> This is intentional since we discussed during the design phase[1] that
> "IPA master" role should be implicit and not shown to the user in
> server-show and server-role-find operation. This however does not
> preclude you to query its status manually if you know the role name.
>
> [1] http://www.freeipa.org/page/V4/Server_Roles#Server_Roles
>
>> I would rather skip the option altogether rather than hide it:
>>
>> +            # we do not want to test negative membership for roles
>> +            # hide it from CLI
>> +            elif option.name == 'no_servrole':
>> +                option = option.clone(flags={'no_option'})
>>
> So something like:
>
>     elif option.name == 'no_servrole':
>         continue
>
> should do the trick?
>> The patches need a rebase (VERSION).
>>
>> Otherwise LGTM.
>>
>
> Ok I will send fixed patches ASAP.
>

Attaching rebased patches. 'no_servrole' option is now skipped and does 
not show in the API.

-- 
Martin^3 Babinsky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mbabinsk-0146-5-Server-roles-definitions-of-server-roles-and-attribu.patch
Type: text/x-patch
Size: 21169 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160612/de254133/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mbabinsk-0147-5-Server-Roles-Backend-plugin-to-query-roles-and-attri.patch
Type: text/x-patch
Size: 6160 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160612/de254133/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mbabinsk-0148-5-Test-suite-for-serverroles-backend.patch
Type: text/x-patch
Size: 25087 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160612/de254133/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mbabinsk-0149-5-Server-Roles-public-API-for-server-roles.patch
Type: text/x-patch
Size: 8358 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160612/de254133/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mbabinsk-0150-4-Server-Roles-make-server-show-find-utilize-role-info.patch
Type: text/x-patch
Size: 8351 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160612/de254133/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mbabinsk-0151-4-Server-Roles-make-config-show-consume-relevant-roles.patch
Type: text/x-patch
Size: 9792 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160612/de254133/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mbabinsk-0152-4-Server-Roles-provide-an-API-for-setting-CA-renewal-m.patch
Type: text/x-patch
Size: 3869 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160612/de254133/attachment-0006.bin>


More information about the Freeipa-devel mailing list