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/worker.rb,
lib/bosh/director/ip_util.rb,
lib/bosh/director/stopper.rb,
lib/bosh/director/version.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/blobstores.rb,
lib/bosh/director/job_runner.rb,
lib/bosh/director/transactor.rb,
lib/bosh/director/vm_creator.rb,
lib/bosh/director/vm_deleter.rb,
lib/bosh/director/arp_flusher.rb,
lib/bosh/director/job_updater.rb,
lib/bosh/director/jobs/backup.rb,
lib/bosh/director/jobs/db_job.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/disk_manager.rb,
lib/bosh/director/dns/powerdns.rb,
lib/bosh/director/job_renderer.rb,
lib/bosh/director/logs_fetcher.rb,
lib/bosh/director/vm_recreator.rb,
lib/bosh/director/errand/result.rb,
lib/bosh/director/errand/runner.rb,
lib/bosh/director/error_ignorer.rb,
lib/bosh/director/jobs/base_job.rb,
lib/bosh/director/jobs/vm_state.rb,
lib/bosh/director/key_generator.rb,
lib/bosh/director/tagged_logger.rb,
lib/bosh/director/api/api_helper.rb,
lib/bosh/director/jobs/delete_vm.rb,
lib/bosh/director/api/task_helper.rb,
lib/bosh/director/db_backup/error.rb,
lib/bosh/director/deployment_plan.rb,
lib/bosh/director/dns/dns_manager.rb,
lib/bosh/director/download_helper.rb,
lib/bosh/director/instance_reuser.rb,
lib/bosh/director/jobs/fetch_logs.rb,
lib/bosh/director/jobs/run_errand.rb,
lib/bosh/director/password_helper.rb,
lib/bosh/director/api/task_manager.rb,
lib/bosh/director/compiled_package.rb,
lib/bosh/director/compiled_release.rb,
lib/bosh/director/hash_string_vals.rb,
lib/bosh/director/instance_deleter.rb,
lib/bosh/director/instance_updater.rb,
lib/bosh/director/jobs/attach_disk.rb,
lib/bosh/director/problem_resolver.rb,
lib/bosh/director/task_result_file.rb,
lib/bosh/director/api/event_manager.rb,
lib/bosh/director/cloudcheck_helper.rb,
lib/bosh/director/dns/canonicalizer.rb,
lib/bosh/director/encryption_helper.rb,
lib/bosh/director/manifest/manifest.rb,
lib/bosh/director/stale_file_killer.rb,
lib/bosh/director/validation_helper.rb,
lib/bosh/director/api/backup_manager.rb,
lib/bosh/director/deployment_deleter.rb,
lib/bosh/director/dns/local_dns_repo.rb,
lib/bosh/director/errand/job_manager.rb,
lib/bosh/director/jobs/snapshot_self.rb,
lib/bosh/director/manifest/changeset.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/api/restore_manager.rb,
lib/bosh/director/cidr_range_combiner.rb,
lib/bosh/director/deployment_plan/env.rb,
lib/bosh/director/job_updater_factory.rb,
lib/bosh/director/jobs/delete_release.rb,
lib/bosh/director/jobs/export_release.rb,
lib/bosh/director/jobs/update_release.rb,
lib/bosh/director/log_bundles_cleaner.rb,
lib/bosh/director/manifest/diff_lines.rb,
lib/bosh/director/models/cloud_config.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/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/models/runtime_config.rb,
lib/bosh/director/permission_authorizer.rb,
lib/bosh/director/problem_handlers/base.rb,
lib/bosh/director/api/deployment_manager.rb,
lib/bosh/director/api/extensions/scoping.rb,
lib/bosh/director/compile_task_generator.rb,
lib/bosh/director/compiled_package_group.rb,
lib/bosh/director/jobs/cleanup_artifacts.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/api/route_configuration.rb,
lib/bosh/director/deployment_plan/network.rb,
lib/bosh/director/deployment_plan/planner.rb,
lib/bosh/director/deployment_plan/vm_type.rb,
lib/bosh/director/problem_scanner/scanner.rb,
lib/bosh/director/api/cloud_config_manager.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/notifier.rb,
lib/bosh/director/deployment_plan/stemcell.rb,
lib/bosh/director/deployment_plan/template.rb,
lib/bosh/director/jobs/delete_orphan_disks.rb,
lib/bosh/director/jobs/release/release_job.rb,
lib/bosh/director/jobs/snapshot_deployment.rb,
lib/bosh/director/legacy_deployment_helper.rb,
lib/bosh/director/api/uaa_identity_provider.rb,
lib/bosh/director/compiled_release/manifest.rb,
lib/bosh/director/compiled_release_manifest.rb,
lib/bosh/director/deployment_plan/assembler.rb,
lib/bosh/director/deployment_plan/disk_type.rb,
lib/bosh/director/instance_updater/preparer.rb,
lib/bosh/director/jobs/snapshot_deployments.rb,
lib/bosh/director/api/director_uuid_provider.rb,
lib/bosh/director/api/runtime_config_manager.rb,
lib/bosh/director/db_backup/adapter/postgres.rb,
lib/bosh/director/deployment_plan/links/link.rb,
lib/bosh/director/api/instance_ignore_manager.rb,
lib/bosh/director/api/local_identity_provider.rb,
lib/bosh/director/compiled_release_downloader.rb,
lib/bosh/director/deployment_plan/job_network.rb,
lib/bosh/director/deployment_plan/vip_network.rb,
lib/bosh/director/problem_handlers/missing_vm.rb,
lib/bosh/director/api/user/config_user_manager.rb,
lib/bosh/director/deployment_plan/job_migrator.rb,
lib/bosh/director/deployment_plan/vm_extension.rb,
lib/bosh/director/package_dependencies_manager.rb,
lib/bosh/director/deployment_plan/instance_plan.rb,
lib/bosh/director/deployment_plan/instance_spec.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/scheduled_events_cleanup.rb,
lib/bosh/director/jobs/scheduled_orphan_cleanup.rb,
lib/bosh/director/post_deployment_script_runner.rb,
lib/bosh/director/problem_handlers/missing_disk.rb,
lib/bosh/director/problem_scanner/vm_scan_stage.rb,
lib/bosh/director/api/controllers/vms_controller.rb,
lib/bosh/director/api/user/database_user_manager.rb,
lib/bosh/director/api/user/user_manager_provider.rb,
lib/bosh/director/deployment_plan/instance_group.rb,
lib/bosh/director/deployment_plan/manual_network.rb,
lib/bosh/director/instance_updater/state_applier.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/api/controllers/task_controller.rb,
lib/bosh/director/deployment_plan/deployment_repo.rb,
lib/bosh/director/deployment_plan/dynamic_network.rb,
lib/bosh/director/deployment_plan/links/link_path.rb,
lib/bosh/director/deployment_plan/planner_factory.rb,
lib/bosh/director/deployment_plan/release_version.rb,
lib/bosh/director/instance_updater/instance_state.rb,
lib/bosh/director/api/controllers/disks_controller.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/deployment_plan/desired_instance.rb,
lib/bosh/director/deployment_plan/instance_planner.rb,
lib/bosh/director/jobs/delete_deployment_snapshots.rb,
lib/bosh/director/problem_handlers/invalid_problem.rb,
lib/bosh/director/api/controllers/events_controller.rb,
lib/bosh/director/deployment_plan/availability_zone.rb,
lib/bosh/director/deployment_plan/links/link_lookup.rb,
lib/bosh/director/deployment_plan/manifest_migrator.rb,
lib/bosh/director/deployment_plan/multi_job_updater.rb,
lib/bosh/director/deployment_plan/package_validator.rb,
lib/bosh/director/deployment_plan/steps/update_step.rb,
lib/bosh/director/api/controllers/backups_controller.rb,
lib/bosh/director/api/controllers/cleanup_controller.rb,
lib/bosh/director/api/controllers/restore_controller.rb,
lib/bosh/director/deployment_plan/compilation_config.rb,
lib/bosh/director/deployment_plan/job_network_parser.rb,
lib/bosh/director/deployment_plan/manifest_validator.rb,
lib/bosh/director/deployment_plan/options/skip_drain.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/deployment_plan/links/template_link.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/api/extensions/syslog_request_logger.rb,
lib/bosh/director/deployment_plan/agent_state_migrator.rb,
lib/bosh/director/deployment_plan/deployment_validator.rb,
lib/bosh/director/deployment_plan/links/links_resolver.rb,
lib/bosh/director/problem_handlers/mount_info_mismatch.rb,
lib/bosh/director/deployment_plan/cloud_manifest_parser.rb,
lib/bosh/director/deployment_plan/instance_plan_factory.rb,
lib/bosh/director/deployment_plan/manual_network_subnet.rb,
lib/bosh/director/api/controllers/deployments_controller.rb,
lib/bosh/director/deployment_plan/deployment_spec_parser.rb,
lib/bosh/director/deployment_plan/dynamic_network_subnet.rb,
lib/bosh/director/deployment_plan/placement_planner/plan.rb,
lib/bosh/director/api/controllers/resurrection_controller.rb,
lib/bosh/director/deployment_plan/global_network_resolver.rb,
lib/bosh/director/deployment_plan/ip_provider/ip_provider.rb,
lib/bosh/director/deployment_plan/runtime_manifest_parser.rb,
lib/bosh/director/api/controllers/cloud_configs_controller.rb,
lib/bosh/director/deployment_plan/compilation_instance_pool.rb,
lib/bosh/director/api/controllers/runtime_configs_controller.rb,
lib/bosh/director/deployment_plan/instance_group_spec_parser.rb,
lib/bosh/director/deployment_plan/steps/package_compile_step.rb,
lib/bosh/director/deployment_plan/job_availability_zone_parser.rb,
lib/bosh/director/deployment_plan/instance_network_reservations.rb,
lib/bosh/director/deployment_plan/ip_provider/ip_provider_factory.rb,
lib/bosh/director/deployment_plan/placement_planner/index_assigner.rb,
lib/bosh/director/deployment_plan/placement_planner/networks_to_static_ips.rb,
lib/bosh/director/deployment_plan/placement_planner/availability_zone_picker.rb,
lib/bosh/director/deployment_plan/placement_planner/bruteforce_ip_allocation.rb,
lib/bosh/director/deployment_plan/placement_planner/placed_desired_instances.rb,
lib/bosh/director/deployment_plan/placement_planner/unplaced_existing_instances.rb,
lib/bosh/director/deployment_plan/placement_planner/static_ips_availability_zone_picker.rb

Overview

Copyright © 2009-2012 VMware, Inc.

Defined Under Namespace

Modules: AgentMessageConverter, Api, CloudcheckHelper, CompiledPackage, CompiledRelease, CycleHelper, DbBackup, DeploymentPlan, DownloadHelper, Duration, EncryptionHelper, Errand, EventLog, IpUtil, Jobs, LegacyDeploymentHelper, LockHelper, ModelHelper, Models, PasswordHelper, ProblemHandlers, ProblemScanner, ValidationHelper Classes: AgentClient, App, ArpFlusher, AuthenticationError, BlobUtil, Blobstores, Canonicalizer, Changeset, CidrRangeCombiner, CompileTask, CompileTaskGenerator, CompiledPackageGroup, CompiledReleaseDownloader, CompiledReleaseManifest, Config, DefaultPropertyValidationMessage, DeploymentDeleter, DesiredNetworkReservation, DiffLines, DirectorError, DisabledDnsManager, DiskManager, DnsManager, DnsManagerProvider, EnabledDnsManager, ErrorIgnorer, ExistingNetworkReservation, ForkedProcess, InstanceDeleter, InstanceReuser, InstanceUpdater, JobQueue, JobRenderer, JobRunner, JobUpdater, JobUpdaterFactory, KeyGenerator, Line, LocalDnsRepo, Lock, LogBundlesCleaner, LogsFetcher, Manifest, NatsRpc, NetworkReservation, NilInstanceError, PackageDependenciesManager, PermissionAuthorizer, PostDeploymentScriptRunner, PowerDns, ProblemHandlerError, ProblemResolver, PropertyValidationMessage, ReleaseJob, RenderedJobTemplatesCleaner, Scheduler, StaleFileKiller, Stopper, TaggedLogger, TaskCheckPointer, TaskResultFile, ThreadPool, Transactor, VmCreator, VmDeleter, VmMetadataUpdater, VmRecreator, Worker

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)
UserManagementNotSupported =
err(20004)
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)
ReleaseNotMatchingManifest =
err(30011)
ReleaseInvalidPackage =
err(30012)
ReleaseExistingJobFingerprintMismatch =
err(30013)
ReleaseVersionCommitHashMismatch =
err(30014)
ReleaseSha1DoesNotMatch =
err(30015)
ReleasePackageDependencyKeyMismatch =
err(30016)
ValidationInvalidType =
err(40000)
ValidationMissingField =
err(40001)
ValidationViolatedMin =
err(40002)
ValidationViolatedMax =
err(40003)
ValidationExtraField =
err(40004)
StemcellInvalidArchive =
err(50000)
StemcellImageNotFound =
err(50001)
StemcellAlreadyExists =
err(50002)
StemcellNotFound =
err(50003, NOT_FOUND)
StemcellInUse =
err(50004)
StemcellAliasAlreadyExists =
err(50005)
StemcellBothNameAndOS =
err(50006)
StemcellSha1DoesNotMatch =
err(50007)
PackageInvalidArchive =
err(60000)
PackageMissingSourceCode =
err(60001)
CompiledPackageDeletionFailed =
err(60002)
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)
JobInvalidPackageSpec =
err(80012)
JobInvalidLinkSpec =
err(80013)
JobDuplicateLinkName =
err(80014)
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)
CompilationConfigInvalidAvailabilityZone =
err(120002)
CompilationConfigInvalidVmType =
err(120003)
CompilationConfigCloudPropertiesNotAllowed =
err(120004)
CompilationConfigInvalidVmExtension =
err(120005)
CompilationConfigVmTypeRequired =
err(120004)
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(130011)
NetworkReservationIpOutsideSubnet =
err(130012)
NetworkReservationIpReserved =
err(130013)
JobMissingRelease =

Manifest parsing: job section

err(140001)
JobUnknownRelease =
err(140002)
JobUnknownResourcePool =
err(140003)
JobUnknownVmType =
err(140004)
JobUnknownStemcell =
err(140005)
JobInvalidInstanceIndex =
err(140006)
JobInvalidInstanceState =
err(140007)
JobInvalidJobState =
err(140008)
JobMissingNetwork =
err(140009)
JobInvalidTemplates =
err(140010)
JobInvalidLifecycle =
err(140011)
JobUnknownDiskType =
err(140012)
JobInvalidPersistentDisk =
err(140013)
err(140014)
err(140015)
JobInvalidAvailabilityZone =
err(140016)
JobMissingAvailabilityZones =
err(140017)
JobUnknownAvailabilityZone =
err(140018)
JobAmbiguousEnv =
err(140019)
JobBothInstanceGroupAndJob =
err(140020)
JobInstanceIgnored =
err(140021)
JobUnknownNetwork =

Manifest parsing: job networks section

err(150001)
JobNetworkInstanceIpMismatch =
err(150002)
JobNetworkInvalidDefault =
err(150003)
JobNetworkMultipleDefaults =
err(150004)
JobNetworkMissingDefault =
err(150005)
JobNetworkMissingRequiredAvailabilityZone =
err(150006)
JobStaticIpsFromInvalidAvailabilityZone =
err(150007)
JobStaticIPNotSupportedOnDynamicNetwork =
err(150008)
JobInvalidStaticIPs =
err(150009)
NetworkOverlappingSubnets =
err(160001)
NetworkInvalidRange =
err(160002)
NetworkInvalidGateway =
err(160003)
NetworkInvalidDns =
err(160004)
NetworkReservedIpOutOfRange =
err(160005)
NetworkStaticIpOutOfRange =
err(160006)
NetworkSubnetUnknownAvailabilityZone =
err(160007)
NetworkInvalidProperty =
err(160008)
NetworkSubnetInvalidAvailabilityZone =
err(160009)
NetworkInvalidIpRangeFormat =
err(160010)
ResourcePoolUnknownNetwork =
err(170001)
ResourcePoolNotEnoughCapacity =
err(170002)
UpdateConfigInvalidWatchTime =
err(180001)
DeploymentAmbiguousReleaseSpec =
err(190001)
DeploymentDuplicateReleaseName =
err(190002)
DeploymentDuplicateResourcePoolName =
err(190003)
DeploymentDuplicateVmTypeName =
err(190004)
DeploymentDuplicateVmExtensionName =
err(190005)
DeploymentCanonicalJobNameTaken =
err(190006)
DeploymentCanonicalNetworkNameTaken =
err(190007)
DeploymentNoNetworks =
err(190008)
DeploymentCanonicalNameTaken =
err(190009)
DeploymentInvalidNetworkType =
err(190010)
DeploymentUnknownTemplate =
err(190011)
DeploymentInvalidDiskSpecification =
err(190012)
DeploymentDuplicateDiskTypeName =
err(190013)
DeploymentInvalidProperty =
err(190014)
DeploymentNoResourcePools =
err(190015)
err(190016)
DeploymentDuplicateAvailabilityZoneName =
err(190017)
DeploymentInvalidMigratedFromJob =
err(190018)
DeploymentInvalidResourceSpecification =
err(190019)
DeploymentIgnoredInstancesModification =
err(190020)
DeploymentIgnoredInstancesDeletion =
err(190021)
DiskTypeInvalidDiskSize =
err(200001)
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)
PackageCompilationNotEnoughWorkersForReuse =
err(430002)
PackageCompilationNotFound =
err(430003)
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)
DeletingPersistentDiskError =

Disk errors

err(520000)
AttachDiskErrorUnknownInstance =
err(520001)
AttachDiskNoPersistentDisk =
err(520002)
AttachDiskInvalidInstanceState =
err(520003)
RuntimeAmbiguousReleaseSpec =

Addons

err(530000)
RuntimeInvalidReleaseVersion =
err(530001)
RuntimeReleaseNotListedInReleases =
err(530002)
RuntimeInvalidDeploymentRelease =
err(530003)
UnauthorizedToAccessDeployment =

Authorization errors

err(600000, UNAUTHORIZED)
VERSION =
'1.3262.24.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

Class Method Details

.err(error_code, response_code = BAD_REQUEST) ⇒ Object



51
52
53
# File 'lib/bosh/director/errors.rb', line 51

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