Skip to content

Commit

Permalink
Remove v2v models, settings, product features, etc.
Browse files Browse the repository at this point in the history
Part of #21379
  • Loading branch information
jrafanie committed Oct 26, 2021
1 parent 25f39db commit 9caa7f0
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 3,330 deletions.
457 changes: 0 additions & 457 deletions app/models/conversion_host.rb

This file was deleted.

1 change: 0 additions & 1 deletion app/models/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ class Host < ApplicationRecord
before_create :make_smart
after_save :process_events

supports_not :conversion_host
supports :destroy
supports_not :quick_stats
supports :reset do
Expand Down
664 changes: 0 additions & 664 deletions app/models/infra_conversion_job.rb

This file was deleted.

10 changes: 0 additions & 10 deletions app/models/infra_conversion_job/dispatcher.rb

This file was deleted.

1 change: 0 additions & 1 deletion app/models/miq_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ class MiqRequest < ApplicationRecord

REQUEST_TYPES_BACKEND_ONLY = {
:MiqProvisionRequestTemplate => {:template => "VM Provision Template"},
:ServiceTemplateTransformationPlanRequest => {:transformation_plan => "Transformation Plan"}
}

REQUEST_TYPES = MODEL_REQUEST_TYPES.values.each_with_object(REQUEST_TYPES_BACKEND_ONLY) { |i, h| i.each { |k, v| h[k] = v } }
Expand Down
6 changes: 0 additions & 6 deletions app/models/miq_schedule_worker/jobs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ def container_scan_dispatcher_dispatch
end
end

def infra_conversion_dispatcher_dispatch
if InfraConversionJob::Dispatcher.waiting?
queue_work_on_each_zone(:class_name => "InfraConversionJob::Dispatcher", :method_name => "dispatch", :task_id => "job_dispatcher", :priority => MiqQueue::HIGH_PRIORITY)
end
end

def image_import_pvc_to_pvs_dispatcher_dispatch
if ManageIQ::Providers::IbmCloud::PowerVirtualServers::CloudManager::ImageImportWorkflow::ImportDispatcher.waiting?
queue_work(:class_name => "ManageIQ::Providers::IbmCloud::PowerVirtualServers::CloudManager::ImageImportWorkflow::ImportDispatcher", :method_name => "dispatch", :task_id => "job_dispatcher", :priority => MiqQueue::HIGH_PRIORITY)
Expand Down
6 changes: 0 additions & 6 deletions app/models/miq_schedule_worker/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,6 @@ def schedules_for_scheduler_role
enqueue(:image_import_pvc_to_pvs_dispatcher_dispatch)
end

# Schedule - InfraConversionJob::Dispatcher
# Queue a InfraConversionJob::Dispatcher task unless there's already one on the queue
scheduler.schedule_every(:infra_conversion_dispatcher_dispatch, worker_settings[:infra_conversion_dispatcher_interval]) do
enqueue(:infra_conversion_dispatcher_dispatch)
end

# Schedule - Check for a stuck VmScan::Dispatcher#dispatch
stuck_vm_scan_dispatch_threshold = worker_settings[:vm_scan_dispatcher_stale_message_timeout]
scheduler.schedule_every(
Expand Down
2 changes: 0 additions & 2 deletions app/models/service_order_v2v.rb

This file was deleted.

90 changes: 0 additions & 90 deletions app/models/transformation_mapping_item.rb

This file was deleted.

1 change: 0 additions & 1 deletion app/models/vm/operations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ module Vm::Operations
unsupported_reason_add(:collect_running_processes, reason) if reason
end

supports_not :conversion_host
supports_not :evacuate
supports_not :reconfigure_disks
supports_not :reconfigure_disksize
Expand Down
1 change: 0 additions & 1 deletion app/models/vm_or_template/operations/relocation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module VmOrTemplate::Operations::Relocation

included do
supports_not :live_migrate
supports_not :warm_migrate
supports_not :migrate
end

Expand Down
1 change: 0 additions & 1 deletion config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,6 @@
:event_streams_purge_interval: 1.day
:evm_snapshot_delete_delay_for_job_not_found: 1.hour
:evm_snapshot_interval: 1.hour
:infra_conversion_dispatcher_interval: 30.seconds
:job_timeout_interval: 60.seconds
:log_active_configuration_interval: 1.days
:nice_delta: 3
Expand Down
37 changes: 0 additions & 37 deletions db/fixtures/miq_product_features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6811,43 +6811,6 @@
:feature_type: view
:identifier: monitor_alerts_most_recent

# Transformation Mappings
- :name: Transformation Mappings
:description: Everything under Transformation Mappings
:feature_type: node
:identifier: transformation_mapping
:children:
- :name: View
:description: View Transformation Mapping
:feature_type: view
:identifier: transformation_mapping_view
:children:
- :name: List
:description: Display Lists of Transformation Mappings
:feature_type: view
:identifier: transformation_mapping_show_list
- :name: Show
:description: Display Individual Transformation Mappings
:feature_type: view
:identifier: transformation_mapping_show
- :name: Modify
:description: Modify Transformation Mappings
:feature_type: admin
:identifier: transformation_mappings_admin
:children:
- :name: Create Transformation Mapping
:description: Create Transformation Mapping
:identifier: transformation_mapping_new
:feature_type: admin
- :name: Edit Transformation Mapping
:description: Edit Transformation Mapping
:identifier: transformation_mapping_edit
:feature_type: admin
- :name: Delete Transformation Mapping
:description: Delete Transformation Mapping
:identifier: transformation_mapping_delete
:feature_type: admin

# Shortcuts
- :name: Shortcuts
:description: Shortcuts that can be set as a startpage
Expand Down
21 changes: 0 additions & 21 deletions db/fixtures/notification_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,6 @@
:expires_in: 14.days
:level: :warning
:audience: group
- :name: transformation_plan_request_succeeded
:message: Plan %{plan_name} has completed successfully
:expires_in: 14.days
:level: :success
:audience: global
- :name: transformation_plan_request_failed
:message: Plan %{plan_name} has completed with errors
:expires_in: 14.days
:level: :error
:audience: global
:link_to: "subject"
- :name: automate_user_success
:message: '%{message}'
:expires_in: 24.hours
Expand Down Expand Up @@ -190,16 +179,6 @@
:expires_in: 24.hours
:level: :error
:audience: global
- :name: conversion_host_config_success
:message: 'Conversion Host %{op_name} of resource %{op_arg} completed successfully.'
:expires_in: 24.hours
:level: :success
:audience: global
- :name: conversion_host_config_failure
:message: 'Conversion Host %{op_name} of resource %{op_arg} failed. Please check the logs for further details.'
:expires_in: 24.hours
:level: :error
:audience: global
- :name: cloud_volume_attach_success
:message: 'Attaching Volume %{subject} to Instance %{instance_name} completed successfully.'
:expires_in: 24.hours
Expand Down
3 changes: 0 additions & 3 deletions spec/factories/transformation_mapping_item.rb

This file was deleted.

31 changes: 0 additions & 31 deletions spec/models/infra_conversion_job/dispatcher_spec.rb

This file was deleted.

Loading

0 comments on commit 9caa7f0

Please sign in to comment.