Commit Graph

542 Commits

Author SHA1 Message Date
Manuel Torrinha eb203fe30b Fixes issues with `rabbit_transport_url` method
When using rabbit_transport_url in a multi node environment, the address
used is the bind_address if we do not use a mq cluster, where it should
be the rabbit server endpoint hostname, if not we can end up with some
transport_url configurations as rabbit://<...>@0.0.0.0:<...>, if the
rabbit server is configured to listen on all interfaces.

Change-Id: If96ae42d836cbce43088efe483332cd2f7821457
Signed-off-by: Manuel Torrinha <manuel.torrinha@tecnico.ulisboa.pt>
2019-10-23 15:42:43 +01:00
Lance Albertson 02fbaadf12 Drop poise-python in favor of directly installing python packages
The poise-python cookbook is no longer maintained by the upstream maintainer and
is causing lots of issues for the testing pipeline. Originally we needed this to
install a newer openstack-client via pip, but we no longer do that.

The one exception is in the integration cookbook which I'll be pushing a change
for that as well.

In order to do this, we need to include EPEL on RHEL which doesn't seem to have
any current dependency issues so I think it's safe to bring back.

Depends-On: https://review.opendev.org/665493
Change-Id: Ic8ddf736193a6a7cea5372f2fd09e2def3634333
Signed-off-by: Lance Albertson <lance@osuosl.org>
(cherry picked from commit 16441178af)
2019-07-03 13:24:28 +02:00
Jens Harbott 1e61c09f6d Add recipe to create bash completions for OSC
The new recipe "completions" can be executed in order to create a file
with command completions for the "openstack" command in bash. We want
this to be dynamic because the set of available commands depends on the
set of python plugins installed on the host.

Bump minor version for stable branch.

Change-Id: Ib6549c00596f6560dab74491309b6b580ae7b312
(cherry picked from commit 9170a08c7c)
2019-05-20 09:57:45 +00:00
OpenDev Sysadmins 12546f4c2a OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:31:10 +00:00
Ian Wienand 48a98fd912 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Iba3d989443b5a808e921650ba58fb3f8542fafe8
2019-03-24 20:33:22 +00:00
Samuel Cassiba b8d6313be4 Add workaround to pin pip to 18.0
The default recipe does not work with the latest version of pip. The
workaround is to override to 18.0

Change-Id: If245c3c51930beba151ed8a42cec15131ea28098
(cherry picked from commit 97af7feec5)
2018-10-22 15:23:55 +02:00
Samuel Cassiba 60a64614fc Migrate Zuul jobs to openstack/openstack-chef
Change-Id: I5cc511dc3c23ab4e9f3e9e7ff30823e2ee0dfe81
2018-08-31 23:24:19 -07:00
Samuel Cassiba 0df6e3e523 stable/queens release patch
Change-Id: Id29785377f779a2e8670ce509291e4c23c90f8e0
2018-07-26 20:59:25 -07:00
Zuul cac64d6281 Merge "Add: aodh support" 2018-07-20 19:49:51 +00:00
Samuel Cassiba 34c61367ae Increment etcd to 5.5
- etcd does not take any arguments. the default is create.
- remove use_inline_resources in preparation for custom resources

Change-Id: Ic9c98978587cf81bfd430bd5b712cf537c3fb9a0
Depends-On: I161af1074cd17f2e3d2d2cf0b37a0c5fa1015fd3
2018-07-16 15:17:21 -07:00
Seb-Solon 1b779aec83 Add: aodh support
Change-Id: Ifba4d1c4111b212f67a8a8850875b44fa4795dbb
Partial-Bug: #1779940
2018-07-04 16:06:08 -04:00
Samuel Cassiba 7740328325 Simplify identity endpoint
Per the Keystone Install Guide[1] the admin endpoint is superseded in
favor of a single public endpoint. As a result, the admin endpoint is no
longer deployed by default.

[1] https://docs.openstack.org/keystone/queens/install/keystone-install-ubuntu.html#install-and-configure-components

Change-Id: Ied0fb46ae8c10273fde31691b910dc2748845faf
Implements: blueprint simplify-identity-endpoint
2018-06-14 21:05:25 -07:00
Samuel Cassiba 80706ed6e3 Add contentdir yum variable
The centos-release-qemu-ev repo package now supports $contentdir but
CentOS base has not fully caught up yet.[0]

[0] https://lists.centos.org/pipermail/centos-devel/2018-March/016542.html

Change-Id: I9e530b89092e0d4abb14750d4c181a7712c94e8c
2018-05-17 22:25:40 -07:00
Samuel Cassiba d8bbcfd1ec Update poise-python to latest stable
poise received a round of updates, so let's remove the funky workaround.

Change-Id: I657bfd5459f6973a4ae420bf9b5c87039ab1529d
2018-04-19 05:56:55 -07:00
Zuul d9f70a42a9 Merge "Add a case statement workaround for Chef 14" 2018-04-16 14:38:12 +00:00
Samuel Cassiba ca8975f512 Add delivery config
Change-Id: I8604be85a94f097d5ad86aaea0757cfe18fdfeb6
Implements: blueprint deprecate-rakefiles
2018-04-11 22:09:31 -07:00
Samuel Cassiba 37088e9af0 Add a case statement workaround for Chef 14
Change-Id: Ib618ef74ec3cbb41a638cd7b98df48721e38d82b
2018-04-11 22:08:32 -07:00
Samuel Cassiba 3bcc58e255 Change release from Pike to Queens
Change-Id: I5798a38a066ccf04c7365e4762dd5347b0a08939
2018-03-08 08:52:08 -08:00
Samuel Cassiba f397198e7b starting queens development patch
Change-Id: Id967d58537a0c98c3b65750979ef2dfc686f1960
2018-03-02 17:57:53 -08:00
James E. Blair 27fdeb031b Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I5afdb23fd3440918b5821c1ae2e1e6d56164ff75
2018-02-05 09:56:33 -08:00
Zuul 6c6e8d2393 Merge "common refactor for Pike and Chef 13" 2018-01-16 13:55:28 +00:00
Samuel Cassiba b2881c3a80 common refactor for Pike and Chef 13
- changed the default RDBMS to MariaDB in accordance with install docs[0]
- removed deprecated database, apt and yum cookbooks
- incorporated `database' and MySQL-specific abstractions from database
  cookbook
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- updated default recipe for core apt resource
- use /etc/apt/apt.conf.d on Ubuntu instead of passing the dpkg overrides as
  command line options in every cookbook

[0]: https://docs.openstack.org/install-guide/environment-sql-database.html

Implements blueprint modern-chef

Change-Id: I143e0ed0a2bdd76269fc0c402052696426d96d81
Depends-On: I00e2237cef0c9aa35f78d3ccec04a1c7b9271ce8
Depends-On: I7ee0f5eae4e79e5c70ee8de4a0094a7c34fdd18f
2018-01-11 17:42:41 +00:00
Samuel Cassiba 8484974ebb Removed chefdk conditional from bootstrap.sh
- the usefulness of the bootstrap.sh script is superseded by ansible playbooks.
  don't attempt to install chefdk a second time.

Change-Id: Ie16c40ce5e443a684cc6969dbbeaf3c3a64f01b5
2017-12-23 21:35:27 -08:00
Samuel Cassiba 377be8a41c Incremented chefdk to 2.3.4
- incremented chefdk release to 2.3.4
- populated some NODEPOOL_* macros for future use

Implements blueprint modern-chef

Change-Id: I00e2237cef0c9aa35f78d3ccec04a1c7b9271ce8
2017-11-27 08:34:16 -08:00
Roger Luethi ea0365d79a Make configuration files more readable
In order to make OpenStack configuration files written by Chef more
readable, this patch introduces a blank line before every section
heading.

Change-Id: Ib44e17cbba512c51c0098177d2dab1a91802b4d3
2017-11-02 08:51:18 +01:00
Jens Harbott 623d480d8d Add native zuul v3 jobs defined in openstack-chef-repo
Change-Id: If987fa024c538d0b1450aa1cb4c9dbd8a4a53bc3
Depends-On: I5160ce88aefa2c5b70e4a4cb085867198e60b45a
2017-10-27 10:16:59 +00:00
Roger Luethi d232f34b4c Extend openstack_command
This patch extends openstack_command to accept an array in addition to a
string as an argument.

This allows the use of openstack_command in cases where an argument
contains protected spaces.

Examples:

mistral execution-create my_workflow \
    '{"names": ["John", "Mistral", "Ivan", "Crystal"]}'

barbican secret list --name chef_test_secret --format value -c"Secret href"

Without this patch, all arguments have to be passed as a single string
which openstack_command splits on white space regardless of any
quotation marks. Therefore, the examples above will fail.

Change-Id: I0419a1526beb103839a3cf235eba6c41d9d946d5
Closes-Bug: #1723949
2017-10-20 12:26:29 +02:00
Jens Harbott 382a9db497 Fix "Fix handling of ZUUL_CHANGES"
We need quotes here in order to successfully detect empty strings.

Change-Id: I02accd55ab946f771a533670a9f810409ef03b90
2017-10-05 09:43:52 +00:00
Jens Harbott 1f6fb5605b Fix handling of ZUUL_CHANGES
With zuulv3 we may need to have dependencies on projects in
openstack-infra/* namespace, we do not have to clone these for berks,
but we also shouldn't fail on them.

Change-Id: I07799648695149688893f11dea0ffc3c354c2270
2017-10-04 07:46:03 +00:00
Jenkins eadaa68937 Merge "Drop unused messaging attributes" 2017-09-13 14:18:33 +00:00
Jenkins aafbdfdfdb Merge "Remove libvirt from integration images" 2017-09-13 14:17:17 +00:00
Jenkins 56466b285a Merge "Added etcd wrapper recipe" 2017-09-13 14:12:21 +00:00
Jenkins 7830eff2e2 Merge "Initial common Pike updates" 2017-09-13 14:10:50 +00:00
Jens Harbott e54ba0a245 Drop unused messaging attributes
These attributes were duplicated or are not needed anymore after the
great config refactoring.

Change-Id: I3b580ba36565861b6c78120fc8dc2718f6e2f452
Depends-On: I90f14fd1f0104ac6052349d79deaad342058c9e1
2017-09-12 12:58:21 +00:00
Jens Harbott f3389a2b8b Add support for Designate DNSaaS project
The cookbook for installing Designate is being developed at [1]
currently, it needs to be added to some base service definitions.

[1] https://github.com/cloudbau/cookbook-openstack-dns

Change-Id: I3407e698dd990661d280f25fc3de93aaa1477354
2017-09-12 09:01:01 +00:00
Samuel Cassiba ffbf83d17f Initial common Pike updates
- Bumped chefdk to 1.6.1
- Switched release to pike
- Added is_release attribute for testing, defaults to false
- Added RDO deps repo for testing pre-release packages
- Added ubuntu-cloud proposed repo for testing pre-release packages
- Switched the default linter to cookstyle
- Normalized the banner message
- Dropped pip installation method for python-openstackclient since the
  packages are fresh enough

Change-Id: I7a67ba2520b8e44efec6edd8506f96b0e0dc913b
2017-09-11 23:38:26 -07:00
Samuel Cassiba 38af6fbeb4 Remove libvirt from integration images
- the libvirt packages should be installed by chef, and not preseeded by the
  image

Change-Id: I37f182f8f3e7715c41e1ed0e0799386766bc8d66
2017-09-11 23:07:18 -07:00
Samuel Cassiba 65bdf0e152 Added etcd wrapper recipe
- This recipe implements a basic etcd installation for shared oslo configs.
  A wrapper recipe is needed for instantiation, as etcd is a pure library
  cookbook.

Change-Id: Id2f934a9fc408276cb0a25afc2f65ec5f5c54c15
2017-08-22 09:51:39 -04:00
Jan Klare ea0f371412
starting pike development patch
Change-Id: Ie0a45261620dbdf57e3078cbac9a85427540a45a
2017-08-17 14:18:55 +02:00
Samuel Cassiba 479af11fd7 Fixes for Ocata, define socket for MySQL
- bumped chefdk to 1.5
- bumped mariadb to 1.5
- style fixes to make rubocop/foodcritic happy
- rewrote metadata.rb for readability
- removed ancient Gemfile
- removed openshift rubygems mirror since it doesn't help us

Change-Id: I950605f384405b55737af77bc4224f1e18fee8e1
2017-08-02 16:24:48 -04:00
Jan Klare eb465b4f68 add new Chef OpenStack Team Logo to README
Change-Id: I9ffb05a7edefbf0bf6011075e17aa4b8b415ede2
2017-05-29 10:53:07 +02:00
Jens Rosenboom 6773710b30 Update OSC client version to 3.11.0
Change-Id: Id5606aa7e731bcab0b18aa0ff336c342449c1701
2017-05-23 15:19:38 +00:00
Samuel Cassiba 1e2bd7a338 Corrects rabbitmq user, yum cache cleaning
- corrects the rabbitmq 'guest' user to 'openstack' to for a more secure
  installation, as 'guest' is not secure and is deleted in other
  non-Chef deployments.
- adds update_yum_cache attribute to conditionally include the yum
  recipe, removing the hardcoded entries from the run lists. This
  prevents yum.conf from showing up on Debian-based machines.
- enforces GPG checking for RDO packages, uses correct key.

Change-Id: I89714e06eab803985ebffcdff5ff77655287c3e6
2017-04-09 18:35:44 -07:00
Jens Rosenboom baa6f22baf Switch to Ocata release
- Have Ocata as default release for master now
- switch default auth strategy to Fernet as PKI tokens have been removed
- Update OpenStackClient version
- Provide a default WSGI template that can be used from other cookbooks
- Add a fake compute_cell0 service in order to create another DB for nova

Change-Id: I8bc2eb5622b14457ef80cb70bf7a1d60c9fe9793
2017-03-10 12:27:08 +00:00
Jan Klare 08521342b1 starting ocata development patch
Change-Id: I89d2c62d5d425a2fd553cdc5b401ebd59645f755
2017-02-23 17:05:57 +01:00
Jenkins dbddca1cdb Merge "Uses OpenStack mirrors for integration gates" 2017-02-20 10:50:41 +00:00
Jens Rosenboom 3d06aeabbf Install openstackclient into virtualenv
There may be issues caused by updated OpenStack python libraries being
picked up by other services when we install python-openstackclient
globally. So instead install it into its own virtualenv and create a
symlink to the resulting binary.

Change-Id: I43d9baf13dda20d39d3c52faf1f2322eee4884a3
Partial-Bug: 1661708
2017-02-09 14:56:20 +01:00
Samuel Cassiba f2428ac3f9 Uses OpenStack mirrors for integration gates
This uses OpenStack mirrors for rubygems, CentOS, Ubuntu and Ceph

Change-Id: I2bcd89dd55d5d401320ac0ac311839efd1453063
2017-02-06 20:21:41 -08:00
Christoph Albers b6f06c34af Transport url fix
- added possibility to add more then one rabbit host
- edited rubocop constraints due to transport_url complexity

Change-Id: I9540b40c0dba46a62c21242b94089b81921700ca
2017-01-09 04:25:57 +00:00
Christoph Albers 57fa9ecef7 Tempest / Integration fixes
- added needed attributes to get glance image id
- edited specs in favor of identity v3

Change-Id: I9b87834190f013191cddaeffd1547278543e0dad
2017-01-02 15:36:24 +00:00