[Freeipa-devel] [PATCH 0151-0152] install: Call hostnamectl set-hostname only if --hostname option is use server-install: Fix --hostname option to always override api.env value

Petr Spacek pspacek at redhat.com
Mon Aug 1 15:42:37 UTC 2016


On 1.8.2016 08:27, Jan Cholasta wrote:
> On 28.7.2016 16:55, Petr Spacek wrote:
>> On 28.7.2016 16:44, Jan Cholasta wrote:
>>> On 28.7.2016 16:37, Petr Spacek wrote:
>>>> On 28.7.2016 16:35, Jan Cholasta wrote:
>>>>> On 28.7.2016 16:20, Petr Spacek wrote:
>>>>>> Hello,
>>>>>>
>>>>>> install: Call hostnamectl set-hostname only if --hostname option is used
>>>>>>
>>>>>> This commit also splits hostname backup and configuration into two separate
>>>>>> functions. This allows us to backup hostname without setting it at the
>>>>>> same time.
>>>>>>
>>>>>> https://fedorahosted.org/freeipa/ticket/6071
>>>>>
>>>>> Note that you can set ca_host in cfg unconditionally, the value is only
>>>>> valid
>>>>> during install and is not written anywhere.
>>>>
>>>> I prefer not to set it so the code blows up when we attempt to touch
>>>> variables
>>>> we should reference in particular setups. I.e. Take this as a first step
>>>> towards api.env without invalid values :-)
>>>
>>> OK. Use the proper condition then ("if setup_ca:").
>>
>> Oh, I'm probably blind. Here is revised version.
> 
> But you used "if not setup_ca:" rather than "if setup_ca:" :-)

This patch set is cursed!

Petr^2 Spacek

> 
>>
>> Petr^2 Spacek
>>
>>>
>>>>
>>>> (In my stash I have a patch which removes nonsense defaults from
>>>> ipalib.constants. To be pushed when we a new git branch for 4.4...)
>>>>
>>>> Petr^2 Spacek
>>>>
>>>>>> server-install: Fix --hostname option to always override api.env values
>>>>>>
>>>>>> Attempts to compare local hostname with user-provided values are error
>>>>>> prone as we found out in #5794. This patch removes comparison and makes
>>>>>> the env values deterministic.
>>>>>>
>>>>>> https://fedorahosted.org/freeipa/ticket/6071
>>>>>>
>>>>>>
>>>>>> Jan, this patch set should fix problems you have seen in containers.
> 
> 


-- 
Petr^2 Spacek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pspacek-0151-3-server-install-Fix-hostname-option-to-always-overrid.patch
Type: text/x-patch
Size: 1838 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160801/d9a4b215/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pspacek-0152-3-install-Call-hostnamectl-set-hostname-only-if-hostna.patch
Type: text/x-patch
Size: 6031 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20160801/d9a4b215/attachment-0001.bin>


More information about the Freeipa-devel mailing list