24 Commits

Author SHA1 Message Date
Tobias Urdin
81687e2ead Convert all class usage to relative names
In Puppet 3 there was a need to use absolute
names to prevent issues. Since Puppet 4 everything
is absolute by default which makes this not needed.

We need to change this everywhere so that we can
revert the pin in [1] that now prevents us from
using the latest version of the puppet-lint check
puppet-lint-absolute_classname_check that properly
checks that we dont use absolute names.

[1] https://review.opendev.org/#/c/697742/

Change-Id: I78b74fbeb08be7234189e4d266412fb7fb7a73c0
2019-12-08 14:58:12 +01:00
Tobias Urdin
7d06b1ea12 Move debug to <module>::logging class
Moves all the <module>::debug parameters
to be set in <module>::logging::debug instead.

This is so that we can remove the deprecated
logging options in the init classes of all the
modules.

Change-Id: I107be315a6e1a0429c32d02b9a1df8a8957bb7ab
2018-11-28 15:32:58 +01:00
zhubingbing
93eb0d93be Switch to www_authenticate_uri for glance
puppet-glance switched to www_authenticate_uri in
[1], update puppet-openstack-integration for the same.

[1] https://review.openstack.org/#/c/558449/

Change-Id: Idf8618098f7f4ccce6856984b96267ec6204c188
2018-04-24 20:25:27 +08:00
zhongshengping
c2673d63a8 Fix glance beaker error
See glance beaker error[1].

[1]http://logs.openstack.org/25/556725/1/check/puppet-openstack-beaker-centos-7/6bd1bc6/logs/syslog.txt.gz#_Mar_27_02_52_07

This reverts commit eed0c743ec4c091a385eee404935484d8dbb347a.

Change-Id: I86ac3518d01cbf1ce1e8e1be05c6197ddf5bb72f
2018-03-27 04:28:42 +00:00
ZhongShengping
eed0c743ec Fix ssl on glance
Change-Id: I18763a5c4b323b1dc52ede0130d2a818dc5bbf0c
2018-03-21 10:30:53 +08:00
Mohammed Naser
a52d9564c0
Refactor usage of RabbitMQ resources
This patch refactors all creation of RabbitMQ resources such
as users and ACLs to a define called openstack_integration::mq_user.

This will make sure RabbitMQ is automatically installed as well,
as there are times where dependencies to RabbitMQ are added to things
like Keystone which break Beaker tests in other repos (but we don't
know they're broken until the change merges).

In addition, instead of setting up dependencies on the tagged services,
we use the anchors provided which should hopefully test against them
as well.

Change-Id: Ib122ddd105529de5e12389cc9db2e4e09ec4ad54
2017-09-15 09:10:25 -04:00
Andrew Smith
c82f5689cb Add support for dual oslo.messaging backend configuration
Introduce configuration parameters to specify the oslo.messaging
rpc or notification backend as one of rabbit, amqp. The default
config is to use rabbit broker for both rpc and notification. Selection
of amqp for rpc will use brokerless qpid-dispatch router.

This patch:
* Adds notification_transport_url parameter across services where needed
* Adds rpc and notification parameters to config
* Adds qdr for rpc amqp1 configuration
* Modifies scenario001 for dual messaging backends
* supports ssl config

Depends-On: Id6ebc4ce8b0ffdb0be92a758dbf89c84c3274725
Change-Id: Ia2a79a2e1482f6f72426bc81c8e6d2a04cb211e3
2017-08-27 10:44:31 -04:00
Emilien Macchi
817f19550a Remove testing for Glance Registry
Glance registry is not required for the v2 of the API and there are
plans to deprecate it in the glance community. Allow for it to be
disabled in tests.

Change-Id: I89f319f18f4cbda4244e96732a16df81a0f836b0
2017-01-06 11:11:47 -05:00
Alex Schultz
ddcb1b4786 Switch to default_transport_url
The rabbit_host, rabbit_hosts, rabbit_userid, rabbit_password,
rabbit_port and rabbit_virtual_host parameters are being deprecated.
This change updates the p-o-i tests to use the default_transport_url for
the rabbit connection instead.

Change-Id: Icb15ad3b5d75a35afcb685f4ae03c5755031fc3d
Depends-On: I43ac3079da9e52179457ca1a34f4faee60d5617b
Depends-On: Ie63457370ae37ef5af5878b1a97b8bafa80a8189
Depends-On: Ia0c5b5072431bbc186c8b96b7f034e68e9248af3
Depends-On: I43500ac7be4296ea534266fa14ca37fc700b0092
Depends-On: If4dfe8b82518fc4e590731a805ee3115b11f4f47
Depends-On: I00d4782693c1f67b82673624d4d36822c9762303
Depends-On: If83c0f0e61a08061334536399a42767a305966b7
2016-11-30 11:06:33 -07:00
Emilien Macchi
4f9710d9ca Introduce scenario004
Introduce scenario004 that will test Ceph RGW with OpenStack.

Co-Authored-by: Emilien Macchi <emilien@redhat.com>
Co-Authored-by: Keith Schincke <keith.schincke@gmail.com>
Co-Authored-by: Andrew Woodward <awoodward@mirantis.com>

Change-Id: I0dc1ad61a5f7e4f149e368055f045846ce88c21c
2016-11-03 07:02:41 -04:00
Emilien Macchi
87b7e4d006 glance: configure modern authtoken class
Change-Id: Ibbb61ad1794fc8c8409428a36c5c1268f6ce6c9f
2016-08-29 16:41:25 -04:00
David Moreau-Simard
7aa1cca7d7 In-process token caching is deprecated, use memcached instead
Change-Id: Ia92ca1e56118e8fd625d20848c2554c446ad3dda
Closes-Bug: #1556164
2016-08-05 10:40:16 -04:00
Emilien Macchi
6bcc7756fc Drop usage of deprecated verbose option
Change-Id: Ia4ba77e4ea6e2afe591772cb33cd4ca0080ef6a6
2016-05-19 15:05:17 +00:00
Emilien Macchi
a09ab0f4dc glance: force swift backend to use keystone v3
Keystone v3 is the way to go, we need to test Swift backend for Glance
and make sure it can use Keystone v3 API.

Depends-On: Id384b0eca750e0946b42cb8ccb60a7f9ed64d21a
Change-Id: I3665d78736ae05088fc5e975ffe9ad39ba5a3de2
2016-04-02 22:32:35 +00:00
Emilien Macchi
4ed8366f07 scenario002/centos7: switch RabbitMQ and OpenStack to IPv6
This is a first iteration of testing IPv6 deployment.
This patch will deploy scenario002 on centos7 by using IPv6 network.

To make it work on Ubuntu, it will require more work, that will be done
in future iterations. During my testing, I found some bugs and did not
investigate because I wanted a first scenario working on v6.

Same for scenario001 and scenario003, they'll be tested later.

Change-Id: Ib28b379645b5a3d351438e0408a9de62b9f48302
2016-03-29 13:54:17 -04:00
Emilien Macchi
3874255b9f scenario002: switch Keystone/Glance/Ironic/Nova to SSL
* Deploy Self-Signed Certificates for both IPv6 & IPv4 deployments.
* Disable IPv6 for RabbitMQ now, for SSL reasons, will be enabled again
  later in a next iteration.
* Deploy Ironic API under WSGI instead of eventlet.
* Switch Glance API, Ironic API and Keystone to SSL.
* Configure Tempest with SSL endpoints when needed.
* Reduce the Ironic tests because of [1].

[1] https://bugs.launchpad.net/ironic/+bug/1554237

Note #1: puppet-swift, and puppet-cinder will require some work to support SSL, so it's not
implemented in this patch.
Note #2: we don't enable SSL for Neutron because of
https://bugs.launchpad.net/neutron/+bug/1514424

Change-Id: Ib2b5289b6f5e82f43cf60dee3152b2c2ddd5a014
2016-03-14 16:34:29 -04:00
Nate Potter
9bbbb1a8db Update glance::api stores parameters
The patch to implement multiple stores configuration
changed the way that the known_stores variable works,
raplacing it with stores (a list of each store) and
default_store (the default backend store). This patch
updates these parameters to reflect that change.

Change-Id: Ia0838be44a6d91e8b9b38517262c27b8bc1ded08
Depends-on: I28a79ae36e673a3537ea16910d338666b65c80f7
2016-03-09 20:58:05 +00:00
Emilien Macchi
a0c3df6eae scenario002: deploy RabbitMQ with IPv6 binding
* Configure RabbitMQ to bind on IPv6 (scenario002 only).
* Configure OpenStack service to connect with an IPv6 on
  RabbitMQ (scenario002 only).

Change-Id: I0e4ab4b03d7b1c7bb47c55a751bc04f29292a621
2016-03-01 14:32:47 -05:00
Emilien Macchi
4a81d1da98 refactorize SSL configuration
Add config.pp file so we can enable common features (ssl, ipv6, ...)
more easily.
Also move the logic into config.pp so we avoid dupplicated code.

Change-Id: Ib7993ad1fbabfc22dc4ee22f72671303190e39e2
2016-03-01 14:32:08 -05:00
Emilien Macchi
2be3e3f9d2 scenario002: deploy RabbitMQ with SSL
* Manage Puppet OpenStack CI CA and create a common certificate,
  auto-signed.
* Configure RabbitMQ to activate SSL on scenario002
* Configure OpenStack services that run on scenario002 to connect to
  RabbitMQ using SSL protocol.

Change-Id: Ic435078472ba4e0e0eaf04a64e5bcb7aabba7b3d
2016-02-29 14:37:56 -05:00
Denis Egorenko
918a6c9342 Use swift backend for glance in scenario002 jobs
This commit adds ability to use swift as glance backend for our
scenario002 integration jobs.

Depends-On: I232536d179db92d82f1c7459a0f13e5ca5576f42

Change-Id: Ie187ffb0e80a623ca2837b0bd0c0502e9d7dc9dd
2016-02-29 14:15:23 +00:00
Emilien Macchi
7c2ff7daf3 scenario001: deploy Glance with RBD backend
* Allow glance.pp to configure RBD backend.
* Switch scenario001 to run Glance with RBD backend.
* Update README with more documentation about Glance backends.

Change-Id: Ib2dd8a83b5b6a3c39030c44f5e6a0ae7db31c12c
2016-02-18 12:43:43 +00:00
Emilien Macchi
1bc3782155 Use pymysql for database driver
PyMySQL is the new database driver when running MySQL.
This patch updates our manifests to run it, since our modules already
support it.

Change-Id: I758c5c3bc7295f57102098cbe0d2d0f3b0f2692e
Depends-On: I7604cca9e2d7bf0b93c820adec5f937f72b64fa8
2016-01-08 13:40:13 -05:00
Emilien Macchi
62eb545ad9 Refactor fixtures & manifests to reduce code lines
Create manifests for each project and include them in the right
fixtures manifests, so we can reduce the code and avoid dupplicated
puppet manifests.

Change-Id: I66a98691b3014998f4c2529d2e3389ef1cbcc5f4
2016-01-02 17:43:03 -05:00