submariner-io / submariner

Networking component for interconnecting Pods and Services across Kubernetes clusters.
https://submariner.io
Apache License 2.0
2.43k stars 193 forks source link

Submariner checks for normal commands, but fails to test POD mutual access between the two clusters. #1463

Closed xuegao321 closed 3 years ago

xuegao321 commented 3 years ago

Environment:

NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"

Linux master1.cmccpaas.com 4.18.8-1.el7.elrepo.x86_64 #1 SMP Sat Sep 15 10:10:09 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

subctl version subctl version: v0.9.1

[root@master1 ~]# subctl show all

Showing information for cluster "kubernetes": Showing Network details Discovered network details: Network plugin: generic Service CIDRs: [10.254.0.0/16] Cluster CIDRs: [172.30.1.0/24]

Showing Endpoint details CLUSTER ID ENDPOINT IP PUBLIC IP CABLE DRIVER TYPE
cluster01 172.20.53.193 123.103.9.189 libreswan local
cluster02 172.20.47.83 123.103.9.189 libreswan remote

Showing Connection details GATEWAY CLUSTER REMOTE IP NAT CABLE DRIVER SUBNETS STATUS RTT avg.
node1.cmccpaas.com cluster02 172.20.47.83 no libreswan 10.253.0.0/16, 172.40.0.0/16 connected 594.627µs

Showing Gateway details NODE HA STATUS SUMMARY
node2.cmccpaas.com active All connections (1) are established

Showing version details COMPONENT REPOSITORY VERSION
submariner quay.io/submariner 0.9.1
submariner-operator quay.io/submariner 0.9.1
service-discovery quay.io/submariner 0.9.1

xuegao321 commented 3 years ago

submariner-20210709084314.zip this is 'subctl gather'

xuegao321 commented 3 years ago

[root@master1 ~]# calicoctl get ippool NAME CIDR SELECTOR
default-ipv4-ippool 172.30.0.0/16 all()
podcluster02 172.40.0.0/16 all()
svccluster02 10.253.0.0/16 all()

[root@master1 ~]# subctl diagnose all ✓ Checking Submariner support for the Kubernetes version used in cluster "kubernetes" ✓ The Kubernetes version meets Submariner's requirements

✓ Retrieving Submariner resource from "kubernetes"

✓ Checking Submariner support for the CNI network plugin in cluster "kubernetes" ✓ The detected CNI network plugin ("generic") is supported by Submariner. ✗ Calico CNI detected, verifying if the Submariner IPPool pre-requisites are configured. ✗ Could not find any IPPools in the cluster

I set ippool, but I still get an error when I execute the command?

sridhargaddam commented 3 years ago

@xuegao321 It looks like subctl is not able to read the ippools here - https://github.com/submariner-io/submariner-operator/blob/47268fb9eb09e8478c139b1c1d681176110f1bf7/pkg/subctl/cmd/diagnose/cni.go#L130

Can you share the output of one of your ippools. I'd like to compare it with the GVR we use while listing the ippools.

    calicoGVR = schema.GroupVersionResource{
        Group:    "crd.projectcalico.org",
        Version:  "v1",
        Resource: "ippools",
    }
sridhargaddam commented 3 years ago

Closing this issue as there is no activity/update for the last query. Please reopen if required.