question

MDRASHID avatar image
0 Votes"
MDRASHID asked srbose-msft answered

cannot telnet to Azure vm port of docker swarm

Hi All,

HI All,

How to communicate docker swarm communication between nodes. Please help me out on this question any links or notes will be helpful or direct answer

I have 2 Server in Cloud

 GCP as a Master Node
 Azure as a Worker Node

I want to connect worker node to master node do that i have enable ports 4789, 7946, 2377 on both gcp and azure. Here is what i did

GCP - 34.66.1xx.xx
Azure - 40.71.1xx.xx

Ping working in both gcp and azure
ping 34.66.1xx.xx - working gcp/azure
ping 40.71.1xx.xx – working gcp/azure

telnet is not working in azure
telnet 34.66.1xx.xx 2377 - working gcp/azure
telnet 34.66.1xx.xx 7946 - working gcp/azure
telnet 34.66.1xx.xx 4789 - not working gcp/azure

telnet 40.71.1xx.xx 2377 – not working gcp/azure
telnet 40.71.1xx.xx 7946 - not working gcp/azure
telnet 40.71.1xx.xx 4789 - not working gcp/azure
Error:-
Trying 40.71.1xx.xx…
telnet: Unable to connect to remote host: Connection refused

In Azure i have enable ICMP also but working
In Terminal of (Azure VM) as i try to join worker node into master node of (GCP)
sudo docker swarm join --token SWMTKN-1-0ey1668q838llgllt6xokqr6we2l8bxxxxxxxngk8t8fvtd3k4d1enxxxxxqwvzasdg0174sfvacn 34.133.8xxx.xx:2377
Error response from daemon: Timeout was reached before node joined. The attempt to join the swarm will continue in the background. Use the “docker info” command to see the current swarm status of your node.

Even i did netstat -tulpn | grep LISTEN - Azure but in GCP is showing
there it is not showing me any open ports

I dont know where im wrong and im new to this please help me out

azure-cloud-servicesazure-network-watcher
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MDRASHID , is there any further update on this situation?

0 Votes 0 ·

@MDRASHID , is there any further update on this situation?

0 Votes 0 ·
srbose-msft avatar image
0 Votes"
srbose-msft answered

@MDRASHID , Thank you for your question.

Can you check if telnet to the required ports on the impacted virtual machine succeeds from another virtual machine in the same virtual network subnet?

If so, can you please check if the impacted Azure VM's network interface is connected to a Network Security Group or if the Virtual Network Subnet in which you have deployed the Virtual Machine is connected to a Network Security Group?

Please refer to this article for How-tos

The required ports should be explicitly allowed from the Internet on the network security group associated with the virtual network subnet (if any) and also on the network security group associated with the VM's network interface (if any).

Please ensure that the Network Security Group rules allowing access to the required ports from the Internet are not superseded by a higher priority rule that denies access to the ports/a range of ports containing the required ones from the Internet.

Additionally please check if there are Firewalls, Network Virtual Appliances or other network devices deployed which are blocking traffic from the internet to the VM on the required ports


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MDRASHID avatar image
0 Votes"
MDRASHID answered

No Thanks plse close the ticket

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.