#798 error after readding a host
Closed: Fixed None Opened 13 years ago by jhrozek.

After a clean install:

[root@vm-061 ~]# ipa host-add vm-122.idm.lab.bos.redhat.com --ip-address=10.16.78.122
------------------------------------------
Added host "vm-122.idm.lab.bos.redhat.com"
------------------------------------------
  Host name: vm-122.idm.lab.bos.redhat.com
  Principal name: host/vm-122.idm.lab.bos.redhat.com@IDM.LAB.BOS.REDHAT.COM
  Managed by: vm-122.idm.lab.bos.redhat.com
[root@vm-061 ~]# ipa host-del vm-122.idm.lab.bos.redhat.com
--------------------------------------------
Deleted host "vm-122.idm.lab.bos.redhat.com"
--------------------------------------------
[root@vm-061 ~]# ipa host-add vm-122.idm.lab.bos.redhat.com --random
ipa: ERROR: missing attribute "krbPrincipalName" required by object class "krbPrincipal"
[root@vm-061 ~]# ipa host-del vm-122.idm.lab.bos.redhat.com
ipa: ERROR: vm-122.idm.lab.bos.redhat.com: host not found

I don't think this is related to re-adding a host, I think the problem is in the --random option.

Note that if there isn't already a test for --random we should probably add one to avoid another regression.

The fix causes the ipa-join to complain about the principal already existing. It might also break the logic that check if the machine is enrolled or not. This needs to be rechecked.

Metadata Update from @jhrozek:
- Issue assigned to jhrozek
- Issue set to the milestone: FreeIPA 2.0 - 2011/01 (cleanup)

7 years ago

Login to comment on this ticket.

Metadata