yunionio / cloudpods

A cloud-native open-source unified multi-cloud and hybrid-cloud platform. 开源、云原生的多云管理及混合云融合平台
https://www.cloudpods.org
Apache License 2.0
2.59k stars 533 forks source link

bug(调度器): 迁移和主备机创建调度失败 #8924

Closed zexi closed 3 years ago

zexi commented 3 years ago

What happened:

如果 network 没有开启 auto_alloc 自动分配,会出现创建主备机和迁移失败的问题。

这个是调度失败日志

 error: 'genericScheduler.Schedule: No resource are avaliable that match all of the
    following predicates: filter by host_migrate(-1), host_network(-8), session_id="1606182133191"'
  logs:
  - 'Success: zwyf-10-10-68-10-10:320766e6-740d-44a8-8ed8-a51d0b6fb865 [host_aggregate,host_cpu,host_domain,host_hypervisor_runtime,host_memory,host_migrate,host_status,host_storage] '
  - 'Failed: zwyf-10-10-68-10-10:320766e6-740d-44a8-8ed8-a51d0b6fb865 [host_network]
    network_ownership: Network adm0 not accessible,: exit is not match,network_match:
    localnet(92bca945-7c82-415b-8321-297fba94eb42): id/name not matched,: exit is
    not match'
  - 'Success: zwyf-2-10-68-10-2:4e867171-1f4c-46e1-8eac-82d47c41bb05 [host_aggregate,host_cpu,host_domain,host_hypervisor_runtime,host_memory,host_migrate,host_status,host_storage] '
  - 'Failed: zwyf-2-10-68-10-2:4e867171-1f4c-46e1-8eac-82d47c41bb05 [host_network]
    network_ownership: Network adm0 not accessible,: exit is not match,network_match:
    localnet(92bca945-7c82-415b-8321-297fba94eb42): id/name not matched,: exit is
    not match'
  - 'Success: zwyf-3-10-68-10-3:25360e83-8c8c-400c-8686-2e890cbd798c [host_aggregate,host_cpu,host_domain,host_hypervisor_runtime,host_memory,host_migrate,host_status,host_storage] '
  - 'Failed: zwyf-3-10-68-10-3:25360e83-8c8c-400c-8686-2e890cbd798c [host_network]
    network_ownership: Network adm0 not accessible,: exit is not match,network_match:
    localnet(92bca945-7c82-415b-8321-297fba94eb42): id/name not matched,: exit is
    not match'
  - 'Success: zwyf-4-10-68-10-4:f4ce1dce-7ac2-4562-8cde-0abbc83bf501 [host_aggregate,host_hypervisor_runtime,host_status] '
  - 'Failed: zwyf-4-10-68-10-4:f4ce1dce-7ac2-4562-8cde-0abbc83bf501 [host_migrate]
    host_migrate: host_id specified for migration'
  - 'Success: zwyf-5-10-68-10-5:2b6d0295-7268-4e17-871c-a909f6819c1e [host_aggregate,host_cpu,host_domain,host_hypervisor_runtime,host_memory,host_migrate,host_status,host_storage] '
  - 'Failed: zwyf-5-10-68-10-5:2b6d0295-7268-4e17-871c-a909f6819c1e [host_network]
    network_ownership: Network adm0 not accessible,: exit is not match,network_match:
    localnet(92bca945-7c82-415b-8321-297fba94eb42): id/name not matched,: exit is
    not match'
  - 'Success: zwyf-6-10-68-10-6:c65e45c8-b9b4-4977-83a8-d4ee6ed258c4 [host_aggregate,host_cpu,host_domain,host_hypervisor_runtime,host_memory,host_migrate,host_status,host_storage] '
  - 'Failed: zwyf-6-10-68-10-6:c65e45c8-b9b4-4977-83a8-d4ee6ed258c4 [host_network]
    network_ownership: Network adm0 not accessible,: exit is not match,network_match:
    localnet(92bca945-7c82-415b-8321-297fba94eb42): id/name not matched,: exit is
    not match'
  - 'Success: zwyf-7-10-68-10-7:f5f40be5-1a1d-438b-8425-37225f3e597a [host_aggregate,host_cpu,host_domain,host_hypervisor_runtime,host_memory,host_migrate,host_status,host_storage] '
  - 'Failed: zwyf-7-10-68-10-7:f5f40be5-1a1d-438b-8425-37225f3e597a [host_network]
    network_ownership: Network adm0 not accessible,: exit is not match,network_match:
    localnet(92bca945-7c82-415b-8321-297fba94eb42): id/name not matched,: exit is
    not match'
  - 'Success: zwyf-8-10-68-10-8:37ca7d47-5948-4f6f-8b0d-aa48d46bc9a5 [host_aggregate,host_cpu,host_domain,host_hypervisor_runtime,host_memory,host_migrate,host_status,host_storage] '
  - 'Failed: zwyf-8-10-68-10-8:37ca7d47-5948-4f6f-8b0d-aa48d46bc9a5 [host_network]
    network_ownership: Network adm0 not accessible,: exit is not match,network_match:
    localnet(92bca945-7c82-415b-8321-297fba94eb42): id/name not matched,: exit is
    not match'
  - 'Success: zwyf-9-10-68-10-9:15e5034f-1689-4f19-80a5-09a124e677f1 [host_aggregate,host_cpu,host_domain,host_hypervisor_runtime,host_memory,host_migrate,host_status,host_storage] '
  - 'Failed: zwyf-9-10-68-10-9:15e5034f-1689-4f19-80a5-09a124e677f1 [host_network]
    network_ownership: Network adm0 not accessible,: exit is not match,network_match:
    localnet(92bca945-7c82-415b-8321-297fba94eb42): id/name not matched,: exit is
    not match'
  result: null
  status: failed
  time: "2020-11-24 09:42:13"
  type: hypervisor
time: "2020-11-24 09:42:13"

/cc @wanyaoqi @zexi

zexi commented 3 years ago

PR: https://github.com/yunionio/onecloud/pull/9049 解决这个问题

zexi commented 3 years ago

/close

yunion-ci-robot commented 3 years ago

@zexi: Closing this issue.

In response to [this](https://github.com/yunionio/onecloud/issues/8924#issuecomment-734770119): >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
wanyaoqi commented 3 years ago

caused by guest config to schedule input not set network exit params