Commit Graph

17 Commits

Author SHA1 Message Date
Alex Schultz
ba8ee11132 Fix scripts to be OSX compatible
readlink on OSX does not support the -f option. As an alternative, we
can use pwd -P to resolve the path.

Change-Id: Ibaeadea9685f7a9603198ed1a509176cf70f9b21
Closes-Bug: #1506504
2015-10-15 10:01:17 -05:00
Emilien Macchi
acb145de32 Create functions for common bits
* Move out some code from install_modules.sh to have a functions script.
* Update install_modules.sh script to use functions.

Change-Id: Ie87b8eac71d5edb555e9a1637bea84bc9e268497
2015-10-06 15:57:56 +00:00
Emilien Macchi
d1bf79b813 Cleanup some legacy code
* Stop setting SElinux as permissive and bring it to 'enforced' again,
  since our blocker is fixed [1].
* Run `apt-get update` only in run_tests.sh script. It's the only place
  we actually need to run it since beaker jobs already manage that task.
* in run_tests.sh, use $SUDO instead of sudo, to be consistent.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1249685

Change-Id: Ic3101a0a080b798b334cd2f212ec726f243880b5
2015-10-01 12:32:47 -04:00
Emilien Macchi
52ae6713a9 Revert "Install RabbitMQ 3.5.4 on Ubuntu systems"
This reverts commit 9da87065f5.
Packaging [1] is fixed now.

[1] http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.5/

Change-Id: Ibb3b108432b8bcf76a54bf8dd6f7f61616d8ced1
2015-09-24 15:20:41 -04:00
Emilien Macchi
9da87065f5 Install RabbitMQ 3.5.4 on Ubuntu systems
RabbitMQ 3.5.5 has a bug [1] that prevent puppetlabs-rabbitmq module to
create permissions:

Could not evaluate: cannot parse line from
list_user_permissions:/usr/sbin/rabbitmqctl: 19: [: Linux: unexpected
operator]

This patch is a workaround to make sure we install the previous stable
version of RabbitMQ (3.5.4). Since puppetlabs-rabbitmq module will only
check if the package is 'installed', it won't try to update it.

[1] https://github.com/rabbitmq/rabbitmq-server/issues/321

Change-Id: I8e0fa8e62e93b62317011fd7c8a2730cd293d4c7
2015-09-24 13:37:12 -04:00
Emilien Macchi
cf6a377977 install_modules: allow to customize PUPPETFILE_DIR
Allow to change PUPPETFILE_DIR but keep '/etc/puppet/modules' by
default.

Change-Id: Ie32d18d477c271b2724290edbbfd4ae7ea110480
2015-09-23 11:01:12 -04:00
Yanis Guenane
cf94ca50af Handle the case when SELinux is disabled.
Recently we decided to ensure SELinux was in permissive mode to avoid
package issues. If a user has its node already with SELinux disabld the
call to setenforce 0 would fail with the following issue :

usr/sbin/setenforce: SELinux is disabled

This commit fixes that

Change-Id: Ie42f62325d0f3e863feb7e412e073341e0f04a36
2015-09-18 15:42:56 +02:00
Emilien Macchi
a45a72cfb9 Disable SElinux on CentOS7 jobs
python-cffi is preventing Nova & Keystone to run when SElinux is
enforced.
The bug is reported [1] and RDO team is working on it.
In the meantime, we need to disable SElinux so we can run our CI again.

This patch might be reverted once a fix is released in packaging.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1249685

Change-Id: I4720ec701cb36f56a9556a124204db32fa8e8434
2015-09-17 08:33:28 -04:00
Emilien Macchi
bc53a53883 acceptance: bump trusty packaging to trusty-proposed/liberty
Since our recent discussion about Ubuntu packaging, we decided to bump
Ubuntu packaging to trusty-proposed/liberty so we can install Liberty in
a better shape than current situation (Staging repo).

This patch installs UCA liberty repository.
It also makes sure `apt-get update` ran before so we are able to install
ubuntu-cloud-keyring package in the gate.

Change-Id: I57e2ddc5d0e228142f8045623ffbde362c0e7f7b
2015-09-04 14:41:43 -04:00
Emilien Macchi
b3f8d3582a Install python-pymysql on Ubuntu
Note: this is a temporary fix and will be reverted once packaging is
fixed upstream.
python-pymysql is a new dependency in Liberty and current OpenStack
packages do not depend on it right now. It's work in progress by
tu
team.

Change-Id: I5d997e27abce98c6edc551350cec27c4611e736f
2015-08-27 16:25:11 -04:00
Emilien Macchi
b3358f78fa Initial run_tests.sh script
This reverts commit 8b9db6da86 and applies
some changes to not break Puppet beaker jobs.

* First init of run_tests.sh script that will just run
  install_modules.sh script with sudo. The script also makes sure GEM_HOME is set
  so we can install r10k from gems and run it later.
* install_modules: make sure to find r10k binary

Change-Id: I24c7494e7c9201915d9aa2bf314a9534ddd27dd5
2015-08-24 14:52:18 +00:00
Emilien Macchi
799715ce28 install_modules: cleanup /etc/puppet/modules
Make sure there is no puppet modules pre-installed in the image where we
run integration testing by cleaning up the /etc/puppet/modules/*
directory.

Change-Id: I489717356b75b95c1a881b6f3e554cfec66ee6f1
2015-08-24 10:52:02 -04:00
Emilien Macchi
8b9db6da86 Revert "Initial run_tests.sh script"
This reverts commit 2921e36c79.

Change-Id: I88055528d143325457cdc2461dedb37f703374b9
2015-08-07 09:21:41 -04:00
Emilien Macchi
9b8367d128 Put install_modules.sh in / to unlock CI jobs
This is a temp fix: currently Puppet CI is broken because it can't find
the path of the script. This patch aims to fix it but it will be changed
again later, we need to change project-config repo.

Change-Id: I1bf3ea6a26be9b79794e048aac125e80a1d858a6
2015-08-07 08:29:16 -04:00
Paul Belanger
2921e36c79 Initial run_tests.sh script
When launching run_tests.sh we need to make sure to call
install_modules.sh.

I've moved it into the tools directory, and installed the modules
local vs global. This is mostly personal preference but avoids puppet
modules conflicts with global /etc/puppet folder.

Change-Id: I77c445a71720e0c8dd4744777c2bc6a0a6663590
Depends-On: I87c12faffab953ad2039d2b9ed9ab420e97ab2b7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-08-06 14:38:42 -04:00
Paul Belanger
a8c1ba9a46 Give execute permissions to install_modules.sh
Change-Id: I48a26531ee996585f11fbce294baa722fe048692
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-08-06 18:19:21 +00:00
Colleen Murphy
ec2457a301 Add Puppetfile and install script
This repo will be cloned by the puppet modules and used to install
modules in functional tests. The script uses r10k to deploy modules
from the Puppetfile because this is the Puppet Labs recommended way to
manage puppet environments, and it is a popular method among our users.
We install all modules from git, not the forge, because r10k does not
give us dependency resolution so installing from the forge does not buy
us anything. If the modules have stable branches in git, r10k uses the
stable branch as a ref, otherwise it uses a tag (pinning to a specific
release).

If zuul-cloner is available, the script first installs the external
modules with r10k, then extracts the OpenStack modules from the
Puppetfile to install with zuul-cloner. In the future, this part may be
split out into a JJB job.

Note: because r10k purges the modules directory before installing
modules, and this feature cannot be turned off[1], we must run r10k to
install the external modules before running zuul-cloner to install the
OpenStack modules.

[1] https://github.com/puppetlabs/r10k/issues/172

Change-Id: Ide59ef4bdf53a04957e3593815b7514a0e744e0e
2015-07-02 12:28:56 -07:00