Open shuoshadow opened 1 year ago
@shuoshadow 登陆后台,用 climc scheduler-history-show --log --raw $session_id
看下,把对应的调度日志贴下,对应你的截图应该是:climc scheduler-history-show --log --raw 1684758632284
@zexi 你好,日志如下,还请帮忙看看是什么问题。两个盘都是不做raid
consuming: 0s
error: 'genericScheduler.Schedule: No resource are avaliable that match all of the
following predicates: filter by baremetal_storage(-1), session_id="1684806760755"'
input: '{"backup":false,"baremetal_disk_configs":[{"adapter":0,"conf":"none","count":1,"driver":"MegaRaid","range":[0],"type":"ssd"},{"adapter":0,"conf":"none","count":1,"driver":"PCIE","range":[0],"type":"ssd"}],"best_effort":false,"change_config":false,"count":1,"details":false,"disks":[{"backend":"local","driver":"scsi","image_id":"50ec115f-b5c6-45cb-8359-b5df132bea6f","image_properties":{"arch":"x86_64","disk_format":"qcow2","distro":"CentOS","installed_cloud_init":"false","is_lvm_partition":"false","is_readonly":"false","os_arch":"x86_64","os_distribution":"CentOS","os_language":"","os_type":"Linux","os_version":"7.9.2009","partition_type":"gpt","uefi_support":"true","version":"7.9.2009"},"index":0,"os_arch":"x86_64","size":30720},{"backend":"local","driver":"scsi","fs":"ext4","index":0,"mountpoint":"/opt/cloud/workspace-sys","size":-1},{"backend":"local","driver":"scsi","fs":"ext4","index":0,"mountpoint":"/opt/cloud/workspace","size":-1}],"domain_id":"default","has_isolated_device":false,"host_mem_page_size":0,"hypervisor":"baremetal","live_migrate":false,"name":"cloudpods-host15","nets":[{"bw_limit":1000,"domain_id":"default","driver":"virtio","exit":false,"index":0,"network":"7baff6c9-9c49-4d52-8237-4b9c3e140ec4","num_queues":0,"private":false,"project_id":"fae34bb28430422d89cd9d72d124fd9a","require_designated_ip":false,"require_teaming":false,"reserved":false,"standby_addr_count":0,"standby_port_count":0,"try_teaming":false,"vip":false}],"pending_usages":[{"brand":"OneCloud","cloud_env":"onpremise","count":1,"cpu":128,"deleted":false,"domain_id":"default","group":0,"hypervisor":"baremetal","isolated_device":0,"memory":2097152,"provider":"OneCloud","region_id":"default","storage":30718,"tenant_id":"fae34bb28430422d89cd9d72d124fd9a","update_version":0,"zone_id":"6281c22c-6b16-46e9-8630-f83a64a06e69"},{"brand":"OneCloud","bucket":0,"cache":0,"cloud_env":"onpremise","deleted":false,"domain_id":"default","eip":0,"eport":0,"instance_snapshot":0,"loadbalancer":0,"mongodb":0,"object_cnt":0,"object_gb":0,"port":1,"provider":"OneCloud","rds":0,"region_id":"default","snapshot":0,"tenant_id":"fae34bb28430422d89cd9d72d124fd9a","update_version":0}],"prefer_host_id":"bfa5bed2-8a24-4ce0-8b97-c531141ab93a","prefer_region_id":"default","prefer_zone_id":"6281c22c-6b16-46e9-8630-f83a64a06e69","project_id":"fae34bb28430422d89cd9d72d124fd9a","record_to_history":false,"resource_type":"shared","reuse_network":false,"suggestion":false,"suggestion_all":false,"suggestion_limit":100,"vcpu_count":128,"vmem_size":2097152}'
output: ""
session_id: "1684806760755"
tasks:
- capacity_map:
bfa5bed2-8a24-4ce0-8b97-c531141ab93a:
MinValue: -1
Values:
baremetal_cpu:
Value: 1
baremetal_memory:
Value: 1
baremetal_status:
Value: 1
baremetal_storage:
Value: 0
consuming: 6.295608ms
data:
__meta__: null
ChangeConfig: false
HasIsolatedDevice: false
InstanceGroupsDetail: null
PendingUsages:
- {}
- {}
Raw: '{"backup":false,"baremetal_disk_configs":[{"adapter":0,"conf":"none","count":1,"driver":"MegaRaid","range":[0],"type":"ssd"},{"adapter":0,"conf":"none","count":1,"driver":"PCIE","range":[0],"type":"ssd"}],"best_effort":false,"change_config":false,"count":1,"details":false,"disks":[{"backend":"local","driver":"scsi","image_id":"50ec115f-b5c6-45cb-8359-b5df132bea6f","image_properties":{"arch":"x86_64","disk_format":"qcow2","distro":"CentOS","installed_cloud_init":"false","is_lvm_partition":"false","is_readonly":"false","os_arch":"x86_64","os_distribution":"CentOS","os_language":"","os_type":"Linux","os_version":"7.9.2009","partition_type":"gpt","uefi_support":"true","version":"7.9.2009"},"index":0,"os_arch":"x86_64","size":30720},{"backend":"local","driver":"scsi","fs":"ext4","index":0,"mountpoint":"/opt/cloud/workspace-sys","size":-1},{"backend":"local","driver":"scsi","fs":"ext4","index":0,"mountpoint":"/opt/cloud/workspace","size":-1}],"domain_id":"default","has_isolated_device":false,"host_mem_page_size":0,"hypervisor":"baremetal","live_migrate":false,"name":"cloudpods-host15","nets":[{"bw_limit":1000,"domain_id":"default","driver":"virtio","exit":false,"index":0,"network":"7baff6c9-9c49-4d52-8237-4b9c3e140ec4","num_queues":0,"private":false,"project_id":"fae34bb28430422d89cd9d72d124fd9a","require_designated_ip":false,"require_teaming":false,"reserved":false,"standby_addr_count":0,"standby_port_count":0,"try_teaming":false,"vip":false}],"pending_usages":[{"brand":"OneCloud","cloud_env":"onpremise","count":1,"cpu":128,"deleted":false,"domain_id":"default","group":0,"hypervisor":"baremetal","isolated_device":0,"memory":2097152,"provider":"OneCloud","region_id":"default","storage":30718,"tenant_id":"fae34bb28430422d89cd9d72d124fd9a","update_version":0,"zone_id":"6281c22c-6b16-46e9-8630-f83a64a06e69"},{"brand":"OneCloud","bucket":0,"cache":0,"cloud_env":"onpremise","deleted":false,"domain_id":"default","eip":0,"eport":0,"instance_snapshot":0,"loadbalancer":0,"mongodb":0,"object_cnt":0,"object_gb":0,"port":1,"provider":"OneCloud","rds":0,"region_id":"default","snapshot":0,"tenant_id":"fae34bb28430422d89cd9d72d124fd9a","update_version":0}],"prefer_host_id":"bfa5bed2-8a24-4ce0-8b97-c531141ab93a","prefer_region_id":"default","prefer_zone_id":"6281c22c-6b16-46e9-8630-f83a64a06e69","project_id":"fae34bb28430422d89cd9d72d124fd9a","record_to_history":false,"resource_type":"shared","reuse_network":false,"suggestion":false,"suggestion_all":false,"suggestion_limit":100,"vcpu_count":128,"vmem_size":2097152}'
UserCred:
TokenCredential:
Context:
ip: 10.99.91.157
source: srv
Domain: Default
DomainId: default
Expires: "2023-05-23T14:38:34Z"
ProjectDomain: Default
ProjectDomainId: default
RoleIds: 1d75e4f21be847fe87bf99a34c836c3e
Roles: admin
Token: gAAAAABka35qL1L4zTMSwlZFLTsFTeDeH8ri3CLnUdy88oui8AEkdpokUQgSk8QCJyiWl8_CqOekSfhGI7PGgJF9moI8Eze5wwA6MjpS8J96aPmG4DyiEpyKkrPcKutmv8nD9fzMhGVFmgDzZLKG3a6ntHoFFFJNyFC4c5bicBk5vJp_JixJFBoflX8UlDpVMT12gX2a9Xbp
User: regionadmin
UserId: 7824867bc0894cf181612739fe817287
tenant: system
tenant_id: fae34bb28430422d89cd9d72d124fd9a
backup: false
baremetal_disk_configs:
- adapter: 0
conf: none
count: 1
driver: MegaRaid
range:
- 0
size: null
splits: ""
type: ssd
- adapter: 0
conf: none
count: 1
driver: PCIE
range:
- 0
size: null
splits: ""
type: ssd
best_effort: false
candidates:
- bfa5bed2-8a24-4ce0-8b97-c531141ab93a
cdrom: ""
count: 1
cpu_desc: ""
cpu_microcode: ""
cpu_mode: ""
details: false
disks:
- backend: local
backup_id: ""
boot_index: null
cache: ""
disk_id: ""
disk_type: ""
driver: scsi
existing_path: ""
format: ""
fs: ""
image_encrypt_key_id: ""
image_id: 50ec115f-b5c6-45cb-8359-b5df132bea6f
image_properties:
arch: x86_64
disk_format: qcow2
distro: CentOS
installed_cloud_init: "false"
is_lvm_partition: "false"
is_readonly: "false"
os_arch: x86_64
os_distribution: CentOS
os_language: ""
os_type: Linux
os_version: 7.9.2009
partition_type: gpt
uefi_support: "true"
version: 7.9.2009
index: 0
medium: ""
mountpoint: ""
nvme_device: null
os_arch: x86_64
schedtags: []
size: 30720
snapshot_id: ""
storage_id: ""
- backend: local
backup_id: ""
boot_index: null
cache: ""
disk_id: ""
disk_type: ""
driver: scsi
existing_path: ""
format: ""
fs: ext4
image_encrypt_key_id: ""
image_id: ""
image_properties: null
index: 0
medium: ""
mountpoint: /opt/cloud/workspace-sys
nvme_device: null
os_arch: ""
schedtags: []
size: -1
snapshot_id: ""
storage_id: ""
- backend: local
backup_id: ""
boot_index: null
cache: ""
disk_id: ""
disk_type: ""
driver: scsi
existing_path: ""
format: ""
fs: ext4
image_encrypt_key_id: ""
image_id: ""
image_properties: null
index: 0
medium: ""
mountpoint: /opt/cloud/workspace
nvme_device: null
os_arch: ""
schedtags: []
size: -1
snapshot_id: ""
storage_id: ""
domain_id: default
for_guests: null
group_releations: null
groups: null
guest_status: ""
host_id: ""
host_mem_page_size: 0
hypervisor: baremetal
id: ""
ignore_filters: {}
instance_backup_id: ""
instance_snapshot_id: ""
instance_type: ""
is_container: false
isolated_devices: null
live_migrate: false
name: cloudpods-host15
nets:
- address: ""
address6: ""
bw_limit: 1000
domain_id: default
driver: virtio
exit: false
ifname: ""
index: 0
mac: ""
net_type: ""
network: 7baff6c9-9c49-4d52-8237-4b9c3e140ec4
num_queues: 0
private: false
project_id: fae34bb28430422d89cd9d72d124fd9a
require_designated_ip: false
require_teaming: false
reserved: false
schedtags: []
sriov_device: null
standby_addr_count: 0
standby_port_count: 0
try_teaming: false
vip: false
wire: ""
os_arch: ""
prefer_backup_host: ""
prefer_host_id: bfa5bed2-8a24-4ce0-8b97-c531141ab93a
prefer_manager_id: ""
prefer_region_id: default
prefer_wire_id: ""
prefer_zone_id: 6281c22c-6b16-46e9-8630-f83a64a06e69
project_id: fae34bb28430422d89cd9d72d124fd9a
record_to_history: false
required_candidates: 1
resource_type: shared
reuse_network: false
schedtags: []
session_id: "1684806760755"
skip_cpu_check: null
skip_kernel_check: null
sku: ""
suggestion: false
suggestion_all: false
suggestion_details: false
suggestion_limit: 100
tag: ""
target_host_kernel: ""
type: ""
vcpu_count: 128
vmem_size: 2097152
error: 'genericScheduler.Schedule: No resource are avaliable that match all of the
following predicates: filter by baremetal_storage(-1), session_id="1684806760755"'
logs:
- 'Success: cloudpods-worker15:bfa5bed2-8a24-4ce0-8b97-c531141ab93a [baremetal_cpu,baremetal_memory,baremetal_status,host_schedtag] '
- 'Failed: cloudpods-worker15:bfa5bed2-8a24-4ce0-8b97-c531141ab93a [baremetal_storage]
baremetal_storage: no enough storage err: Not found matched storages by config:
&compute.BaremetalDiskConfig{Type:"ssd", Conf:"none", Count:1, Range:[]int64{0},
Splits:"", Size:[]int64(nil), Adapter:(*int)(0xc0025d22c0), Driver:"PCIE", Cachedbadbbu:(*bool)(nil),
Strip:(*int64)(nil), RA:(*bool)(nil), WT:(*bool)(nil), Direct:(*bool)(nil)}'
result: null
status: failed
time: "2023-05-23 01:52:40"
type: baremetal
time: "2023-05-23 01:52:40"