From 9074da56a79adcfd0f9348f703a15ac3ebd486ab Mon Sep 17 00:00:00 2001 From: Will Szumski Date: Fri, 28 Jun 2019 18:36:24 +0100 Subject: [PATCH] Specify endpoint when creating monasca user otherwise I'm seeing: TASK [monasca : Creating the monasca agent user] **************************************************************************************************************************** fatal: [monitor1]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 172.16.3.24 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n F ile \"/tmp/ansible_I0RmxQ/ansible_module_kolla_toolbox.py\", line 163, in \r\n main()\r\n File \"/tmp/ansible_I0RmxQ/ansible_module_kolla_toolbox.py\", line 141, in main\r\n output = client.exec_start(job)\r\n File \"/opt/kayobe/venvs/kolla-ansible/lib/python2.7/site-packages/docker/utils/decorators.py\", line 19, in wrapped\r\n return f(self, resource_id, *args, **kwargs)\r\n File \"/opt/kayobe/venvs/kolla-ansible/lib/python2.7/site-packages/docker/api/exec_api.py\", line 165, in exec_start\r\ n return self._read_from_socket(res, stream, tty)\r\n File \"/opt/kayobe/venvs/kolla-ansible/lib/python2.7/site-packages/docker/api/client.py\", line 377, in _read_from_ socket\r\n return six.binary_type().join(gen)\r\n File \"/opt/kayobe/venvs/kolla-ansible/lib/python2.7/site-packages/docker/utils/socket.py\", line 75, in frames_iter\r\ n n = next_frame_size(socket)\r\n File \"/opt/kayobe/venvs/kolla-ansible/lib/python2.7/site-packages/docker/utils/socket.py\", line 62, in next_frame_size\r\n data = read_exactly(socket, 8)\r\n File \"/opt/kayobe/venvs/kolla-ansible/lib/python2.7/site-packages/docker/utils/socket.py\", line 47, in read_exactly\r\n next_data = read(socket, n - len(data))\r\n File \"/opt/kayobe/venvs/kolla-ansible/lib/python2.7/site-packages/docker/utils/socket.py\", line 31, in read\r\n return socket.recv(n)\r\nsocket.timeout: timed out\r\n", "msg": "MODULE FAILURE", "rc": 1} when the monitoring nodes aren't on the public API network. Change-Id: I7a93f69da0e02c9264da0b081d2e60626f899e3a --- ansible/roles/monasca/tasks/register.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/monasca/tasks/register.yml b/ansible/roles/monasca/tasks/register.yml index fae82631b5..6f609cff32 100644 --- a/ansible/roles/monasca/tasks/register.yml +++ b/ansible/roles/monasca/tasks/register.yml @@ -80,4 +80,5 @@ role: "{{ monasca_agent_authorized_roles | first }}" region_name: "{{ openstack_region_name }}" auth: "{{ monasca_openstack_auth }}" + endpoint_type: "{{ openstack_interface }}" run_once: True