Re: [Freeipa-users] unable to add or remove host (exists but doesn't exist) 4.2

2016-09-28 Thread Rob Crittenden

"Răzvan Corneliu C.R. VILT" wrote:

Hi Jake,

 From the output below (assuming a non-altered copy+paste), the host-add
request is interpreted by ipa as "server100.example.com
" while the delete is interpreted as
"server100.example.com ". If that's the
case, try using quotes or searching the LDAP manually for the entry to
see the actual registered hostname. If what I'm seeing over here is
correct, you might be able to fix it by issuing:
ipa host-del "server100.example.com "
(use quotes when issuing the command).

Then again, it might be a wrong copy+paste.


Yeah, that quoted space sure looks strange. I think this suggestion is 
good, though I'm not sure how an embedded space could happen.


An ldapsearch might give additional feedback, something like:

$ kinit admin
$ ldapsearch -Y GSSAPI -b cn=computers,cn=accounts,dc=example,dc=com 
fqdn="*server100*"


rob



Cheers,
Răzvan

On 28 Sep 2016, at 22:15, Jake mailto:free...@jacobdevans.com>> wrote:

One of my tech's had an issue adding a machine, now it seems to be stuck.

it can neither be added or removed

-bash-4.2$ ipa host-add server100.example.com  --force
ipa: ERROR: host with name " server100.example.com
" already exists


-bash-4.2$ ipa host-del server100.example.com 
ipa: ERROR: server100.example.com : host
not found


IP web client gives this error:


Operations Error

Some operations failed.
Hide details 

 *
server100.example.com : host not found


Attempts to delete it via webui


Operations Error

Some entries were not deleted
Hide details 

 *
server100.example.com : host not found



--
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project






--
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

Re: [Freeipa-users] unable to add or remove host (exists but doesn't exist) 4.2

2016-09-28 Thread Răzvan Corneliu C.R. VILT
Hi Jake,

From the output below (assuming a non-altered copy+paste), the host-add request 
is interpreted by ipa as "server100.example.com 
" while the delete is interpreted as 
"server100.example.com ". If that's the case, 
try using quotes or searching the LDAP manually for the entry to see the actual 
registered hostname. If what I'm seeing over here is correct, you might be able 
to fix it by issuing:
ipa host-del "server100.example.com "
(use quotes when issuing the command).

Then again, it might be a wrong copy+paste.

Cheers,
Răzvan
> On 28 Sep 2016, at 22:15, Jake  wrote:
> 
> One of my tech's had an issue adding a machine, now it seems to be stuck.
> 
> it can neither be added or removed
> 
> -bash-4.2$ ipa host-add server100.example.com --force
> ipa: ERROR: host with name " server100.example.com" already exists
> 
> 
> -bash-4.2$ ipa host-del server100.example.com
> ipa: ERROR: server100.example.com: host not found
> 
> 
> IP web client gives this error:
> 
> 
> Operations Error
> Some operations failed.
> Hide details 
> server100.example.com: host not found
> 
> Attempts to delete it via webui
> Operations Error
> Some entries were not deleted
> Hide details 
> server100.example.com: host not found
> 
> 
> -- 
> Manage your subscription for the Freeipa-users mailing list:
> https://www.redhat.com/mailman/listinfo/freeipa-users
> Go to http://freeipa.org for more info on the project

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

[Freeipa-users] unable to add or remove host (exists but doesn't exist) 4.2

2016-09-28 Thread Jake
One of my tech's had an issue adding a machine, now it seems to be stuck. 

it can neither be added or removed 

-bash-4.2$ ipa host-add server100 .example.com --force 
ipa: ERROR: host with name " server100 .example.com " already exists 


-bash-4.2$ ipa host-del server100 .example.com 
ipa: ERROR: server100.example.com: host not found 


IP web client gives this error: 


Operations Error 


Some operations failed. 
[ https://c05-rd-ipa01.ipa.clarkinc.io/ipa/ui/# | Hide details ] 


* 

server100.example.com: host not found 

Attempts to delete it via webui 
Operations Error 


Some entries were not deleted 
[ https://c05-rd-ipa01.ipa.clarkinc.io/ipa/ui/# | Hide details ] 


* 

server100.example.com : host not found 


-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project