Hello,
I can't connect to to my trove mysql DB from an instance in a selfservice network.
Strange thing is I CAN connect to the trove instance via ssh:
ubuntu@dozbox2:~$ telnet 192.168.0.176 22
Trying 192.168.0.176...
Connected to 192.168.0.176.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7
But I CANNOT reach the DB port from on the troave instance:
ubuntu@box2:~$ telnet 192.168.0.176 3306
Trying 192.168.0.176...
telnet: Unable to connect to remote host: No route to host
Within the Trove instance I CAN work with the client...
root@ms3:/var/log/trove# mysql -h 192.168.0.176 -u dbadmin -p -P 3306
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 331
The security group for that trove instance allows ssh AND 3306 (see additional infos/rules below).
Any help is really appreciated!
------- Additional Infos ------------------
root@voscontrol:~# openstack server show 534fe146-0d51-4848-98ed-95dc9aaf89b1
+-------------------------------------+------------------------------------------------------------------+
| Field | Value |
+-------------------------------------+------------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | voscompute2 |
| OS-EXT-SRV-ATTR:hypervisor_hostname | voscompute2 |
| OS-EXT-SRV-ATTR:instance_name | instance-000000d0 |
| OS-EXT-STS:power_state | Running |
| OS-EXT-STS:task_state | None |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2023-12-18T23:05:15.000000 |
| OS-SRV-USG:terminated_at | None |
| accessIPv4 | |
| accessIPv6 | |
| addresses | doznet=192.168.0.176; trovemgmt=10.10.10.134 |
| config_drive | True |
| created | 2023-12-18T23:04:59Z |
| flavor | m1.large (72a7e41e-e0e9-48fe-abc2-8c64838e9e4a) |
| hostId | 618af9a8f27a256f291621d611d30ae2186de8c2e8fa03e5a5ba2081 |
| id | 534fe146-0d51-4848-98ed-95dc9aaf89b1 |
| image | trove-guest-ubuntu-bionic (773aeec6-9caa-48a3-a80a-f9bf440b0d9e) |
| key_name | trovekey |
| name | ms3 |
| progress | 0 |
| project_id | d2e35c5479c441dc9ba4dba8e9b914bc |
| properties | |
| security_groups | name='trove_sg-27547af3-9bb0-4df5-b4ff-e85daa72c6ef' |
| | name='default' |
| status | ACTIVE |
| updated | 2023-12-18T23:05:15Z |
| user_id | a72e578837da479895fe4207107ca2fa |
| volumes_attached | id='bff9037e-2831-473b-b6ae-8027ee4053dc' |
+-------------------------------------+------------------------------------------------------------------+
root@voscontrol:~# openstack security group show trove_sg-27547af3-9bb0-4df5-b4ff-e85daa72c6ef
+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------+-----------------------------------------------------------------------------------
| created_at | 2023-12-18T23:04:51Z
| description | Security group for trove instance 27547af3-9bb0-4df5-b4ff-e85daa72c6ef
| id | d73ff24a-5288-486b-b10b-fe9902f80e15
| name | trove_sg-27547af3-9bb0-4df5-b4ff-e85daa72c6ef
| project_id | d2e35c5479c441dc9ba4dba8e9b914bc
| revision_number | 3
| rules | created_at='2023-12-18T23:04:52Z',
direction='ingress', ethertype='IPv4',
id='0484ddff-c945-45d0-b271-7d30e7fbf619',
port_range_max='3306', port_range_min='3306',
protocol='tcp', remote_ip_prefix='0.0.0.0/0',
updated_at='2023-12-18T23:04:52Z' |
| | created_at='2023-12-18T23:04:51Z',
direction='egress', ethertype='IPv6',
id='27ed1225-984a-454e-86da-656de3669038',
updated_at='2023-12-18T23:04:51Z' |
| | created_at='2023-12-18T23:10:33Z',
direction='ingress', ethertype='IPv4',
id='c2c7c390-8b13-4b00-ab7c-0a8a7687ac08',
port_range_max='22', port_range_min='22',
protocol='tcp', remote_ip_prefix='0.0.0.0/0',
updated_at='2023-12-18T23:10:33Z' |
| | created_at='2023-12-18T23:04:51Z',
direction='egress', ethertype='IPv4',
id='d1fdc662-fc24-46bd-80db-3aca725f96aa',
updated_at='2023-12-18T23:04:51Z' |
| stateful | True
| tags | []
| updated_at | 2023-12-18T23:10:33Z
+---------------------------------------------------------------------------------------------+