Bug 1138651 - rhevm-setup fails
Summary: rhevm-setup fails
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-setup
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.5.0
Assignee: Sandro Bonazzola
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks: 1029507 1190655
TreeView+ depends on / blocked
 
Reported: 2014-09-05 11:22 UTC by Fabian Deutsch
Modified: 2015-02-09 11:02 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-05 13:18:06 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Transcript of what I've done (1.66 KB, text/plain)
2014-09-05 11:22 UTC, Fabian Deutsch
no flags Details
engine-setup log (218.88 KB, text/plain)
2014-09-05 11:24 UTC, Fabian Deutsch
no flags Details
rpm -qa | sort (31.03 KB, text/plain)
2014-09-05 12:24 UTC, Fabian Deutsch
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.