axsh/wakame-vdc — pull request #325 by unakatsuo (2013-12-06 06:40:41+00:00)
Title: InstanceMonitor's state recovery does not work for `shuttingdown` instance.

two code issues are found in instance monitor.

1. Sending job message to wrong RPC endpoint `isono.rpc.endpoint.job.hva-handle**r**.hva.XXXXX`
2. "cleanup" task in hva_handler only works for `running` instances. skip for instances left with `shuttingdown`.

the issue causes other side effect issues:

- rabbit-mq causes disk full on its mnesia volume due to the code issue 1.
- hva.log grows its size becase thesame error messages come up then the file size becomes unexpected larger size. it is due to the issue 2.

```
I, [2013-10-27T03:36:05.810539 #5387] INFO -- InstanceMonitor: Force state transition for i-yyyyyyy: shuttingdown -> terminated
E, [2013-10-27T03:36:12.122625 #5387] ERROR -- Kvm: RuntimeError Unable to find the kvm.pid file: i-yyyyyy from /opt/axsh/wakame-vdc/dcmgr/lib/dcmgr/drivers/kvm.rb:273:in `check_instance'
```