Skip to content

Instantly share code, notes, and snippets.

@HugoKuo
HugoKuo / expirer-check.py
Created January 8, 2018 05:23 — forked from clayg/expirer-queue-cleanup.py
Poke around at expired objects
#!/usr/bin/env python
#
# This looks at what's in the expiring objects queue, asks the object
# servers for the current real state of the objects, and then prints it all
# out.
import argparse
import sys
import itertools
import eventlet
@HugoKuo
HugoKuo / list_expired.py
Created January 8, 2018 05:21 — forked from clayg/list_expired.py
this will list expired objects from the .expiring_objects account in a format that you can feed to swift-integrity do_delete
import sys
import time
import urllib
from swift.common.internal_client import InternalClient
from swift.container.sync import ic_conf_body
from swift.common.wsgi import ConfigString
from swift.common.utils import split_path