Closed git001 closed 5 years ago
@git001 mysql-001.livesystem.at ping mysql-001.livesystem.at test
Perhaps an entry in /etc/resolve.conf
?
try running
$ host mysql-001.livesystem.at
$ host mysql-002.livesystem.at
$ host mysql-003.livesystem.at
from the same boxes where orchestrator
is running.
thanks all.
The links below helped me to find the reason and the solution.
https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution
Ansible snipplet.
- name: DO | Create droplets
digital_ocean:
state: present
command: droplet
name: "{{ item }}.{{ Domain }}"
api_token: "{{ DOToken }}"
ssh_key_ids: SSH_IDS
size_id: s-4vcpu-8gb
region_id: fra1
image_id: ubuntu-18-04-x64
unique_name: yes
wait_timeout: 500
private_networking: yes
user_data: |
#cloud-config
resolv_conf:
nameservers:
- 'IP.of.your.prefered.dnsserver'
manage_etc_hosts: False
loop:
- mysql-001
- mysql-002
- mysql-003
register: my_droplet
root@mysql-001:~# ping mysql-001.livesystem.at
PING mysql-001.livesystem.at (127.0.1.1) 56(84) bytes of data.
64 bytes from mysql-001.livesystem.at (127.0.1.1): icmp_seq=1 ttl=64 time=0.035 ms
64 bytes from mysql-001.livesystem.at (127.0.1.1): icmp_seq=2 ttl=64 time=0.038 ms
64 bytes from mysql-001.livesystem.at (127.0.1.1): icmp_seq=3 ttl=64 time=0.041 ms
^C
--- mysql-001.livesystem.at ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2044ms
rtt min/avg/max/mdev = 0.035/0.038/0.041/0.002 ms
root@mysql-001:~# systemd-resolve mysql-001.livesystem.at
mysql-001.livesystem.at: 127.0.1.1
-- Information acquired via protocol DNS in 1.1ms.
-- Data is authenticated: yes
I use
2019-05-03 08:15:27 INFO starting orchestrator, version: 3.0.14, git commit: f4c69ad05010518da784ce61865e65f0d9e0081c
with the following config fileWhen I start the orchestrator the IP apears in the peers but I haven't setuped this ip 127.0.1.1:10008 in any config
Where is this IP defined?