cloudstack:删除资源域的时候,提示删除网卡失败

一、故障现象:

cloudstack删除资源池的报错信息:

blob.png


二、原理分析

删除一个资源池的主要步骤:

1.删除系统路由器

2.删除虚拟机

3.删除模板,快照

4.删除二级存储

5.删除一级存储

6.删除主机

7.删除集群

8.删除区域中的网络

9.删除区域


三、解决方法

进入到cloudstack的数据库,选择cloud数据库,查看表的信息

MariaDB [cloud]> show tables;
+------------------------------------------+
| Tables_in_cloud                          |
+------------------------------------------+
| account                                  |
| account_details                          |
| account_netstats_view                    |
| account_network_ref                      |
| account_view                            |
| account_vlan_map                        |
| account_vmstats_view                    |
| account_vnet_map                        |
| affinity_group                          |
| affinity_group_domain_map                |
| affinity_group_view                      |
| affinity_group_vm_map                    |
| alert                                    |
| async_job                                |
| async_job_join_map                      |
| async_job_journal                        |
| async_job_view                          |
| autoscale_policies                      |
| autoscale_policy_condition_map          |
| autoscale_vmgroup_details                |
| autoscale_vmgroup_policy_map            |
| autoscale_vmgroup_vm_map                |
| autoscale_vmgroups                      |
| autoscale_vmprofile_details              |
| autoscale_vmprofiles                    |
| baremetal_dhcp_devices                  |
| baremetal_pxe_devices                    |
| baremetal_rct                            |
| brocade_network_vlan_map                |
| cluster                                  |
| cluster_details                          |
| cluster_vsm_map                          |
| cmd_exec_log                            |
| conditions                              |
| configuration                            |
| console_proxy                            |
| counter                                  |
| data_center                              |
| data_center_details                      |
| data_center_view                        |
| dc_storage_network_ip_range              |
| dedicated_resources                      |
| disk_offering                            |
| disk_offering_details                    |
| disk_offering_view                      |
| domain                                  |
| domain_network_ref                      |
| domain_router                            |
| domain_router_view                      |
| domain_view                              |
| domain_vlan_map                          |
| elastic_lb_vm_map                        |
| event                                    |
| event_view                              |
| external_bigswitch_bcf_devices          |
| external_brocade_vcs_devices            |
| external_cisco_asa1000v_devices          |
| external_cisco_vnmc_devices              |
| external_firewall_devices                |
| external_load_balancer_devices          |
| external_nicira_nvp_devices              |
| external_nuage_vsp_devices              |
| external_opendaylight_controllers        |
| external_stratosphere_ssp_credentials    |
| external_stratosphere_ssp_tenants        |
| external_stratosphere_ssp_uuids          |
| firewall_rule_details                    |
| firewall_rules                          |
| firewall_rules_cidrs                    |
| free_ip_view                            |
| global_load_balancer_lb_rule_map        |
| global_load_balancing_rules              |
| guest_os                                |
| guest_os_category                        |
| guest_os_hypervisor                      |
| host                                    |
| host_details                            |
| host_gpu_groups                          |
| host_pod_ref                            |
| host_tags                                |
| host_view                                |
| hypervisor_capabilities                  |
| iam_account_policy_map                  |
| iam_group                                |
| iam_group_account_map                    |
| iam_group_policy_map                    |
| iam_policy                              |
| iam_policy_permission                    |
| image_store                              |
| image_store_details                      |
| image_store_view                        |
| inline_load_balancer_nic_map            |
| instance_group                          |
| instance_group_view                      |
| instance_group_vm_map                    |
| keystore                                |
| launch_permission                        |
| ldap_configuration                      |
| ldap_trust_map                          |
| legacy_zones                            |
| load_balancer_cert_map                  |
| load_balancer_healthcheck_policies      |
| load_balancer_healthcheck_policy_details |
| load_balancer_stickiness_policies        |
| load_balancer_stickiness_policy_details  |
| load_balancer_vm_map                    |
| load_balancing_rules                    |
| monitoring_services                      |
| mshost                                  |
| mshost_peer                              |
| netapp_lun                              |
| netapp_pool                              |
| netapp_volume                            |
| netscaler_pod_ref                        |
| network_acl                              |
| network_acl_details                      |
| network_acl_item                        |
| network_acl_item_cidrs                  |
| network_acl_item_details                |
| network_asa1000v_map                    |
| network_details                          |
| network_external_firewall_device_map    |
| network_external_lb_device_map          |
| network_offering_details                |
| network_offerings                        |
| network_rule_config                      |
| networks                                |
| nic_details                              |
| nic_ip_alias                            |
| nic_secondary_ips                        |
| nicira_nvp_nic_map                      |
| nicira_nvp_router_map                    |
| nics                                    |
| ntwk_offering_service_map                |
| ntwk_service_map                        |
| object_datastore_ref                    |
| oobm                                    |
| op_dc_ip_address_alloc                  |
| op_dc_link_local_ip_address_alloc        |
| op_dc_storage_network_ip_address        |
| op_dc_vnet_alloc                        |
| op_ha_work                              |
| op_host                                  |
| op_host_capacity                        |
| op_host_planner_reservation              |
| op_host_transfer                        |
| op_host_upgrade                          |
| op_it_work                              |
| op_lock                                  |
| op_networks                              |
| op_nwgrp_work                            |
| op_pod_vlan_alloc                        |
| op_router_monitoring_services            |
| op_user_stats_log                        |
| op_vm_ruleset_log                        |
| op_vpc_distributed_router_sequence_no    |
| ovs_providers                            |
| ovs_tunnel_interface                    |
| ovs_tunnel_network                      |
| physical_network                        |
| physical_network_isolation_methods      |
| physical_network_service_providers      |
| physical_network_tags                    |
| physical_network_traffic_types          |
| pod_vlan_map                            |
| port_forwarding_rules                    |
| port_profile                            |
| portable_ip_address                      |
| portable_ip_range                        |
| private_ip_address                      |
| project_account                          |
| project_account_view                    |
| project_invitation_view                  |
| project_invitations                      |
| project_view                            |
| projects                                |
| region                                  |
| remote_access_vpn                        |
| remote_access_vpn_details                |
| resource_count                          |
| resource_limit                          |
| resource_tag_view                        |
| resource_tags                            |
| role_permissions                        |
| roles                                    |
| router_network_ref                      |
| s2s_customer_gateway                    |
| s2s_customer_gateway_details            |
| s2s_vpn_connection                      |
| s2s_vpn_connection_details              |
| s2s_vpn_gateway                          |
| s2s_vpn_gateway_details                  |
| s3                                      |
| saml_token                              |
| secondary_storage_vm                    |
| security_group                          |
| security_group_rule                      |
| security_group_view                      |
| security_group_vm_map                    |
| sequence                                |
| service_offering                        |
| service_offering_details                |
| service_offering_view                    |
| snapshot_details                        |
| snapshot_policy                          |
| snapshot_policy_details                  |
| snapshot_schedule                        |
| snapshot_store_ref                      |
| snapshots                                |
| ssh_keypairs                            |
| sslcerts                                |
| stack_maid                              |
| static_routes                            |
| storage_pool                            |
| storage_pool_details                    |
| storage_pool_host_ref                    |
| storage_pool_view                        |
| storage_pool_work                        |
| storage_tag_view                        |
| swift                                    |
| sync_queue                              |
| sync_queue_item                          |
| template_host_ref                        |
| template_s3_ref                          |
| template_spool_ref                      |
| template_store_ref                      |
| template_swift_ref                      |
| template_view                            |
| template_zone_ref                        |
| ucs_blade                                |
| ucs_manager                              |
| upload                                  |
| usage_event                              |
| usage_event_details                      |
| user                                    |
| user_details                            |
| user_ip_address                          |
| user_ip_address_details                  |
| user_ipv6_address                        |
| user_statistics                          |
| user_view                                |
| user_vm                                  |
| user_vm_clone_setting                    |
| user_vm_details                          |
| user_vm_view                            |
| version                                  |
| vgpu_types                              |
| virtual_router_providers                |
| virtual_supervisor_module                |
| vlan                                    |
| vm_compute_tags                          |
| vm_disk_statistics                      |
| vm_instance                              |
| vm_network_map                          |
| vm_reservation                          |
| vm_root_disk_tags                        |
| vm_snapshot_details                      |
| vm_snapshots                            |
| vm_template                              |
| vm_template_details                      |
| vm_work_job                              |
| vmware_data_center                      |
| vmware_data_center_zone_map              |
| volume_details                          |
| volume_host_ref                          |
| volume_reservation                      |
| volume_store_ref                        |
| volume_view                              |
| volumes                                  |
| vpc                                      |
| vpc_details                              |
| vpc_gateway_details                      |
| vpc_gateways                            |
| vpc_offering_service_map                |
| vpc_offerings                            |
| vpc_service_map                          |
| vpn_users                                |
+------------------------------------------+
277 rows in set (0.00 sec)
查看physical_network的表结构信息:
MariaDB [cloud]> desc physical_network;
+------------------------+---------------------+------+-----+----------+----------------+
| Field                  | Type                | Null | Key | Default  | Extra          |
+------------------------+---------------------+------+-----+----------+----------------+
| id                    | bigint(20) unsigned | NO  | PRI | NULL    | auto_increment |
| uuid                  | varchar(40)        | YES  | UNI | NULL    |                |
| name                  | varchar(255)        | NO  |    | NULL    |                |
| data_center_id        | bigint(20) unsigned | NO  | MUL | NULL    |                |
| vnet                  | varchar(255)        | YES  |    | NULL    |                |
| speed                  | varchar(32)        | YES  |    | NULL    |                |
| domain_id              | bigint(20) unsigned | YES  | MUL | NULL    |                |
| broadcast_domain_range | varchar(32)        | NO  |    | POD      |                |
| state                  | varchar(32)        | NO  |    | Disabled |                |
| created                | datetime            | YES  |    | NULL    |                |
| removed                | datetime            | YES  | MUL | NULL    |                |
+------------------------+---------------------+------+-----+----------+----------------+
11 rows in set (0.00 sec)
查看data_center的id号:
MariaDB [cloud]> select data_center_id from physical_network;
+----------------+
| data_center_id |
+----------------+
|              1 |
+----------------+
1 row in set (0.00 sec)
删除data_center_id管理的physical_network的信息
MariaDB [cloud]> update physical_network set removed=now() where data_center_id=1;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

到此,问题全部解决,注意,操作数据库有风险,操作前一定要进行备份。

相关文章
相关标签/搜索