Commit Graph

60 Commits

Author SHA1 Message Date
Sean McGinnis 537bc74d55
Retire repo and note new content in openstack/osops
Change-Id: I8a36e470dfcf2e5db0a702d371b98cd94082bb4d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-09-14 09:08:50 -05:00
OpenDev Sysadmins 19576800fb OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:48 +00:00
Davide Panarese e2275cbf6d Review uuid verification method
Previous method verify if line that contain "source file"
exists into dumpxml of every virtual machine to extract
uuid of virtual machines running on hypervisor but this
line exists only when a disk file is present on the host
and boot from volumes for example has not "source file" line
into dumpxml and this script will kill them.
To avoid theese case it should be possible to use
'virsh list --uuid --all' to list directly the virtual machine
uuids of nova instances.
This changes avoid to shut running customer virtual machines.

This also fixes handling of --noop by correcting the condition checking
for arguments.

Change-Id: Ib9ec04a37bfe69e323f14f6bf4cb72b0fa818803
Closes-Bug: #1816434
Signed-off-by: Davide Panarese <dpanarese@enter.it>
2019-03-06 09:27:20 -06:00
Vieri 73953ddb5e Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: I2d757bb73f45bcbde86d2dc9bd960365010cc041
Closes-Bug:  #1801462
2018-11-03 03:15:11 +00:00
mathieu 507e2cb80b Fix missed variable rename 'object'
Change-Id: I93d72ce8da31f1f3544be3bd4a5e4926a23af61e
Closes-Bug: #1745041
2018-01-23 17:14:00 -05:00
Andrey Kurilin 609986f5f0 Add script for monitoring resource utilization of VMs
The top of the script includes description, behaviour and how-to

Change-Id: I662f71648ae7576aa430a0a0bd6b43509f0c2176
2017-11-14 15:57:57 +02:00
Jenkins f29c3c30f5 Merge "Refactoring Neutron Orphan Scripts" 2017-03-04 08:43:52 +00:00
Robert Putt 0b0d2ad937 Refactoring Neutron Orphan Scripts
Changes include:
 - Flake8 compliance
 - Python 3 compatibility
 - Remove usage of Python keywords for variables
 - Addition of usage instructions
 - Addition of requirements file

Change-Id: Ibedc4678af8e5f3c38c7b693a8c5559232de8cd8
2017-03-03 18:07:37 +00:00
Jake Yip b8ea5fd26d Remove compute_node_stats from list of tables to manage
compute_node_stats have been removed in liberty (commit:
8a7b95dccdbe449d5235868781b30edebd34bacd)

Change-Id: I1cdf7e1a0a9ac686724f0d21d769551980b660b0
2017-02-21 17:11:17 +11:00
Pierre Riteau 495cf7bc77 Fix typo in comment
Change-Id: I784b977042049c1ac17a31766e0a7ab7728b9e05
2016-11-01 10:57:10 +00:00
Jenkins d2c0c1522c Merge "show all instance ip addresses" 2016-09-17 02:57:29 +00:00
Jenkins 678d948361 Merge "handle nova servers with spaces in the name" 2016-09-17 02:56:18 +00:00
Joshua Harlow 6a55f43c2d Add a queue cleaner that will clean selected queues only
This script can be useful to run when a large number of
messages are backlogged and we do not want to go in and
delete the full mnesia database but only want to selectively
clear off certain queues.

Change-Id: I0ecdeea3f4079c90ce9bc0bb31b2b4f0f55c313b
2016-07-14 16:41:58 -07:00
Simon Leinen df055acc61 Avoid passing backslashes in SQL snippets
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
2016-06-27 20:29:50 +02:00
Marcus Furlong 5d22b9b499 show all instance ip addresses
Change-Id: I55325aacdca84fa55258040b8d6a69fd3e4b619a
2016-04-19 10:15:08 +10:00
Marcus Furlong 0b849f430a handle nova servers with spaces in the name
Change-Id: I8cb06860b984dd4bc4d17920bfbe9c78e15ff9ac
2016-04-19 10:13:35 +10:00
Marcus Furlong 6492a37e76 add dryrun and quiet options
Change-Id: I95bebc532389208e9e3bbd952095d75bf0dac763
2016-02-17 18:24:02 +11:00
Jenkins 117d47ca31 Merge "Add a bash script to show CPU details" 2016-02-08 17:58:40 +00:00
Edgar Magana a83408cbf3 Add a bash script to show CPU details
This script decodes the information in /proc/cpuinfo and
produces a human readable version displaying:
- Total number of physical CPUs
- Total number of logical CPUs
- Model of the chipset

Change-Id: Ie30ff236fe6dbe61fa247762631072d5a037e110
2016-02-08 09:10:43 -08:00
Matt Fischer cd7a51a1fe Change neutron agent states on boxes with ansible
There are times where you might want to enable or disable neutron agent
admin state en masse. This tool will let you enable/disable any of the
main neutron agents.

Change-Id: I9bc4b38b7e6680359141624a64fbb16bfafdae3e
2016-02-05 19:35:40 +00:00
Jenkins 2a0a1d90de Merge "Update README with details on how to contribute to curated repo." 2016-02-02 18:07:41 +00:00
Simon Leinen 495b081f7f Region support for Neutron scripts
If OS_REGION_NAME is set in the environment, pass it to the API/CLI
along with the other credentials.  This allows selecting a non-default
region for multi-region clouds.

Change-Id: I19ed33fe1428b97b6aa526fc19b6b592e1a11ca9
Closes-Bug: 1540535
Signed-off-by: Simon Leinen <simon.leinen@gmail.com>
2016-02-01 20:19:59 +01:00
Mike Dorman 93b9f40c7f Update README with details on how to contribute to curated repo.
Change-Id: I5c81d8a9744ca2489cdb489e8191c9b67ef26aa8
2016-02-01 11:29:20 -07:00
Peter Jenkins a48fc6e758 Update aut-fix-quota tool for Juno
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
2016-01-25 08:26:07 +02:00
Peter Jenkins 6c67ad007e Fix tons of bashate issues for bug 1534660
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
2016-01-19 09:53:10 -07:00
Christian Berendt b9da55d0f8 Cleanup errors in shell scripts identified by bashate
Change-Id: Ib3c4d841e4282368343b81e5824a0319e9817b48
2015-12-16 15:58:34 -07:00
Nick Jones f243b8c739 Address performance issues with listorphans.py script
listorphans.py lists orphaned Neutron objects.  'Orphans' in this
context are objects which OpenStack knows about and manages but which do
not have a valid project (tenant) ID.

The previous version was very inefficient in that for every object being
checked, it would do a discrete Keystone API call to see if the
associated tenant ID was valid or not.  For an installation of any
reasonable size, i.e one with 100s of Neutron routers, this method was
particularly slow.

The script has been updated to first build a list of all tenant IDs, and
then for every Neutron object check project ownership validity against
this list instead.

Output has also changed slightly to print out a list of discovered
orphans, simplifying workflow e.g when piping to another command which
cleans up these objects.

Closes-Bug: #1515300

Change-Id: I72ca84fe48beb623d43ee446a32ea1bb30730bcc
2015-11-11 21:35:04 +00:00
Jenkins a93d2ddbad Merge "Add option for pt-archiver --nosafe-auto-increment flag" 2015-10-15 16:46:23 +00:00
Jenkins 2f2635dd00 Merge "Support for archiving additional nova tables" 2015-10-15 16:46:13 +00:00
Kurt Payne feb571c985 Add a dry-run flag. Fix inconsistency with 'list' and 'delete' orphans
Closes-Bug: #1501965

Change-Id: If9b6af6397512c6e55aaf1116b3788d23a4f3551
2015-10-02 10:49:27 -07:00
Jenkins b2d3a35790 Merge "Initial commit of listorphans.py script" 2015-09-30 17:51:30 +00:00
Nick Jones d221811d03 Initial commit of listorphans.py script
listorphans.py lists certain 'orphaned' objects - routers, floating IPs,
subnets, and networks - present in Neutron.  Orphans in this context are
objects that exist but whose project ID is no longer valid, e.g tenants
that have been deleted.

Change-Id: I41ea6f115d0b7a1a84e7f23005d333d39b800beb
2015-09-30 10:20:04 +01:00
Christian Berendt fb9a96f11e bashate: do not check contrib directory
Change-Id: I23a579bbd2692bc80d1be18435f140fb6fb276cc
2015-09-30 11:15:52 +02:00
Mike Dorman 740d675188 Add option for pt-archiver --nosafe-auto-increment flag
Add ability to pass the --nosafe-auto-increment flag to
pt-archiver, which may be necessary in some situations.

Change-Id: I841193dc97b36ad365eee89447b33f3e96cd1c41
2015-09-29 16:19:31 +00:00
Christian Berendt 281f4fd277 Add bashate test environment for shell scripts
Change-Id: I4cd71515b1f59552effbbca5fd01ad8174c45e34
2015-09-29 18:17:01 +02:00
Mike Dorman 08ea1010d9 Support for archiving additional nova tables
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
2015-09-29 10:14:38 -06:00
Jenkins 7ebc34fef0 Merge "Add options to specify credentials on db archive scripts" 2015-09-29 15:56:02 +00:00
Jenkins 2f6d7c4ca9 Merge "Add link to DreamCompute tools" 2015-09-29 15:55:41 +00:00
Mike Dorman ad56eb75ea Add .gitreview file
Change-Id: I5bf706776c8eb96b8be02ab03a22e34357ffb0c0
Closes-Bug: #1500617
2015-09-29 09:03:46 -06:00
David Wahlstrom 27ff244f6d Add link to DreamCompute tools
Add link to DreamCompute's scripts in the "Other sources of tools"
section of README.md.

Change-Id: I95c299c324a3eb2a8fe479fde7f135f858763aa4
2015-09-29 07:22:38 -07:00
Mike Dorman 47f275d3ca Add options to specify credentials on db archive scripts
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
2015-09-28 15:09:09 -06:00
David Wahlstrom 61aa8bde33 orphaned_volumes.sh: initial commit
orphaned_volumes.sh is a script that gets a list of all volumes and
their owner (as reported by cinder) and compares it to a list of all
tenants (as reported by keystone).  If any volume has an owner who does
not exist in keystone, it is returned in the output.  Orphaned cinder
volumes can occur when a tenant is deleted but still had volumes
provisioned.

Change-Id: I3e20826be54595b4a9a35aaac95be881ce658fa0
2015-09-28 10:31:09 -07:00
David Wahlstrom 49810e77fd orphaned_vms.sh: initial commit
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
2015-09-28 09:46:45 -07:00
Joe Topjian 8fc31fa5f3 Merge pull request #7 from matthewfischer/master
Add a simple ghost VM finder
2015-08-31 08:31:58 -06:00
Matt Fischer a02d87377c Add a simple ghost VM finder
This simple script will show you where you have qemu processes running
that are no longer managed from nova. If you find these you need to
alert the customers, who may still be using this VM. Ghost VMs use
compute/memory resources on your compute hosts, so it's a good idea to
find and remove them.
2015-08-31 08:23:09 -06:00
Mike Dorman 09e7902401 Merge pull request #6 from aaronorosen/master
Add delete_orphan_floatingips script
2015-03-24 15:12:18 -06:00
Aaron Rosen 70fbf8e9d4 Add delete_orphan_floatingips script
This script is useful to cleanup floatingips that are not
mapped to any neutron ports.
2015-03-24 13:20:04 -07:00
Joe Topjian 5195a40d51 Merge pull request #5 from markvoelker/master
Add link to CERN ops tools
2015-03-24 07:44:06 -06:00
Mark T. Voelker 4b498a6077 Add link to CERN ops tools
Added a link to CERN's open source ops tools for OpenStack.
2015-03-24 08:13:55 -04:00
Mike Dorman b1fabdc136 Merge pull request #4 from simonmcc/quota-correction
Scripts used to correct the quota database
2015-03-20 09:22:42 -06:00