Module: Bosh::Director
- Includes:
- Api::Http
- Defined in:
- lib/bosh/director/api.rb,
lib/bosh/director.rb,
lib/bosh/director.rb,
lib/bosh/director/app.rb,
lib/bosh/director/lock.rb,
lib/bosh/director/config.rb,
lib/bosh/director/errand.rb,
lib/bosh/director/errors.rb,
lib/bosh/director/models.rb,
lib/bosh/director/ip_util.rb,
lib/bosh/director/version.rb,
lib/bosh/director/vm_data.rb,
lib/bosh/director/duration.rb,
lib/bosh/director/jobs/ssh.rb,
lib/bosh/director/nats_rpc.rb,
lib/bosh/director/blob_util.rb,
lib/bosh/director/db_backup.rb,
lib/bosh/director/event_log.rb,
lib/bosh/director/job_queue.rb,
lib/bosh/director/scheduler.rb,
lib/bosh/director/vm_reuser.rb,
lib/bosh/director/blobstores.rb,
lib/bosh/director/dns_helper.rb,
lib/bosh/director/job_runner.rb,
lib/bosh/director/vm_creator.rb,
lib/bosh/director/job_updater.rb,
lib/bosh/director/jobs/backup.rb,
lib/bosh/director/lock_helper.rb,
lib/bosh/director/thread_pool.rb,
lib/bosh/director/agent_client.rb,
lib/bosh/director/compile_task.rb,
lib/bosh/director/job_renderer.rb,
lib/bosh/director/logs_fetcher.rb,
lib/bosh/director/errand/result.rb,
lib/bosh/director/errand/runner.rb,
lib/bosh/director/jobs/base_job.rb,
lib/bosh/director/jobs/vm_state.rb,
lib/bosh/director/api/api_helper.rb,
lib/bosh/director/api/controller.rb,
lib/bosh/director/api/task_helper.rb,
lib/bosh/director/db_backup/error.rb,
lib/bosh/director/deployment_plan.rb,
lib/bosh/director/download_helper.rb,
lib/bosh/director/jobs/fetch_logs.rb,
lib/bosh/director/jobs/run_errand.rb,
lib/bosh/director/problem_scanner.rb,
lib/bosh/director/api/task_manager.rb,
lib/bosh/director/api/user_manager.rb,
lib/bosh/director/compiled_package.rb,
lib/bosh/director/hash_string_vals.rb,
lib/bosh/director/instance_deleter.rb,
lib/bosh/director/instance_updater.rb,
lib/bosh/director/package_compiler.rb,
lib/bosh/director/problem_resolver.rb,
lib/bosh/director/task_result_file.rb,
lib/bosh/director/cloudcheck_helper.rb,
lib/bosh/director/encryption_helper.rb,
lib/bosh/director/stale_file_killer.rb,
lib/bosh/director/validation_helper.rb,
lib/bosh/director/api/backup_manager.rb,
lib/bosh/director/errand/job_manager.rb,
lib/bosh/director/jobs/snapshot_self.rb,
lib/bosh/director/api/instance_lookup.rb,
lib/bosh/director/api/problem_manager.rb,
lib/bosh/director/api/release_manager.rb,
lib/bosh/director/deployment_plan/job.rb,
lib/bosh/director/job_updater_factory.rb,
lib/bosh/director/jobs/delete_release.rb,
lib/bosh/director/jobs/update_release.rb,
lib/bosh/director/log_bundles_cleaner.rb,
lib/bosh/director/network_reservation.rb,
lib/bosh/director/vm_metadata_updater.rb,
lib/bosh/director/api/instance_manager.rb,
lib/bosh/director/api/property_manager.rb,
lib/bosh/director/api/resource_manager.rb,
lib/bosh/director/api/snapshot_manager.rb,
lib/bosh/director/api/stemcell_manager.rb,
lib/bosh/director/api/vm_state_manager.rb,
lib/bosh/director/jobs/create_snapshot.rb,
lib/bosh/director/jobs/delete_stemcell.rb,
lib/bosh/director/jobs/update_stemcell.rb,
lib/bosh/director/api/deployment_lookup.rb,
lib/bosh/director/jobs/cloud_check/scan.rb,
lib/bosh/director/jobs/delete_snapshots.rb,
lib/bosh/director/jobs/scheduled_backup.rb,
lib/bosh/director/problem_handlers/base.rb,
lib/bosh/director/resource_pool_updater.rb,
lib/bosh/director/api/controller_helpers.rb,
lib/bosh/director/api/deployment_manager.rb,
lib/bosh/director/compile_task_generator.rb,
lib/bosh/director/compiled_package_group.rb,
lib/bosh/director/jobs/delete_deployment.rb,
lib/bosh/director/jobs/update_deployment.rb,
lib/bosh/director/agent_message_converter.rb,
lib/bosh/director/api/resurrector_manager.rb,
lib/bosh/director/deployment_plan/idle_vm.rb,
lib/bosh/director/deployment_plan/network.rb,
lib/bosh/director/deployment_plan/planner.rb,
lib/bosh/director/deployment_plan/updater.rb,
lib/bosh/director/db_backup/adapter/mysql2.rb,
lib/bosh/director/db_backup/adapter/sqlite.rb,
lib/bosh/director/deployment_plan/instance.rb,
lib/bosh/director/deployment_plan/preparer.rb,
lib/bosh/director/deployment_plan/stemcell.rb,
lib/bosh/director/deployment_plan/template.rb,
lib/bosh/director/instance_updater/stopper.rb,
lib/bosh/director/jobs/snapshot_deployment.rb,
lib/bosh/director/compiled_package_manifest.rb,
lib/bosh/director/deployment_plan/assembler.rb,
lib/bosh/director/instance_updater/preparer.rb,
lib/bosh/director/jobs/snapshot_deployments.rb,
lib/bosh/director/compiled_packages_exporter.rb,
lib/bosh/director/db_backup/adapter/postgres.rb,
lib/bosh/director/deployment_plan/dns_binder.rb,
lib/bosh/director/errand/deployment_preparer.rb,
lib/bosh/director/compiled_package_downloader.rb,
lib/bosh/director/deployment_plan/vip_network.rb,
lib/bosh/director/instance_updater/vm_updater.rb,
lib/bosh/director/problem_handlers/missing_vm.rb,
lib/bosh/director/deployment_plan/resource_pool.rb,
lib/bosh/director/deployment_plan/update_config.rb,
lib/bosh/director/jobs/cloud_check/scan_and_fix.rb,
lib/bosh/director/jobs/import_compiled_packages.rb,
lib/bosh/director/deployment_plan/manual_network.rb,
lib/bosh/director/deployment_plan/network_subnet.rb,
lib/bosh/director/deployment_plan/resource_pools.rb,
lib/bosh/director/problem_handlers/inactive_disk.rb,
lib/bosh/director/rendered_job_templates_cleaner.rb,
lib/bosh/director/api/controllers/base_controller.rb,
lib/bosh/director/api/controllers/info_controller.rb,
lib/bosh/director/deployment_plan/dynamic_network.rb,
lib/bosh/director/deployment_plan/job_spec_parser.rb,
lib/bosh/director/deployment_plan/release_version.rb,
lib/bosh/director/problem_handlers/out_of_sync_vm.rb,
lib/bosh/director/api/controllers/locks_controller.rb,
lib/bosh/director/api/controllers/tasks_controller.rb,
lib/bosh/director/api/controllers/users_controller.rb,
lib/bosh/director/deployment_plan/compiled_package.rb,
lib/bosh/director/instance_updater/network_updater.rb,
lib/bosh/director/jobs/delete_deployment_snapshots.rb,
lib/bosh/director/problem_handlers/invalid_problem.rb,
lib/bosh/director/deployment_plan/multi_job_updater.rb,
lib/bosh/director/api/controllers/backups_controller.rb,
lib/bosh/director/api/controllers/errands_controller.rb,
lib/bosh/director/deployment_plan/compilation_config.rb,
lib/bosh/director/deployment_plan/instance_vm_binder.rb,
lib/bosh/director/jobs/cloud_check/apply_resolutions.rb,
lib/bosh/director/api/controllers/packages_controller.rb,
lib/bosh/director/api/controllers/releases_controller.rb,
lib/bosh/director/problem_handlers/unresponsive_agent.rb,
lib/bosh/director/api/controllers/resources_controller.rb,
lib/bosh/director/api/controllers/stemcells_controller.rb,
lib/bosh/director/problem_handlers/mount_info_mismatch.rb,
lib/bosh/director/problem_handlers/unbound_instance_vm.rb,
lib/bosh/director/api/controllers/deployments_controller.rb,
lib/bosh/director/deployment_plan/deployment_spec_parser.rb,
lib/bosh/director/api/controllers/resurrection_controller.rb,
lib/bosh/director/api/controllers/compiled_packages_controller.rb
Overview
Copyright © 2009-2012 VMware, Inc.
Defined Under Namespace
Modules: AgentMessageConverter, Api, CloudcheckHelper, CompiledPackage, CycleHelper, DbBackup, DeploymentPlan, DnsHelper, DownloadHelper, Duration, EncryptionHelper, Errand, EventLog, IpUtil, Jobs, LockHelper, ModelHelper, Models, ProblemHandlers, ValidationHelper Classes: AgentClient, App, BlobUtil, Blobstores, CompileTask, CompileTaskGenerator, CompiledPackageDownloader, CompiledPackageGroup, CompiledPackageManifest, CompiledPackagesExporter, Config, DirectorError, InstanceDeleter, InstanceUpdater, JobQueue, JobRenderer, JobRunner, JobUpdater, JobUpdaterFactory, Lock, LogBundlesCleaner, LogsFetcher, NatsRpc, NetworkReservation, PackageCompiler, ProblemHandlerError, ProblemResolver, ProblemScanner, RenderedJobTemplatesCleaner, ResourcePoolUpdater, Scheduler, StaleFileKiller, TaskResultFile, ThreadPool, VmCreator, VmData, VmMetadataUpdater, VmReuser
Constant Summary collapse
- TaskNotFound =
err(10000, NOT_FOUND)
- TaskCancelled =
err(10001, OK)
- UserNotFound =
User management
err(20000, NOT_FOUND)
- UserImmutableUsername =
err(20001)
- UserInvalid =
err(20002)
- UserNameTaken =
err(20003)
- ReleaseAlreadyExists =
err(30000)
- ReleaseExistingPackageHashMismatch =
err(30001)
- ReleaseInvalidArchive =
err(30002)
- ReleaseManifestNotFound =
err(30003)
- ReleaseExistingJobHashMismatch =
err(30004)
- ReleaseNotFound =
err(30005, NOT_FOUND)
- ReleaseVersionNotFound =
err(30006, NOT_FOUND)
- ReleaseInUse =
err(30007)
- ReleaseVersionInUse =
err(30008)
- ReleaseDeleteFailed =
err(30009)
- ReleaseVersionInvalid =
err(30010)
- ValidationInvalidType =
err(40000)
- ValidationMissingField =
err(40001)
- ValidationViolatedMin =
err(40002)
- ValidationViolatedMax =
err(40003)
- StemcellInvalidArchive =
err(50000)
- StemcellImageNotFound =
err(50001)
- StemcellAlreadyExists =
err(50002)
- StemcellNotFound =
err(50003, NOT_FOUND)
- StemcellInUse =
err(50004)
- PackageInvalidArchive =
err(60000)
- DeploymentNotFound =
Models
err(70000, NOT_FOUND)
- InstanceNotFound =
err(70001, NOT_FOUND)
- InstanceInvalidIndex =
err(70002)
- InstanceDeploymentMissing =
err(70003)
- InstanceVmMissing =
err(70004)
- VmAgentIdMissing =
err(70005)
- VmCloudIdMissing =
err(70006)
- VmInstanceOutOfSync =
err(70006)
- InstanceTargetStateUndefined =
err(70007)
- SnapshotNotFound =
err(70008)
- JobNotFound =
err(70009, NOT_FOUND)
- JobInvalidArchive =
Extracting job from a release
err(80000)
- JobMissingManifest =
err(80001)
- JobMissingTemplateFile =
err(80002)
- JobMissingPackage =
err(80003)
- JobMissingMonit =
err(80004)
- JobInvalidLogSpec =
err(80005)
- JobTemplateBindingFailed =
err(80006)
- JobTemplateUnpackFailed =
err(80007)
- JobInvalidPropertySpec =
err(80008)
- JobInvalidPropertyMapping =
err(80009)
- JobIncompatibleSpecs =
err(80010)
- JobPackageCollision =
err(80011)
- ResourceError =
err(100001)
- ResourceNotFound =
err(100002, NOT_FOUND)
- PropertyAlreadyExists =
Director property management
err(110001)
- PropertyInvalid =
err(110002)
- PropertyNotFound =
err(110003, NOT_FOUND)
- CompilationConfigUnknownNetwork =
err(120001)
- NetworkReservationInvalidIp =
Manifest parsing: network section
err(130001)
- NetworkReservationMissing =
err(130002)
- NetworkReservationAlreadyExists =
err(130003)
- NetworkReservationInvalidType =
err(130004)
- NetworkReservationIpMissing =
err(130005)
- NetworkReservationIpNotOwned =
err(130006)
- NetworkReservationVipDefaultProvided =
err(130007)
- NetworkReservationAlreadyInUse =
err(130008)
- NetworkReservationWrongType =
err(130009)
- NetworkReservationError =
err(130010)
- NetworkReservationNotEnoughCapacity =
err(130010)
- JobMissingRelease =
Manifest parsing: job section
err(140001)
- JobUnknownRelease =
err(140002)
- JobUnknownResourcePool =
err(140003)
- JobInvalidInstanceIndex =
err(140004)
- JobInvalidInstanceState =
err(140005)
- JobInvalidJobState =
err(140006)
- JobMissingNetwork =
err(140007)
- JobInvalidTemplates =
err(140008)
- JobInvalidLifecycle =
err(140009)
- JobUnknownNetwork =
Manifest parsing: job networks section
err(150001)
- JobNetworkInstanceIpMismatch =
err(150002)
- JobNetworkInvalidDefault =
err(150003)
- JobNetworkMultipleDefaults =
err(150004)
- JobNetworkMissingDefault =
err(150005)
- NetworkOverlappingSubnets =
err(160001)
- NetworkInvalidRange =
err(160002)
- NetworkInvalidGateway =
err(160003)
- NetworkInvalidDns =
err(160004)
- NetworkReservedIpOutOfRange =
err(160005)
- NetworkStaticIpOutOfRange =
err(160006)
- ResourcePoolUnknownNetwork =
err(170001)
- ResourcePoolNotEnoughCapacity =
err(170002)
- UpdateConfigInvalidWatchTime =
err(180001)
- DeploymentAmbiguousReleaseSpec =
err(190001)
- DeploymentDuplicateReleaseName =
err(190002)
- DeploymentDuplicateResourcePoolName =
err(190003)
- DeploymentRenamedJobNameStillUsed =
err(190004)
- DeploymentCanonicalJobNameTaken =
err(190005)
- DeploymentCanonicalNetworkNameTaken =
err(190006)
- DeploymentNoNetworks =
err(190007)
- DeploymentCanonicalNameTaken =
err(190008)
- DeploymentInvalidNetworkType =
err(190009)
- DeploymentUnknownTemplate =
err(190012)
- CloudDiskNotAttached =
err(390001)
- CloudDiskMissing =
err(390002)
- CloudNotEnoughDiskSpace =
err(390003)
- AgentTaskNoBlobstoreId =
Agent errors
err(400001)
- AgentInvalidStateFormat =
err(400002)
- AgentWrongDeployment =
err(400003)
- AgentUnexpectedJob =
err(400004)
- AgentRenameInProgress =
err(400005)
- AgentJobMismatch =
err(400006)
- AgentJobNotRunning =
err(400007)
- AgentJobNotStopped =
err(400008)
- AgentUnexpectedDisk =
err(400009)
- AgentDiskOutOfSync =
err(400010)
- AgentInvalidTaskResult =
err(400011)
- CloudcheckTooManySimilarProblems =
Cloud check task errors
err(410001)
- CloudcheckResolutionNotProvided =
err(410002)
- CloudcheckInvalidResolutionFormat =
err(410003)
- DnsInvalidCanonicalName =
err(420001)
- PackageCompilationNetworkNotReserved =
err(430001)
- PackageCompilationNotEnoughWorkersForReuse =
err(430002)
- BadManifest =
err(440001)
- RpcRemoteException =
err(450001)
- RpcTimeout =
err(450002)
- SystemError =
err(500000, INTERNAL_SERVER_ERROR)
- NotEnoughDiskSpace =
err(500001, INTERNAL_SERVER_ERROR)
- RunErrandError =
Run errand errors
err(510000)
- VERSION =
'1.2611.0'
Constants included from Api::Http
Api::Http::BAD_REQUEST, Api::Http::CREATED, Api::Http::FORBIDDEN, Api::Http::INTERNAL_SERVER_ERROR, Api::Http::NOT_FOUND, Api::Http::NO_CONTENT, Api::Http::OK, Api::Http::UNAUTHORIZED
Class Method Summary collapse
- .err(error_code, response_code = BAD_REQUEST) ⇒ Object
-
.hash_string_vals(h, *keys) ⇒ Object
Replace values for keys in a hash with their to_s.
Class Method Details
.err(error_code, response_code = BAD_REQUEST) ⇒ Object
50 51 52 |
# File 'lib/bosh/director/errors.rb', line 50 def self.err(error_code, response_code = BAD_REQUEST) DirectorError.define_error(error_code, response_code) end |
.hash_string_vals(h, *keys) ⇒ Object
Replace values for keys in a hash with their to_s.
6 7 8 9 10 11 |
# File 'lib/bosh/director/hash_string_vals.rb', line 6 def hash_string_vals(h, *keys) keys.each do |k| h[k] = h[k].to_s end h end |