创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
例如:虚拟机,Centos7.6,2C/4G

Kubernetes版本信息
kubectl version 命令执行结果贴在下方

容器运行时
docker version

[root@k8s-master01 ~]# docker version

Client:

Version: 20.10.8

API version: 1.41

Go version: go1.16.6

Git commit: 3967b7d

Built: Fri Jul 30 19:50:40 2021

OS/Arch: linux/amd64

Context: default

Experimental: true

Server: Docker Engine - Community

Engine:

Version: 20.10.8

API version: 1.41 (minimum version 1.12)

Go version: go1.16.6

Git commit: 75249d8

Built: Fri Jul 30 19:55:09 2021

OS/Arch: linux/amd64

Experimental: false

containerd:

Version: v1.4.9

GitCommit: e25210fe30a0a703442421b0f60afac609f950a3

runc:

Version: 1.0.1

GitCommit: v1.0.1-0-g4144b638

docker-init:

Version: 0.19.0

GitCommit: de40ad0

KubeSphere版本信息
v3.2.1。在线安装。使用kk安装。

问题是什么

添加多集群修改CRD参数

multicluster: c

lusterRole: host
报错。


PLAY RECAP *********************************************************************
localhost                  : ok=26   changed=15   unreachable=0    failed=0    skipped=12   rescued=0    ignored=0   

Start installing monitoring
Start installing multicluster
Start installing openpitrix
Start installing network
**************************************************
Waiting for all tasks to be completed ...
task openpitrix status is successful  (1/4)
task network status is successful  (2/4)
task monitoring status is successful  (3/4)
task multicluster status is failed  (4/4)
**************************************************
Collecting installation results ...


Task 'multicluster' failed:
******************************************************************************************************************************************************
{
  "counter": 65,
  "created": "2023-03-07T06:01:42.753350",
  "end_line": 67,
  "event": "runner_on_failed",
  "event_data": {
    "duration": 604.658995,
    "end": "2023-03-07T06:01:42.753258",
    "event_loop": null,
    "host": "localhost",
    "ignore_errors": null,
    "play": "localhost",
    "play_pattern": "localhost",
    "play_uuid": "ae0a6644-33bf-f547-6dc2-000000000005",
    "playbook": "/kubesphere/playbooks/multicluster.yaml",
    "playbook_uuid": "13294b8f-9556-42f3-93e6-c3e847211316",
    "remote_addr": "127.0.0.1",
    "res": {
      "_ansible_no_log": false,
      "attempts": 10,
      "changed": true,
      "cmd": "/usr/local/bin/helm upgrade --install kubefed /kubesphere/kubesphere/kubefed/kubefed -f /kubesphere/kubesphere/kubefed/custom-values-kubefed.yaml --namespace kube-federation-system --wait --timeout 1800s\n",
      "delta": "0:00:00.096960",
      "end": "2023-03-07 14:01:42.723386",
      "invocation": {
        "module_args": {
          "_raw_params": "/usr/local/bin/helm upgrade --install kubefed /kubesphere/kubesphere/kubefed/kubefed -f /kubesphere/kubesphere/kubefed/custom-values-kubefed.yaml --namespace kube-federation-system --wait --timeout 1800s\n",
          "_uses_shell": true,
          "argv": null,
          "chdir": null,
          "creates": null,
          "executable": null,
          "removes": null,
          "stdin": null,
          "stdin_add_newline": true,
          "strip_empty_ends": true,
          "warn": true
        }
      },
      "msg": "non-zero return code",
      "rc": 1,
      "start": "2023-03-07 14:01:42.626426",
      "stderr": "Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress",
      "stderr_lines": [
        "Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress"
      ],
      "stdout": "",
      "stdout_lines": []
    },
    "role": "ks-multicluster",
    "start": "2023-03-07T05:51:38.094263",
    "task": "Kubefed | Initing kube-federation-system",
    "task_action": "command",
    "task_args": "",
    "task_path": "/kubesphere/installer/roles/ks-multicluster/tasks/main.yml:51",
    "task_uuid": "ae0a6644-33bf-f547-6dc2-00000000001f",
    "uuid": "6a002b50-7f60-4d2e-8d53-1a0b4ad4ef63"
  },
  "parent_uuid": "ae0a6644-33bf-f547-6dc2-00000000001f",
  "pid": 8220,
  "runner_ident": "multicluster",
  "start_line": 66,
  "stdout": "fatal: [localhost]: FAILED! => {\"attempts\": 10, \"changed\": true, \"cmd\": \"/usr/local/bin/helm upgrade --install kubefed /kubesphere/kubesphere/kubefed/kubefed -f /kubesphere/kubesphere/kubefed/custom-values-kubefed.yaml --namespace kube-federation-system --wait --timeout 1800s\\n\", \"delta\": \"0:00:00.096960\", \"end\": \"2023-03-07 14:01:42.723386\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2023-03-07 14:01:42.626426\", \"stderr\": \"Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress\", \"stderr_lines\": [\"Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress\"], \"stdout\": \"\", \"stdout_lines\": []}",
  "uuid": "6a002b50-7f60-4d2e-8d53-1a0b4ad4ef63"
}
[root@k8s-master01 ~]# kubectl  get po -n kubesphere-system 
NAME                                     READY   STATUS    RESTARTS   AGE
ks-apiserver-68f5c7557c-f2829            1/1     Running   0          39m
ks-console-65f4d44d88-4wstt              1/1     Running   1          4h28m
ks-controller-manager-5f54fc857d-8hlff   1/1     Running   0          39m
ks-installer-85c7b67967-xdx6w            1/1     Running   1          177m
tower-786bb99f5d-c8twz                   1/1     Running   4          168m
[root@k8s-master01 ~]# 
[root@k8s-master01 ~]# kubectl  get po -n kube-federation-system 
NAME                                          READY   STATUS    RESTARTS   AGE
kubefed-admission-webhook-6f9f5dcbbf-fgg78    1/1     Running   2          177m
kubefed-controller-manager-57c9786bd5-6d2c2   1/1     Running   7          177m
kubefed-controller-manager-57c9786bd5-q8k5m   1/1     Running   6          177m
14 天 后
10 个月 后