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
F14061604: D15987.diff
Mon, Nov 18, 7:29 AM
F14046337: D15987.diff
Wed, Nov 13, 8:23 PM
F14035420: D15987.diff
Sun, Nov 10, 5:51 AM
F14021566: D15987.diff
Wed, Nov 6, 9:57 AM
F14005480: D15987.diff
Sun, Oct 27, 1:49 PM
F13987494: D15987.diff
Mon, Oct 21, 9:45 AM
F13987448: D15987.diff
Mon, Oct 21, 9:31 AM
F13987443: D15987.diff
Mon, Oct 21, 9:31 AM
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.