239 Commits

Author SHA1 Message Date
Dean Troyer
6800ec378b Blueprint cli-auth: common cli args
Add --auth_url, --username and --password and OS_* env vars as
aliases to --auth, --user and --key.

Default to --auth-version=2.0 if none of --auth, --user or --key
are set or if OS_AUTH_URL is set.

Ensure trailing '/' is present in --auth so URLs are created correctly.

Fixes lp925212

Change-Id: Ic0008c5d5c1ab4fddbaab5d982ab60fed2c50019
2012-02-08 15:06:40 -06:00
gholt
0406323f9b Added timeout option to swift-recon
Change-Id: I0d3c55a11c5e3252f0fd4b128ab840403c7f55f6
2012-02-08 00:06:55 +00:00
Thierry Carrez
b23d2eb422 Drop eval-based json parser fallback
Drop potentially-unsafe eval-based json parser that was
used as a fallback in case simplejson and json were not
available. Let's assume people run Python 2.6 or can
install simplejson if they are not. Fixes bug 909568.

Change-Id: I1b1860a77de5075fcea291a4f1b320a3e9e6261f
2012-01-24 16:34:13 +01:00
Chmouel Boudjnah
36af76fb9d Make binaries executables.
Set the excecutable bit on swift-form-signature swift-object-expirer
swift-init swift-temp-url binaries. Fixes bug 918430

Change-Id: Iafecf0b542ee8f607e765879edbffa1cb463d3eb
2012-01-18 16:08:26 -06:00
Jenkins
05ae8686b9 Merge "Bug #904830: use type==object-store instead of name==swift from service catalog" 2012-01-12 15:37:24 +00:00
gholt
7fc1721d7d TempURL and FormPost Middleware
Change-Id: I8d2ce2abdfe3a44605c9441ad7b1abc6c77e282d
2012-01-10 21:57:52 +00:00
Donagh McCabe
6fe46ad056 Bug #904830: use type==object-store instead of name==swift from service catalog
The name field in the service catalog is an operator-specified, marketing name.
The type field contains the canonical name for the service (i.e., swift is
object-store).

Change-Id: I8556b3e6fddd8784f259170195352478d9c6ae32
2012-01-05 11:12:13 +00:00
Jenkins
89ef1f40f5 Merge "Added swift-orphans and swift-oldies." 2012-01-03 20:43:16 +00:00
gholt
65dba1a7aa Added swift-orphans and swift-oldies.
Change-Id: I95210098556a22d7bd05f245ae387ee13041fa61
2011-12-29 19:19:41 +00:00
John Dickinson
35c1dd85ba Added option to allow marker queries when downloading accounts or containers
Change-Id: I5e70481d975ee6b771b8c784d8e181ce79fa3b0f
2011-12-20 10:18:16 -06:00
Jenkins
42e161c2cf Merge "Add sockstat info to recon." 2011-11-16 00:34:36 +00:00
Jenkins
3a1d6695f2 Merge "Add support for OS Auth API version 2" 2011-11-15 19:31:20 +00:00
Florian Hines
413ca11a5f Add sockstat info to recon.
Add's support for pulling info from /proc/net/sockstat and /proc/net/sockstat6 via recon.

Change-Id: Idb403c6eda199c5d36d96cc9027ee249c12c7d8b
2011-11-15 17:55:14 +00:00
Florian Hines
3b8e20d059 Fixes bug 887278. The disk usage graph will now be drawn correctly.
Change-Id: I75cf87e409fefa701eea5019f2449757e55eba2f
2011-11-07 19:38:56 +00:00
Chmouel Boudjnah
310675f773 Add support for OS Auth API version 2
Add a switch -2 to allow authenticate against service providing
OpenStack auth version 2.0 (ie: keystone).

By default it will authenticate against v1.0 and you can explicitely
force it by adding a --auth-version 1 if in future we decide to set 2.0
auth as default.

It will handle the format tenant:user to indentify to a specific tenant,
if this format is not specified it will assume user is the same as
tenant.

Change-Id: I4684ec1e0950a1dae6935486aa730eaf13d6cd46
2011-11-01 19:39:58 +01:00
gholt
872420efdb Expiring Objects Support
Please see the doc/source/overview_expiring_objects.rst for
more detail.

Change-Id: I4ab49e731248cf62ce10001016e0c819cc531738
2011-11-01 15:49:00 +00:00
Jenkins
c1cbd82f0f Merge "make drive audit regexes detect 4-letter drives" 2011-10-14 19:09:06 +00:00
Jenkins
6d4fafd8b9 Merge "Query only specific zone via swift-recon" 2011-10-14 16:13:35 +00:00
Mike Barton
b3c2800497 make drive audit regexes detect 4-letter drives
addresses bug 827913

Change-Id: I691eee191f5951186158c553281f88aae9e5d25f
2011-09-30 00:17:35 +00:00
Florian Hines
480df2e89e Query only specific zone via swift-recon
Add support to query only specific zones, as well a --all shortcut flag to run all checks.
Also skip deleted devices when trying to grab hosts from the ring.

Change-Id: I441ec76c90857c2e74262a7a9e2d36de89b28631
2011-09-28 01:00:31 -05:00
Mark Gius
2f50a0798e Add more specific error messages to swift-ring-builder
Replace existing Exceptions in ring builder with more specific exceptions.
Abstracted out some behavior in ring-builder that is likely to cause an
exception. Add try/except blocks to swift-ring-builder to catch specific
exceptions and provide the user with some information about how to deal
with the error.

This change begins to address blueprint friendly-error-messages

Change-Id: I8fc9cfa4899421fe04bba23ac52523778e902321
2011-09-27 10:20:51 -07:00
Jenkins
296de6ed76 Merge "Changes swift-ring-builder exit codes" 2011-09-27 14:40:50 +00:00
Chmouel Boudjnah
1397fa799b Fix swift-recon
Make sure there is things in the row of ring_data.devs.
Adjust else: for the driver information.

Change-Id: I11a949dfa3f36691f86f3b7330d65e435c22da24
2011-09-26 15:31:48 +02:00
Mark Gius
1ad31af887 Changes swift-ring-builder exit codes
swift-ring-builder will now return zero for successful operations and
non-zero for operations that have errored or need attention.

Fixes bug 836922

Change-Id: I8d18a49fcf239f7cc7bfe4cdb468ac849436122e
2011-09-20 14:53:53 -07:00
Florian Hines
e9b5cb83ac simplejson import and exception/logging fixes 2011-09-01 13:46:13 -05:00
Florian Hines
8b6126984c object-replicator now optionally updates recon stats directly. also updated swift-recon-cron with a cleaner python version. 2011-08-31 02:14:35 -05:00
Florian Hines
f96efd9b51 Add support for pulling quarantine stats. 2011-08-18 22:32:31 +00:00
Florian Hines
dcd39d098f account for parent/.. hardlinks 2011-08-12 16:29:13 -05:00
Florian Hines
44803a835d add quarantine stats 2011-08-12 15:01:28 -05:00
Marcelo Martins
64381be141 Updated the swift tool so that when uploading an object giving the full path, such as e.g: /etc/vim/vimrc , it will strip the initial "/" from the object name. 2011-08-12 18:53:12 +00:00
Marcelo Martins
6bd22e7223 made a small change in the _object_job function in order to have the initial foward slash stripped off an object name when one exits 2011-07-28 22:32:40 +00:00
Florian Hines
749892338b few fixes to temp cronjob 2011-07-27 22:29:23 -05:00
Florian Hines
aa622eb799 recon middlewear for the object server and utils for cluster monitoring 2011-07-27 10:41:07 -05:00
gholt
b6153425b8 Updated swift util with client.py changes. 2011-07-07 14:24:37 +00:00
gholt
8c24a70139 Merged from trunk 2011-06-30 21:52:09 +00:00
gholt
552fa38ed1 Doc updates 2011-06-22 15:05:23 +00:00
John Dickinson
65d79d18b5 merged with trunk 2011-06-15 14:05:28 -05:00
gholt
599aedae95 Readded changes to bin/swift after merge from trunk 2011-06-14 23:14:28 +00:00
gholt
ba4f74d4fe Merge from trunk 2011-06-14 23:13:47 +00:00
gholt
67c9d4d78f Removing bin/st in prep for merge from trunk 2011-06-14 23:13:37 +00:00
John Dickinson
0eeeae664e renamed st to swift 2011-06-14 11:04:06 -05:00
John Dickinson
5949217ce1 removed basic slogging code 2011-06-13 15:57:32 -05:00
gholt
bbeed736c1 st: resync with client.py changes 2011-06-03 02:39:31 +00:00
gholt
b4221114c5 Merged with deswauth 2011-06-03 00:11:32 +00:00
gholt
ce710a54a5 Merged with trunk 2011-06-01 20:43:10 +00:00
gholt
3ee4a01100 Remove swauth; update references from swauth to testauth. 2011-05-26 02:17:42 +00:00
David Goetz
1dd4073463 allow override new_log_cutoff 2011-05-24 13:51:07 -07:00
David Goetz
ccba2046cb allow override regex for source_filename_pattern 2011-05-24 13:23:12 -07:00
gholt
7c19657d1d swift-ring-builder: Added list_parts command which shows common partitions for a given list of devices. 2011-05-23 20:22:23 +00:00
gholt
6889b4dbf3 client.py: Will retry on 408s
client.py: Will treat empty contents as resettable
st: Updated copy of client.py.
st: No longer aborts everything on one error.
st: Prints when it had to retry.
st: Prints ClientExceptions without the full stack trace.
st: Aborts manifest creation if segments couldn't be uploaded.
2011-05-20 16:22:21 +00:00