5. • インスタンス障害(KVM)
1. インスタンス、仮想ルータの稼働状況把握
ログレベル キーワード
WARN Unable to actually stop VM[User|インスタンス名]
WARN Unable to restart VM[User|インスタンス名]
DEBUG [User|インスタンス名] is stopped on the host.
Proceeding to release resource held.
• インスタンス復旧(KVM)
Proceeding to release resource held.
かつ
AgentManager-Handler または HA-Worker
ログレベル キーワード
DEBUG Start completed for VM VM[User|インスタンス名]
DEBUG and realState = Running
6. • 仮想ルータ障害(KVM)
1. インスタンス、仮想ルータの稼働状況把握
ログレベル キーワード
WARN Unable to actually stop VM[DomainRouter|仮想ルータ名]
WARN Unable to restart VM[DomainRouter|仮想ルータ名]
• 仮想ルータ復旧(KVM)
ログレベル キーワード
DEBUG Start completed for VM VM[DomainRouter|仮想ルータ名]
DEBUG Expunged VM[DomainRouter|仮想ルータ名]
DEBUG and realState = Running
7. • インスタンス、仮想ルータ障害(VMware)
1. インスタンス、仮想ルータの稼働状況把握
ログレベル キーワード
DEBUG DirectAgent
かつ
Detecting a new state but couldn't find a old state so
adding it to the changes
• インスタンス、仮想ルータ復旧(VMware)
ログレベル キーワード
DEBUG cs state = Running and realState = Running
vCenterログ出力よりも数分間遅れた時刻で出力される
8. • ホスト障害(KVM)
1. インスタンス、仮想ルータの稼働状況把握
ログレベル キーワード
ERROR Host is down:
ホスト以外にSystemVM、SecondaryStorageが出力されるため、
hostテーブルからtype=Routingのみを抽出する。
• ホスト復旧(KVM)
ログレベル キーワード
DEBUG AgentManager-Handler
かつ
Agent status update
かつ
new status = Up
(同一行に“name = ホスト名;”が表示される)
12. 2. 仮想ルータに紐付くインスタンスの取得
select
vvi.id
,vvi.name
,dm.name
,vvi.state
,ht.tag
from
vm_instance vvi
inner join
(
select
nc2.instance_id
from
nics nc2
where
EXISTS
(
select
nc.network_id
from
${VMID}に仮想ルータのidを
入れて検索
from
vm_instance vi
left join nics nc on ( vi.id = nc.instance_id )
left join networks nw on (nc.network_id = nw.id)
where
nw.guest_type = 'Isolated'
and
vi.id = '${VMID}'
and
nc2.network_id = nc.network_id
and
vi.removed is null
)
) ins
on(ins.instance_id = vvi.id)
inner join domain dm on(vvi.domain_id = dm.id)
left join host_tags ht on (vvi.host_id = ht.host_id)
where
vvi.id != '${VMID}'
and
ht.tag is not null
and vvi.type = 'User'
and vvi.removed is null
;;;;