Commit Graph

12 Commits

Author SHA1 Message Date
Sagi Shnaidman 0977f8502d Big clean of tripleo-ci
Change-Id: Iff0350a1fff1057d1de924f05693258445da9c37
2020-01-22 18:37:04 +02:00
Wes Hayutin 407ffce875 update openstack.org -> opendev.org
Change-Id: I3c943d837fc2deeadbdefddeca6532f702d22e32
2019-04-22 13:31:45 -06:00
Marios Andreou 5b55fbbd57 Soften guard for ceph loop device in ci script so we can move it
As part of [1] we want to drop tripleo.sh --bootstrap-subnodes
from the ci scripts and move to ansible. For zuul v3 jobs we do
that in [2].

For "legacy" and rdo jobs the equivalent change is spread at [3]
and [4]. We can't merge [3] however because it would create the
loop device and so cause the exit being removed in this review
to fail the jobs

Thus we need to soften this guard here and log a warning. Once
this merges first, we can then merge [3] and then [4]

[1] https://trello.com/c/lrSUMaqw/885-translate-tripleosh-bootstrap-subnodes-into-a-series-of-tasks-s17
[2] https://review.openstack.org/#/c/583195/
[3] https://review.rdoproject.org/r/#/c/15000/
[4] https://review.openstack.org/#/c/587012/

Change-Id: Id69c3148bd077e338ef29b9bf8edc57fa2581699
2018-07-31 16:56:39 +03:00
John Trowbridge 85c796734c Install openstack-heat-agents in multinode bootstrap script
We need to install openstack-heat-agents from the same repo as
python-heat-agent* packages.

Change-Id: I2b26ce4f9d19dbf66da1b4382d7ffd653e67a92e
Closes-Bug: #1755168
2018-03-12 09:42:38 -04:00
Sagi Shnaidman 1f7de38e47 Remove debug config of unbound since it's enabled
Infra already sets unbound to debug, so we can remove it from our
code.

Related-Bug: #1736157
Change-Id: Id5a50218d6b47354f12cc50f88d84c0c86196e3b
2017-12-04 15:00:59 +00:00
Sagi Shnaidman de4a74ea6c Set debug in unbound only if config file exists
In CI reproducers unbound config files could not exist, so
check before changing them.

Change-Id: Iae7d1e23e819de3dfc37b5588eb73d5cb8ba8f33
2017-11-21 10:44:42 +02:00
Sagi Shnaidman 962205603d Set ubound to debug level and dump cache
Debug unbound DNS queries in job for investigation of
DNS failures.
Dump unbound DNS cache server cache..

Depends-On: Ia76ac9b20d6b8402060b71e11e00e515bc74077d
Related-Bug: #1730931

Change-Id: Ic8b9e33067141366655fad1b99dee1adb40dfba3
2017-11-20 14:11:16 +02:00
Giulio Fidente 41c042b9fe Create a loop device in multinode subnodes
This would be used by ceph-ansible as backend for ceph-osd. For
virtual environments this is solved in OOOQ with the use of "extradisks"
while production environments likely have more than the bootstrap disk
if the node is meant to be used for Ceph.

Note that puppet-ceph supported the local filesystem as backend while
ceph-ansible does not so this wasn't necessary before.

Change-Id: I6ecea0066ef57795030df19a11030ed5be865839
2017-07-25 20:03:04 -04:00
Emilien Macchi 5ee54ae448 Uninstall certifi/requests/urllib3 pip installation
requests-2.16.5 has added urllib3 package as dependency. Requests is
being installed using pip as dependency for git-review in DIB.

This parch removes urllib in node preparation for puppet jobs as it
will be installed as requirement for requests rpm package.

This patch should be a workaround until git-review is removed from
nodepool images.
See comments on https://review.openstack.org/#/c/468823.

Change-Id: Ia839cac125e2a749fc9ce40894e5900237ec3ae1
2017-05-29 17:28:30 +02:00
Sagi Shnaidman 7548af6a7c Fix CI python-urllib3 install failure
Fix CI failure of python urllib3 installation

Change-Id: Ibee99c44d950c8cf5b15e0e02e7a23727433bb46
2017-05-29 02:54:03 +03:00
James Slagle bb430f3011 Support running toci_gate_test-oooq.sh locally
These are various improvements to tripleo-ci (squashed into a single
commit to save CI resources) that enable running the tripleo-ci entry
point script which is now toci_gate_test-oooq.sh locally in a standalone
environment of vm's not spawned by nodepool.

This is useful to developers trying to reproduce CI locally for
development and testing.

The changes are:
- Default $REMAINING_TIME in common_vars.bash
- Don't hardcode the jenkins user everywhere
- Improved initial package handling:
    Before blindly yum installing the packages needed by these scripts in a
    few spots, check if the packages are already installed with just the rpm
    command. This can end up saving a decent amount of time when iterating
    on running these scripts locally. Also installs wget.
- Reinstall python-requests
    When locally running toci_gate_test.sh, python-requests needs to be
    reinstalled since toci_gate_test.sh removes the python module as it
    was pip installed on the infra provided image. Also updates the
    logic to handle the python-requests -> python2-requests transition.

Change-Id: I48cd1e5f53b86455992b83248d57f5338c29a7ca
2017-05-10 21:38:45 +00:00
James Slagle 4a4c8a1c76 Use bootstrap subnodes environment in CI
Use the bootstrap subnode environment in CI that was added in
I6be94604a46382e6288df1b36b9de8fab58696cc instead of bootstrapping the
subnodes manually first. Even when using the environment, we need to do
a minimal bootstrap to do some cleanup from the infra spawned nodes and
initially install the agent packages.

Change-Id: I90619e8027b43dd2f2efc5a9d3cc7de80a906fb5
2017-03-02 17:30:26 -05:00