Commit Graph

24 Commits

Author SHA1 Message Date
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
Takashi Kajinami
fa5e4ff7cb Use anchor to require necessary packages
... so that correct packages are required according without re-defining
them in resource implementations.

Change-Id: If3ae4736d655975d83f49676b8128d4e9f8b0cf4
2020-05-04 03:18:02 +09:00
Takashi Kajinami
5f453cd9bd Add unit tests for nova_api_paste_ini resource
... and deprecated nova_paste_api_ini resource.

Change-Id: Ia0cba87b1a609839201d06469be1885ebaf250f4
2020-05-04 03:09:13 +09:00
Tobias Urdin
8cae2def75 Remove nova-network code
These was deprecated last cycle and can now be removed.

Depends-On: https://review.opendev.org/#/c/658557/
Change-Id: I6f7fde1f475acec82bafc66183211f317b4c7795
2019-05-11 21:23:36 +02:00
Tobias Urdin
1296187b85 Deprecate nova-network code
Nova will be removing nova-network soon, this deprecates all
the classes and parameters that are related to nova-network
and will be removed when nova removes it's support.

Please see references in nova.conf [1] and the nova release notes. [2]

[1] https://docs.openstack.org/nova/rocky/configuration/sample-config.html
[2] https://docs.openstack.org/releasenotes/nova/rocky.html

Depends-On: https://review.openstack.org/#/c/614577/
Change-Id: If87ad30e1be62cb767d98045d075340c9513bc90
2018-11-02 14:47:22 +01:00
Oliver Walsh
6938710091 Stop logging sensitive data in cell_v2 provider
Parses the nova cell_v2 transport_uri/database_connection and rebuilds with
the password hidden in is_to_s and should_to_s (used for logging the changes).

Change-Id: I6523ed70536e438d38d9165e31d5d4d214bbc62c
2018-08-01 21:05:06 +01:00
Götz Kleinhaus
4c34d868ff Add the option to only aggregate hosts that are known by openstack to be active
Adding a parameter to the nova_aggregate type to only add hosts to a host
aggregate that are known by openstack to be active and corresponding handling
of said parameter to the nova_aggregate/openstack provider.

Change-Id: Ie08e7c37cdd711baf9beb3fcc92b4bcb520afca0
2018-03-12 12:10:57 +01:00
Ade Lee
57e3f661ff Add novajoin class
In this commit, we add the puppet module for a new
nova metadata micro-service (novajoin) that allows nova
instances to be registered to a FreeIPA server as IPA clients.

Implements: blueprint novajoin
Change-Id: I5ffa45bdc400e123079c79e15776ebacdcb24de9
2017-01-06 12:12:16 -05:00
Bartek Zurawski
e7fe8c16ae Add MultiStrOpt for scheduler_available_filters
scheduler_available_filters option defines filter classes made available to
the nova scheduler. This parameter can be used multiple times or it can be
set as array value.
It is helpful when owner want to add to nova scheduler external filters.

Co-Authored-By: Daniel Pawlik <daniel.pawlik@corp.ovh.com>

Change-Id: I6be7bb4cea1906bd98c513bd2d01153e4643e3ac
Closes-Bug: #1591998
2016-07-27 10:20:06 +00:00
Matthew Mosesohn
bee8517bf4 Add nova_service type for purging nova services from offline hosts
Offline/deleted hosts show as offline forever in the service list.
This undesirable output can be mitigated by offering a provider
that allows a user to mark such nova services as 'absent'.

Includes release note.

Change-Id: I303ab218bc6a48cf2c60727feecc522040a80a68
Related-Bug: #1471172
2016-05-25 10:12:37 +00:00
Jenkins
2c9bb31867 Merge "Use OpenstackClient for nova providers auth" 2016-03-29 16:54:07 +00:00
Michael Polenchuk
9aa5ee1024 Autorequire nova security group
Autorequire nova security group for related nova security rule.

Change-Id: I89aa036c8a24d919c15ceb909f0c567dad3c6032
2016-03-28 08:49:52 +00:00
Denis Egorenko
08ee5866a6 Use OpenstackClient for nova providers auth
This patch changes the nova providers to use puppet-openstacklib's
authentication methods, which use python-openstackclient as an interface,
instead of the nova command line client.

The benefits of this is a code reduction. This patch reduces the amount
of code in the nova parent provider and nova providers by reusing code from
Puppet::Provider::Openstack instead of implementing authentication,
retries, and response parsing in the provider.

This patch doesn't affect next providers:

 * nova_network and nova_floating:
   openstack client has small functionality for managing nova floatings
   and doesn't provide possibility to manage nova-networks,
   so keeping old format of auth for this providers.
   Also Nova-Network is deprecated.
 * nova_cell:
   openstack client doesn't provide possibility to manage cells;
 * nova security groups - will be done in separate patch;

Additional reasoning for this change is in the blueprint.

Also added new tests for providers.

blueprint use-openstackclient-in-module-resources

Change-Id: Ifa09aeb71ba0bcc425eece314803a0d1609bed9f
2016-03-22 18:42:40 +03:00
Alexey Deryugin
215103f788 Add ability to create security groups from puppet
Change-Id: I1835f121726e2b99bd6cc62e67849a0bc248ea4f
2016-03-21 15:17:42 +03:00
Yanis Guenane
e2a7d0da4d Rely on autorequire for config resource ordering
Currently we specify the ordering of config resources wherever it is
necessary based on the presence of the file it will write to, or the
presence of the package in charge of providing the file it will write
to.

Those kind of ordering can be specified directly at the resource level
using the autorequire mechanism. With this patch, any config resource
will make sure the package in charge of providing the file will be
installed first.

Change-Id: Ide679a11b1ebb7609f97f75fd93dc53be5eb92f3
2015-08-12 19:25:55 +02:00
Sebastien Badia
fea50ad292 spec: convert remaining deprecated keywords
During RSpec3.x migration we visibly missing some "should" keywords,
this commit convert remaining unit/type.

Change-Id: I5b0afcfff1aa28f3b2f09171a23c81c51f5cc59b
Partial-bug: #1447620
2015-05-17 00:10:56 -07:00
Mathieu Gagné
f21705ddb8 Remove deprecation notice for sectionless nova_config
nova_config used to accept section-less configuration name.

This changed in the grizzly release of puppet-nova (c9757ec44)
and section name are now required.

This change removes the deprecation warning as enough time/releases
where givin for people to fix their manifests if section-less configs
were still in use.

Change-Id: I4c6e749fd48a8cf56df750feba6f7b94a7e43c8e
2014-06-26 02:10:30 +00:00
Dan Bode
c9757ec448 require sections are specified in nova_config
This massive code commit actually implements something very simple.

previously, we allowed nova_config to omit a section and assumed that
section was default.

This commit updates the code to require section names for all settings.

This change is being made b/c:
- it better maps to the config on disk
- it is consistent with the other modules

Change-Id: Iae71a4c48ed0f9792566f16f0bf13e61569b46e5
2013-04-12 15:06:58 -07:00
vkuklin@mirantis.com
377b5b4f18 fix ipv4 cidr range regexp 2012-11-30 17:02:40 +04:00
Branan Purvine-Riley
ed65cbd621 Replace expect..should with expect..to 2012-07-12 16:11:46 -07:00
Dan Bode
9fcd4dfeb9 Fix rspec test failures 2012-05-24 17:13:28 -07:00
Dan Bode
3aed1519aa Remove find_spec_utils
This spec_helper was causing failurs and was not
actually even used for anything.

Removing it resolves the issues with running spec
tests.
2012-03-14 16:42:48 -07:00
Dan Bode
51b434fc02 Fix failing tests in nova_config.spec
Fixed a test that was failing due to a bad
expected errors message from an exception.
2012-01-24 22:06:51 -08:00
Dan Bode
072e519171 Converted into nova module repo.
- removed all submodules
  I will create an openstack repo to
  hold all modules (including nova) as
  submodules
- moved nova module to top dir
2011-06-16 20:29:58 -07:00