Bug 1541273

Summary: Generating answer file with the incorrect cpu while redeploying the HE based otopi deployment
Product: [oVirt] cockpit-ovirt Reporter: Yihui Zhao <yzhao>
Component: Hosted EngineAssignee: Ryan Barry <rbarry>
Status: CLOSED CURRENTRELEASE QA Contact: Yihui Zhao <yzhao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: ---CC: bugs, cshao, huzhao, michal.skrivanek, phbailey, qiyuan, rbarry, sbonazzo, weiwang, yaniwang, ycui
Target Milestone: ovirt-4.2.2Flags: rule-engine: ovirt-4.2+
cshao: testing_ack+
Target Release: 0.11.12   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cockpit-ovirt-0.11.12-0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-29 11:16:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1548958    
Bug Blocks:    
Attachments:
Description Flags
incorrect_cpu.png none

Description Yihui Zhao 2018-02-02 07:27:53 UTC
Created attachment 1389956 [details]
incorrect_cpu.png

Description of problem: 
When second time to deploy HE(redeploy) via cockpit, sometimes, the generating answer file include the incorrect cpu type, then redeploy failed.

Version-Release number of selected component (if applicable): 
cockpit-ws-157-1.el7.x86_64
cockpit-bridge-157-1.el7.x86_64
cockpit-storaged-157-1.el7.noarch
cockpit-dashboard-157-1.el7.x86_64
cockpit-157-1.el7.x86_64
cockpit-ovirt-dashboard-0.11.9-0.1.el7ev.noarch
cockpit-system-157-1.el7.noarch
ovirt-hosted-engine-setup-2.2.9-1.el7ev.noarch
ovirt-hosted-engine-ha-2.2.4-1.el7ev.noarch
rhvh-4.2.1.2-0.20180201.0+1
rhvm-appliance-4.2-20180125.0.el7.noarch


How reproducible: 
30% with re-deployment


Steps to Reproduce: 
1. Clean install latest RHVH4.2.1 with ks(rhvh-4.2.1.2-0.20180201.0+1)
2. Deploy HE via cockpit failed due some reasons
3. Clean the ENV and redeploy
4. Check the generating answer file


Actual results: 
1. After step4, from the answer file , include the incorrect cpu type:

"""

OVEHOSTED_VDSM/cpu=str:model_

"""

And finally, deplay failed.


Expected results: 
Redeploy HE successfully


Additional info:

Comment 1 Michal Skrivanek 2018-02-03 08:17:22 UTC
same as bug 1541328?

Comment 2 Ryan Barry 2018-02-06 22:47:03 UTC
Can you provide any other information, Yihui?

Is this actually a system with AMD CPUs? I suspect the logic used to check the CPUs is bad somehow if vdsm/libvirt are down, similar to https://bugzilla.redhat.com/show_bug.cgi?id=1528818

Comment 3 Yihui Zhao 2018-02-07 02:28:30 UTC
(In reply to Ryan Barry from comment #2)
> Can you provide any other information, Yihui?
> 
> Is this actually a system with AMD CPUs? 
Yes, the host is a system with AMD CPUs.

I suspect the logic used to check
> the CPUs is bad somehow if vdsm/libvirt are down, similar to
> https://bugzilla.redhat.com/show_bug.cgi?id=1528818

I aggree. Because when clean the previous ENV, I will stop the libvirtd service.

Also, first deployment is always ok.

Comment 4 Yihui Zhao 2018-03-02 05:56:20 UTC
Tested cockpit-ovirt-0.11.14-0.1 on RHEL7.4 without this issue.

Test version:
Red Hat Enterprise Linux Server 7.4 Beta (Maipo)
ovirt-hosted-engine-ha-2.2.6-1.el7ev.noarch
cockpit-ovirt-dashboard-0.11.14-0.1.el7ev.noarch
ovirt-hosted-engine-setup-2.2.11-1.el7ev.noarch
cockpit-storaged-158-1.el7.noarch
cockpit-bridge-157-1.el7.x86_64
cockpit-157-1.el7.x86_64
cockpit-dashboard-158-1.el7.x86_64
cockpit-ws-157-1.el7.x86_64
cockpit-system-157-1.el7.noarch
rhvm-appliance-4.2-20180202.0.el7.noarch


So, I will change the bug's status to verified.

Comment 5 Sandro Bonazzola 2018-03-29 11:16:20 UTC
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.