0

我有这个奇怪的错误,我似乎无法解决,python 错误是我似乎无法弄清楚的,无法解决的联系点听起来像 ip 问题?当我查看下面的客户端时,cluster-ip没有

NAME↑                                  TYPE       CLUSTER-IP      EXTERNAL-IP SELECTOR                                                                                                                                                PORTS                                       │
│ rook-cassandra-client                  ClusterIP  None            <none>      app=rook-cassandra,app.kubernetes.io/managed-by=rook-cassandra-operator,app.kubernetes.io/name=rook-cassandra,cassandra.rook.io/cluster=rook

我要做的就是在 env 中传递以下参数:

      env:
        replicationClass: SimpleStrategy
        replicationFactor: 3
        name: sample
        cluster: rook-cassandra-client
        namespace: xxxx-cassandra

以下

FailedCreatePodSandBox
Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" network for pod "rook-cassandra-create-keyspace-job-zf4p9": NetworkPlugin cni failed to set up pod "rook-cassandra-create-keyspace-job-xxxxx_xxxx-cassandra" network: add cmd: failed to assign an IP address to container
{}
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.8/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/audit/__main__.py", line 54, in <module>
    main()
  File "/audit/__main__.py", line 50, in main
    print(args.func(args))
  File "/audit/__main__.py", line 9, in keyspace
    keyspace.create(args.name, args.replication_class, args.replication_factor, args.cluster, args.namespace)
  File "/audit/keyspace/create_keyspace.py", line 17, in create
    raise e
  File "/audit/keyspace/create_keyspace.py", line 14, in create
    session = self.__connect_to_cluster(cassandra_service, cassandra_namespace)
  File "/audit/keyspace/create_keyspace.py", line 8, in __connect_to_cluster
    cluster = Cluster([f"{service}.{namespace}"])
  File "/usr/local/lib/python3.8/site-packages/cassandra/cluster.py", line 1174, in __init__
    raise UnresolvableContactPoints(self._endpoint_map_for_insights)
cassandra.UnresolvableContactPoints: {}


4

0 回答 0