'Create compute-manager(ComputeNode and Service record).'

def _create_compute_service(self):

    ctxt = self.req.environ['nova.context']
    dic = {'host': 'dummy', 'binary': 'nova-compute', 'topic': 'compute', 'report_count': 0}
    s_ref = db.service_create(ctxt, dic)
    dic = {'service_id': s_ref['id'], 'host': s_ref['host'], 'uuid': uuidsentinel.compute_node, 'vcpus': 16, 'memory_mb': 32, 'local_gb': 100, 'vcpus_used': 16, 'memory_mb_used': 32, 'local_gb_used': 10, 'hypervisor_type': 'qemu', 'hypervisor_version': 12003, 'cpu_info': '', 'stats': ''}
    db.compute_node_create(ctxt, dic)
    return db.service_get(ctxt, s_ref['id'])
