1244 Commits

Author SHA1 Message Date
Takashi Kajinami
771b0bbe4e Refactor logic about the instance_name_template parameter
We don't need to implement a speicific logic to ensure the parameter is
absent but can pass $::os_service_default. This change updates default
of the instance_name_template parameter so that we can simplify our
current logic to manage the parameter.

Change-Id: I5fcd8e15c5b3a3386104506fb9f7b54eda2eb867
2021-01-27 11:17:12 +09:00
Zuul
7efa708f76 Merge "Separate a class for Glance configurations" 2021-01-25 06:43:23 +00:00
Zuul
915aec95be Merge "Use yaml instead of json for policy file" 2021-01-18 19:13:30 +00:00
Takashi Kajinami
6b99fa975e Separate a class for Glance configurations
This change introduces a new nova::glance class, so that we can easily
maintain parameters for Glance service.
Some new parameters will be added in subsequent commits.

Change-Id: I94d110f0dfe89afb6bbd066d9abc3b72ebc10e52
2021-01-14 12:53:39 +09:00
Oliver Walsh
614b847449 Add parameter to set image_type_exclude_list
Add support for the [compute]/image_type_exclude_list parameter to
prevent image types being reported as supported by a compute node.

Related nova change: Iabe6246dba212b1a287a82cc0cf16e2e8c8a24b8

Change-Id: I389d4b586468720d73ac69b025a3c34df54fe73e
2021-01-12 11:36:26 +00:00
Takashi Kajinami
4f0a35e61a Use yaml instead of json for policy file
Because usage of json for policy file will be deprecated and replaced
by yaml[1].

[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Depends-on: https://review.opendev.org/769647
Change-Id: I2d1dc5791f18d10e9947f962b796872e7d6990e1
2021-01-07 23:26:14 +00:00
Zuul
2590d170b8 Merge "Remove redundant spaces from cron commands" 2021-01-06 05:02:14 +00:00
Zuul
39d10a9a71 Merge "Fix ignored unit tests" 2021-01-05 16:29:50 +00:00
Takashi Kajinami
508b9f7fe5 Remove redundant spaces from cron commands
Change-Id: If545538c53677d4979e6f260a1f84caeea565c68
2021-01-04 10:04:28 +09:00
Takashi Kajinami
5b135ed130 Fix ignored unit tests
Unit test files should be named like *_spec.rb.

Change-Id: I3fe97b4d5c9c2bb3709e37c561af353b859495ef
2021-01-04 06:42:57 +09:00
Zuul
d72cba2535 Merge "Use libvirt-daemon-system for Ubuntu" 2021-01-03 07:50:36 +00:00
Zuul
6171043a9c Merge "Remove remaining usage of absolute class names" 2020-12-27 21:32:39 +00:00
Zuul
a39f835d49 Merge "Removing scheduler_default_filters" 2020-12-21 16:06:40 +00:00
David Vallee Delisle
490a34a7b2 Removing scheduler_default_filters
This setting was renamed enabled_filters a while back. For the sake of
consistency, we need to change this here as well. Another change in THT
will follow this one.

Change-Id: I110f612f1b78899e8969da607e6b400e2e64c8a1
2020-12-04 11:09:41 -05:00
Zuul
4ccec7f744 Merge "Revert "Remove parameter nova::compute::pci_passthrough"" 2020-12-04 04:04:04 +00:00
Oliver Walsh
e8b24805d6 Allow both DEFAULT/dhcp_domain and api/dhcp_domain to be set
Partial revert of If6a26527a737a7184ebddd5b4bc346d64827e9e3 to allow
both/either config option to be used until it is clear what nova will
take.

Related-bug: #1903908
Change-Id: I98fe83e0c245388944529cd19b5e2bbed134e855
2020-12-02 22:28:58 +00:00
Zuul
18be6c394e Merge "Add unit tests for nova::wsgi::apache_metadata" 2020-11-26 16:49:31 +00:00
Oliver Walsh
e7f323a1f4 Revert "Remove parameter nova::compute::pci_passthrough"
This should never have been merged.
It removed more than the deprecated param, breaking the pci config on
computes.
Also should have warned for at least 1 cycle before removal.
It also wasn't removed correctly as the pick remained in nova::compute::pci
so (IIUC) the deprecated param still works today if set in hieradata.

This reverts commit d845b6f0aefaaab0b65b32cd22ccda8c2c8ee6ae.

Change-Id: I5b3d9dbbd41d060134444609458b3e8bba606ae6
2020-11-26 16:36:46 +00:00
Takashi Kajinami
7395acbba0 Remove remaining usage of absolute class names
Change-Id: I4855c9505517a4cc6c3ccad48c40105d06a8bcfc
2020-11-26 11:49:54 +09:00
Takashi Kajinami
678c6523c2 Add unit tests for nova::wsgi::apache_metadata
Change-Id: I3a2cc8a591d72350deb964f08db14c3db8137e5c
2020-11-26 11:49:29 +09:00
Jake Yip
6f8369ccfa Add parameter to specify host_uuid
Currently, the `override_uuid` parameter, if set, will generate a random
uuid to be set in libvirtd.conf. It might be desirable to set a specific
uuid instead of a random one, create a parameter to do so.

Change-Id: I981a80d9767b7eae0854a64df720c23f855ab1be
2020-11-17 09:04:56 +11:00
Tobias Urdin
e32576aebc Use libvirt-daemon-system for Ubuntu
Change-Id: I9301b5451155afa97b56f0ccd3f42c85ffe8ed99
2020-11-16 19:52:54 +01:00
Oliver Walsh
71276558e7 Set dhcp_domain for all nova services
This is required for nova-compute so move to init.pp from metadata.pp and set
DEFAULT/dhcp_domain (which nova should undeprecate) vs api/dhcp_domain.

Change-Id: If6a26527a737a7184ebddd5b4bc346d64827e9e3
Related-bug: #1903908
Related-bug: #1832537
2020-11-12 14:21:37 +00:00
Zuul
f76b8286d0 Merge "Deprecate allow_insecure_clients option" 2020-11-05 07:44:06 +00:00
Martin Schuppert
f1b4a14042 Fix duplicated user keys
c7f44fde73896c762ea19ac89bd3d605b74227ff fixed this for
spec/classes/nova_cron_archive_deleted_rows_spec.rb , lets
fix it also for spec/classes/nova_cron_purge_shadow_tables.rb .

Change-Id: I817ec7c497c510a410590c66b9f3f6f66ffc1b90
2020-11-03 09:19:02 +01:00
Zuul
c3aa5a91fa Merge "Support to configure [api_database] parameters" 2020-11-03 03:50:13 +00:00
Zuul
35ab50e6df Merge "Add snapshorts directory config option" 2020-11-03 03:50:12 +00:00
ZhongShengping
9f2e3882d5 Deprecate allow_insecure_clients option
The allow_insecure_clients has been deprecated[1].

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

Change-Id: I1130125fb877146ea8b0c531f1ef5854aa211c33
Closes-Bug: #1902158
2020-11-02 15:28:43 +08:00
Zuul
88cf97394a Merge "Add live_migration_timeout_action to nova::migration::libvirt" 2020-10-30 23:33:43 +00:00
Rocky
ea62370b1e Add snapshorts directory config option
Change-Id: Ifba4f0738113341db54d1abd9919bc8c2327961b
2020-10-30 20:49:34 +11:00
Rocky
170684de1b Add update_resources_interval config option
Change-Id: I5adcc865fc1e152fa07bf788a445faf3555970d4
2020-10-29 23:14:31 +09:00
Rocky
00c9efc6b7 Add default_ephemeral_format config option
Change-Id: Id8b024f2ff5002a564d1719a3ca3251fe5d1ccf0
2020-10-29 23:13:09 +09:00
Rocky
8c313ebdb9 Support to configure [api_database] parameters
Change-Id: I3d086a0b7860590d6cdef8074ce201b7e10f3cb5
2020-10-29 14:05:30 +00:00
Rocky
d07b7ae4b6 Add compute_monitors config option
Change-Id: I317ca55358904e892a2a849bc272007fc8fa9df0
2020-10-29 21:27:17 +11:00
Tobias Urdin
4e562ece17 Add live_migration_timeout_action to nova::migration::libvirt
Change-Id: I4fd019d00d5cd36311a538c03dd529540c77f5dc
2020-10-27 15:00:59 +01:00
Oliver Walsh
8bcd0c74df Include nova::workarounds for all nova services
nova::workarounds is used for config options in the [workarounds] section in
nova.conf.
Right now it is just included for the conductor and compute services as the
two existing params only apply to these services.
However workaround config params can apply to any or all nova services so it
should be included for all services.

Change-Id: Ie27fb87f1446d1570e0eb7608812ddfa70b7f91f
2020-10-23 16:41:52 +09:00
Oliver Walsh
9f26045197 Expose nova config option [workaround]/never_download_image_if_on_rbd
This exposes the nova workaround to disable downloading images from glance to
rbd (vs a cheap COW clone) when nova-compute and glance are not backed by the
same ceph cluster.

Related nova change: I069b6b1d28eaf1eee5c7fb8d0fdef9c0c229a1bf

Change-Id: I8329810d6c047c0d94e7b123e7cdc1263a7856cd
2020-10-22 21:20:22 +01:00
Zuul
e2ebd2407d Merge "Add support for more image related options" 2020-10-21 08:59:34 +00:00
Zuul
3c7070c866 Merge "Add support for more instance timeout options" 2020-10-21 08:46:10 +00:00
Zuul
fa9b3d735a Merge "Add support for running deleted instance related options" 2020-10-21 06:07:18 +00:00
Zuul
bf2d8a9bf0 Merge "Deprecate database options" 2020-10-19 20:25:48 +00:00
Zuul
24325cf049 Merge "Add support for default_access_ip_network_name option" 2020-10-19 16:54:32 +00:00
Zuul
c80bfdd500 Merge "Fix wrong notification between api service and httpd" 2020-10-19 11:01:45 +00:00
Zuul
5ac0e1dd76 Merge "Do not test nova::migration::libvirt in 2 places" 2020-10-19 09:12:17 +00:00
Takashi Kajinami
2b046eeec6 Do not test nova::migration::libvirt in 2 places
Currently behavior of the nova::migration::libvirt class is tested in
nova_migration_livirt_spec.rb, thus we don't need to test the same in
nova_compute_libvirt_spec.rb.

This patch also remove a redundant test case.

Change-Id: Iec8f2986e165ccf60f4248cbf91aa8ce20e83a53
2020-10-19 16:44:58 +09:00
Rocky
558624bfec Add support for more image related options
Change-Id: I4fe8e0adcfbb0c3668d04917364ec0349324b75b
2020-10-19 06:08:23 +00:00
Rocky
2b19fa45a2 Add support for more instance timeout options
Change-Id: If64007fee7cac65c1e9c38919bb052c800e42830
2020-10-19 06:07:35 +00:00
Rocky
86b572c895 Add support for running deleted instance related options
Change-Id: I6c98eeae70ba95dfdf5b06709b4b8ae0079c4dbd
2020-10-19 09:20:23 +09:00
Rocky
50b311afaa Add support for default_access_ip_network_name option
Change-Id: I128befaadb1a83c2274eee61bb63a2e37f99db4e
2020-10-19 00:13:10 +00:00
Takashi Kajinami
1f1428e01b Fix wrong notification between api service and httpd
nova-api service should be stopped before httpd service is started,
thus nova-api should notify httpd.

Change-Id: Ibffb65269daaeca62554cfbecb536361ab70611a
2020-10-19 07:55:08 +09:00