Commit Graph

31 Commits

Author SHA1 Message Date
Martin André e636594a0c Remove dead code
Remove unused functions from common_functions.sh after
Ie230aa0640e41a33e10e6656b69e1db4a6819127 merged. This commit deletes
all the functions that aren't referenced anywhere. Most of them are now
implemented in quickstart.

Also remove some of the scripts that were only used in these functions.
There is probably more cleanup to do.

Change-Id: I4fef5f8482f5eb7d4276b1d2d2563fd57d7419fb
2019-01-09 09:48:29 -05:00
Emilien Macchi 6cf056cc68 Add bits to support stable/pike
Add missing bits to support stable/pike branch in TripleO;
Some adjustments might be done later but this is a first iteration.

Change-Id: I408a6b116b611b67b67f98e1bf7bc533ce22435c
2017-08-03 06:23:37 -07:00
Emilien Macchi 21e72f9da8 Fix undercloud-upgrade job for Newton to Ocata
Several love fixes needed here:

- We forgot to override STABLE_RELEASE so
  the upgrade was failing because it was
  deploying repos from Pike instead of Ocata.

- Allow only to check that Ironic API is running
  on Newton or Ocata.
  In master we can check that ipmi driver is
  available.

- On old relases like Newton or Ocata we will
  use the old heat calls on get host info.

Change-Id: I558e86f5cec139cef165b0908bb3861434c7c8bc
Depends-On: Ie79dfff667437305ff4109da5a9c42ae358b1a3e
2017-06-30 21:10:55 +02:00
Jenkins 6dc484280d Merge "Collect workflow lists and execution lists in host_info" 2017-06-22 21:52:36 +00:00
Steve Baker a53c40def7 Use undeprecated heat commands in get_host_info.sh
The output from these commands could also be causing postci.txt to be
22MB (uncompressed), so switching to these commands may help with

Change-Id: I0066da26788e1bcf4d112dc3e14c26d0ef76f298
Related-Bug: #1698172
2017-06-16 15:25:01 +12:00
Giulio Fidente 3e1a32eee1 Collect workflow lists and execution lists in host_info
This will be useful to understand which workflow has been executed
by service_workflow_tasks added by change
I36a642fbc2076ad9e4a10ffc56d6d16f3ed6f27

Change-Id: I2fbc9968e27fae9e1384d5393558c06ddb1b5009
2017-05-16 15:18:12 +02:00
Ben Nemec 846bd480a5 Failure debugging improvements
A couple of small changes intended to make it easier to debug
failures in the gate.  First, run nova service-list and
neutron agent-list after failures to create the ping test stack,
not just after a failure to ping the vm.  A service outage could
also cause a stack create failure.

Second, sort the rpm -qa output for easier comparing between
different runs of a job.  Otherwise it seems to come out in a
semi-random order that doesn't diff nicely.

Change-Id: I9e3319811054668289193b24fd11ce6f0775ade9
2017-01-11 20:46:52 +00:00
Emilien Macchi 92207840df get_host_info: also save ip6tables
Also save ip6tables, very useful for debugging IPv6 CI jobs.

Change-Id: Ic1056a672356d2c4a020e34b1daa62302c43dd00
2017-01-04 14:38:35 -05:00
Ben Nemec 2dd2603f9a Fall back to previous failure list for older releases
Mitaka and earlier don't have openstack stack failures list,
so we're not getting any useful output in postci when those jobs
fail.  If that command fails, try the old manual method instead.

Change-Id: I23b7f6eb3a8c94c95448fe27319c5c950285fd1d
2016-10-04 18:21:33 +00:00
Brad P. Crochet 9c7bea637d debug: Run 'openstack stack failures list' upon overcloud failures
The new 'openstack stack failures list' will help us to track down what
went wrong in overcloud deployment, update or delete.

Change-Id: Ie536334990ad933776b53b73b5439315c15b0637
2016-09-19 12:37:09 -04:00
Emilien Macchi f07a33681d get_host_info: get repos list
It will be useful for us to know what repositories are deployed.

Change-Id: Ic887cc017d971d74364a4979a579a879da5c3364
2016-09-16 00:35:58 +00:00
Jenkins 51dcac36a5 Merge "Print services statuses of nodes in CI" 2016-08-29 15:59:50 +00:00
Jenkins 433792e2c5 Merge "Don't try to get stack details if the stack doesn't exist" 2016-08-12 22:48:03 +00:00
Jenkins d72f4b156c Merge "Make $TRIPLEO_ROOT overrideable" 2016-08-12 18:08:08 +00:00
James Slagle 1bd0b32e2a Make $TRIPLEO_ROOT overrideable
Being able to set a different $TRIPLEO_ROOT other than /opt/stack/new
makes the toci scripts more useful when running locally. There are also
lots of places where /opt/stack/new was used directly, when we
could/should be using $TRIPLEO_ROOT.

Change-Id: Iac212866fc343f3f3f930fad57b3a52236513d34
2016-08-10 12:05:25 -04:00
Sagi Shnaidman e3573dd263 Print services statuses of nodes in CI
List all services with their statuses for all machines

Change-Id: I00d2b3eb9aab9e15965013dd590255dab28f8ffe
2016-08-09 21:41:21 +03:00
Giulio Fidente 5204ce035e Add 'ceph status' and tripleo-overcloud-passwords to host_info
Change-Id: I720181a905f62b9f491acf719581b47afa951325
2016-08-05 16:32:19 +00:00
Ben Nemec 381b5f5dcb Don't try to get stack details if the stack doesn't exist
If a run fails before the overcloud is deployed or we are running
get_host_info.sh after deleting the overcloud then all of the
commands that operate on the stack will fail.  Let's not even run
those if we don't find the stack.

Change-Id: I06ff879424793ea1372889ae2c0e0740c45cb5c8
2016-07-29 21:20:56 +00:00
James Slagle 8ea0db3d37 Add facter output to host_info.txt
Being able to see all of the facter facts can help with debugging puppet
issues. This adds ~3s to get_host_info.sh.

Change-Id: I8757602047696e40c7412046ca497492760ddad3
2016-07-27 12:06:46 -04:00
Ben Nemec 1d8af44eb8 Record Heat resource deployment times to Graphite
This way we can track how they change over time, in addition to
seeing how they behave in a single run.

Change-Id: I28618906e119ad22d10d087e2faf75337849cb74
2016-07-06 21:31:47 +00:00
Ben Nemec 9eade7cb52 Calculate deployment times for the Heat resources
Looking through our graphite metrics, by far the longest time is
spent deploying the overcloud.  This change allows us to collect
more granular data about what is using that time in the deployment.

At some point we may want to add this to the graphite data so we
can track it over time, but just making it available in the postci
logs is a good first step.

Change-Id: Ibae0f6259146dc0da73d43aba0ff31a24ae71eff
2016-05-05 21:41:12 +00:00
Jiri Stransky 9017e735ad Add routing info to host_info.txt
We get some intermittent failures when trying to ping default gateway on
IPv6, it might be interesting to compare routes on successful
vs. unsuccessful deployments. And having `ip route` output could be
useful for some other debugging in the future too.

Change-Id: I0380e87282f6a65622eafa88f125e7f137f63362
2016-04-06 17:41:00 +02:00
Giulio Fidente 88d37e6404 Collect status of all nested stacks in resource-list
Change-Id: I595fa1ebe89b610062243d54a9187547d89b6b55
2016-03-05 18:59:56 +00:00
Jenkins 9957e13589 Merge "Run top in batch mode" 2016-02-29 18:07:58 +00:00
Ben Nemec e69552b58a Get more info from ps command
Right now the ps command we run in get_host_info.sh doesn't include
things like how much memory a process is using.  This change adds
some more switches to ps so it will include that information.

Change-Id: I884bb36d48cc5584d4d845351aa94fef391f2ffe
2016-02-19 18:58:07 +00:00
Derek Higgins 4c18db567d Run top in batch mode
We need to tell top not to expect a terminal.

Change-Id: I768bd868684ae5723802df50839aae143ec7ed3a
2016-01-28 10:51:55 +00:00
Derek Higgins 501b0e536a Add output of top to hostinfo
Sort it by memory usage to assist in finding out where memory
is being used.

Change-Id: Id8795d7ae87d71141526367eeec93b3dd38f9cf8
2016-01-20 11:31:34 +00:00
Jiri Stransky bd8d37a546 Use sudo for pacemaker status output
The script collecting host information doesn't run as root, we need sudo
to make pacemaker status queries work. Also adding crm_verify output.

Change-Id: I5858ddf9d1d317591b4ec4e6d7633115b636709c
2015-10-06 14:26:50 +02:00
Derek Higgins 9f3e5886e4 Pull tripleo related packages from delorean/current
Pulling from current means we will no longer need to build all
of the packages, instead we would only need to build whatever ZUUL
tells us to build. Because we are no longer building  several
packages in the same ci run we can get off our TripleO fork of
delorean as the speed difference will be a lot less.

This commit also includes changes to handle the rename of
ironic-discoverd to ironic-inspector as both sets of changes
are now needed to unblock CI.

Co-Authored-By: John Trowbridge <trown@redhat.com>

Change-Id: Ia879942910c367dc47942f2e0c63351abaf16f63
Depends-on: Id4855d9f4275912440f197f900a59fe5e3bea693
Depends-on: I319f818deeeafc36968b73b8d249c5bbcaa0d2ea
2015-09-21 02:01:50 +01:00
Derek Higgins 0ab98a2584 Generate extra state information from the running overcloud
We had this info on the other CI, trying to get to a par.

Change-Id: I05bfbd18254522211b61219209f11d0f6e95f0c6
2015-09-04 01:08:24 +01:00
Derek Higgins 9286ef681b Generate extra state information from the running undercloud
We had this info on the other CI, trying to get to a par.

Change-Id: Ibbe3d8ee38c84dcd6c5aac19eb8b15c96b14dda3
2015-09-03 14:09:02 +01:00