Comments (4)
I ran in to the same issue myself, and this is what I think needs to be done. I haven't tested it yet, as my vSphere test environment is not in order.
± me+kx |master ✗| → git di
diff --git a/release/jobs/director/templates/director.yml.erb b/release/jobs/director/templates/director.yml.erb
index 1e7feda..3e6cf04 100644
--- a/release/jobs/director/templates/director.yml.erb
+++ b/release/jobs/director/templates/director.yml.erb
@@ -133,15 +133,15 @@ cloud:
password: <%= password %>
datacenters:
<% datacenters.each do |dc| %>
- - name: <%= dc.name %>
- vm_folder: <%= dc.vm_folder || "BOSH_VMs" %>
- template_folder: <%= dc.template_folder || "BOSH_Templates" %>
- disk_path: <%= dc.disk_path || "BOSH_Disks" %>
- datastore_pattern: <%= dc.datastore_pattern %>
- persistent_datastore_pattern: <%= dc.persistent_datastore_pattern %>
- allow_mixed_datastores: <%= dc.allow_mixed_datastores || true %>
+ - name: <%= dc['name'] %>
+ vm_folder: <%= dc['vm_folder'] || "BOSH_VMs" %>
+ template_folder: <%= dc['template_folder'] || "BOSH_Templates" %>
+ disk_path: <%= dc['disk_path'] || "BOSH_Disks" %>
+ datastore_pattern: <%= dc['datastore_pattern'] %>
+ persistent_datastore_pattern: <%= dc['persistent_datastore_pattern'] %>
+ allow_mixed_datastores: <%= dc['allow_mixed_datastores'] || true %>
clusters:
- <% dc.clusters.each do |cluster| %>
+ <% dc['clusters'].each do |cluster| %>
<% case cluster
when OpenStruct %>
<% cluster_hash = cluster.marshal_dump %>
from bosh.
I've put and tested the following fix and worked Ok. I'm not sure which one is more hacky and/or future proof. Which one should go for a pull request?
diff --git a/release/jobs/director/templates/director.yml.erb b/release/jobs/director/templates/director.yml.erb
index 1e7feda..400ec60 100644
--- a/release/jobs/director/templates/director.yml.erb
+++ b/release/jobs/director/templates/director.yml.erb
@@ -132,7 +132,7 @@ cloud:
user: <%= user %>
password: <%= password %>
datacenters:
- <% datacenters.each do |dc| %>
+ <% properties.vcenter.datacenters.each do |dc| %>
- name: <%= dc.name %>
vm_folder: <%= dc.vm_folder || "BOSH_VMs" %>
template_folder: <%= dc.template_folder || "BOSH_Templates" %>
from bosh.
We are trying to move away from accessing the properties directly, i.e. use the p() helpers, and as
datacenters.each do |dc|
now yield a Hash, we should be using it instead (or perhaps turn dc into an OpenStruct).
from bosh.
Merged Stefan's changes
from bosh.
Related Issues (20)
- 1 of 2 post-start scripts failed. Failed Jobs: cloud_controller_ng. Successful Jobs: bosh-dns. HOT 1
- Resurrector not resurrecting unresponsive agent. HOT 7
- Multi-cpi with different iaas bosh cpi releases induce ruby package conflict HOT 2
- Default bosh generated x509 certificates have invalid 3 digits USA country code HOT 6
- Support Alibaba OSS as an external blobstore for bosh HOT 5
- Improve support for diagnostics of failed compilation: flag to preserve compilation source packages and logs HOT 2
- How to get vm_cid in VM? HOT 1
- Failed on upgrading BOSH Director from v271.2.0 to v280.0.14 HOT 4
- Non-descriptive error message when a BOSH job spec property name is a prefix for another one HOT 3
- Support for updating disks HOT 4
- Cannot connect to Bosh Director HOT 5
- Retention period of task logs HOT 2
- health_monitor is leaking connections
- panic: Internal inconsistency: Expected len(Interface '(.+)' was successfully created matches) >= 3: HOT 5
- Health_Monitor stop sending logs HOT 2
- Health-Monitor fails to start because of NATS? HOT 2
- BOSH deployment state is unresponsive agent after restart and sent meltdowns HOT 6
- BOSH Health Monitor JSON Pluging Not Working HOT 2
- unable to bosh cck an unresponsive vm (very high cpu load) HOT 2
- Api endpoint to get deployment manifest with expanded runtime config HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bosh.