Red Hat Bugzilla – Bug 484950
clear-db flag does'nt do whats it says it does in the --help
Last modified: 2015-01-13 04:55:04 EST
Description of problem:
In ./install.pl --help, clear-db flag says
Clear any pre-existing database schema before installing. This
will destroy any data in the Satellite database and re-create
empty Satellite schema.
but when you try using it, it says:
# ./install.pl --clear-db
* Starting the Red Hat Network Satellite installer.
* Performing pre-install checks.
* Pre-install checks complete. Beginning installation.
* RHN Registration.
** Registration: System is already registered with RHN. Not re-registering.
* Checking for uninstalled prerequisites.
* Applying updates.
* Installing RHN packages.
* Now running spacewalk-setup.
* Setting up Oracle environment.
* Setting up database.
The embedded database appears to be already installed. Either rerun
this script with the --skip-db-install option, or use the
'/usr/share/spacewalk/setup/oracle/remove-db.sh' script to remove the embedded database and try
First --skip-db-install is not the right suggestion as I already know that there is a db I want to wipe and hence trying to use --clear-db. I guess the --clear-db should call remove-db.sh and do the needful. Instead of asking the user to run another script.
Reassigning to Jesus, the new Installer component owner.
Created attachment 859392 [details]
Patch applied to spacewalk master as
484950 - clear-db flag does not do what in --help
Also fixed man page
484950 - updated description for --clear-db
Assumption we got this in rebase. Moving to ON_QA for 5.7.
With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is
being moved to a Closed Current Release state.
The Satellite 5.7 GA Errata:
Satellite 5.7 Release Notes:
Satellite Customer Portal Blog announcement for release: