Bug 984433 - rhqctl --install fails with : /var/lib/rhq/storage/commitlog does not exist
Summary: rhqctl --install fails with : /var/lib/rhq/storage/commitlog does not exist
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Installer
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: RHQ 4.9
Assignee: John Sanda
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-15 08:42 UTC by Libor Zoubek
Modified: 2015-11-02 00:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-24 19:09:11 UTC
Embargoed:


Attachments (Terms of Use)

Description Libor Zoubek 2013-07-15 08:42:29 UTC
Description of problem:	Since Jul 11, 2013 rhqctl fails to install 


Version-Release number of selected component (if applicable):
RHQ 4.9-master build

How reproducible:always


Steps to Reproduce:
1. chown /var/lib/rhq to current user, clean it up and run ./rhqctl --install 

Actual results:
04:38:37,834 INFO  [org.rhq.storage.installer.StorageInstaller] Running RHQ Storage Node installer...
Exception in thread "main" java.lang.IllegalArgumentException: /var/lib/rhq/storage/commitlog does not exist
        at org.apache.commons.io.FileUtils.sizeOf(FileUtils.java:2053)
        at org.rhq.storage.installer.StorageInstaller.isDirectoryEmpty(StorageInstaller.java:453)
        at org.rhq.storage.installer.StorageInstaller.run(StorageInstaller.java:311)
        at org.rhq.storage.installer.StorageInstaller.main(StorageInstaller.java:747)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.jboss.modules.Module.run(Module.java:262)
        at org.jboss.modules.Main.main(Main.java:329)

If I create /var/lib/rhq/storage/commitlog installer fails on /var/lib/rhq/storage/data does not exist


Expected results: it is able to install cassandra to empty directory


Additional info:

Comment 1 John Sanda 2013-07-15 14:36:19 UTC
I reverted the code that caused this regression. The fix should be in build 2422 of the rhq-master Jenkins job.

master commit hash: 68d4c3d2c3c

Comment 2 Heiko W. Rupp 2013-09-24 19:09:11 UTC
Bulk closing of RHQ 4.9 verified items


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