461 Commits

Author SHA1 Message Date
Jenkins
87d0219344 Merge "Fix section names for parameters" 2015-07-08 16:05:10 +00:00
Colleen Murphy
f13dd0ec89 Correct puppet module list check in beaker
The final check during the prep stage, where `puppet module list` is
run so that its output can be used for debugging, should run on the
current host in the loop, not the first host in the array. It should
only exit 0.

Change-Id: I5a29908f5c63209dd7416c5e281f60198a4b552c
2015-07-07 13:58:01 -07:00
Colleen Murphy
2ef0788e03 Use module install script for acceptance tests
This patch updates the spec_helper_acceptance.rb file to use the common
module install script and Puppetfile from the new
openstack/puppet-openstack-integration repo. This will allow us to take
advantage of Zuul's Depends-On feature so that we can test changes
across multiple related modules. This is based on idea 1 from this
brainstorming session[1].

This will probably be abstracted out into a separate function or
eventually a separate gem so that it can be more easily shared across
the OpenStack modules and the Infra modules.

[1] https://etherpad.openstack.org/p/puppet-git-dependencies

Change-Id: I9117cfd40a90059af9e3c9d2763ec05f6cdb39ed
Co-Authored-By: James E. Blair <jeblair@hp.com>
Co-Authored-By: Spencer Krum <spencer.krum@hp.com>
2015-07-07 13:57:57 -07:00
Denis Egorenko
05b0969c4d Fix section names for parameters
Some parameters have wrong (or deprecated) section names.

Change-Id: Ib44cf7825de33dc251812cb9138b821a397d77e7
2015-07-02 18:43:25 +03:00
Emilien Macchi
646a6cd15f Use beaker-puppet_install_helper to install puppet
When running with BEAKER_provision=no, the following happens:

In Trusty: beaker is running dpkg with '--force' option so even
if Puppet is already installed, the return code will be 0.
In CentOS: beaker is running 'rpm -ivh' the second time and since
the package is already here, the return code will be 1.

Using the new puppet install helper will abort installing puppet
if BEAKER_provision is no, so tests will continue as normal.

Change-Id: I410ebcc23bdc27ae0e632d1f330cab374cbc8912
Co-Authored-By: Colleen Murphy <colleen@gazlene.net>
2015-06-30 16:51:46 -04:00
Emilien Macchi
a56c42fe59 acceptance: install latest openstack-selinux
Since SELinux is enforced by default, we need to make sure
openstack-selinux is installed from the latest version to have OpenStack
correctly working.

Change-Id: I0b904b0f325a10ee952f07c5b3556765b53bf267
2015-06-29 14:22:56 -04:00
Xingchao Yu
4edba3f71e Update README.md for project namespace change
Change-Id: I78834fe9c373a6d5e9f5670d5b2290057ed14d0c
2015-06-28 20:55:41 +08:00
Jenkins
41016d84eb Merge "Split release notes into a CHANGELOG.md file" 2015-06-28 18:49:46 +00:00
Colleen Murphy
d0b89d242a Split release notes into a CHANGELOG.md file
This patch splits out release notes into a separate dedicated file for
consistency with the puppetlabs puppet modules. Additionally, this
patch improves the release notes by:

- Fixing the tense to be consistent with commit message standards ("Add
  new feature" instead of "Added new feature" or "Adds new feature")
- Breaking up changes into categories to make it easier for operators
  to know what happened in the change: backwards-incompatible changes,
  features, bugfixes, and maintenance commits
- Linewrapping to 80 chars
- Adding release dates, formatted according to ISO-8601

Change-Id: I015761a2f063b08f393e69c9ef6ba33a9a32003e
2015-06-26 13:42:05 -07:00
Emilien Macchi
07a2b22592 acceptance: install RDO repo the right way
Install packages from RDO properly, by using regular packages and not
ones from testing repo that are too unstable.

Change-Id: I3ffb21aa6eeddac60e2d009e233ad330207293f5
2015-06-26 15:20:07 -04:00
Colleen Murphy
93f79bb56d Add acceptance test for glance image
Change-Id: Ie74323930f100c71197c8bd10bae5a3975fabe50
2015-06-22 17:19:15 -07:00
Colleen Murphy
378523be43 Revert "glance provider: pick os_region_name from DEFAULT"
This reverts commit b76fbcbea34b510191964cc3ed6a4c8e6f2acbfe.

With 268370457c118e62b93990cea31066c477ab0dbc now merged, we need to go
back to looking for os_region_name in [glance_store] instead of
[DEFAULT].

Change-Id: I197d012387d630ca6fb3a38c48f0603add6c6de1
2015-06-22 17:18:12 -07:00
Colleen Murphy
370af254e4 Unpin beaker-rspec
The latest version of beaker tries to manage sshd_config[1] in order to
pass through environment variables. JJB also tries to manage
sshd_config by adding Match blocks to securely allow root SSH[2]. When
beaker tries to append the PermitUserEnvironment line after the Match
blocks, SSH fails to open port 22 and beaker can't SSH in to the
node[3]. This patch unpins beaker-rspec and adds set_env: false to the
nodepool nodesets so that the set_env method is never called and does
not try to mess with the sshd_config.

[1] https://github.com/puppetlabs/beaker/blob/master/lib/beaker/host_prebuilt_steps.rb#L528
[2] http://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/puppet-module-jobs.yaml#n42
[3] http://logs.openstack.org/61/185161/1/check/gate-puppet-nova-puppet-beaker-rspec-dsvm-centos7/cd81608/console.html.gz#_2015-05-22_22_05_46_933
[4] https://github.com/puppetlabs/beaker/blob/master/lib/beaker/host_prebuilt_steps.rb#L502

Change-Id: I9752fd76266fcaf7ad27703799967d5468317781
2015-06-18 10:55:26 -07:00
Emilien Macchi
6affc4341b Release 5.1.0 - Juno
Prepare 5.1.0 release.

Change-Id: I96f386d49888aa75ebf61a6d3160413a27e67073
2015-06-17 14:20:16 -04:00
Jenkins
344aaa68cb Merge "Revert "Revert "Move rabbit/kombu settings to oslo_messaging_rabbit section""" 2015-06-17 14:22:18 +00:00
Jenkins
b27dc35868 Merge "Introduce public_url, internal_url and admin_url" 2015-06-17 00:10:01 +00:00
Jenkins
8fc6667c1a Merge "Update spec_helper_acceptance for project renames" 2015-06-15 23:47:27 +00:00
Colleen Murphy
c17afb139f Update spec_helper_acceptance for project renames
Change-Id: Ieda6129dc62819bb1c61002ac5bf845afe875f02
2015-06-12 17:36:18 -07:00
Jeremy Stanley
7fc2ba21a7 Update .gitreview file for project rename
Change-Id: Iaaad16888d0b05aa47bafdaef4063172cd553afc
2015-06-12 23:12:30 +00:00
Mathieu Gagné
1225528086 Introduce public_url, internal_url and admin_url
This change deprecates the following parameters:
- port (replaced by public/internal/admin_url)
- public_protocol (replaced by public_url)
- public_address (replaced by public_url)
- internal_protocol (replaced by internal_url)
- internal_address (replaced by internal_url)
- admin_protocol (replaced by admin_url)
- admin_address (replaced by admin_url)

Add deprecation warnings if any of those values are provided
while maintaining full backward compatibility.

Closes-bug: #1274979
Change-Id: Iac152347534874f8763d8df4f81d1568d3c5e222
2015-06-11 16:49:10 -04:00
Jenkins
88b74f869a Merge "The package python-ceph no longer exists in el7, use python-rbd." 2015-06-10 18:56:11 +00:00
Colleen Murphy
c71644d9eb Correct password parameter for glance::api
The testing keystone password was set to 'a_big_secret' throughout the
test manifest except for in the glance-api class, so the
glance-api.conf would have the wrong password and tests for
glance_image would fail. This patch sets the password to be consistent
across the manifest.

Change-Id: I8b781d3080b2dd5e894c84a23c892e4f153d8aa6
2015-06-08 13:40:50 -07:00
Colleen Murphy
59310353b0 Rename class_spec.rb to basic_glance_spec.rb
Move the main beaker-rspec basic test to be in line with conventions
from the other modules.

Change-Id: I2a4c26fa2aab7e5d2dd719ef2dfd04574b84159e
2015-06-08 13:40:49 -07:00
Emilien Macchi
104829144f Bring Redhat support to acceptance tests
OpenStack Infra has jobs to run this on both Ubuntu Trusty and CentOS7.

* Add minitest to Gemfile (dependency to run beaker on centos - see 11
  http://projects.theforeman.org/issues/2650 for details)
* separate nodepool files to have trusty & centos7 support in OS infra
* class_spec: add case for repo configuration and support
  RH systems.
* don't install rabbitmq module that is not used (yet)
* install the apt module explicitly since it's no longer installed
  implicitly by the rabbitmq module

Change-Id: I17a571c8d56d55337ee0c8491fb4aad272074cf6
Closes-bug: #1444736
2015-06-08 13:40:33 -07:00
Emilien Macchi
d4563e25e7 Beaker: install APT repo with openstack_extras
Use openstack_extras module to manage Ubuntu Cloud Archive repository.

Change-Id: I163610d2f0207ffd836147498a67c604aa2b8dc7
2015-06-08 13:14:16 -07:00
Crag Wolfe
ef19c5584d The package python-ceph no longer exists in el7, use python-rbd.
Change-Id: I885a11fd33577618138ddffaf0de196e7bb62a77
2015-06-08 14:35:52 -04:00
Jenkins
199d90ec6c Merge "Add more details on running tests to the readme" 2015-06-07 14:39:14 +00:00
Jenkins
e39a6bf022 Merge "Fix ubuntu vagrant box nodesets" 2015-06-07 14:38:31 +00:00
Stanislaw Bogatkin
611045f213 Add endpoint type parameter
To point glance swift endpoint type, one optional parameter
was added.

Change-Id: I25ce5d9d119804f1aca5b5567be46750050ebacd
Closes-Bug: #1458811
2015-05-26 10:14:42 +00:00
Colleen Murphy
b8383e497e Add more details on running tests to the readme
Change-Id: I40f35e1a206e8a1b4ed880a1da978c4eba7e95e7
2015-05-11 13:53:00 -07:00
Colleen Murphy
ffc5c0c00b Fix ubuntu vagrant box nodesets
Without this patch, the nodesets incorrectly define a vagrantcloud vm
to install, resulting in the following error:

 > The box you're adding has a name different from the name you
 > requested.

This patch uses the trusty vagrant nodeset from the puppetlabs-apache
module and updates the default nodeset as well. Fill do the same for
the centos nodeset in a separate patch after RedHat tests are
implemented.

Change-Id: Iffac76b48d496d93b9cb63323ac103619319de47
2015-05-11 13:52:25 -07:00
Giulio Fidente
c76d39605f Decouple sync_db from manage_service and enabled
We want db_sync to run even though manage_service or enabled
can be set to False.

Change-Id: Ic3472ce6a6e704a2fa035df6e1c8866b8ea6bcbc
Closes-Bug: 1452278
2015-05-11 14:57:30 +02:00
Jenkins
0db42a6a60 Merge "Fix spec tests for RSpec 3.x and Puppet 4.x" 2015-04-28 19:44:01 +00:00
Dan Bode
1d38834466 make service description configurable
The previous commit that changed the service description
from Openstack to OpenStack actually introduced a bug that means
that users cannot upgrade between those two versions of the code.

An attempt to use this manifest to upgrade from earlier versions
of the code before this change was made is currently not supported
because keystone_service does not support updating it's description.

This commit adds the service description as a class parameter so that
folks using older version of the module can update it to the incorrectly
spelled version.

Change-Id: Id8b01c7456b067c19fcf6cc1503c22a11b7d3fd9
2015-04-28 09:31:17 -07:00
Sebastien Badia
60de7b77df Fix spec tests for RSpec 3.x and Puppet 4.x
Rix resource array, according[1].
[1]https://github.com/puppetlabs/puppet/blob/3.7.5/lib/puppet/resource.rb#L446-L453

Change-Id: Ic986a3cded93f6ab32c7bc27d8123c3f5e0befd1
Closes-bug: #1447620
2015-04-28 10:51:56 +02:00
Emilien Macchi
b76fbcbea3 glance provider: pick os_region_name from DEFAULT
In ::glance::api, os_region_name is set in DEFAULT which work for both
Juno & Kilo.

'glance_store' section has been introduced in Kilo which breaks Juno.
Until we decide our policy to manage master, let's use DEFAULT so both
releases work well.

Change-Id: I1c519146d3fe62f8c8fc8c2d85805db11af21e4c
2015-04-24 16:13:55 -04:00
Emilien Macchi
9f345f97d1 Bump rspec-puppet to 2.1.0
rspec-puppet 2.1.0 includes Puppet 4.0 support [1].

[1] https://github.com/rodjek/rspec-puppet/commits/v2.1.0

Change-Id: Ie3a5bc3045f2c0367c2bd2799ffe0089b209e731
2015-04-22 23:47:53 -04:00
Jenkins
15e0807256 Merge "Revert "Revert "Fix os_region_name in provider""" 2015-04-22 15:48:20 +00:00
Jenkins
5609850a57 Merge "Revert "Fix os_region_name in provider"" 2015-04-22 15:47:29 +00:00
Jenkins
b803a9a983 Merge "Revert "Move rabbit/kombu settings to oslo_messaging_rabbit section"" 2015-04-22 15:43:50 +00:00
Jenkins
a758389de6 Merge "MySQL: change default MySQL collate to utf8_general_ci" 2015-04-22 04:00:30 +00:00
Emilien Macchi
2f614cf9fd MySQL: change default MySQL collate to utf8_general_ci
Install & configure MySQL database by using utf8_general_ci collation
which is the way documented in OpenStack [1] and already the default
in puppetlabs-mysql [2].

[1] http://goo.gl/GA5gyZ
[2] https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/db.pp#L7

Change-Id: If85731786a061aed9cb44f016edc67f32c3db1a5
Closes-bug: #1446375
2015-04-21 18:53:13 -04:00
Emilien Macchi
79d307044a Beaker tests
Implement basic structure for beaker tests.

Change-Id: Ibfe041a7f500502ce357981a7ef917d1ce2a1760
Closes-bug: #1444736
2015-04-20 17:44:38 -04:00
Jenkins
eaddd54d8a Merge "Synchronize LICENSE file with OpenStack projects" 2015-04-20 14:26:33 +00:00
Emilien Macchi
aa19066721 Synchronize LICENSE file with OpenStack projects
Update LICENSE file to be the same as other OpenStack projects.

Closes-bug: #1241725
Change-Id: Ibbf55c931aee620cd785e382873b1b6b72bc18d4
2015-04-20 09:05:59 -04:00
Colleen Murphy
62c42a5f61 Revert "Revert "Fix os_region_name in provider""
Depends on https://review.openstack.org/#/c/174969/

This reverts commit e2301958e9dd4086fb6f5689499e5bb39e87e208.

Change-Id: I86db306b90cfdba53cf40bd9e3b2cce453e821d0
2015-04-17 17:43:49 -07:00
Colleen Murphy
e2301958e9 Revert "Fix os_region_name in provider"
When we revert the change that moved os_region_name, we must also
revert this fix that resulted from that change.

Depends on https://review.openstack.org/#/c/174968/

This reverts commit 354ae692a502a6089f4f82b3b58ee2aaa42443a2.

Change-Id: I65249b0734ae1a1bfbf0e5e153d19787f6aded5f
2015-04-17 17:42:37 -07:00
Jenkins
c0feafd0e9 Merge "Revert "Separate api and registry packages for Red Hat"" 2015-04-17 18:48:10 +00:00
Colleen Murphy
268370457c Revert "Revert "Move rabbit/kombu settings to oslo_messaging_rabbit section""
This reverts commit d302170d260f4e6585fedc1b4709c953d0491c56.

We  can unrevert this change once we are ready for kilo specific
changes.

Change-Id: I3079727c8333de3e9b4382a68fca3ef293ce2d48
2015-04-17 10:14:38 -07:00
Colleen Murphy
d302170d26 Revert "Move rabbit/kombu settings to oslo_messaging_rabbit section"
This reverts commit e6e8f6a56231409028ff1e7cdcd44781ca37d5b0.

Kilo deprecates these settings, but they still work. We should wait to
merge this until upstream distro packages are ready so that master is
not broken.

Change-Id: Ib05943e89969eb810527943426c566cf4a77e7ad
2015-04-17 17:13:52 +00:00