Bug #3610
closed--reset-db error detection does not work
Description
The problem is that rake db:drop returns 0 even when there are errors. We should detect whether anything was on STDOUT and in such case report a warning otherwise suppose it ran ok.
Updated by Marek Hulán over 10 years ago
- Project changed from Kafo to Installer
- Status changed from New to Assigned
- Assignee set to Marek Hulán
Updated by Marek Hulán over 10 years ago
This won't be that easy because there can be deprecation warnings on STDOUT (from fog atm) and STDERR can contain warnings like "program compiled against libxml 209 using older 208".
I think the only correct solution is to wait until this PR gets merged https://github.com/rails/rails/pull/12531 which is targeted 4.1.0 (unless they backport it). Meanwhile we should document this somehow?
Updated by Greg Sutcliffe over 10 years ago
I think documentation is fine while we wait.
Updated by Marek Hulán over 10 years ago
- Status changed from Assigned to New
Explanation is now part of installer help - see https://github.com/theforeman/foreman-installer/pull/78. Moving this to new status until rake db:drop returns meaningful error code.
Updated by Marek Hulán over 10 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset 76518ecbbb0ba07e71555e4a495f685876e68202.