diff --git a/app/models/manageiq/providers/openstack/cloud_manager.rb b/app/models/manageiq/providers/openstack/cloud_manager.rb index 326b20536..622d32289 100644 --- a/app/models/manageiq/providers/openstack/cloud_manager.rb +++ b/app/models/manageiq/providers/openstack/cloud_manager.rb @@ -1,28 +1,4 @@ class ManageIQ::Providers::Openstack::CloudManager < ManageIQ::Providers::CloudManager - require_nested :AuthKeyPair - require_nested :AvailabilityZone - require_nested :AvailabilityZoneNull - require_nested :CloudResourceQuota - require_nested :CloudTenant - require_nested :EventCatcher - require_nested :EventParser - require_nested :Flavor - require_nested :HostAggregate - require_nested :MetricsCapture - require_nested :MetricsCollectorWorker - require_nested :OrchestrationServiceOptionConverter - require_nested :OrchestrationStack - require_nested :OrchestrationTemplate - require_nested :VnfdTemplate - require_nested :PlacementGroup - require_nested :Provision - require_nested :ProvisionWorkflow - require_nested :Refresher - require_nested :RefreshWorker - require_nested :Snapshot - require_nested :Template - require_nested :Vm - has_one :network_manager, :foreign_key => :parent_ems_id, :class_name => "ManageIQ::Providers::Openstack::NetworkManager", diff --git a/app/models/manageiq/providers/openstack/cloud_manager/event_catcher.rb b/app/models/manageiq/providers/openstack/cloud_manager/event_catcher.rb index 4d8840a90..4840018b4 100644 --- a/app/models/manageiq/providers/openstack/cloud_manager/event_catcher.rb +++ b/app/models/manageiq/providers/openstack/cloud_manager/event_catcher.rb @@ -1,5 +1,3 @@ class ManageIQ::Providers::Openstack::CloudManager::EventCatcher < ::MiqEventCatcher include ManageIQ::Providers::Openstack::EventCatcherMixin - - require_nested :Runner end diff --git a/app/models/manageiq/providers/openstack/cloud_manager/metrics_collector_worker.rb b/app/models/manageiq/providers/openstack/cloud_manager/metrics_collector_worker.rb index bfca8c687..81f70fcae 100644 --- a/app/models/manageiq/providers/openstack/cloud_manager/metrics_collector_worker.rb +++ b/app/models/manageiq/providers/openstack/cloud_manager/metrics_collector_worker.rb @@ -1,6 +1,4 @@ class ManageIQ::Providers::Openstack::CloudManager::MetricsCollectorWorker < ::MiqEmsMetricsCollectorWorker - require_nested :Runner - self.default_queue_name = "openstack" def friendly_name diff --git a/app/models/manageiq/providers/openstack/cloud_manager/orchestration_stack.rb b/app/models/manageiq/providers/openstack/cloud_manager/orchestration_stack.rb index 2860cbb6b..4296decb7 100644 --- a/app/models/manageiq/providers/openstack/cloud_manager/orchestration_stack.rb +++ b/app/models/manageiq/providers/openstack/cloud_manager/orchestration_stack.rb @@ -1,6 +1,5 @@ class ManageIQ::Providers::Openstack::CloudManager::OrchestrationStack < ManageIQ::Providers::CloudManager::OrchestrationStack include ManageIQ::Providers::Openstack::HelperMethods - require_nested :Status def self.raw_create_stack(orchestration_manager, stack_name, template, options = {}) create_options = {:stack_name => stack_name, :template => template.content}.merge(options).except(:tenant_name) diff --git a/app/models/manageiq/providers/openstack/cloud_manager/refresh_worker.rb b/app/models/manageiq/providers/openstack/cloud_manager/refresh_worker.rb index b4447d9fa..5ca17b224 100644 --- a/app/models/manageiq/providers/openstack/cloud_manager/refresh_worker.rb +++ b/app/models/manageiq/providers/openstack/cloud_manager/refresh_worker.rb @@ -1,3 +1,2 @@ class ManageIQ::Providers::Openstack::CloudManager::RefreshWorker < ::MiqEmsRefreshWorker - require_nested :Runner end diff --git a/app/models/manageiq/providers/openstack/cloud_manager/scanning.rb b/app/models/manageiq/providers/openstack/cloud_manager/scanning.rb index fb705e2b4..5cd9dadc2 100644 --- a/app/models/manageiq/providers/openstack/cloud_manager/scanning.rb +++ b/app/models/manageiq/providers/openstack/cloud_manager/scanning.rb @@ -1,3 +1,2 @@ class ManageIQ::Providers::Openstack::CloudManager::Scanning - require_nested :Job end diff --git a/app/models/manageiq/providers/openstack/cloud_manager/vnf.rb b/app/models/manageiq/providers/openstack/cloud_manager/vnf.rb index 346eab67c..d14511acc 100644 --- a/app/models/manageiq/providers/openstack/cloud_manager/vnf.rb +++ b/app/models/manageiq/providers/openstack/cloud_manager/vnf.rb @@ -1,6 +1,5 @@ class ManageIQ::Providers::Openstack::CloudManager::Vnf < ManageIQ::Providers::CloudManager::OrchestrationStack include ManageIQ::Providers::Openstack::HelperMethods - require_nested :Status def self.raw_create_stack(orchestration_manager, stack_name, template, options = {}) create_options = {:vnf => {:name => stack_name, :vnfd_id => template.ems_ref}} diff --git a/app/models/manageiq/providers/openstack/infra_manager.rb b/app/models/manageiq/providers/openstack/infra_manager.rb index 41beb14c6..1e3d90cb5 100644 --- a/app/models/manageiq/providers/openstack/infra_manager.rb +++ b/app/models/manageiq/providers/openstack/infra_manager.rb @@ -1,17 +1,4 @@ class ManageIQ::Providers::Openstack::InfraManager < ManageIQ::Providers::InfraManager - require_nested :AuthKeyPair - require_nested :Cluster - require_nested :EventCatcher - require_nested :EventParser - require_nested :Host - require_nested :HostServiceGroup - require_nested :MetricsCapture - require_nested :MetricsCollectorWorker - require_nested :OrchestrationStack - require_nested :Refresher - require_nested :RefreshWorker - require_nested :Template - include ManageIQ::Providers::Openstack::ManagerMixin include HasManyOrchestrationStackMixin include HasNetworkManagerMixin diff --git a/app/models/manageiq/providers/openstack/infra_manager/event_catcher.rb b/app/models/manageiq/providers/openstack/infra_manager/event_catcher.rb index 2e39cd16c..9a27a411c 100644 --- a/app/models/manageiq/providers/openstack/infra_manager/event_catcher.rb +++ b/app/models/manageiq/providers/openstack/infra_manager/event_catcher.rb @@ -1,8 +1,6 @@ class ManageIQ::Providers::Openstack::InfraManager::EventCatcher < ::MiqEventCatcher include ManageIQ::Providers::Openstack::EventCatcherMixin - require_nested :Runner - def self.settings_name :event_catcher_openstack_infra end diff --git a/app/models/manageiq/providers/openstack/infra_manager/metrics_collector_worker.rb b/app/models/manageiq/providers/openstack/infra_manager/metrics_collector_worker.rb index bed99c781..e2270dc8f 100644 --- a/app/models/manageiq/providers/openstack/infra_manager/metrics_collector_worker.rb +++ b/app/models/manageiq/providers/openstack/infra_manager/metrics_collector_worker.rb @@ -1,6 +1,4 @@ class ManageIQ::Providers::Openstack::InfraManager::MetricsCollectorWorker < ::MiqEmsMetricsCollectorWorker - require_nested :Runner - self.default_queue_name = "openstack_infra" def friendly_name diff --git a/app/models/manageiq/providers/openstack/infra_manager/refresh_worker.rb b/app/models/manageiq/providers/openstack/infra_manager/refresh_worker.rb index 4a560f268..1e2a4773e 100644 --- a/app/models/manageiq/providers/openstack/infra_manager/refresh_worker.rb +++ b/app/models/manageiq/providers/openstack/infra_manager/refresh_worker.rb @@ -1,6 +1,4 @@ class ManageIQ::Providers::Openstack::InfraManager::RefreshWorker < ::MiqEmsRefreshWorker - require_nested :Runner - def self.settings_name :ems_refresh_worker_openstack_infra end diff --git a/app/models/manageiq/providers/openstack/inventory.rb b/app/models/manageiq/providers/openstack/inventory.rb index 486ad88b1..ea99d47c0 100644 --- a/app/models/manageiq/providers/openstack/inventory.rb +++ b/app/models/manageiq/providers/openstack/inventory.rb @@ -1,8 +1,4 @@ class ManageIQ::Providers::Openstack::Inventory < ManageIQ::Providers::Inventory - require_nested :Collector - require_nested :Parser - require_nested :Persister - # Default manager for building collector/parser/persister classes # when failed to get class name from refresh target automatically def self.default_manager_name diff --git a/app/models/manageiq/providers/openstack/inventory/collector.rb b/app/models/manageiq/providers/openstack/inventory/collector.rb index 95f493f89..b5656fa5a 100644 --- a/app/models/manageiq/providers/openstack/inventory/collector.rb +++ b/app/models/manageiq/providers/openstack/inventory/collector.rb @@ -2,11 +2,6 @@ class ManageIQ::Providers::Openstack::Inventory::Collector < ManageIQ::Providers include ManageIQ::Providers::Openstack::RefreshParserCommon::HelperMethods include Vmdb::Logging - require_nested :CloudManager - require_nested :NetworkManager - require_nested :StorageManager - require_nested :TargetCollection - attr_reader :availability_zones attr_reader :cloud_services attr_reader :tenants diff --git a/app/models/manageiq/providers/openstack/inventory/collector/storage_manager.rb b/app/models/manageiq/providers/openstack/inventory/collector/storage_manager.rb index ad2f9b396..098e6b76c 100644 --- a/app/models/manageiq/providers/openstack/inventory/collector/storage_manager.rb +++ b/app/models/manageiq/providers/openstack/inventory/collector/storage_manager.rb @@ -1,4 +1,2 @@ module ManageIQ::Providers::Openstack::Inventory::Collector::StorageManager - require_nested :CinderManager - require_nested :SwiftManager end diff --git a/app/models/manageiq/providers/openstack/inventory/parser.rb b/app/models/manageiq/providers/openstack/inventory/parser.rb index 3a406c929..c8abe54e8 100644 --- a/app/models/manageiq/providers/openstack/inventory/parser.rb +++ b/app/models/manageiq/providers/openstack/inventory/parser.rb @@ -1,9 +1,4 @@ class ManageIQ::Providers::Openstack::Inventory::Parser < ManageIQ::Providers::Inventory::Parser - require_nested :CloudManager - require_nested :InfraManager - require_nested :NetworkManager - require_nested :StorageManager - def orchestration_stack_parameters(stack, stack_inventory_object) collector.orchestration_parameters(stack).each do |param_key, param_val| uid = compose_ems_ref(stack.id, param_key) diff --git a/app/models/manageiq/providers/openstack/inventory/parser/storage_manager.rb b/app/models/manageiq/providers/openstack/inventory/parser/storage_manager.rb index 70d1f066e..9cccbf196 100644 --- a/app/models/manageiq/providers/openstack/inventory/parser/storage_manager.rb +++ b/app/models/manageiq/providers/openstack/inventory/parser/storage_manager.rb @@ -1,4 +1,2 @@ module ManageIQ::Providers::Openstack::Inventory::Parser::StorageManager - require_nested :CinderManager - require_nested :SwiftManager end diff --git a/app/models/manageiq/providers/openstack/inventory/persister.rb b/app/models/manageiq/providers/openstack/inventory/persister.rb index c8472966e..7fce35dd9 100644 --- a/app/models/manageiq/providers/openstack/inventory/persister.rb +++ b/app/models/manageiq/providers/openstack/inventory/persister.rb @@ -1,10 +1,4 @@ class ManageIQ::Providers::Openstack::Inventory::Persister < ManageIQ::Providers::Inventory::Persister - require_nested :CloudManager - require_nested :InfraManager - require_nested :NetworkManager - require_nested :StorageManager - require_nested :TargetCollection - # TODO(lsmola) figure out a way to pass collector info, probably via target, then remove the below attr_reader :collector diff --git a/app/models/manageiq/providers/openstack/inventory/persister/storage_manager.rb b/app/models/manageiq/providers/openstack/inventory/persister/storage_manager.rb index c0d754425..8d2a196e9 100644 --- a/app/models/manageiq/providers/openstack/inventory/persister/storage_manager.rb +++ b/app/models/manageiq/providers/openstack/inventory/persister/storage_manager.rb @@ -1,4 +1,2 @@ module ManageIQ::Providers::Openstack::Inventory::Persister::StorageManager - require_nested :CinderManager - require_nested :SwiftManager end diff --git a/app/models/manageiq/providers/openstack/network_manager.rb b/app/models/manageiq/providers/openstack/network_manager.rb index c7abea4da..66b50affa 100644 --- a/app/models/manageiq/providers/openstack/network_manager.rb +++ b/app/models/manageiq/providers/openstack/network_manager.rb @@ -1,14 +1,4 @@ class ManageIQ::Providers::Openstack::NetworkManager < ManageIQ::Providers::NetworkManager - require_nested :CloudNetwork - require_nested :CloudSubnet - require_nested :EventCatcher - require_nested :EventParser - require_nested :FloatingIp - require_nested :NetworkPort - require_nested :NetworkRouter - require_nested :Refresher - require_nested :SecurityGroup - include ManageIQ::Providers::Openstack::ManagerMixin include SupportsFeatureMixin diff --git a/app/models/manageiq/providers/openstack/network_manager/cloud_network.rb b/app/models/manageiq/providers/openstack/network_manager/cloud_network.rb index 2595b1cbf..3ee881ed3 100644 --- a/app/models/manageiq/providers/openstack/network_manager/cloud_network.rb +++ b/app/models/manageiq/providers/openstack/network_manager/cloud_network.rb @@ -456,9 +456,6 @@ def params_for_update } end - require_nested :Private - require_nested :Public - def self.class_by_ems(ext_management_system, external = false) external ? super::Public : super::Private end diff --git a/app/models/manageiq/providers/openstack/network_manager/event_catcher.rb b/app/models/manageiq/providers/openstack/network_manager/event_catcher.rb index ea6357900..852e2990d 100644 --- a/app/models/manageiq/providers/openstack/network_manager/event_catcher.rb +++ b/app/models/manageiq/providers/openstack/network_manager/event_catcher.rb @@ -1,8 +1,6 @@ class ManageIQ::Providers::Openstack::NetworkManager::EventCatcher < ::MiqEventCatcher include ManageIQ::Providers::Openstack::EventCatcherMixin - require_nested :Runner - def self.settings_name :event_catcher_openstack_network end diff --git a/app/models/manageiq/providers/openstack/storage_manager/cinder_manager.rb b/app/models/manageiq/providers/openstack/storage_manager/cinder_manager.rb index 29ce4cb2b..96ecd6ae7 100644 --- a/app/models/manageiq/providers/openstack/storage_manager/cinder_manager.rb +++ b/app/models/manageiq/providers/openstack/storage_manager/cinder_manager.rb @@ -1,12 +1,4 @@ class ManageIQ::Providers::Openstack::StorageManager::CinderManager < ManageIQ::Providers::StorageManager - require_nested :CloudVolume - require_nested :CloudVolumeBackup - require_nested :CloudVolumeSnapshot - require_nested :CloudVolumeType - require_nested :Refresher - require_nested :EventCatcher - require_nested :EventParser - include ManageIQ::Providers::StorageManager::BlockMixin include ManageIQ::Providers::Openstack::ManagerMixin diff --git a/app/models/manageiq/providers/openstack/storage_manager/cinder_manager/event_catcher.rb b/app/models/manageiq/providers/openstack/storage_manager/cinder_manager/event_catcher.rb index a28774a41..547d4d567 100644 --- a/app/models/manageiq/providers/openstack/storage_manager/cinder_manager/event_catcher.rb +++ b/app/models/manageiq/providers/openstack/storage_manager/cinder_manager/event_catcher.rb @@ -1,8 +1,6 @@ class ManageIQ::Providers::Openstack::StorageManager::CinderManager::EventCatcher < ::MiqEventCatcher include ManageIQ::Providers::Openstack::EventCatcherMixin - require_nested :Runner - def self.settings_name :event_catcher_openstack_cinder end diff --git a/app/models/manageiq/providers/openstack/storage_manager/swift_manager.rb b/app/models/manageiq/providers/openstack/storage_manager/swift_manager.rb index 164d68409..48440affe 100644 --- a/app/models/manageiq/providers/openstack/storage_manager/swift_manager.rb +++ b/app/models/manageiq/providers/openstack/storage_manager/swift_manager.rb @@ -1,8 +1,4 @@ class ManageIQ::Providers::Openstack::StorageManager::SwiftManager < ManageIQ::Providers::StorageManager - require_nested :CloudObjectStoreContainer - require_nested :CloudObjectStoreObject - require_nested :Refresher - include ManageIQ::Providers::StorageManager::ObjectMixin delegate :authentication_check,