fog-xenserver 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/.rubocop +11 -14
- data/lib/fog/bin/xenserver.rb +1 -1
- data/lib/fog/compute/xen_server.rb +7 -7
- data/lib/fog/compute/xen_server/models.rb +74 -74
- data/lib/fog/compute/xen_server/models/instance_methods.rb +1 -1
- data/lib/fog/compute/xen_server/models/network.rb +2 -2
- data/lib/fog/compute/xen_server/models/server.rb +31 -31
- data/lib/fog/compute/xen_server/models/servers.rb +5 -5
- data/lib/fog/compute/xen_server/models/storage_repository.rb +3 -3
- data/lib/fog/compute/xen_server/models/vbd.rb +7 -7
- data/lib/fog/compute/xen_server/models/vdi.rb +3 -3
- data/lib/fog/compute/xen_server/models/vif.rb +5 -5
- data/lib/fog/compute/xen_server/requests/add_ipv4_allowed_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/add_ipv6_allowed_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/add_to_vcpus_params_live_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/apply_edition_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/apply_edition_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_agile_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_attachable_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_can_be_recovered_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_can_boot_here_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_can_evacuate_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_can_host_ha_statefile_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_can_migrate_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_operation_valid_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_supports_database_replication_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/backup_rrds_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/bugreport_upload_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/builtin_templates.rb +1 -1
- data/lib/fog/compute/xen_server/requests/call_plugin_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/certificate_install_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/certificate_list_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/certificate_sync_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/certificate_uninstall_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/checkpoint_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/clean_reboot_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/clean_shutdown_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/clone_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/clone_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/compute_free_memory_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/compute_memory_overhead_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/compute_memory_overhead_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/copy_bios_strings_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/copy_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/copy_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_network.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_new_blob_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_new_blob_network.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_new_blob_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_new_blob_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_new_blob_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_vlan.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_vlan_from_pif_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_vlan_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/crl_install_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/crl_list_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/crl_uninstall_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/custom_templates.rb +1 -1
- data/lib/fog/compute/xen_server/requests/db_forget_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/db_forget_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/db_introduce_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/db_introduce_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/declare_dead_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/designate_new_master_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/detect_nonhomogeneous_external_auth_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_database_replication_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_external_auth_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_external_auth_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_ha_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_local_storage_caching_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_local_storage_caching_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_redo_log_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/dmesg_clear_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/dmesg_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/eject_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/eject_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/emergency_ha_disable_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/emergency_reset_master_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/emergency_transition_to_master_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_database_replication_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_external_auth_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_external_auth_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_ha_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_local_storage_caching_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_local_storage_caching_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_redo_log_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/evacuate_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/forget_data_source_archives_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/forget_data_source_archives_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/forget_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/forget_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/forget_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_allowed_vbd_devices_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_allowed_vif_devices_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_boot_record_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_data_sources_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_data_sources_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_license_state_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_log_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_management_interface_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_possible_hosts_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_server_certificate_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_server_localtime_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_servertime_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_supported_types_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_system_status_capabilities_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_vms_which_prevent_evacuation_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/ha_compute_hypothetical_max_host_failures_to_tolerate_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/ha_compute_max_host_failures_to_tolerate_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/ha_compute_vm_failover_plan_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/ha_failover_plan_exists_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/ha_prevent_restarts_for_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/hard_reboot_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/hard_shutdown_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/import_convert_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/insert_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/introduce_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/introduce_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/introduce_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/join_force_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/join_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/list_methods_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/local_management_reconfigure_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/management_disable_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/management_reconfigure_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/maximise_memory_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/migrate_receive_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/migrate_send_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/open_database_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/pause_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/plug_pbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/plug_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/plug_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/plug_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/pool_migrate_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/pool_migrate_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/power_on_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/power_state_reset_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/probe_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/provision_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/query_data_source_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/query_data_source_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/query_services_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/read_database_pool_uuid_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/reboot_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/reboot_server.rb +3 -3
- data/lib/fog/compute/xen_server/requests/reconfigure_ip_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/reconfigure_ipv6_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/record_data_source_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/record_data_source_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/recover_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/recover_slaves_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/refresh_pack_info_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/remove_ipv4_allowed_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/remove_ipv6_allowed_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/reset_cpu_features_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/resize_online_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/resize_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/restart_agent_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/resume_on_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/resume_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/revert_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/revert_to_server.rb +2 -2
- data/lib/fog/compute/xen_server/requests/scan_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/scan_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/send_debug_keys_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/send_sysrq_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/send_test_post_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/send_trigger_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_affinity_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_allow_caching_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_appliance_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_attribute.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_cpu_features_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_default_locking_mode_network.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_device_config_pbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_ha_host_failures_to_tolerate_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_ha_restart_priority_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_hostname_live_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_hvm_shadow_multiplier_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_ipv4_allowed_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_ipv6_allowed_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_is_a_snapshot_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_locking_mode_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_managed_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_dynamic_max_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_dynamic_min_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_dynamic_range_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_limits_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_static_max_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_static_min_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_static_range_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_metadata_of_pool_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_missing_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_name_description_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_name_description_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_name_label_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_name_label_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_on_boot_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_order_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_physical_size_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_physical_utilisation_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_physical_utilisation_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_power_on_mode_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_primary_address_type_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_protection_policy_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_read_only_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_shadow_multiplier_live_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_sharable_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_shared_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_shutdown_delay_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_snapshot_of_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_snapshot_time_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_start_delay_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_suspend_vdi_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_vcpus_at_startup_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_vcpus_max_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_vcpus_number_live_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_virtual_allocation_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_virtual_size_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_vswitch_controller_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/shutdown_agent_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/shutdown_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/shutdown_server.rb +2 -2
- data/lib/fog/compute/xen_server/requests/snapshot_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/snapshot_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/snapshot_with_quiesce_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/start_on_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/start_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/suspend_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/sync_data_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/sync_database_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/unpause_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/unplug_force_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/unplug_pbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/unplug_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/unplug_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/update_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/update_vdi.rb +1 -1
- data/lib/fog/parsers/xen_server.rb +3 -3
- data/lib/fog/parsers/xen_server/base.rb +1 -1
- data/lib/fog/parsers/xen_server/get_records.rb +1 -1
- data/lib/fog/xen_server/connection.rb +3 -3
- data/lib/fog/xen_server/invalid_login.rb +1 -1
- data/lib/fog/xen_server/nokogiri_stream_parser.rb +3 -3
- data/lib/fog/xen_server/not_found.rb +1 -1
- data/lib/fog/xen_server/request_failed.rb +1 -1
- data/lib/fog/xenserver.rb +12 -12
- data/lib/fog/xenserver/compute.rb +1 -0
- data/lib/fog/xenserver/version.rb +1 -1
- metadata +82 -139
@@ -3,8 +3,8 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def shutdown_server(ref, stype = false)
|
6
|
-
Fog::Logger.deprecation
|
7
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
Fog::Logger.deprecation "Use shutdown_clean and shutdown_hard for specific shutdown." unless stype == false
|
7
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.shutdown" }, ref)
|
8
8
|
end
|
9
9
|
|
10
10
|
alias_method :shutdown_vm, :shutdown_server
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def snapshot_server(ref, new_name)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.snapshot" }, ref, new_name)
|
7
7
|
end
|
8
8
|
|
9
9
|
alias_method :snapshot_vm, :snapshot_server
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def snapshot_vdi(ref, driver_params)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VDI.snapshot" }, ref, driver_params)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def snapshot_with_quiesce_server(ref, new_name)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.snapshot_with_quiesce" }, ref, new_name)
|
7
7
|
end
|
8
8
|
|
9
9
|
alias_method :snapshot_with_quiesce_vm, :snapshot_with_quiesce_server
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def start_on_server(ref, host, start_paused, force)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.start_on" }, ref, host, start_paused, force)
|
7
7
|
end
|
8
8
|
|
9
9
|
alias_method :start_on_vm, :start_on_server
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def start_server(ref, start_paused = false, force = false)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.start" }, ref, start_paused, force)
|
7
7
|
end
|
8
8
|
|
9
9
|
alias_method :start_vm, :start_server
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def suspend_server(ref)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.suspend" }, ref)
|
7
7
|
end
|
8
8
|
|
9
9
|
alias_method :suspend_vm, :suspend_server
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def sync_data_host(ref)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "host.sync_data" }, ref)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def sync_database_pool
|
6
|
-
@connection.request(:parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request(:parser => Fog::Parsers::XenServer::Base.new, :method => "pool.sync_database")
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def unpause_server(ref)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VM.unpause" }, ref)
|
7
7
|
end
|
8
8
|
|
9
9
|
alias_method :unpause_vm, :unpause_server
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def unplug_force_vbd(ref)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VBD.unplug_force" }, ref)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def unplug_pbd(ref)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "PBD.unplug" }, ref)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def unplug_vbd(ref)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VBD.unplug" }, ref)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def unplug_vif(ref)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VIF.unplug" }, ref)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def update_sr(ref)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "SR.update" }, ref)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -3,7 +3,7 @@ module Fog
|
|
3
3
|
class XenServer
|
4
4
|
class Real
|
5
5
|
def update_vdi(ref)
|
6
|
-
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method =>
|
6
|
+
@connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "VDI.update" }, ref)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
2
|
module Parsers
|
3
3
|
module XenServer
|
4
|
-
autoload :Base,
|
5
|
-
autoload :GetRecords,
|
4
|
+
autoload :Base, "fog/parsers/xen_server/base"
|
5
|
+
autoload :GetRecords, "fog/parsers/xen_server/get_records"
|
6
6
|
end
|
7
7
|
end
|
8
|
-
end
|
8
|
+
end
|
@@ -6,13 +6,13 @@ module Fog
|
|
6
6
|
attr_reader :credentials
|
7
7
|
|
8
8
|
def initialize(host, timeout)
|
9
|
-
@factory = XMLRPC::Client.new(host,
|
9
|
+
@factory = XMLRPC::Client.new(host, "/")
|
10
10
|
@factory.set_parser(NokogiriStreamParser.new)
|
11
11
|
@factory.timeout = timeout
|
12
12
|
end
|
13
13
|
|
14
14
|
def authenticate( username, password )
|
15
|
-
response = @factory.call(
|
15
|
+
response = @factory.call("session.login_with_password", username.to_s, password.to_s)
|
16
16
|
raise Fog::XenServer::InvalidLogin.new unless response["Status"] =~ /Success/
|
17
17
|
@credentials = response["Value"]
|
18
18
|
end
|
@@ -44,4 +44,4 @@ module Fog
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
47
|
-
end
|
47
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "nokogiri/xml/sax/document"
|
2
|
+
require "nokogiri/xml/sax/parser"
|
3
3
|
|
4
4
|
class NokogiriStreamParser < XMLRPC::XMLParser::AbstractStreamParser
|
5
5
|
def initialize
|
@@ -17,4 +17,4 @@ class NokogiriStreamParser < XMLRPC::XMLParser::AbstractStreamParser
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
20
|
-
end
|
20
|
+
end
|
data/lib/fog/xenserver.rb
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
1
|
+
require "fog/core"
|
2
|
+
require "fog/xml"
|
3
|
+
require File.expand_path("../utilities", __FILE__)
|
4
4
|
|
5
5
|
module Fog
|
6
6
|
module XenServer
|
7
|
-
autoload :Connection,
|
8
|
-
autoload :InvalidLogin,
|
9
|
-
autoload :NokogiriStreamParser,
|
10
|
-
autoload :NotFound,
|
11
|
-
autoload :RequestFailed,
|
7
|
+
autoload :Connection, File.expand_path("../xen_server/connection", __FILE__)
|
8
|
+
autoload :InvalidLogin, File.expand_path("../xen_server/invalid_login", __FILE__)
|
9
|
+
autoload :NokogiriStreamParser, File.expand_path("../xen_server/nokogiri_stream_parser", __FILE__)
|
10
|
+
autoload :NotFound, File.expand_path("../xen_server/not_found", __FILE__)
|
11
|
+
autoload :RequestFailed, File.expand_path("../xen_server/request_failed", __FILE__)
|
12
12
|
|
13
13
|
extend Fog::Provider
|
14
14
|
|
15
|
-
service(:compute,
|
15
|
+
service(:compute, "Compute")
|
16
16
|
end
|
17
17
|
|
18
18
|
module Compute
|
19
|
-
autoload :XenServer,
|
19
|
+
autoload :XenServer, File.expand_path("../compute/xen_server", __FILE__)
|
20
20
|
end
|
21
21
|
|
22
22
|
module Parsers
|
23
|
-
autoload :XenServer,
|
23
|
+
autoload :XenServer, File.expand_path("../parsers/xen_server", __FILE__)
|
24
24
|
end
|
25
|
-
end
|
25
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
# This file was intentionally left blank.
|
metadata
CHANGED
@@ -1,152 +1,97 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-xenserver
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Paulo Henrique Lopes Ribeiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
-
|
18
|
-
-
|
19
|
-
|
20
|
-
|
11
|
+
|
12
|
+
date: 2015-04-04 00:00:00 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- &id002
|
18
|
+
- ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: "0"
|
21
|
+
version_requirements: *id001
|
21
22
|
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: fog-core
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
23
|
type: :runtime
|
24
|
+
name: fog-xml
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- *id002
|
29
|
+
version_requirements: *id003
|
35
30
|
prerelease: false
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
-
|
42
|
-
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
31
|
+
type: :runtime
|
32
|
+
name: fog-core
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- *id002
|
37
|
+
version_requirements: *id004
|
49
38
|
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
39
|
type: :development
|
40
|
+
name: rake
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- *id002
|
45
|
+
version_requirements: *id005
|
63
46
|
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: turn
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
47
|
type: :development
|
48
|
+
name: minitest
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- *id002
|
53
|
+
version_requirements: *id006
|
77
54
|
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: pry
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
55
|
type: :development
|
56
|
+
name: turn
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- *id002
|
61
|
+
version_requirements: *id007
|
91
62
|
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: vcr
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
63
|
type: :development
|
64
|
+
name: pry
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- *id002
|
69
|
+
version_requirements: *id008
|
105
70
|
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: webmock
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
71
|
type: :development
|
72
|
+
name: vcr
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- *id002
|
77
|
+
version_requirements: *id009
|
119
78
|
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: coveralls
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
79
|
type: :development
|
133
|
-
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
80
|
+
name: webmock
|
139
81
|
description: Module for the 'fog' gem to support XENSERVER.
|
140
82
|
email: plribeiro3000@gmail.com
|
141
83
|
executables: []
|
84
|
+
|
142
85
|
extensions: []
|
86
|
+
|
143
87
|
extra_rdoc_files: []
|
144
|
-
|
145
|
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
88
|
+
|
89
|
+
files:
|
90
|
+
- .gitignore
|
91
|
+
- .rubocop
|
92
|
+
- .ruby-gemset
|
93
|
+
- .ruby-version
|
94
|
+
- .travis.yml
|
150
95
|
- CONTRIBUTING.md
|
151
96
|
- CONTRIBUTORS.md
|
152
97
|
- Gemfile
|
@@ -591,31 +536,29 @@ files:
|
|
591
536
|
- spec/fog/compute/xen_server_spec.rb
|
592
537
|
- spec/minitest_helper.rb
|
593
538
|
homepage: https://github.com/fog/fog-xenserver
|
594
|
-
licenses:
|
539
|
+
licenses:
|
595
540
|
- MIT
|
596
541
|
metadata: {}
|
542
|
+
|
597
543
|
post_install_message:
|
598
544
|
rdoc_options: []
|
599
|
-
|
545
|
+
|
546
|
+
require_paths:
|
600
547
|
- lib
|
601
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
602
|
-
requirements:
|
603
|
-
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
requirements:
|
608
|
-
- - ">="
|
609
|
-
- !ruby/object:Gem::Version
|
610
|
-
version: '0'
|
548
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
549
|
+
requirements:
|
550
|
+
- *id002
|
551
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
552
|
+
requirements:
|
553
|
+
- *id002
|
611
554
|
requirements: []
|
555
|
+
|
612
556
|
rubyforge_project:
|
613
|
-
rubygems_version: 2.
|
557
|
+
rubygems_version: 2.0.14
|
614
558
|
signing_key:
|
615
559
|
specification_version: 4
|
616
|
-
summary: This library can be used as a module for `fog` or as standalone provider
|
617
|
-
|
618
|
-
test_files:
|
560
|
+
summary: This library can be used as a module for `fog` or as standalone provider to use the XENSERVER in applications.
|
561
|
+
test_files:
|
619
562
|
- spec/cassettes/builtin_templates.yml
|
620
563
|
- spec/cassettes/clone_server.yml
|
621
564
|
- spec/cassettes/create_network.yml
|