Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1856907

Summary: Failed to add additional host using SSH Public Key (radio button) option.
Product: [oVirt] ovirt-engine Reporter: Nikolai Sednev <nsednev>
Component: ovirt-host-deploy-ansibleAssignee: Dana <delfassy>
Status: CLOSED WORKSFORME QA Contact: Nikolai Sednev <nsednev>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4.1.8CC: bugs, mperina, sbonazzo
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-16 07:37:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
ovirt-host-deploy-ansible.log
none
sosreport from the engine none

Description Nikolai Sednev 2020-07-14 16:52:47 UTC
Created attachment 1701079 [details]
ovirt-host-deploy-ansible.log

Description of problem:
"msg" : "Unknown Error occured: freeipa-client conflicts with (installed) ipa-client-4.8.4-7.module+el8.2.0+60
47+59605870.x86_64"

Opening this as a separate bug forth to https://bugzilla.redhat.com/show_bug.cgi?id=1057575#c15. I've failed to add additional none HE host to separate host-cluster using SSH Public Key option from "Hosts->New->General->Authentication->SSH Public Key (radio button)".

Version-Release number of selected component (if applicable):
Software Version:4.4.1.8-0.7.el8ev
rhvm-appliance-4.4-20200707.0.el8ev.x86_64
ovirt-hosted-engine-setup-2.4.5-1.el8ev.noarch
ovirt-hosted-engine-ha-2.4.4-1.el8ev.noarch
Linux 4.18.0-193.14.1.el8_2.x86_64 #1 SMP Mon Jul 13 14:03:55 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux release 8.2 (Ootpa)


How reproducible:
100%

Steps to Reproduce:
1.Deploy HE on at least 1 ha-host.
2.Create additional host cluster "test".
3.Add new regular host to host-cluster "test" using SSH Public Key (radio button) option.

Actual results:
Addition fails with "Host puma18.scl.lab.tlv.redhat.com installation failed. Task Install ovirt-host package failed to execute. Please check logs for more details: /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20200714193220-puma18.scl.lab.tlv.redhat.com-b8eac76.log." in engine log and ""msg" : "Unknown Error occured: freeipa-client conflicts with (installed) ipa-client-4.8.4-7.module+el8.2.0+60
47+59605870.x86_64"" in /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20200714193220-puma18.scl.lab.tlv.redhat.com-b8eac76.log.nq

Expected results:
Additional host should be added and go active.

Additional info:
ovirt-host-deploy-ansible-20200714193220-puma18.scl.lab.tlv.redhat.com-b8eac76.log is attached.

Comment 1 Nikolai Sednev 2020-07-14 16:55:57 UTC
Created attachment 1701080 [details]
sosreport from the engine

Comment 2 Martin Perina 2020-07-15 07:13:14 UTC
What type of host you are using for installation? AFAIK ipa-client is the correct package and ovirt-host depends on it, no idea where you get the freeipa-client package from ...

Comment 3 Dana 2020-07-15 07:21:31 UTC
Nikolai,
here https://bugzilla.redhat.com/show_bug.cgi?id=1057575 you said the error was 'internal server error' (for which we have a fix)
Is this a different issue?

Comment 4 Nikolai Sednev 2020-07-15 11:35:30 UTC
(In reply to Martin Perina from comment #2)
> What type of host you are using for installation? AFAIK ipa-client is the
> correct package and ovirt-host depends on it, no idea where you get the
> freeipa-client package from ...

puma19.scl.lab.tlv.redhat.com
    description: Multi-system
    product: ProLiant DL170e G6 (609095-B21)
    vendor: HP
    serial: CZ3211B666
    width: 64 bits
    capabilities: smbios-2.6 dmi-2.6 smp vsyscall32
    configuration: boot=normal chassis=multi-system family=ProLiant DL2000 Multinode Platform sku=609095-B21 uuid=36303930-3935-435A-3332-313142363636
  *-core
       description: Motherboard
       product: ProLiant DL170e G6
       vendor: HP
       physical id: 0
       slot: Node 3
     *-firmware
          description: BIOS
          vendor: HP
          physical id: 0
          version: O34
          date: 12/09/2011
          size: 128KiB
          capacity: 2MiB
          capabilities: isa pci pnp upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int14serial int17printer int10video acpi usb ls120boot zipboot biosbootspecification
     *-cpu:0
          description: CPU
          product: Intel(R) Xeon(R) CPU           E5645  @ 2.40GHz
          vendor: Intel Corp.
          physical id: 4
          bus info: cpu@0
          version: Intel(R) Xeon(R) CPU           E5645  @ 2.40GHz
          slot: Proc 1
          size: 1639MHz
          capacity: 3333MHz
          width: 64 bits
          clock: 133MHz
          capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 popcnt aes lahf_lm pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid dtherm arat flush_l1d cpufreq
          configuration: cores=6 enabledcores=6 threads=12

Comment 5 Nikolai Sednev 2020-07-15 11:38:09 UTC
(In reply to Dana from comment #3)
> Nikolai,
> here https://bugzilla.redhat.com/show_bug.cgi?id=1057575 you said the error
> was 'internal server error' (for which we have a fix)
> Is this a different issue?

I think its the same issue, as additional host can't be added, the end result is the same, might be with the different flavor.

Comment 6 Martin Perina 2020-07-15 11:57:59 UTC
(In reply to Nikolai Sednev from comment #4)
> (In reply to Martin Perina from comment #2)
> > What type of host you are using for installation? AFAIK ipa-client is the
> > correct package and ovirt-host depends on it, no idea where you get the
> > freeipa-client package from ...
> 
> puma19.scl.lab.tlv.redhat.com

Are you sure this is the host which failed to install? Because ovirt-host package is successfully installed on above and dnf can't find any clue about freeipa* package
So I'd really like to know where did you get freeipa* package from.



(In reply to Nikolai Sednev from comment #5)
> (In reply to Dana from comment #3)
> > Nikolai,
> > here https://bugzilla.redhat.com/show_bug.cgi?id=1057575 you said the error
> > was 'internal server error' (for which we have a fix)
> > Is this a different issue?
> 
> I think its the same issue, as additional host can't be added, the end
> result is the same, might be with the different flavor.

Are you sure that you get internal server error and not an standard error in audit_log with detailed message "Unknown Error occured: freeipa-client conflicts with (installed) ipa-client-4.8.4-7.module+el8.2.0+6047+59605870.x86_64"?

Comment 7 Nikolai Sednev 2020-07-15 14:06:14 UTC
(In reply to Martin Perina from comment #6)
> (In reply to Nikolai Sednev from comment #4)
> > (In reply to Martin Perina from comment #2)
> > > What type of host you are using for installation? AFAIK ipa-client is the
> > > correct package and ovirt-host depends on it, no idea where you get the
> > > freeipa-client package from ...
> > 
> > puma19.scl.lab.tlv.redhat.com
> 
> Are you sure this is the host which failed to install?
Correct, in my setup I used puma18.scl.lab.tlv.redhat.com as additional ha-host, but the hardware is the same.

> Because ovirt-host
> package is successfully installed on above and dnf can't find any clue about
> freeipa* package
> So I'd really like to know where did you get freeipa* package from.
I took this from the attached log. I don't even seen freeipa* in yum list or on host. Probably during installation of additional host using SSH Public Key option, it's being required, this is not happening if adding additional host using password instead of SSH Public Key. You may take a try and the addition won't be the same. 
> 
> 
> 
> (In reply to Nikolai Sednev from comment #5)
> > (In reply to Dana from comment #3)
> > > Nikolai,
> > > here https://bugzilla.redhat.com/show_bug.cgi?id=1057575 you said the error
> > > was 'internal server error' (for which we have a fix)
> > > Is this a different issue?
> > 
> > I think its the same issue, as additional host can't be added, the end
> > result is the same, might be with the different flavor.
> 
> Are you sure that you get internal server error and not an standard error in
> audit_log with detailed message "Unknown Error occured: freeipa-client
> conflicts with (installed)
> ipa-client-4.8.4-7.module+el8.2.0+6047+59605870.x86_64"?
What I got is what I added to this bug in attached log. I did not mentioned in this bug "internal server error" and this time I did not seen it in UI log.

Comment 8 Martin Perina 2020-07-15 15:24:37 UTC
(In reply to Nikolai Sednev from comment #7)
> (In reply to Martin Perina from comment #6)
> > (In reply to Nikolai Sednev from comment #4)
> > > (In reply to Martin Perina from comment #2)
> > > > What type of host you are using for installation? AFAIK ipa-client is the
> > > > correct package and ovirt-host depends on it, no idea where you get the
> > > > freeipa-client package from ...
> > > 
> > > puma19.scl.lab.tlv.redhat.com
> > 
> > Are you sure this is the host which failed to install?
> Correct, in my setup I used puma18.scl.lab.tlv.redhat.com as additional
> ha-host, but the hardware is the same.

And here I also cannot find any freeipa package and also here is ovirt-host properly installed ...

> 
> > Because ovirt-host
> > package is successfully installed on above and dnf can't find any clue about
> > freeipa* package
> > So I'd really like to know where did you get freeipa* package from.
> I took this from the attached log. I don't even seen freeipa* in yum list or
> on host. Probably during installation of additional host using SSH Public
> Key option, it's being required, this is not happening if adding additional
> host using password instead of SSH Public Key. You may take a try and the
> addition won't be the same. 

I highly doubt it, AFAIK we don't do a difference between adding a host using password or using public key. Is it reproducable or was it some one time issue?

Comment 9 Nikolai Sednev 2020-07-16 07:05:05 UTC
(In reply to Martin Perina from comment #8)
> (In reply to Nikolai Sednev from comment #7)
> > (In reply to Martin Perina from comment #6)
> > > (In reply to Nikolai Sednev from comment #4)
> > > > (In reply to Martin Perina from comment #2)
> > > > > What type of host you are using for installation? AFAIK ipa-client is the
> > > > > correct package and ovirt-host depends on it, no idea where you get the
> > > > > freeipa-client package from ...
> > > > 
> > > > puma19.scl.lab.tlv.redhat.com
> > > 
> > > Are you sure this is the host which failed to install?
> > Correct, in my setup I used puma18.scl.lab.tlv.redhat.com as additional
> > ha-host, but the hardware is the same.
> 
> And here I also cannot find any freeipa package and also here is ovirt-host
> properly installed ...
Yes, I also don't understand where it originates.
> 
> > 
> > > Because ovirt-host
> > > package is successfully installed on above and dnf can't find any clue about
> > > freeipa* package
> > > So I'd really like to know where did you get freeipa* package from.
> > I took this from the attached log. I don't even seen freeipa* in yum list or
> > on host. Probably during installation of additional host using SSH Public
> > Key option, it's being required, this is not happening if adding additional
> > host using password instead of SSH Public Key. You may take a try and the
> > addition won't be the same. 
> 
> I highly doubt it, AFAIK we don't do a difference between adding a host
> using password or using public key. Is it reproducable or was it some one
> time issue?

I'ts reproducable 100% each time I'm trying to add host using SSH Public Key option. It means that host not getting added, hits an error and being offline.

Comment 10 Nikolai Sednev 2020-07-16 07:37:03 UTC
Eventually I managed to add 2 hosts puma18 and 19 to the environment using SSH Public Key option to different host-cluster and they became active. I really have no idea what caused "msg" : "Unknown Error occured: freeipa-client conflicts with (installed) ipa-client-4.8.4-7.module+el8.2.0+60
47+59605870.x86_64" and I'm not getting it reproduced. 
I'll reopen if I'll get it reproduced.
Moving to closed-worksforme.