Created
March 16, 2017 20:34
-
-
Save nrb/c2e3ac5ee2080f4b34787df0fc98147e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TASK [os_swift : Swift object server configuration] **************************** | |
task path: /etc/ansible/roles/os_swift/tasks/swift_storage_hosts_object.yml:16 | |
container_name: "swift1" | |
physical_hostname: "swift1" | |
container_name: "swift3" | |
physical_hostname: "swift3" | |
skipping: [swift1_swift_proxy_container-f8b3d6d6] => (item={u'dest': u'/etc/swift/object-server/object-server.conf', u'src': u'object-server.conf.j2', u'config_type': u'ini', u'c | |
onfig_overrides': {}}) => {"changed": false, "item": {"config_overrides": {}, "config_type": "ini", "dest": "/etc/swift/object-server/object-server.conf", "src": "object-server. | |
conf.j2"}, "skip_reason": "Conditional check failed", "skipped": true} | |
skipping: [swift3_swift_proxy_container-80c49ff7] => (item={u'dest': u'/etc/swift/object-server/object-server.conf', u'src': u'object-server.conf.j2', u'config_type': u'ini', u'c | |
onfig_overrides': {}}) => {"changed": false, "item": {"config_overrides": {}, "config_type": "ini", "dest": "/etc/swift/object-server/object-server.conf", "src": "object-server. | |
conf.j2"}, "skip_reason": "Conditional check failed", "skipped": true} | |
container_name: "swift1" | |
physical_hostname: "swift1" | |
<172.29.236.140> ESTABLISH SSH CONNECTION FOR USER: root | |
skipping: [swift2_swift_proxy_container-c8faa989] => (item={u'dest': u'/etc/swift/object-server/object-server.conf', u'src': u'object-server.conf.j2', u'config_type': u'ini', u'c | |
onfig_overrides': {}}) => {"changed": false, "item": {"config_overrides": {}, "config_type": "ini", "dest": "/etc/swift/object-server/object-server.conf", "src": "object-server. | |
conf.j2"}, "skip_reason": "Conditional check failed", "skipped": true} | |
<172.29.236.140> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi | |
-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliv | |
eInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/root/.ansible/cp/ans | |
ible-ssh-%h-%p-%r 172.29.236.140 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1489696339.54-239801413909874 `" && echo ansible-tmp-1489696339.54 | |
-239801413909874="` echo $HOME/.ansible/tmp/ansible-tmp-1489696339.54-239801413909874 `" ) && sleep 0'"'"'' | |
skipping: [swift1_swift_proxy_container-f8b3d6d6] => (item={u'dest': u'/etc/swift/object-server/object-expirer.conf', u'src': u'object-expirer.conf.j2', u'config_type': u'ini', u | |
'config_overrides': {}}) => {"changed": false, "item": {"config_overrides": {}, "config_type": "ini", "dest": "/etc/swift/object-server/object-expirer.conf", "src": "object-expi | |
rer.conf.j2"}, "skip_reason": "Conditional check failed", "skipped": true} | |
container_name: "swift3" | |
physical_hostname: "swift3" | |
<172.29.236.142> ESTABLISH SSH CONNECTION FOR USER: root | |
<172.29.236.142> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi | |
-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliv | |
eInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/root/.ansible/cp/ans | |
ible-ssh-%h-%p-%r 172.29.236.142 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1489696339.55-234267706914168 `" && echo ansible-tmp-1489696339.55 | |
-234267706914168="` echo $HOME/.ansible/tmp/ansible-tmp-1489696339.55-234267706914168 `" ) && sleep 0'"'"'' | |
skipping: [swift3_swift_proxy_container-80c49ff7] => (item={u'dest': u'/etc/swift/object-server/object-expirer.conf', u'src': u'object-expirer.conf.j2', u'config_type': u'ini', u | |
'config_overrides': {}}) => {"changed": false, "item": {"config_overrides": {}, "config_type": "ini", "dest": "/etc/swift/object-server/object-expirer.conf", "src": "object-exprer.conf.j2"}, "skip_reason": "Conditional check failed", "skipped": true} | |
An exception occurred during task execution. The full traceback is: | |
Traceback (most recent call last): | |
File "/opt/ansible-runtime/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 96, in run | |
item_results = self._run_loop(items) | |
File "/opt/ansible-runtime/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 252, in _run_loop | |
res = self._execute(variables=task_vars) | |
File "/opt/ansible-runtime/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 448, in _execute | |
result = self._handler.run(task_vars=variables) | |
File "/etc/ansible/roles/plugins/action/_v2_config_template.py", line 527, in run | |
convert_data=False | |
File "/opt/ansible-runtime/lib/python2.7/site-packages/ansible/template/__init__.py", line 330, in template | |
result = self._do_template(variable, preserve_trailing_newlines=preserve_trailing_newlines, escape_backslashes=escape_backslashes, fail_on_undefined=fail_on_undefined, overri | |
des=overrides) | |
File "/opt/ansible-runtime/lib/python2.7/site-packages/ansible/template/__init__.py", line 494, in _do_template | |
res = j2_concat(rf) | |
File "<template>", line 41, in root | |
File "/opt/ansible-runtime/lib/python2.7/site-packages/jinja2/runtime.py", line 229, in get_all | |
return dict(self.parent, **self.vars) | |
File "/opt/ansible-runtime/lib/python2.7/site-packages/ansible/template/vars.py", line 77, in __getitem__ | |
raise KeyError("undefined variable: %s" % varname) | |
KeyError: 'undefined variable: 0' | |
fatal: [swift1]: FAILED! => {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## DO NOT WRITE TO THIS FILE, CHANGES WILL BE LOST! | |
--- | |
swift-proxy_hosts: | |
swift1: | |
ip: 172.29.236.140 | |
container_vars: | |
swift_proxy_vars: | |
limit_container_types: swift_proxy | |
read_affinity: "r1=100" | |
write_affinity: "r1" | |
write_affinity_node_count: "1 * replicas" | |
swift3: | |
ip: 172.29.236.142 | |
container_vars: | |
swift_proxy_vars: | |
limit_container_types: swift_proxy | |
read_affinity: "r1=100" | |
write_affinity: "r1" | |
write_affinity_node_count: "1 * replicas" | |
swift2: | |
ip: 172.29.236.141 | |
container_vars: | |
swift_proxy_vars: | |
limit_container_types: swift_proxy | |
read_affinity: "r1=100" | |
write_affinity: "r1" | |
write_affinity_node_count: "1 * replicas" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
global_overrides: | |
swift: | |
part_power: 8 | |
storage_network: 'br-storage' | |
replication_network: 'br-storage' | |
drives: | |
- name: disk1 | |
- name: disk2 | |
- name: disk3 | |
mount_point: /srv | |
storage_policies: | |
- policy: | |
name: default | |
index: 0 | |
default: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## DO NOT WRITE TO THIS FILE, CHANGES WILL BE LOST! | |
--- | |
swift_hosts: | |
swift1: | |
ip: 172.29.236.140 | |
container_vars: | |
swift_vars: | |
limit_container_types: swift | |
zone: 0 | |
region: 1 | |
swift3: | |
ip: 172.29.236.142 | |
container_vars: | |
swift_vars: | |
limit_container_types: swift | |
zone: 0 | |
region: 1 | |
swift2: | |
ip: 172.29.236.141 | |
container_vars: | |
swift_vars: | |
limit_container_types: swift | |
zone: 0 | |
region: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment