Commit Graph

1159 Commits

Author SHA1 Message Date
Roger Luethi 33aa18a008 placement_api: create valid apache config before installing package
If apache is (re)starting while the chef-client installs the
nova-placement-api package, it may pick up the vanilla apache2 conf file
before chef-client gets around to fixing it which may result in apache2
failing due to a non-working configuration.

This changeset eliminates the race by creating a valid configuration
before installing the software. The solution is based on the assumption
that no reasonably configured package manager will overwrite an
existing, user-created configuration file.

backport: queens

Change-Id: Id9f1d165411fc5b3cc73b29a36840cf4dc63d81b
(cherry picked from commit ff074af903)
2019-08-02 21:40:22 +00:00
Jens Harbott 421ae68912 Fix Berksfile to request stable/queens branch
We are in the stable/queens branch and need to use the matching
dependencies, otherwise things will fail.

Change-Id: I7ae5cb83f6bd3774c978f3152a137c20fe7ab20c
2019-08-02 19:45:29 +00:00
OpenDev Sysadmins a6f21ae978 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:25 +00:00
Zuul cceb8208c8 Merge "Add www_authenticate_uri to keystone_authtoken" into stable/queens 2018-10-05 16:44:37 +00:00
Roger Luethi b9740194cb Make nova.conf more readable
This patch replaces nova.conf.erb with openstack-service.conf.erb from
the openstack-common cookbook.

Besides removing some redundancy, it also makes nova.conf more readable
(due to a fix to openstack-service.conf.erb that never made it to
nova.conf.erb).

backport: queens pike

Change-Id: I07aeb7617ca152f66ec239cef4bcbef642c66bf7
(cherry picked from commit 55b58702fa)
2018-10-05 09:58:50 +00:00
Roger Luethi 96591e3452 Add www_authenticate_uri to keystone_authtoken
Without www_authenticate_uri set, nova logs contain warnings:

WARNING keystonemiddleware.auth_token
        Configuring www_authenticate_uri to point to the public identity
        endpoint is required; clients may not be able to authenticate
        against an admin endpoint

backport: queens

Change-Id: I0ff8202455b576227b882670c7254487b5e11f25
(cherry picked from commit 7053785ecf)
2018-10-05 09:58:14 +00:00
Zuul 7f740f982d Merge "Rename attributes: vncserver_* -> server_*" into stable/queens 2018-10-04 22:34:23 +00:00
Roger Luethi 50589b0e2a Rename attributes: vncserver_* -> server_*
Source:
* openstack/nova git repo:
  conf: Rename two VNC options
  Change-Id: Ic05c2c8364e015f6878b0bc25449216624568ad5
  commit e5a03e3c54d57aa29bd8154c9eddf7ee52c6c3b5

Change-Id: Ib58a0c2ef5096d9ba0007b5783627e4f9ea4ecf3
2018-10-02 17:25:19 +02:00
Roger Luethi 6037be201c placement: os_region_name -> region_name
Source:
* openstack/nova git repo:
  Update the deprecate os_region_name option
  Change-Id: Id44d456bb1bdb0c5564ad4f5d9cdee2f41226052
  commit d163fb6d697d74ea93ffc394187871a3a8c4ccd8

Change-Id: I47f8451b830892ff0b2d85a553cfe31b8deec1b0
2018-10-02 16:42:40 +02:00
Samuel Cassiba 8272a339e5 Migrate Zuul jobs to openstack/openstack-chef
Change-Id: I7b41c586e6b94241ac8f862d95dbd382da5c5bf0
2018-08-31 23:24:26 -07:00
Samuel Cassiba 326130da9a stable/queens release patch
Change-Id: I70211e67a06f3de4188b4455b8d7daaee401e71b
2018-07-26 20:54:19 -07:00
Samuel Cassiba 79b76424f3 Use internal identity endpoint for services
Depends-On: Id74966d9f1279f725bc41c08e434230a7845bbc1
Change-Id: Ibce1f2d4796e44941df4b7256de786e49a7386cc
2018-07-16 12:38:42 -07:00
Samuel Cassiba 4992010231 Convert Nova APIs to WSGI services
To be consistent with the install guide[1], the Nova services should be
deployed as WSGI services.

[1] https://docs.openstack.org/nova/queens/install/controller-install-ubuntu.html

Change-Id: I49a767724e744f98d7f008411755c063f96a4c9d
2018-06-26 13:54:13 +00:00
Samuel Cassiba 3a4c7f6b6f 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: Ife7bb6d09eafd137c6858f6ae18d4d34508928a6
Implements: blueprint simplify-identity-endpoint
2018-06-14 19:17:02 -07:00
Jens Harbott ad3d1c3c65 Refactor libvirtd.conf creation
Replace the hardcoded bloated template with a variant of our standard
template that only includes the values that are really needed.

This will allow deployments to override the default values and for
example deploy libvirtd with TLS authentication according to [0].

[0] https://wiki.openstack.org/wiki/OSSN/OSSN-0007

Change-Id: Ib7b305670f525bbf975ec33ed070e2d960347ef4
2018-04-23 12:35:19 +00:00
Zuul 2c1e4d9822 Merge "cleanup attribute leftovers that are not used anymore" 2018-04-23 10:02:11 +00:00
Zuul 1f93a5962a Merge "fix libvirtd service naming and env file for debian" 2018-04-16 15:29:18 +00:00
Jan Klare 8ed820e319
fix libvirtd service naming and env file for debian
Change-Id: I6a69e3ad43936d032ac252d8a6c9a1d2bc78bfbd
2018-04-16 15:14:02 +02:00
Jan Klare ad88dc2a78
cleanup attribute leftovers that are not used anymore
* removed all unused attributes
* removed vmware specific configuration option that can be set in a
wrapper cookbook (and was not maintained for quite some time)
* removed caseswitch for nova user and group since we currently only
support debian and rhel
* moved all libvirtd related config options to specific attribute file
in preparation for further refactoring

Change-Id: I42a0bbcd03a570b9d6d24ba32ed2cafacc33ec76
2018-04-16 15:09:22 +02:00
Samuel Cassiba 2252e2d80d Add delivery config
Change-Id: I554645dcae0fb8fa9829bb459f681b56a057d93d
Implements: blueprint deprecate-rakefiles
2018-04-11 21:51:34 -07:00
Jan Klare 2434b03f7d
remove all ceph related attributes,recipes,specs and the cookbook dependency
Change-Id: I24f9976ed57a90cb7062ed990e758fd9707d04b4
2018-04-05 16:38:31 +02:00
Samuel Cassiba 0bef2dc3fc starting queens development patch and use git.openstack.org
* use git.openstack.org instead of github for berks dependency
resolution

Depends-On: https://review.openstack.org/549345
Depends-On: https://review.openstack.org/549346
Depends-On: https://review.openstack.org/549348
Change-Id: Ie18c080e001070bb081e30ec0633f3c25a5f2b55
2018-03-06 12:16:08 -08:00
James E. Blair 28fe28e8dd 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: I4ba7d342c78ba223329ed924d03efdfbd7ad2262
2018-02-01 14:41:37 -08:00
Zuul c8e1159e59 Merge "compute refactor for Pike and Chef 13" 2017-12-22 21:34:47 +00:00
Jan Klare 1033a5f7e7 rename web_app placement-api to nova-placement-api to align with package
* The nova-placement-api package creates a "nova-placement-api.conf" in
apache2 sites-available, which currently leads to two conflicting
configurations (our "placement-api.conf" and the one from the package
"nova-placement-api.conf"). With this change the
"nova-placement-api.conf" will be replaced with our version of it.

Change-Id: I8ee7f190a6d73cace60a5fcd6b58d6b4e0288a95
2017-12-13 10:26:04 +00:00
Samuel Cassiba 859fc5df20 compute refactor for Pike and Chef 13
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket access
- parameterize run directory for apache2

Implements blueprint modern-chef

Change-Id: I6cf4cd67a96c7d353c4871db02be42ebdc9c1528
2017-12-10 20:02:43 -08:00
Jens Harbott b1f166b674 Fix creation of cell0
We need to use the proper db_uri() result here, like we do for the
database connection options in nova.conf, otherwise things will fail in
a multinode setup.

Change-Id: I70d27eb4456c9e8b322c05649254624d4be4c5e5
2017-11-30 06:55:07 +00:00
Roger Luethi d82d6a9f7c Remove domain role from nova, placement service users
This patch removes the openstack_user resource with :grant_domain
action. A user is always created within a specific domain; such a
membership cannot be tacked on later. This resource gave the users
the role intended for their project for the domain (i.e., for the Default
domain instead of for the service project).

We add the domain_name attribute that creates the nova and placement
users in the desired domain. Note that this change needs a sufficiently
recent openstackclient cookbook -- otherwise the domain_name attribute
is ignored (which does not matter as long as the users are to be created
in the Default domain).

Change-Id: I333da4d0d93c8a0065c6c1001b5ebed8cd6eab5c
2017-11-13 15:09:39 +00:00
Roger Luethi cb414a9655 Remove superfluous role_name arguments
This patch removes the role_name when using openstack_user's :create
action (it gets ignored by the target method).

Note that the spec test would still pass if only the line in
identity_registration.rb (but not the test) were changed, because the
code that actually does grant the role to the resource is executed right
after user creation and before any tests check the resource for the
existence of the role_name attribute. In other words: if the argument
were required in a call but only supplied in another call, the spec
tests would not catch it. Something to watch out for.

Change-Id: I559ffa40c37f8e073a8e7fcb5186f2270e5ccd72
2017-11-13 15:59:02 +01:00
Jens Harbott 0a68301c65 Add native zuul v3 jobs defined in openstack-chef-repo
Change-Id: I75739c80aaa43a17d9a4b9daaa9f5567fb75e3c1
2017-11-02 10:28:21 +00:00
Seb-Solon 638c651975 Replace platform_family method and use attribute instead
platform_family method is not working on latest Chef versions

Change-Id: I65f1c8a6daffada15406c55a48643fe134794aa7
Partial-Bug: #1724987
2017-10-28 15:45:46 -04:00
Samuel Cassiba cbe2ef6647 Initial compute Pike updates
- Switched the default linter to cookstyle
- Deprecated config settings for Pike
- Normalized template comment

Depends-On: I7a67ba2520b8e44efec6edd8506f96b0e0dc913b
Change-Id: I7abd4194bb7f322764309cad514040c1f5feca00
2017-09-25 16:57:08 +00:00
sunjia 32c60ffe6d Replace http with https for doc links in cookbook-openstack-compute
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links

Change-Id: I498646c65f25e9f205f1ba58426174a961caeb55
2017-09-07 00:27:41 -07:00
Jan Klare a0bc7dc26a
starting pike development patch
Change-Id: Ied06f039a076edaa64f010433fe0ab98633ae861
2017-08-17 14:19:01 +02:00
Jenkins fe0ab45e81 Merge "Added cellv2 support" 2017-08-11 15:51:07 +00:00
Samuel Cassiba 012902ad92 Added cellv2 support
- Added basic cellv2 recipe, as it is required from Ocata on
- Style and lint fixes to support newer chefdk
- Rewrote metadata.rb for readability
- Removed ancient Gemfile

Change-Id: I97b453fc419bfbf01679dadf39a256b1f0f99859
2017-08-10 17:35:07 -04:00
Jan Klare ca7788bfa0 add new Chef OpenStack Team Logo to README
Change-Id: Ie7d95d4b1513e277a27832206aa73c79b9aa4c76
2017-05-29 10:54:53 +02:00
Jenkins 5460cfba68 Merge "Update api-paste.ini template for Ocata" 2017-04-22 15:11:36 +00:00
Jenkins 2c2f5b9584 Merge "Deprecated nova-cert, fixups for Ocata" 2017-04-19 15:35:49 +00:00
Jens Rosenboom aed3567528 Update api-paste.ini template for Ocata
The default content of api-paste.ini has changed, in particular we were
missing the http_proxy_to_wsgi filter allowing proper URL discovery.

Change-Id: Iaa968a963df5baf49116829f111ef4f46c4f8951
2017-04-19 15:17:06 +00:00
Samuel Cassiba 814f027230 Deprecated nova-cert, fixups for Ocata
- nova-cert is deprecated and causes build failures if attempts to
  utilize it are made.
- nova-placement-api package is prefixed with openstack- in RDO.

Change-Id: Iea2070467503f9a434e927e2580ef2b4135e98f7
2017-04-14 06:44:07 -07:00
Jens Rosenboom a21098bd8a Add default hosts discovery interval
With Nova Cells v2, new compute hosts must either be added explicitly to
the cells database or Nova can run an automatic discovery job from time
to time. We opt for the latter, allowing for painless addition of new
compute nodes to an existing setup.

Change-Id: I3b41887e6a3fcc62a5f25319b6da4811d7636b1a
2017-04-10 08:55:28 +00:00
Jens Rosenboom 40b6a06273 Change libvirt group name
Ubuntu has decided to change the group name from libvirtd to libvirt after
Xenial. This change is also in the libvirt packages from the Ocata UCA, so
we need to follow them here.

Change-Id: Ib87e9b5142b835c4be5e07b9d53e39b48b6f605e
2017-03-09 15:32:32 +00:00
Jens Rosenboom dc339a859d Add recipe to deploy Compute service placement-api
The placement-api has been added by nova for the Newton cycle, it has
become mandatory for Ocata.

It is deployed as a wsgi app similar to what we have for keystone and
gnocchi already.

Change-Id: I1d1f1cc7046cb30a91894a0c884bc861d7f3dd95
2017-03-06 14:34:37 +00:00
Jan Klare 206df1c452 starting ocata development patch
Change-Id: I538ad27df8d415a591146ee50972621837ab2be8
2017-02-23 17:06:05 +01:00
Jens Rosenboom ced5be5512 Remove docker-setup receipe
The docker-setup receive has been unmaintained and untested for some
time now. The nova-docker project is also being removed from
OpenStack [1] and people are advised to look at deploying Zun as
a replacement.

This also avoids having to rewrite this receipe in order to remove the
use of the deprecated python cookbook.

[1] https://review.openstack.org/430232

Change-Id: Ia8c9db272c6a0353130fc93d446b385fd72ac250
Partial-Bug: 1558538
2017-02-09 15:06:49 +01:00
Jan Klare f7f6c28249 remove libvirtd opt '-d' because it conflicts with systemd service
Change-Id: I05c78aa942509ea8dbd75558f4747d7ac1c4e6bc
2016-12-20 14:23:43 +00:00
Christoph Albers 61fc649dd9 RPC_backend / transport_url workover
- removed deprecated rabbitmq attributes
- added rabbit_transport_url

Change-Id: Iaf33e8f5ae97ee0c07cfccf67d32d0e05f48e5bb
2016-12-20 11:45:34 +00:00
Jenkins 0aebc9986a Merge "Deprecated python-novaclient" 2016-12-20 11:09:36 +00:00
Samuel Cassiba 5261813e40 Deprecated python-novaclient
- deleted client.rb
- deprecated python-novaclient references
- removed neutron packages

Implements blueprint newton-xenial

Change-Id: I8ff0dcad66ab937f18faf82e6af0cc626dfff15a
2016-12-20 08:40:40 +00:00