672 Commits

Author SHA1 Message Date
Federico Ressi
ebbfbf4337 Install ip command on RH's distros
Change-Id: I0f75d70e5f51defcb2739d5fc722b9c6d2e53756
2019-10-12 04:35:43 +00:00
Federico Ressi
aeb3fcf677 Add bindep file.
Change-Id: I355a5590f8aa4e99d21813e41fe86e74bbb37803
2019-10-12 06:35:01 +02:00
Zuul
ad6cfba955 Merge "Fix Openstack topology discovery for Python 2" 2019-10-10 14:29:54 +00:00
Federico Ressi
2476f78009 Generate os-faults.yaml using new topology API
Change-Id: Ica3b7b24729a18dec46ec66d12fb5d9e4147bd96
2019-10-10 12:11:35 +00:00
Federico Ressi
0e789aab3b Fix Openstack topology discovery for Python 2
On Python 2 socket.getaddrinfo() takes no keyword arguments

Change-Id: Ib36745038e530bf00829cc28894422a382b7bbf0
2019-10-10 10:56:58 +00:00
Zuul
360bbadd1f Merge "Create scenario test case for cloud nodes" 2019-10-10 10:53:26 +00:00
Federico Ressi
45f534e4a3 Create scenario test case for cloud nodes
Change-Id: I4d71137662d4fcafb51da7a73aa69b18e24306a2
2019-10-10 10:59:10 +02:00
Federico Ressi
75f6673aad Allow to get host_config and connect parameters before connecting to SSH server
Change-Id: I6423e6fbfac2bd8fe08c0995960e89624440d01e
2019-10-10 10:27:50 +02:00
Federico Ressi
9afc448f94 Add controller topology nodes group
Implement looking for reachable compute node IP
addresses when hypervisor.host_ip is not directly
recheable by using controller node as an SSH proxy
to fetch available compute node IPS executing
ifconfig command on compute node itself.

This makes topology discovery almost fully automatic
on cases where triple undercloud is not available
(even if far slower).

Report only on public IP for each node.

Use only public interface entry points to discover
controller nodes.

Change-Id: I7c295975b459231f8d319eb2caf0214a4884e50b
2019-10-10 07:18:49 +02:00
Zuul
d23904deca Merge "Fix wrapper for 'hostname' shell command" 2019-10-09 17:48:46 +00:00
Federico Ressi
88325f952c Add wrapper for ipconfig shell command
Change-Id: Ibb135705aa259239890ce28836c3c699b1ef0433
2019-10-09 15:08:22 +02:00
Federico Ressi
35857b359d Fix wrapper for 'hostname' shell command
Change-Id: I03d638ddaedc0926ed1aed78dac4fb249ac99abf
2019-10-09 15:03:13 +02:00
Zuul
94087ea961 Merge "Add support for proxy_client parameter to ssh.ssh_client function" 2019-10-09 09:12:56 +00:00
Federico Ressi
7642459d51 Add support for proxy_client parameter to ssh.ssh_client function
Change-Id: Ic99781ec5ec921bf5d4157d481b36ce6c1fdf5d4
2019-10-09 09:06:27 +02:00
Federico Ressi
77989ae4ed Fix ping fixed delay at the end of command execution
Change-Id: I541fda9b914435f72faca2127fb1e433e4323270
2019-10-09 09:04:14 +02:00
Federico Ressi
71ba83eac9 Update tripleo topology driver
- Register as default one when undercloud or overcloud are
  available
- Obtain node group name (controller, compute, etc.) from node name

Change-Id: I160f9b9a11c0d7dbfcbd00fd2265a6817484ac96
2019-10-05 15:57:08 +02:00
Federico Ressi
2947ce3dce Implement TripleO topology driver.
Change-Id: I171cb62908582f56f083fe03e32df81e3d0bc1bb
2019-10-05 12:45:13 +02:00
Federico Ressi
298993d06a Create OpenStack topology API to interact with cloud nodes
Change-Id: I0e1e071c7b4fc70793d44eddf9b1eb1e094a0912
2019-10-05 10:27:14 +02:00
Federico Ressi
7444b88d02 Copy the build ssh key to authorized_keys on all hosts for stack
Change-Id: Id44cbc64efd65254db5a49f4d8200642cf3f58a5
2019-10-05 10:13:39 +02:00
Federico Ressi
4cb7bf9722 Add functions to look for port IP addresses
This also undate looking for server IP address by
type ('fixed' or 'floating')

Change-Id: I08f9608ef6e66d049615fda3b988ff0e43454f7d
2019-10-04 12:26:44 +02:00
Zuul
5e97f9e10c Merge "Wraps 'hostname' command" 2019-10-03 21:21:25 +00:00
Federico Ressi
a9dbd1fb8b Wraps 'hostname' command
Change-Id: I238493202313a86b304fc6315eb2200012f2b13f
2019-10-03 20:58:15 +02:00
Zuul
b07ff22c64 Merge "Remove files added accidentally to the repo" 2019-10-03 15:27:03 +00:00
Zuul
4cc0239f10 Merge "Fix class constructor" 2019-10-03 15:15:03 +00:00
Federico Ressi
f45ac0c119 Fix class constructor
Change-Id: Ifd62759b23b9efb0c9cd92808007ab327f857bd2
2019-10-03 12:45:53 +00:00
Federico Ressi
fd7040fd63 Fix import order
Change-Id: I4506357caa3ae12e7d5aadeba3e6840047604574
2019-10-03 12:44:31 +00:00
Slawek Kaplonski
c7577d579a Remove files added accidentally to the repo
This patch removes directory .tobiko-evn which was added
by accident to the git repo in the past.
It also updates .gitignore file to ignore this location
in the future.

Change-Id: Iae07065cbc763d8babd5163ff5ff75d442726d0a
2019-10-03 09:33:48 +00:00
pkomarov
16032b26f7 Check pacemaker resources
Add API to fetch and parse 'pcs status' command result.

Change-Id: Iaaa4896a0fb390ba5ae59b0b1b87ed1664a4b4dd
2019-10-03 08:57:28 +02:00
Slawek Kaplonski
026dca67bd Fix os-fault CLI command executor
Module os_faults.drivers.cloud.universal.UniversalCloudManagement
don't have method execute() and because of that CLI command
tobiko-fault was failing.
Now it is using os_faults.human_api() function to execute commands
on cloud.

Change-Id: If18c57b36843660b57f818e907abb3a4dc915e7c
2019-10-02 15:15:48 +00:00
Federico Ressi
7cf2fe8aa3 Add report files to Git ignore files
Change-Id: Iee823a624ce395cebb4559d04386c2212fb52859
2019-10-02 12:56:30 +02:00
Federico Ressi
a4a3265afe Configure upstream DevStack CI jobs with Octavia
Change-Id: I1b6e1b33dbcdd5e7d4b4d61c7c20cbb9fb789897
2019-10-01 16:28:45 +00:00
Federico Ressi
0a81543134 Add support for SSH proxy in os-faults integration.
Change-Id: I07fbae3c477b4075ffba6b454b4a5f62d53cf63d
2019-10-01 16:27:41 +00:00
Zuul
c47a48bfbf Merge "Disable colorized log files on DevStack CI jobs." 2019-10-01 13:57:49 +00:00
Zuul
1117dd4544 Merge "Safely generate os-faults file to temporary files" 2019-10-01 12:49:06 +00:00
Federico Ressi
fc5ffcf87d Safely generate os-faults file to temporary files
Change-Id: If1031a6d600958409d7b505753abdb4feb11a15a
2019-10-01 13:02:27 +02:00
Federico Ressi
621d9af51a Disable colorized log files on DevStack CI jobs.
Change-Id: Ib1659abc7a7ff318d0ddb3716c5199b011ad29f6
2019-10-01 10:35:58 +02:00
Federico Ressi
ffde276c90 Fix clouad.yaml support debug message.
Change-Id: I3bd40b64a01ceb51f97f276a5c42796aa88824d5
2019-10-01 10:06:35 +02:00
Federico Ressi
e9a0120417 Add support for clouds.yaml file in DevStack plugin
Change-Id: I03c26d3fc30ad7ce172c2c5e7cd2b316f81729dc
2019-10-01 08:34:55 +02:00
Zuul
7c98e5da30 Merge "use subunit2junitxml for junit-xml report otherwise jenkisn can't read the results" 2019-10-01 06:20:15 +00:00
pkomarov
6094576889 use subunit2junitxml for junit-xml report otherwise jenkisn can't read the results
[stack@undercloud-0 tobiko]$ subunit2junitxml ./last.subunit -o tobiko_results_junitxml.xml
[stack@undercloud-0 tobiko]$ cat tobiko_results_junitxml.xml
<testsuite errors="0" failures="0" name="" tests="1" time="4.199">
<testcase classname="tobiko.tests.functional.tripleo.test_overcloud.OvercloudPacemakerTest" name="test_pacemaker_resources_health" time="4.199"/>
</testsuite>

Change-Id: I7d4f9e00f718500a00af9bdb3f70462b1d79e6fc
2019-09-30 20:56:46 +00:00
Federico Ressi
21c4f54fa0 Handle multiple ping commands dialects
Change-Id: I05d8e2efe8ef91d836ec509c779435376b0d721a
2019-09-30 20:50:33 +02:00
Zuul
23d913d7ea Merge "collect junit xml results" 2019-09-30 13:54:42 +00:00
Zuul
20fa7bff59 Merge "Use OpenStack default config files and directories." 2019-09-30 13:54:41 +00:00
pkomarov
08e976dac9 collect junit xml results
Change-Id: I380732a5f94023d99b946efdff8598ccfd7580ba
2019-09-30 15:00:43 +03:00
Federico Ressi
44ab0854ae Debug local process brute termination
Change-Id: I30068d86600b92b7659cb0c69756c436e4cd6aef
2019-09-30 11:47:40 +00:00
Federico Ressi
5b30db7d5d Use OpenStack default config files and directories.
Change-Id: I03968b8d8af19ff51a7653f6400b4e920c62e53c
2019-09-30 11:35:18 +00:00
Federico Ressi
44dec46be4 Workaround SSH command timeout problems.
Change-Id: I279566bc2c568d73647217a8b05d5fd8f935847f
2019-09-30 09:43:19 +00:00
Zuul
7e7d193664 Merge "Generate subunit results XML file report" 2019-09-30 08:01:36 +00:00
Federico Ressi
ed2c5fe2c9 Add ping timeout functional test case
Change-Id: Ic12c26d0f088155ddacc0460cd34afe4c331465a
2019-09-30 06:16:53 +00:00
Federico Ressi
c44d406360 Generate subunit results XML file report
Change-Id: Ibff0dd636d992a5c14c2fc39d55e0f368dc5e792
2019-09-30 08:11:21 +02:00