Clean up floating ip pool management for nova-network

... because it was deprecated during the previous cycle and has been
useless since nova-network was removed.

Change-Id: If637debcd25b17183311e16e1bf5b76c453c634f
This commit is contained in:
Takashi Kajinami 2021-04-26 21:46:56 +09:00
parent a3b9a7538b
commit 1c0a03c6d8
5 changed files with 6 additions and 59 deletions

View File

@ -1,18 +0,0 @@
Puppet::Type.type(:nova_floating).provide(:nova_manage) do
desc "Manage nova floating (DEPRECATED!)"
optional_commands :nova_manage => 'nova-manage'
def exists?
warning('nova_floating type is deprecated and has no effect')
end
def create
warning('nova_floating type is deprecated and has no effect')
end
def destroy
warning('nova_floating type is deprecated and has no effect')
end
end

View File

@ -1,19 +0,0 @@
Puppet::Type.newtype(:nova_floating) do
@doc = "Manage creation/deletion of nova floating ip ranges. (DEPRECATED!)"
ensurable
newparam(:network, :namevar => true) do
desc "It can contain network (ie, 192.168.1.0/24 or 192.168.1.128/25 etc.),
ip range ('192.168.1.1-192.168.1.55' or list of ip ranges ['192.168.1.1-192.168.1.25', '192.168.1.30-192.168.1.55'])"
newvalues(/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\/[0-9]{1,2}$ || ^(\d{1,3}\.){3}\d{1,3}-(\d{1,3}\.){3}\d{1,3}$/)
end
newparam(:pool) do
desc "Floating IP pool name. Default: 'nova'"
defaultto :nova
newvalues(/^.{1,255}$/)
end
end

View File

@ -48,13 +48,6 @@ class nova::deps {
-> Package<| tag == 'nova-support-package'|>
-> Anchor['nova::install::end']
# The following resources are managed by calling 'nova manage' and so the
# database must be provisioned before they can be applied.
Anchor['nova::dbsync_api::end']
-> Nova_floating<||>
Anchor['nova::dbsync::end']
-> Nova_floating<||>
# all cache settings should be applied and all packages should be installed
# before service startup
Oslo::Cache<||> -> Anchor['nova::service::begin']

View File

@ -1,15 +0,0 @@
# Creates floating networks
#
# === Parameters:
#
# [*network*]
# (mandatory) The network name to work on
#
define nova::manage::floating (
$network
) {
include nova::deps
warning('The nova::manage::floating class is deprecated and has no effect')
}

View File

@ -0,0 +1,6 @@
---
upgrade:
- |
The ``nova::manage::floatingip`` class, the ``nova_floating`` type and its
provider have been removed.