summaryrefslogtreecommitdiffstats
path: root/playbooks/gce/openshift-cluster/tasks
diff options
context:
space:
mode:
authorLénaïc Huard <lhuard@amadeus.com>2016-11-16 15:51:47 +0100
committerLénaïc Huard <lhuard@amadeus.com>2016-11-16 15:57:22 +0100
commit47525407e753fcac99c8fa08e6375c35bf7eb199 (patch)
treed706767d07d0bf11dc7f54efa93b1ea727cb08bb /playbooks/gce/openshift-cluster/tasks
parentb29e9340544cbfb127e0a7f6be88f8b4f2818b4d (diff)
downloadopenshift-47525407e753fcac99c8fa08e6375c35bf7eb199.tar.gz
openshift-47525407e753fcac99c8fa08e6375c35bf7eb199.tar.bz2
openshift-47525407e753fcac99c8fa08e6375c35bf7eb199.tar.xz
openshift-47525407e753fcac99c8fa08e6375c35bf7eb199.zip
Fix GCE cluster creation
Attempting to create a GCE cluster when the `gce.ini` configuration file contains a non-default network leads to the following error: ``` TASK [Launch instance(s)] ****************************************************** fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Unexpected error attempting to create instance lenaic2-master-74f10, error: {'domain': 'global', 'message': \"Invalid value for field 'resource.networkInterfaces[0]': ''. Subnetwork should be specified for custom subnetmode network\", 'reason': 'invalid'}"} ``` The `subnetwork` parameter needs to be added and taken into account.
Diffstat (limited to 'playbooks/gce/openshift-cluster/tasks')
-rw-r--r--playbooks/gce/openshift-cluster/tasks/launch_instances.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/playbooks/gce/openshift-cluster/tasks/launch_instances.yml b/playbooks/gce/openshift-cluster/tasks/launch_instances.yml
index 7c8189224..b7604580c 100644
--- a/playbooks/gce/openshift-cluster/tasks/launch_instances.yml
+++ b/playbooks/gce/openshift-cluster/tasks/launch_instances.yml
@@ -9,6 +9,7 @@
project_id: "{{ lookup('env', 'gce_project_id') }}"
zone: "{{ lookup('env', 'zone') }}"
network: "{{ lookup('env', 'network') }}"
+ subnetwork: "{{ lookup('env', 'subnetwork') | default(omit, True) }}"
# unsupported in 1.9.+
#service_account_permissions: "datastore,logging-write"
tags: