Bug 1138651

Summary: rhevm-setup fails
Product: Red Hat Enterprise Virtualization Manager Reporter: Fabian Deutsch <fdeutsch>
Component: ovirt-engine-setupAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED NOTABUG QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: high    
Version: 3.5.0CC: acathrow, bazulay, didi, ecohen, eedri, fdeutsch, gklein, iheim, lveyde, Rhev-m-bugs, sbonazzo, stirabos, yeylon
Target Milestone: ---Keywords: TestBlocker, Triaged
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-05 13:18:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1029507, 1190655    
Attachments:
Description Flags
Transcript of what I've done
none
engine-setup log
none
rpm -qa | sort none

Description Fabian Deutsch 2014-09-05 11:22:35 UTC
Created attachment 934748 [details]
Transcript of what I've done

Description of problem:
rhevm-setup fails when looking for engine-setup.

Version-Release number of selected component (if applicable):
# rpm -q rhevm-setup
rhevm-setup-3.5.0-0.10.master.el6ev.noarch

How reproducible:
always

Steps to Reproduce:
1. install rhevm
2. run: rhevm-setup
3.

Actual results:
See attached logs

Expected results:
rhevm-setup completes

Additional info:

Comment 1 Fabian Deutsch 2014-09-05 11:23:13 UTC
Marking as urgent, as it's blocking the RHEV M Appliance

Comment 2 Fabian Deutsch 2014-09-05 11:24:09 UTC
Created attachment 934749 [details]
engine-setup log

Comment 4 Fabian Deutsch 2014-09-05 12:24:04 UTC
Created attachment 934766 [details]
rpm -qa | sort

Comment 5 Sandro Bonazzola 2014-09-05 12:35:17 UTC
Looks like it's working fine on a clean 6.5 install.
Looking at the logs I can see:

 ENV OSETUP_RPMDISTRO/versionLockFilter=list:'['ovirt-engine', 'redhat-support-plugin-rhev']'
 ENV OVESETUP_RPMDISTRO/packagesUpgradeList=list:'[{'packages': ['ovirt-engine'], 'group': 'ovirt-engine-3.4'}]'

Not sure where it comes from, the code looks ok.

Also I think that when you run engine-setup on the appliance you should use --offline since you don't have access to yum repositories after initial rpm setup if I've understood correctly the process..

Comment 6 Sandro Bonazzola 2014-09-05 12:35:48 UTC
Fabian can you try rebuilding with --offline?

Comment 7 Fabian Deutsch 2014-09-05 13:02:45 UTC
(In reply to Sandro Bonazzola from comment #6)
> Fabian can you try rebuilding with --offline?

Yes, that continues over this error. But I run into another one:

…
[ INFO  ] Stage: Transaction setup
[ INFO  ] Stopping engine service
[ INFO  ] Stopping ovirt-fence-kdump-listener service
[ INFO  ] Stopping websocket-proxy service
[ INFO  ] Stage: Misc configuration
[ INFO  ] Stage: Package installation
[ INFO  ] Stage: Misc configuration
[ ERROR ] Failed to execute stage 'Misc configuration': Cannot find Jboss at /usr/share/jboss-as
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20140905090107-h81hn4.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20140905090129-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed

The path does not exist, but another one:

# rpm -qf /usr/share/jbossas/
jbossas-core-7.4.0-16.Final_redhat_19.1.ep6.el6.noarch
jbossas-standalone-7.4.0-15.Final_redhat_19.1.ep6.el6.noarch

Is the setup maybe looking for a different path? Should I open a different bug?

Comment 8 Sandro Bonazzola 2014-09-05 13:05:44 UTC
Looks like you're missing /etc/ovirt-engine-setup.conf.d/10-packaging.conf .
Can you check if it exists on your system?

Comment 9 Fabian Deutsch 2014-09-05 13:07:43 UTC
# rpm -qf /etc/ovirt-engine-setup.conf.d/10-packaging.conf
rhevm-setup-plugin-ovirt-engine-3.5.0-0.10.master.el6ev.noarch

# ls -shald /etc/ovirt-engine-setup.conf.d/10-packaging.conf
4.0K -rw-r--r--. 1 root root 326 Sep  4 08:16 /etc/ovirt-engine-setup.conf.d/10-packaging.conf

# cat /etc/ovirt-engine-setup.conf.d/10-packaging.conf
[environment:default]
OVESETUP_APACHE/configureRootRedirectionDefault=bool:True
OVESETUP_CONFIG/jbossHome=str:/usr/share/jbossas
OVESETUP_CONFIG/validFirewallManagers=str:iptables
OVESETUP_RPMDISTRO/enginePackages=str:rhevm
OVESETUP_RPMDISTRO/engineSetupPackages=str:rhevm-setup
OVESETUP_RPMDISTRO/upgradeYumGroup=str:rhevm35

It seems to exist

Comment 10 Sandro Bonazzola 2014-09-05 13:18:06 UTC
You're replacing the whole configuration using --config instead of --config-append.

Please fix the build using --config-append