Commit Graph

262 Commits

Author SHA1 Message Date
Ghanshyam Mann 7372103182 Retire openstack-chef: remove repo content
OpenStack-chef project is retiring
- https://review.opendev.org/c/openstack/governance/+/905279

this commit remove the content of this project repo

Depends-On: https://review.opendev.org/c/openstack/project-config/+/909134
Change-Id: I4561c6eefef05c672a4f6cb9d15b1a5a29e81110
2024-02-18 05:01:47 +00:00
Lance Albertson dd5a46c6dd CentOS 8 support
- Update package names
- Migrate to using apache2_mod_wsgi resource and require apache2 ~> 8.6
- Don't add --listen to libvirtd on EL8
- Update ChefSpec

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-image/+/815148
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-network/+/815172
Change-Id: I2e66b923b91d763ea7f484421dbdad883d9117a3
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 16:34:14 -07:00
Lance Albertson 50be0465fe Set threads=1 for api wsgi
This adds some attributes for adjusting the thread counts for each wsgi
application. By default we use 10 threads, however for the api service, it needs
to be set to 1 due to this upstream issue [1]. In addition, increase the
processes for the api service to 6 to account for the reduction in threads.

[1] https://docs.openstack.org/releasenotes/nova/stein.html#known-issues

Change-Id: Iebf78d24c57a069eabced1bf35051cbae5014902
2020-04-09 12:23:41 -07:00
Lance Albertson 868900d090 Update to apache2 ~> 8.0 cookbook
This brings us up to date with the latest apache2 cookbook which
included a major refactor in 6.0.0 removing all of the definitions and
recipe with proper resources. Instead of using the apache2_default_site
resource, directly use a template and then enable the config file using
the apache2_site resource. This gives us the most flexibility.

Additional fixes:
- Install mod_wsgi as a package on RHEL since there is no built-in
  resource for it.
- Don't set SELinux to permissive on RHEL (I tested this works properly
  with it set to enforcing).
- Remove hack for restarting apache.
- Convert web_app to template and subscribe to restarting apache.
- Remove resources to restore SELinux contexts since this taken care of
  by Chef now automatically.
- Fix resource ordering in placement_api
- Improve ChefSpec tests
- Add missing placement_api RHEL tests
- Fix issues with chain file and cipher suite in in wsgi template
- Include additional cookbooks in Berksfile required for CI

Depends-On: https://review.opendev.org/702772
Depends-On: https://review.opendev.org/701824
Change-Id: Ib404ab6bfcae3340fd7f0f924539ca6c445b55cf
2020-01-30 11:22:19 -08:00
Roger Luethi 55b58702fa 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
2018-10-02 17:19:43 +02: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
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
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 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
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
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
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
Jenkins 2aec9921b7 Merge "Remove api-ec2 recipe" 2016-04-11 08:23:53 +00:00
Jan Klare 53eacd9934 added api_db sync and made libvirtd-bin template configurable
* added sync for api_db (required in mitaka) and needed configuration options in
  nova.conf
* made libvirtd_opts configurable in preparation for xenial and systemd on
  ubuntu (libvirtd needs to be started with just -l option on xenial)

Change-Id: I6c01e45f10d75db96c95c0bb37b016ada2f5933f
Depends-On: Idf6645064a1c2f337f542b29a026969c7d35efbe
2016-03-23 13:47:25 +01:00
Samuel Cassiba 749f4ccfd3 Remove api-ec2 recipe
api-ec2 is being replaced by the `openstack-ec2` cookbook.

Change-Id: I5b4bc088bbf9a5061ed311d164dc381a3caca2d5
Depends-On: I2dbbafaf8641ece00d4181d1ea4ba93f00eed6ed
2016-03-18 08:04:29 -07:00
Christoph Albers 799029519b refactoring final step
* added endpoint attributes (moved from common)
* removed qpid as a messaging option (can be incuded in a wrapper)
* removed os-bare-metal dependencies
* deleted default attributes from nova.conf.rb originated in
  openstack-common
* removed fedora and suse as supported platform
* adapted optimized endpoint logic
* removed rubocop exceptions in recipes and regenerated the
  .rubocop_todo.yaml containing all remaining exceptions
* added versionbumb for refactored os-identity and common
* moved version up to 13.0.0 for mitaka release
* adapted the specs (unit tests) to work again
* refactored spec_helper.rb method "expect_creates_api_paste"
* added new logic into templates/default/nova.conf.erb
* refactored attributes throughout all recipes that were connected to
  the attributes used for the nova.conf.erb template to adapt the new
  template attribute syntax
* moved all attributes from attributes/default.rb that were used in
  nova_conf.erb to attributes/nova_conf.rb
* refactored attributes to fit upcomming template logic
* refactored recipes/nova_common.rb to fit upcomming template logic
* removed all attributes from default.rb and nova.conf.erb which are set
  as default in attributes, openstack doc and used to render the template
* removed nova-network as a supported config option

Depends-On: I9cc1b5cc069987ac83e064322c2291772505ff5f
Depends-On: Ifa5a7f4e1df47a3961976e64f654224864c3dcb4
Depends-On: I3262b2e6f792f37c32a446e6567790b82bdd4613
Depends-On: I0547182085eed91d05384fdd7734408a839a9a2c
Implements: blueprint cookbook-refactoring
Change-Id: I9ac9eeb29ab27f31394830e4b6f999d5870cc0e4
2016-02-08 12:05:12 +01:00
Mark Vanderwiel dac42656c1 Sync nova paste.ini with liberty changes
Change-Id: Ie84d5258a4290110df9bf7754eb3dfce7791e223
Partial-Bug: #1501064
2015-09-29 16:04:42 -05:00
Kasey Alusi 4d552ee2e4 Add heal_instance_info_cache_interval to nova.conf
This attribute is not currently a part of the cookbook template.
Adding this attribute will allow operators to configure this option
which can reduce unecessary neutron requests in non OVS or Linux
Bridge deployments.

Closes-Bug:1499551

Change-Id: Ibcf6b7bb614d629926b7d1f50ac552a9d1b1e670
2015-09-28 08:41:41 -07:00
Min Min Ren e6d706c956 Add database slave connection configure
- According to the bool attribute
   node['openstack']['endpoints']['db']['enabled_slave'], enable/disable
   nova database slave_connection
 - Add the slave_connection generated from db_uri function

Implements: blueprint sql-slave-connection-support

Change-Id: I8d904ca7076d7e6a74f1eda09c40ee79f1fc1a7f
2015-08-27 17:09:11 +08:00
Lan Qi song e8c02f84f3 Make image filesystems attribute can work
Closes-Bug: #1474726

Change-Id: I942d7972ae7e0796285e87d81691d48f8e292994
2015-07-15 16:32:27 +08:00
Zhe Jiang f78d153935 Make serial console configurable
Add serial_console section to nova.conf template.
The section attributes are enabled, base_url, port_range and
proxyclient_address.

Depends-On: I9c4061ea196a511f7fb306f3130db75f4ba52ff1
Closes_Bug: 1470025

Change-Id: I5336a9bc83669e7200afe68702031f2a13d1a2e0
2015-07-08 15:27:08 +08:00
Chen Zhiwei 8bd3223e60 Make vnc_enabled, use_usb_tablet, cpu_mode configurable
Change-Id: I2fe55f277686901258f9e414a39c36fd5b1e12a9
Closes-Bug: 1467838
2015-06-29 13:06:46 +08:00
XiaoPei Liu 01678f7513 Allow keymgr attributes to be configured.
The keymgr section attributes 'api_class' 'fixed_key' should be configured to be used for encryption.

Change-Id: I9e6c91bb67243b839bc10f7d906f8a3bf73ed791
Closes-Bug: 1468171
2015-06-25 16:58:11 +08:00
Mark Vanderwiel 0a59088d43 Allow rabbit mq kombu ssl configuration
Add the rest of the kombu ssl configuration options.

Change-Id: I94465c970041f54357771af090a2a4cb9e0f0ae3
Partial-Bug: 1464706
2015-06-16 11:08:06 -05:00
Jenkins ba767d4187 Merge "Allow oslo rabbit heartbeat configuration" 2015-06-12 17:45:52 +00:00
Mark Vanderwiel 41ab1426b9 Add nova glance image file systems support
Allow the configuration of file systems for nova images.

Change-Id: I95d041f2dfe19df25933cfa2e53a409a65fd7899
Closes-Bug: 1463892
2015-06-11 08:53:26 -05:00
Mark Vanderwiel 51886f084a Allow oslo rabbit heartbeat configuration
In order to allow components to better handle and respond to mq failures,
oslo has some heartbeat options that are useful.

Change-Id: Ib69e69e1ace08448d789f3eb28749d0d228ae00d
Partial-Bug: #1462438
2015-06-10 14:32:01 -05:00
Jenkins 7c43f00c97 Merge "Add "scheduler_use_baremetal_filters" option in nova conf for ironic" 2015-06-04 14:59:06 +00:00
wenchma 3b6b4a9de0 Add "scheduler_use_baremetal_filters" option in nova conf for ironic
This attribute decides whether to use baremetal_scheduler_default_filters or not.
Set the ironic default attributes for True case.

Change-Id: I2c58707140a1e54fb8fdd7627d23aa23f1a236ea
Closes-Bug: #1444860
2015-06-04 14:07:07 +00:00
Jens Rosenboom f81ce175e2 Use correct rbd pool for nova compute
The libvirt option "images_rbd_pool" must refer to the pool for
instances instead of the pool for glance.

Change-Id: Ib384be4e4ee293118c427562d57e01c8de65fdd8
2015-06-04 15:46:35 +02:00
Wei Hu 8d1f4228d2 Add rabbitmq max_retries and retry_interval in nova.conf.erb
Oslo.message using rabbit_max_retries and rabbit_retry_interval to
define reconnect rabbitmq server times and interval when can not
connect to rabbitmq server.

Change-Id: Ie5ce28de16ed2b4b9c51a8b81e4accaca1466cac
Partial-bug: #1439968
2015-05-12 16:30:37 +08:00
Mark Vanderwiel a06c63ccff Allow guestfs section to be configured in nova.conf
Change-Id: I500ff9dcc324a2b8e637e3c2e36745dee2970372
Closes-Bug: #1453172
2015-05-08 10:22:53 -05:00
Mark Vanderwiel 1680ba280e Use identity_uri_transform for identiry_uri support
Remove deprecated keys and use identity_uri via the new transform
helper method.

Also, cleanup specs for endpoint testing to make sure Common is
fully tested.

Change-Id: I3beac9d8d80d8a1a15e44bf944f1d8ca84d45350
Implements: blueprint identity-uri
2015-04-21 09:20:13 -05:00
wenchma e8ccaa22b4 Configure "reserved_host_memory_mb" attribute to support bare metal
The "reserved_host_memory_mb" attribute is default to 512MB when not
setting, it will make flavor match failed, so for bare metal service,
we need to set it to "0", no need to reserve host memory.

Change-Id: Idce5e5c223fdcbd59ae9304819ae04b1de8c1c3c
Closes-bug: #1446035
2015-04-20 11:57:45 +08:00
Jenkins 26347683e4 Merge "osapi_compute_link_prefix should not be set by default" 2015-04-16 22:31:02 +00:00
Jenkins 32f9a75632 Merge "Enable config_drive_format parameter for nova" 2015-04-16 21:49:46 +00:00
lqslan 54de5f9f8b Enable config_drive_format parameter for nova
After this patch https://review.openstack.org/#/c/133919/ has been
merged, we can do live-migration with the vfat config drive now.

This patch enable config_drive_format parameter for this purpose.

Change-Id: I3bb25d48bb8882ad898304b61d52fa2a75c2101b
2015-04-09 17:13:35 +08:00
Mark Vanderwiel 0d57f7097f osapi_compute_link_prefix should not be set by default
Correctly default osapi_compute_link_prefix to nil.
Added osapi_glance_link_prefix for completeness.
Created attributes for these for flexibility.
Updated specs to cover these and other misc keys.

Change-Id: Ic2fd79fc74dedb649b08c451ded678ac1d1ed310
Closes-Bug: #1418583
2015-04-08 13:31:39 -05:00
wenchma e97ccc7484 Update the deprecated group/name to Kilo release
For Kilo release, there are many deprecated group/name in conf files of openstack,
so we need to change the deprecated group/name to new group/name.

blueprint conf-section-update-for-kilo
Closes-bug: #1436170

Change-Id: I6b5d930257d2dfa39fda51ccf37695fb442d88e4
2015-04-07 11:22:32 +08:00
wenchma bc54fdc649 Enable kombu_ssl_version configuration for Rabbitmq SSL
This commit depends on https://review.openstack.org/#/c/165302/

Change-Id: I387a62ef545a2bfaa6f294d1b289998245cd91d3
Closes-bug: #1433405
2015-03-23 15:49:10 +08:00
wenchma 33fca8c176 Add ironic section to openstack compute service
Add ironic section configuration to make openstack compute service
use openstack bare metal service.

blueprint bare-metal-enablement

Change-Id: I7492edac417609a0eb952f0ca0780876ef8564fc
2015-03-06 12:04:06 +08:00
Mark Vanderwiel 631f097acf Add compute metadata api to common endpoints
Nova metadata api endpoint was missing from common endpoints.
This patch will be follow by one for compute and network to
make use of these new endpoint.

Change-Id: I1c3bfe3dac4b04c7f482f698523327ce4754e594
Partial-Bug: #1425633
2015-02-25 15:18:38 -06:00
Elliott Davis 557afe0989 Add dependency on upstream ceph cookbook for better key management
The upstream ceph cookbook already hooks into chef for environment information.
This patch utilizes the client LWRP to create or add ceph keys for RBD support.
This patch also changes some default attribute names for more sane organization

Partial-Bug: #1409943

Change-Id: Ia87e123ae2d88e3122b8d66d8ff144a804e6d8c4
2015-02-02 11:16:16 -06:00
Xiao Xia b872103a53 Add setting for compatible with older rpc API
Set [upgrade_levels] in nova.conf to compatible
with order rpc API, such as add compute=juno to
enable kilo rpc API compatible with juno compute,
for kilo controller can manage the juno compute node.
According to
https://review.openstack.org/#/c/53944/
http://docs.openstack.org/openstack-ops/content/ops_upgrades_upgrade_levels.html
https://github.com/openstack/nova/search?p=1&q=upgrade_levels&utf8=%E2%9C%93

Change-Id: I42c88ba06d2f1ea4f09dc4925e61cca74625337f
2015-01-20 11:07:18 +08:00
Yi Ming Yin f3952ed4e4 Update deprecated neutron_*/glance_*/cinder_* options in nova.conf
In openstack juno release, neutron_*, glance_* and cinder_*
configurations in
[DEFAULT] section have been deprecated by a new section
[neutron]/[glance]/[cinder]
https://review.openstack.org/#/c/97461/
https://review.openstack.org/#/c/102212/
https://review.openstack.org/#/c/100567/
https://review.openstack.org/#/c/100800/

In Kilo, these deprecated options have been completely removed
https://review.openstack.org/#/c/132885/
https://review.openstack.org/#/c/132900/
https://review.openstack.org/#/c/132887/

If early Kilo adopters use openstack-compute cookbook for deployment,
nova-compute won't work any more.

In order to provide support for early Kilo adopters update the nova.conf
template in Juno to reflect these changes.

Change-Id: I4965927c66118aad46a736ea84e437de9b60fee4
Closes-Bug: #1339695
2015-01-10 12:48:05 +08:00
Mark Vanderwiel e19da7ee1e rabbit ha cleanups
allow rabbit ssl to be enabled when ha is used.

Change-Id: I2c1ca78e255d7288bb30925fd9dd9cde9ff08e9a
Partial-Bug: # 1408705
2015-01-08 13:22:01 -06:00
JJ Asghar 94cb7fdff2 The greatest commit on the planet.
It seems that it's "S" now instead of "s".

Change-Id: Ice79ea5c23e02c330b2a38098f424f957ab7cd03
2014-12-08 11:43:52 -06:00
jun xie 6b19226653 Provide nova the option to choose cinder version
The default version in nova is
v2(volumev2:cinderv2:publicURL).

Change-Id: I550c8f30f6479890bbb961ffdd47219b256c5f79
Closes-Bug: #1391780
2014-11-12 17:29:11 +08:00
Chen Zhiwei 97867f566b Update some options in nova.conf.erb
Update option compute_scheduler_driver to scheduler_driver.
Remove option max_cores since it is not appeared in latest release.

Reference below patch for details
* https://review.openstack.org/#/c/26625/
* https://review.openstack.org/#/c/15068/

Change-Id: I7f98af8225fdcd6864cec21cf1b1fc0cc075356f
Closes-Bug: #1389624
2014-11-06 09:58:39 +08:00
Chen Zhiwei 398e359bcc Add more attributes for nova.conf DEFAULT section
Since there are some default options that did not set in nova.conf.erb
file, so add them to ensure users can custom them.

Change-Id: I70c110b0e4d67b25155bb02e96bb8f02b455b3bd
2014-10-30 16:54:13 +08:00