quincy: ceph-crash: drop privleges to run as "ceph" user, rather than root (CVE-2022-3650)
log.error("directory %s does not exist; please create" % postdir)
time.sleep(30)
+ log.info("pinging cluster to exercise our key")
+ pr = subprocess.Popen(args=['timeout', '30', 'ceph', '-s'])
+ pr.wait()
+
log.info("monitoring path %s, delay %ds" % (args.path, args.delay * 60.0))
while True:
- scrape_path(args.path)
+ try:
+ scrape_path(args.path)
+ except Exception as e:
+ log.error(f"Error scraping {args.path}: {e}")
if args.delay == 0:
sys.exit(0)
time.sleep(args.delay * 60)