compute_node_stats have been removed in liberty (commit:
8a7b95dccdbe449d5235868781b30edebd34bacd)
Change-Id: I1cdf7e1a0a9ac686724f0d21d769551980b660b0
In order to fix bug #1534660, change 269530 splits many overly long
lines in Bash scripts using backslash continuations. But in some
cases, these backslashes were inserted within command arguments that
are interpreted as SQL expressions, where they cause syntax errors.
This changes splits the corresponding lines differently, so that the
backslashes are no longer passed in SQL expressions.
Change-Id: I4a8940b6fe9ce8563315cd0cc9a9529a02f8cdb8
Closes-Bug: 1596193
Related-Bug: 1534660
I've ported this tool to work with Juno and thought I'd share this for
all to use.
We've done basic functional testing, an internal code review and used it
against our production cloud. I would encourage further review and
testing, but this should be usable for others.
The backend changes to Juno required more changes that I would have
liked and the code does throw the odd exception (handled by the code)
when run against every project in our production system, but this hasn't
caused any issues for us.
Change-Id: I3913251ede4949149e63d1337bd92dd836f98763
Fixing https://bugs.launchpad.net/osops/+bug/1534660. Some of these
fixes are not pretty and I've not been able to test the tools still
work.
I think the bashate rules should be relaxed for operations tools ... or
people shouldn't use bash for such tools. Sometimes it's pretty
difficult to shorten lines and still have readable code.
Co-Authored-By: Peter Jenkins <mail@peter-jenkins.com>
Co-Authored-By: Mike Dorman <mdorman@godaddy.com>
Change-Id: I70cfc2420cc9a2a4ec553ab7b7ca43a7fc38a9f0
Add ability to pass the --nosafe-auto-increment flag to
pt-archiver, which may be necessary in some situations.
Change-Id: I841193dc97b36ad365eee89447b33f3e96cd1c41
Add support for archiving more tables in the nova database
that must be done before the nova.instances table, due to
foreign key constraints.
Change-Id: Ie433caa96de898d5cf64a0b03ac4681a410f5dfa
Add options to the user may specify hostname, database name,
username, and password for the openstasck_db_archive scripts.
Also fix some minor whitespace issues.
Change-Id: Ib4b2f8282db6c9958d2e0a7d5d72abd4a192de32
orphaned_vms.sh is a script that searches through the current VMs (as
reported by nova) and retrieves their own. Then, it cross checks that
list against a tenant listing (as reported by keystone). Any VMs whose
owner does not exist in keystone is assumed to be orphaned. This can
happen if a tenant is deleted while it still has VMs online.
Change-Id: I880b66e6d303e3348ac1d7fde1762633ae9ac07a