Re: [Freeipa-devel] Host does not have corresponding DNS A/AAAA record

2015-10-20 Thread Oleg Fayans

Hi Martin,

On 10/20/2015 10:26 AM, Martin Basti wrote:



On 20.10.2015 10:17, Oleg Fayans wrote:



On 10/20/2015 10:10 AM, Petr Vobornik wrote:

On 10/20/2015 09:57 AM, Oleg Fayans wrote:

Hi,

I keep hitting a strange issue: when I create a dnsrecord manually and
then try to create the host, it complains that the host does not have
corresponding DNS A/ record.

ofayans@f22master:~]$ ipa dnsrecord-add
Record name: fortest
Zone name: pesen.net.
Please choose a type of DNS resource record to be added
The most common types for this type of zone are: A, 

DNS resource record type: A
A IP Address: 192.168.122.253
   Record name: fortest
   A record: 192.168.122.253
ofayans@f22master:~]$ ipa host-add
Host name: fortest.pesen.net
ipa: ERROR: Host does not have corresponding DNS A/ record
ofayans@f22master:~]$ ping fortest
PING fortest.pesen.net (192.168.122.253) 56(84) bytes of data.


The check uses DNS resolution to get the info. Does it work well?

It works, I added an output of ping command to show that

dnsrecord-add and host-add works for me, A records is resolvable.

Do you have configured /etc/resolv.conf properly on host? (or network
manager DNS configuration)?


Yes, I did. In fact, I just upgraded the server to the latest version 
from upstream, and the issue is gone.






Other option is to add host with --ip-address option so you can skip the
dnsrecord-add call.


I know, but there must be a way to fix the host if an admin forgot to
add this option. So, ideally, I should be able to create a host, then
add a dnsrecord, then add a service. Now, obviously it's not the case:

root@f22master:/home/ofayans]$ ping trololo.pesen.net
PING trololo.pesen.net (192.168.122.200) 56(84) bytes of data.
^C
--- trololo.pesen.net ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

root@f22master:/home/ofayans]$ ipa service-add
someservice/trololo.pesen.net
ipa: ERROR: Host does not have corresponding DNS A/ record
root@f22master:/home/ofayans]$ ipa dnsrecord-show
Record name: trololo
Zone name: pesen.net.
  Record name: trololo
  A record: 192.168.122.200







When I then use --force to create the host anyway and then try to add a
service to this host, I get the same error:

ofayans@f22master:~]$ ipa service-add
Principal: fortest/fortest.pesen.net
ipa: ERROR: The host 'fortest.pesen.net' does not exist to add a
service
to.



This error tells that the host entry does not exist.






--
Oleg Fayans
Quality Engineer
FreeIPA team
RedHat.

--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code


Re: [Freeipa-devel] Host does not have corresponding DNS A/AAAA record

2015-10-20 Thread Martin Basti



On 20.10.2015 10:17, Oleg Fayans wrote:



On 10/20/2015 10:10 AM, Petr Vobornik wrote:

On 10/20/2015 09:57 AM, Oleg Fayans wrote:

Hi,

I keep hitting a strange issue: when I create a dnsrecord manually and
then try to create the host, it complains that the host does not have
corresponding DNS A/ record.

ofayans@f22master:~]$ ipa dnsrecord-add
Record name: fortest
Zone name: pesen.net.
Please choose a type of DNS resource record to be added
The most common types for this type of zone are: A, 

DNS resource record type: A
A IP Address: 192.168.122.253
   Record name: fortest
   A record: 192.168.122.253
ofayans@f22master:~]$ ipa host-add
Host name: fortest.pesen.net
ipa: ERROR: Host does not have corresponding DNS A/ record
ofayans@f22master:~]$ ping fortest
PING fortest.pesen.net (192.168.122.253) 56(84) bytes of data.


The check uses DNS resolution to get the info. Does it work well?

It works, I added an output of ping command to show that

dnsrecord-add and host-add works for me, A records is resolvable.

Do you have configured /etc/resolv.conf properly on host? (or network 
manager DNS configuration)?




Other option is to add host with --ip-address option so you can skip the
dnsrecord-add call.


I know, but there must be a way to fix the host if an admin forgot to 
add this option. So, ideally, I should be able to create a host, then 
add a dnsrecord, then add a service. Now, obviously it's not the case:


root@f22master:/home/ofayans]$ ping trololo.pesen.net
PING trololo.pesen.net (192.168.122.200) 56(84) bytes of data.
^C
--- trololo.pesen.net ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

root@f22master:/home/ofayans]$ ipa service-add 
someservice/trololo.pesen.net

ipa: ERROR: Host does not have corresponding DNS A/ record
root@f22master:/home/ofayans]$ ipa dnsrecord-show
Record name: trololo
Zone name: pesen.net.
  Record name: trololo
  A record: 192.168.122.200







When I then use --force to create the host anyway and then try to add a
service to this host, I get the same error:

ofayans@f22master:~]$ ipa service-add
Principal: fortest/fortest.pesen.net
ipa: ERROR: The host 'fortest.pesen.net' does not exist to add a 
service

to.



This error tells that the host entry does not exist.




--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code


Re: [Freeipa-devel] Host does not have corresponding DNS A/AAAA record

2015-10-20 Thread Oleg Fayans



On 10/20/2015 10:10 AM, Petr Vobornik wrote:

On 10/20/2015 09:57 AM, Oleg Fayans wrote:

Hi,

I keep hitting a strange issue: when I create a dnsrecord manually and
then try to create the host, it complains that the host does not have
corresponding DNS A/ record.

ofayans@f22master:~]$ ipa dnsrecord-add
Record name: fortest
Zone name: pesen.net.
Please choose a type of DNS resource record to be added
The most common types for this type of zone are: A, 

DNS resource record type: A
A IP Address: 192.168.122.253
   Record name: fortest
   A record: 192.168.122.253
ofayans@f22master:~]$ ipa host-add
Host name: fortest.pesen.net
ipa: ERROR: Host does not have corresponding DNS A/ record
ofayans@f22master:~]$ ping fortest
PING fortest.pesen.net (192.168.122.253) 56(84) bytes of data.


The check uses DNS resolution to get the info. Does it work well?

It works, I added an output of ping command to show that


Other option is to add host with --ip-address option so you can skip the
dnsrecord-add call.


I know, but there must be a way to fix the host if an admin forgot to 
add this option. So, ideally, I should be able to create a host, then 
add a dnsrecord, then add a service. Now, obviously it's not the case:


root@f22master:/home/ofayans]$ ping trololo.pesen.net
PING trololo.pesen.net (192.168.122.200) 56(84) bytes of data.
^C
--- trololo.pesen.net ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

root@f22master:/home/ofayans]$ ipa service-add someservice/trololo.pesen.net
ipa: ERROR: Host does not have corresponding DNS A/ record
root@f22master:/home/ofayans]$ ipa dnsrecord-show
Record name: trololo
Zone name: pesen.net.
  Record name: trololo
  A record: 192.168.122.200







When I then use --force to create the host anyway and then try to add a
service to this host, I get the same error:

ofayans@f22master:~]$ ipa service-add
Principal: fortest/fortest.pesen.net
ipa: ERROR: The host 'fortest.pesen.net' does not exist to add a service
to.



This error tells that the host entry does not exist.


--
Oleg Fayans
Quality Engineer
FreeIPA team
RedHat.

--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code


Re: [Freeipa-devel] Host does not have corresponding DNS A/AAAA record

2015-10-20 Thread Petr Vobornik

On 10/20/2015 09:57 AM, Oleg Fayans wrote:

Hi,

I keep hitting a strange issue: when I create a dnsrecord manually and
then try to create the host, it complains that the host does not have
corresponding DNS A/ record.

ofayans@f22master:~]$ ipa dnsrecord-add
Record name: fortest
Zone name: pesen.net.
Please choose a type of DNS resource record to be added
The most common types for this type of zone are: A, 

DNS resource record type: A
A IP Address: 192.168.122.253
   Record name: fortest
   A record: 192.168.122.253
ofayans@f22master:~]$ ipa host-add
Host name: fortest.pesen.net
ipa: ERROR: Host does not have corresponding DNS A/ record
ofayans@f22master:~]$ ping fortest
PING fortest.pesen.net (192.168.122.253) 56(84) bytes of data.


The check uses DNS resolution to get the info. Does it work well?

Other option is to add host with --ip-address option so you can skip the 
dnsrecord-add call.





When I then use --force to create the host anyway and then try to add a
service to this host, I get the same error:

ofayans@f22master:~]$ ipa service-add
Principal: fortest/fortest.pesen.net
ipa: ERROR: The host 'fortest.pesen.net' does not exist to add a service
to.



This error tells that the host entry does not exist.
--
Petr Vobornik

--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code


[Freeipa-devel] Host does not have corresponding DNS A/AAAA record

2015-10-20 Thread Oleg Fayans

Hi,

I keep hitting a strange issue: when I create a dnsrecord manually and 
then try to create the host, it complains that the host does not have 
corresponding DNS A/ record.


ofayans@f22master:~]$ ipa dnsrecord-add
Record name: fortest
Zone name: pesen.net.
Please choose a type of DNS resource record to be added
The most common types for this type of zone are: A, 

DNS resource record type: A
A IP Address: 192.168.122.253
  Record name: fortest
  A record: 192.168.122.253
ofayans@f22master:~]$ ipa host-add
Host name: fortest.pesen.net
ipa: ERROR: Host does not have corresponding DNS A/ record
ofayans@f22master:~]$ ping fortest
PING fortest.pesen.net (192.168.122.253) 56(84) bytes of data.

When I then use --force to create the host anyway and then try to add a 
service to this host, I get the same error:


ofayans@f22master:~]$ ipa service-add
Principal: fortest/fortest.pesen.net
ipa: ERROR: The host 'fortest.pesen.net' does not exist to add a service to.



--
Oleg Fayans
Quality Engineer
FreeIPA team
RedHat.

--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code