bosh-director 1.2957.0 → 1.2962.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bosh/director.rb +0 -1
  3. data/lib/bosh/director/api/cloud_config_manager.rb +9 -0
  4. data/lib/bosh/director/api/controllers/deployments_controller.rb +12 -4
  5. data/lib/bosh/director/deployment_plan.rb +4 -2
  6. data/lib/bosh/director/deployment_plan/assembler.rb +6 -62
  7. data/lib/bosh/director/deployment_plan/cloud_manifest_parser.rb +77 -0
  8. data/lib/bosh/director/deployment_plan/compilation_config.rb +12 -12
  9. data/lib/bosh/director/deployment_plan/deployment_repo.rb +28 -0
  10. data/lib/bosh/director/deployment_plan/deployment_spec_parser.rb +5 -74
  11. data/lib/bosh/director/deployment_plan/dynamic_network.rb +2 -2
  12. data/lib/bosh/director/deployment_plan/manifest_migrator.rb +53 -0
  13. data/lib/bosh/director/deployment_plan/manual_network.rb +1 -1
  14. data/lib/bosh/director/deployment_plan/network_subnet.rb +3 -4
  15. data/lib/bosh/director/deployment_plan/notifier.rb +5 -5
  16. data/lib/bosh/director/deployment_plan/planner.rb +96 -122
  17. data/lib/bosh/director/deployment_plan/planner_factory.rb +148 -0
  18. data/lib/bosh/director/deployment_plan/release_version.rb +6 -7
  19. data/lib/bosh/director/deployment_plan/resource_pool.rb +6 -6
  20. data/lib/bosh/director/deployment_plan/steps/package_compile_step.rb +5 -5
  21. data/lib/bosh/director/deployment_plan/steps/update_step.rb +59 -11
  22. data/lib/bosh/director/deployment_plan/vip_network.rb +1 -1
  23. data/lib/bosh/director/errand.rb +0 -1
  24. data/lib/bosh/director/errand/job_manager.rb +5 -0
  25. data/lib/bosh/director/errors.rb +2 -0
  26. data/lib/bosh/director/jobs/fetch_logs.rb +1 -1
  27. data/lib/bosh/director/jobs/run_errand.rb +31 -30
  28. data/lib/bosh/director/jobs/update_deployment.rb +32 -50
  29. data/lib/bosh/director/models/deployment.rb +0 -1
  30. data/lib/bosh/director/version.rb +1 -1
  31. metadata +25 -23
  32. data/lib/bosh/director/deployment_plan/steps/prepare_step.rb +0 -56
  33. data/lib/bosh/director/errand/deployment_preparer.rb +0 -26
@@ -3,7 +3,6 @@
3
3
  module Bosh::Director::Models
4
4
  class Deployment < Sequel::Model(Bosh::Director::Config.db)
5
5
  many_to_many :stemcells
6
- many_to_many :releases
7
6
  many_to_many :release_versions
8
7
  one_to_many :job_instances, :class => "Bosh::Director::Models::Instance"
9
8
  one_to_many :vms
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Director
3
- VERSION = '1.2957.0'
3
+ VERSION = '1.2962.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-director
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2957.0
4
+ version: 1.2962.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - VMware
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-30 00:00:00.000000000 Z
11
+ date: 2015-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt-ruby
@@ -30,126 +30,126 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2957.0
33
+ version: 1.2962.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.2957.0
40
+ version: 1.2962.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bosh-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.2957.0
47
+ version: 1.2962.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.2957.0
54
+ version: 1.2962.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bosh-director-core
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2957.0
61
+ version: 1.2962.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.2957.0
68
+ version: 1.2962.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bosh_common
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.2957.0
75
+ version: 1.2962.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.2957.0
82
+ version: 1.2962.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bosh-template
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.2957.0
89
+ version: 1.2962.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.2957.0
96
+ version: 1.2962.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bosh_cpi
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.2957.0
103
+ version: 1.2962.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.2957.0
110
+ version: 1.2962.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: bosh_openstack_cpi
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.2957.0
117
+ version: 1.2962.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.2957.0
124
+ version: 1.2962.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: bosh_aws_cpi
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.2957.0
131
+ version: 1.2962.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.2957.0
138
+ version: 1.2962.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: bosh_vsphere_cpi
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.2957.0
145
+ version: 1.2962.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.2957.0
152
+ version: 1.2962.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: bosh_vcloud_cpi
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -558,7 +558,7 @@ dependencies:
558
558
  version: '0'
559
559
  description: |-
560
560
  BOSH Director
561
- c9cf4f
561
+ 74c57f
562
562
  email: support@cloudfoundry.com
563
563
  executables:
564
564
  - bosh-director
@@ -682,8 +682,10 @@ files:
682
682
  - lib/bosh/director/db_backup/error.rb
683
683
  - lib/bosh/director/deployment_plan.rb
684
684
  - lib/bosh/director/deployment_plan/assembler.rb
685
+ - lib/bosh/director/deployment_plan/cloud_manifest_parser.rb
685
686
  - lib/bosh/director/deployment_plan/compilation_config.rb
686
687
  - lib/bosh/director/deployment_plan/compiled_package.rb
688
+ - lib/bosh/director/deployment_plan/deployment_repo.rb
687
689
  - lib/bosh/director/deployment_plan/deployment_spec_parser.rb
688
690
  - lib/bosh/director/deployment_plan/disk_pool.rb
689
691
  - lib/bosh/director/deployment_plan/dns_binder.rb
@@ -692,18 +694,19 @@ files:
692
694
  - lib/bosh/director/deployment_plan/instance_vm_binder.rb
693
695
  - lib/bosh/director/deployment_plan/job.rb
694
696
  - lib/bosh/director/deployment_plan/job_spec_parser.rb
697
+ - lib/bosh/director/deployment_plan/manifest_migrator.rb
695
698
  - lib/bosh/director/deployment_plan/manual_network.rb
696
699
  - lib/bosh/director/deployment_plan/multi_job_updater.rb
697
700
  - lib/bosh/director/deployment_plan/network.rb
698
701
  - lib/bosh/director/deployment_plan/network_subnet.rb
699
702
  - lib/bosh/director/deployment_plan/notifier.rb
700
703
  - lib/bosh/director/deployment_plan/planner.rb
704
+ - lib/bosh/director/deployment_plan/planner_factory.rb
701
705
  - lib/bosh/director/deployment_plan/release_version.rb
702
706
  - lib/bosh/director/deployment_plan/resource_pool.rb
703
707
  - lib/bosh/director/deployment_plan/resource_pools.rb
704
708
  - lib/bosh/director/deployment_plan/stemcell.rb
705
709
  - lib/bosh/director/deployment_plan/steps/package_compile_step.rb
706
- - lib/bosh/director/deployment_plan/steps/prepare_step.rb
707
710
  - lib/bosh/director/deployment_plan/steps/update_step.rb
708
711
  - lib/bosh/director/deployment_plan/template.rb
709
712
  - lib/bosh/director/deployment_plan/update_config.rb
@@ -714,7 +717,6 @@ files:
714
717
  - lib/bosh/director/duration.rb
715
718
  - lib/bosh/director/encryption_helper.rb
716
719
  - lib/bosh/director/errand.rb
717
- - lib/bosh/director/errand/deployment_preparer.rb
718
720
  - lib/bosh/director/errand/job_manager.rb
719
721
  - lib/bosh/director/errand/result.rb
720
722
  - lib/bosh/director/errand/runner.rb
@@ -1,56 +0,0 @@
1
- module Bosh::Director
2
- module DeploymentPlan
3
- module Steps
4
- class PrepareStep
5
- def initialize(job, assembler)
6
- @job = job
7
- @assembler = assembler
8
- end
9
-
10
- def perform
11
- job.begin_stage('Preparing deployment', 9)
12
-
13
- job.track_and_log('Binding deployment') do
14
- @assembler.bind_deployment
15
- end
16
-
17
- job.track_and_log('Binding releases') do
18
- @assembler.bind_releases
19
- end
20
-
21
- job.track_and_log('Binding existing deployment') do
22
- @assembler.bind_existing_deployment
23
- end
24
-
25
- job.track_and_log('Binding resource pools') do
26
- @assembler.bind_resource_pools
27
- end
28
-
29
- job.track_and_log('Binding stemcells') do
30
- @assembler.bind_stemcells
31
- end
32
-
33
- job.track_and_log('Binding templates') do
34
- @assembler.bind_templates
35
- end
36
-
37
- job.track_and_log('Binding properties') do
38
- @assembler.bind_properties
39
- end
40
-
41
- job.track_and_log('Binding unallocated VMs') do
42
- @assembler.bind_unallocated_vms
43
- end
44
-
45
- job.track_and_log('Binding instance networks') do
46
- @assembler.bind_instance_networks
47
- end
48
- end
49
-
50
- private
51
-
52
- attr_reader :job
53
- end
54
- end
55
- end
56
- end
@@ -1,26 +0,0 @@
1
- module Bosh::Director
2
- class Errand::DeploymentPreparer
3
-
4
- def initialize(deployment, job, event_log, base_job)
5
- @deployment = deployment
6
- @job = job
7
- @event_log = event_log
8
- @base_job = base_job
9
- end
10
-
11
- def prepare_deployment
12
- assembler = DeploymentPlan::Assembler.new(@deployment)
13
-
14
- preparer = DeploymentPlan::Steps::PrepareStep.new(@base_job, assembler)
15
- preparer.perform
16
-
17
- compiler = DeploymentPlan::Steps::PackageCompileStep.new(@deployment)
18
- compiler.perform
19
- end
20
-
21
- def prepare_job
22
- @job.bind_unallocated_vms
23
- @job.bind_instance_networks
24
- end
25
- end
26
- end