migrate hostname to hostgroupname