Skip to content

Commit

Permalink
Merge pull request #174 from zhengxiaomei123/xmzheng
Browse files Browse the repository at this point in the history
[cloud_infra_center]Fix create_control_server error
  • Loading branch information
zhengxiaomei123 authored Nov 11, 2022
2 parents 3475ee3 + 19c9a63 commit bee8269
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
- vm_type == "kvm"
register: create_master
failed_when:
- '"failed: [localhost]" in create_master'
- '"ValueError: dictionary update sequence element #0 has length 1; 2 is required" not in create_master'
- create_master.failed == true
- '"ValueError: dictionary update sequence element #0 has length 1; 2 is required" not in create_master | string'


- name: 'Create the control servers'
Expand Down Expand Up @@ -121,8 +121,8 @@
- vm_type == "zvm"
register: create_master
failed_when:
- '"failed: [localhost]" in create_master'
- '"ValueError: dictionary update sequence element #0 has length 1; 2 is required" not in create_master'
- create_master.failed == true
- '"ValueError: dictionary update sequence element #0 has length 1; 2 is required" not in create_master | string'

- name: 'Convert master flavor from value into number'
command:
Expand Down Expand Up @@ -161,8 +161,8 @@
- volume_type_id is not defined
register: create_master
failed_when:
- '"failed: [localhost]" in create_master'
- '"ValueError: dictionary update sequence element #0 has length 1; 2 is required" not in create_master'
- create_master.failed == true
- '"ValueError: dictionary update sequence element #0 has length 1; 2 is required" not in create_master | string'

- name: Create control boot volume
os_volume:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@
get_url:
url: '{{ local_openshift_install }}'
dest: ./openshift-install-linux.tar.gz
dest: .


- name: Download openshift client
get_url:
url: '{{ local_openshift_client }}'
dest: ./openshift-client-linux.tar.gz
dest: .

- name: Unzip openshift client archive
command:
Expand Down

0 comments on commit bee8269

Please sign in to comment.