이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 4. Testing
The following procedure involves deliberately crashing a Compute node. Doing so forces the automated evacuation of instances through Instance HA.
Boot one or more instances on the overcloud before crashing the Compute node hosting the instances in question:
stack@director $ . overcloudrc stack@director $ nova boot --image cirros --flavor 2 test-failover stack@director $ nova list --fields name,status,host
stack@director $ . overcloudrc stack@director $ nova boot --image cirros --flavor 2 test-failover stack@director $ nova list --fields name,status,hostCopy to Clipboard Copied! Toggle word wrap Toggle overflow Log in to the Compute node hosting the instances you just booted (as in,
compute-n):stack@director $ . stackrc stack@director $ ssh -lheat-admin compute-n heat-admin@compute-n $
stack@director $ . stackrc stack@director $ ssh -lheat-admin compute-n heat-admin@compute-n $Copy to Clipboard Copied! Toggle word wrap Toggle overflow Crash the node:
heat-admin@compute-n $ echo c > /proc/sysrq-trigger
heat-admin@compute-n $ echo c > /proc/sysrq-triggerCopy to Clipboard Copied! Toggle word wrap Toggle overflow After several minutes, verify that these instances restarted on online Compute nodes. To check:
stack@director $ nova list --fields name,status,host stack@director $ nova service-list
stack@director $ nova list --fields name,status,host stack@director $ nova service-listCopy to Clipboard Copied! Toggle word wrap Toggle overflow