Hi Edison (or anyone else viewing this :) ),

I'm looking at the DefaultHostListener class you had written up a while ago.

A couple questions:

1) In the "else" below, it does not appear we update the DB with the local
path. Is this correct behavior (this is just a snippet of the method, of
course, but I didn't see any DB update related to this)?

2) As you know, my storage is zone wide. Should I be adding a row to this
table for each host that connects to the management server that's in the
same zone as my storage? Assuming I should, should I implement the
hostDisconnected method to remove the row? The DefaultHostListener just
returns true for the hostDisconnected method.

        StoragePoolHostVO poolHost =
storagePoolHostDao.findByPoolHost(pool.getId(),
hostId);

        if (poolHost == null) {

            poolHost = new StoragePoolHostVO(pool.getId(), hostId,
mspAnswer.getPoolInfo().getLocalPath()

                    .replaceAll("//", "/"));

            storagePoolHostDao.persist(poolHost);

        } else {


poolHost.setLocalPath(mspAnswer.getPoolInfo().getLocalPath().replaceAll("//",
"/"));

        }
Thanks!

-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Reply via email to