[sles-beta] SLES12 x86_64 Beta3 autoyast issue /etc/hosts no hostname entry

urs.frey at post.ch urs.frey at post.ch
Fri Mar 28 04:14:49 MDT 2014


Hi Marius

Thank you very much
Yes I opened a service request

Service Request  # 10885376321 has been created.  

 SUMMARY OF SR # 10885376321 
  * SR Severity Level: Medium  
  * SR Brief Description: SLES12-Beta3, autoyast not writing IP-address and hostname to /etc/hosts


Best regards

Urs Frey                                              
Post CH AG
Informationstechnologie
IT Betrieb 
Webergutstrasse 12 
3030 Bern (Zollikofen) 
Telefon : ++41 (0)58 338 58 70 
FAX     : ++41 (0)58 667 30 07 
E-Mail:   urs.frey at post.ch


-----Ursprüngliche Nachricht-----
Von: sles-beta-bounces at lists.suse.com [mailto:sles-beta-bounces at lists.suse.com] Im Auftrag von Marius Tomaschewski
Gesendet: Friday, March 28, 2014 11:00 AM
An: sles-beta at lists.suse.com
Betreff: Re: [sles-beta] SLES12 x86_64 Beta3 autoyast issue /etc/hosts no hostname entry

Am 26.03.2014 14:41, schrieb urs.frey at post.ch:
> Hello Marius
>
> Thank you very much!

Hi!

You're welcome!

> I inserted as you told in my autoinst.xml
>      <dns>
>        <dhcp_hostname config:type="boolean">false</dhcp_hostname>
>        <dhcp_resolv config:type="boolean">false</dhcp_resolv>
>        <write_hostname config:type="boolean">true</write_hostname>
>        <domain>pnet.ch</domain>
>        <hostname>h063uz</hostname>
>        <nameservers config:type="list">
>          <nameserver>10.1.121.11</nameserver>
>          <nameserver>10.2.121.11</nameserver>
>        </nameservers>
>        <searchlist config:type="list">
>          <search>pnet.ch</search>
>          <search>post.ch</search>
>        </searchlist>
>      </dns>
>
> But the result is not exactly what I expect. Hostname gets written, but the TCP/IP Address is not the correct one

Ah... the "write_hostname" seems to result in the 127.0.0.2 hack.

Originally intended as fallback to get the hostname resolved when
there is no IP address available on dynamic (ppp,dhcp) links...
and breaking resolving of the hostname completely as it causes to
always resolve the hostname to 127.0.0.2... even the IP is there.
So "write_hostname" seems the wrong way to do it.

>      <host>
>        <hosts config:type="list">
>           <hosts_entry>
>             <host_address>127.0.0.1</host_address>
>             <names config:type="list">
>                <name>localhost</name>
>             </names>
>           </hosts_entry>
>           <hosts_entry>
>             <host_address>10.226.154.19</host_address>
>             <names config:type="list">
>                <name>h063uz.pnet.ch h063uz</name>
>             </names>
>         </hosts>
>      </host>
>
> So from my point of view, there is something wrong with autoyast

Open a bug report for autoyast2. I've no idea about this machinery.

Gruesse / Regards,
  Marius Tomaschewski <mt at suse.de>, <mt at suse.com>
-- 
  SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg),
  GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer,
  Maxfeldstraße 5, 90409 Nürnberg, Germany
_______________________________________________
sles-beta mailing list
sles-beta at lists.suse.com
http://lists.suse.com/mailman/listinfo/sles-beta


More information about the sles-beta mailing list