6cc10d17de04a7ec19727880cd112898ca25d238
24 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
Yuan Zhou
|
6cc10d17de |
Update bin scripts to be storage policy aware
swift-container-info: Print policy container info swift-object-info: Allow to specify storage policy name when looking for object info Notify if there is missmatch between ring location and the actual object path in filesystem swift-get-nodes: Allow to specify storage policy name when looking for account/ container/object ring location Notify if there is missmatch between ring and the policy Lookup policy name in swift.conf; 'Legacy' container will use policy-0's name; 'Unknown' is shown if policy not found in swift.conf DocImpact Implements: blueprint storage-policies Change-Id: I450d40dc6e2d8f759187dff36d658e52737ae2a5 |
||
|
Yuan Zhou
|
4b7bab9fc9 |
Update swift-get-nodes to use storage_directory util func
Change-Id: I074d6c5f62e5218427c72b3e11de40da4ecfc0ab |
||
|
Peter Portante
|
9411a24ba7 |
Revert "Refactor common/utils methods to common/ondisk"
This reverts commit
|
||
|
Jenkins
|
111ebb9a4b | Merge "Fix bad hash_path reference" | ||
|
Peter Portante
|
61e135e211 |
Fix bad hash_path reference
Mea culpa: these two scripts were missed in commit: https://review.openstack.org/46956 Fixes bug 1235441 Change-Id: I4303bc808448a79bddbb991526b0cca26150b392 Signed-off-by: Peter Portante <peter.portante@redhat.com> |
||
|
ZhiQiang Fan
|
f72704fc82 |
Change OpenStack LLC to Foundation
Change-Id: I7c3df47c31759dbeb3105f8883e2688ada848d58 Closes-bug: #1214176 |
||
|
Kun Huang
|
cb69dc881a |
Give friendly notification in swift-get-nodes
Hard coding of '/srv/node' maybe drive to some errors. But it seems unfixable (please see talks in bug report). To avoid erros as we can, showing a friendly notification to let user set their own device location works better than hard coding directly. Change-Id: I45d749dd52af8d3b051dfe98dbb9d71a5a374f97 Fixes: bug #907908 |
||
|
Samuel Merritt
|
7548cb9c47 |
Make rings' replica counts adjustable.
Example: $ swift-ring-builder account.builder set_replicas 4 $ swift-ring-builder rebalance This is a prerequisite for supporting globally-distributed clusters, as operators of such clusters will probably want at least as many replicas as they have regions. Therefore, adding a region requires adding a replica. Similarly, removing a region lets an operator remove a replica and save some money on disks. In order to not hose clusters with lots of data, swift-ring-builder now allows for setting of fractional replicas. Thus, one can gradually increase the replica count at a rate that does not adversely affect cluster performance. Example: $ swift-ring-builder object.builder set_replicas 3.01 $ swift-ring-builder object.builder rebalance <distribute rings and wait> $ swift-ring-builder object.builder set_replicas 3.02 $ swift-ring-builder object.builder rebalance <distribute rings and wait>... Obviously, fractional replicas are nonsensical for a single partition. A fractional replica count is for the whole ring, not for any individual partition, and indicates the average number of replicas of each partition. For example, a replica count of 3.2 means that 20% of partitions have 4 replicas and 80% have 3 replicas. Changes do not take effect until after the ring is rebalanced. Thus, if you mean to go from 3 replicas to 3.01 but you accidentally type 2.01, no data is lost. Additionally, 'swift-ring-builder X.builder create' can now take a decimal argument for the number of replicas. DocImpact Change-Id: I12b34dacf60350a297a46be493d5d171580243ff |
||
|
David Goetz
|
ded504600f |
Allow actual paths to work for swift-get-nodes
Change-Id: I29f9ab73c8ca2a3c52247fb92ef951dd5b5246cb |
||
|
Samuel Merritt
|
35f4d29ed6 |
Upgrade pep8 to 1.3.3.
This required a bunch of whitespace-poking of the scripts in bin, but that's all. Now every file in swift/ and bin/ is pep8-1.3.3-compliant, so hopefully we can be done with this pep8 stuff for a good long time. Change-Id: I44fdb41d219c57400a4c396ab7eb0ffa9dcd8db8 |
||
|
gholt
|
e415e4d235 |
Added partition option to swift-get-nodes
Sometimes you just want to know what machines a given partition should be on, or what handoffs that partition would use if needed. We've been meaning to add this option to swift-get-nodes for quite some time, but I just finally got to it. Example: swift-get-nodes /etc/swift/object.ring.gz -p 123 I tried to leave as much of the existing swift-get-nodes unaltered, so the output isn't exactly distilled to just what you'd need for getting a partition's nodes. But it should suffice for what it is, an admin tool. Change-Id: I438400ddc0eecbf9c48266e7f38a2e4f0765f374 |
||
|
Samuel Merritt
|
67af56b156 |
Make swift-get-nodes -a show all handoffs.
Commit
|
||
|
gholt
|
95786e577c |
Update swift-get-nodes to return fewer more_nodes
Changed swift-get-nodes to just return up to replica_count of more_nodes instead of all of them. When you have thousands of drives, returning all possible handoff nodes is pretty crazy. :) Change-Id: I864e7243726ca3ef2ac08c4ab660a05789f37878 |
||
|
Samuel Merritt
|
8e6f099daa |
Speed up swift-get-nodes by 2x.
It was loading the ring off disk once to print the primary nodes, and then loading the whole thing off disk again to print the handoff nodes. Changed it to only load the ring off disk once. Change-Id: I6f4cd0af9762e1e69660c3eb20586590b5339e5f |
||
|
John Dickinson
|
1ecf5ebba1 |
updated copyright date for all files
Change-Id: Ifd909d3561c2647770a7e0caa3cd91acd1b4f298 |
||
|
David Goetz
|
51ce438f7f | changing /usr/bin/python to /usr/bin/env python | ||
|
Anne Gentle
|
8823427161 | Changed copyright notices on py files and the single rst file with a copyright notice | ||
|
gholt
|
57970bdeb5 | Cleaned up the bins; patched the broken test (when run standalone) | ||
|
Michael Barton
|
f432269013 | add gettext to all binaries | ||
|
Jay Payne
|
013194b71b | corrected dir order and spelling errors in ls section | ||
|
Jay Payne
|
12d8f14891 | Fixed pep8 errors, dir error in the listing, made dryer | ||
|
Jay Payne
|
cbbfb80f86 | Clean up code that was requested | ||
|
Jay Payne
|
e61c21b98f | Adds HandOff locations to the various displays | ||
|
Monty Taylor
|
76e6c6ea6c |
Renamed bin files in the tree so that setup.py install does the same thing
as a deb install. |