no_proxy on openstack_ansible

asked 2016-03-25 20:29:10 -0600

snd lt gravatar image

updated 2016-03-28 09:29:35 -0600

Got to this far on "setup-hosts.yml" under heavy proxy environment. It seems it goes through most of the playbook, but stumbles upon accessing the infra containers. I've seen this kind of erros before when querying neutron. It usually goes away when I "unset http_proxy" or "unset https_proxy"

So basically, when pulling dependencies/installs, they need to go through the proxy, then not use proxy when talking at local levle. Aware of "NO_PROXY" option but seems the ip(s) of containers are not being listed. But only as ",,,,,,"

Anyone know how to either (1) disable proxy right before accessing the containers, OR (2) find the IPs of containers to exclude them from proxy?

[Update: LXC aren't running]

# lxc-ls
root@

Many Thanks!

TASK: [lxc_container_create | Set container backend "dir" if "lvm" not found] *** 
fatal: [infra1_nova_cert_container-abc1fe67] => Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py", line 586, in _executor
    exec_rc = self._executor_internal(host, new_stdin)
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py", line 789, in _executor_internal
    return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py", line 968, in _executor_internal_inner
    conn = self.connector.connect(actual_host, actual_port, actual_user, actual_pass, actual_transport, actual_private_key_file, delegate_host)
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/connection.py", line 35, in connect
    conn = utils.plugins.connection_loader.get(transport, self.runner, host, port, user=user, password=password, private_key_file=private_key_file)
  File "/usr/local/lib/python2.7/dist-packages/ansible/utils/plugins.py", line 219, in get
    return getattr(self._module_cache[path], self.class_name)(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/connection_plugins/ssh.py", line 44, in __init__
    self.ipv6 = ':' in self.host
TypeError: argument of type 'NoneType' is not iterable

fatal: [infra1_horizon_container-a0227165] => Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py", line 586, in _executor
    exec_rc = self._executor_internal(host, new_stdin)
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py", line 789, in _executor_internal
    return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py", line 968, in _executor_internal_inner
    conn = self.connector.connect(actual_host, actual_port, actual_user, actual_pass, actual_transport, actual_private_key_file, delegate_host)
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/connection.py", line 35, in connect
   conn = utils.plugins.connection_loader.get(transport, self.runner, host, port, user=user, password=password, private_key_file=private_key_file)
  File "/usr/local/lib/python2.7/dist-packages/ansible/utils/plugins.py", line 219, in get
    return getattr(self._module_cache[path], self.class_name)(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/connection_plugins/ssh.py", line 44, in __init__
    self.ipv6 = ':' in self.host
TypeError: argument of type 'NoneType' is not iterable

fatal: [infra1_utility_container-56620c36] => Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py", line 586, in _executor
    exec_rc = self._executor_internal(host, new_stdin)
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py", line ...
(more)
edit retag flag offensive close merge delete