Page MenuHomePhabricator

Don't stop on read-only mode for read-only storage workflows
ClosedPublic

Authored by epriestley on May 30 2016, 3:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 9:41 PM
Unknown Object (File)
Thu, Dec 12, 10:47 PM
Unknown Object (File)
Tue, Dec 10, 12:38 AM
Unknown Object (File)
Mon, Dec 9, 5:38 PM
Unknown Object (File)
Fri, Dec 6, 10:12 AM
Unknown Object (File)
Thu, Nov 28, 5:32 AM
Unknown Object (File)
Tue, Nov 26, 9:52 PM
Unknown Object (File)
Tue, Nov 26, 3:31 PM
Subscribers
None

Details

Summary

Fixes T11042. Currently, all bin/storage workflows stop if cluster.read-only is set:

$ ./bin/storage adjust
Usage Exception: Phabricator is currently in read-only mode. Use --force to override this mode.

However, some of them (status, dump, databases, etc) are read-only anyway and safe to run. Don't prompt in these cases.

Test Plan
  • Set cluster.read-only to true.
  • Ran bin/storage dump, bin/storage status, etc. No longer received messages.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Don't stop on read-only mode for read-only storage workflows.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.May 30 2016, 3:44 PM
This revision was automatically updated to reflect the committed changes.