예제 #1
0
    def schedule_create_consistencygroup(self, context, group_id, request_spec_list, filter_properties_list):

        weighed_host = self._schedule_group(context, request_spec_list, filter_properties_list)

        if not weighed_host:
            raise exception.NoValidHost(reason=_("No weighed hosts available"))

        host = weighed_host.obj.host

        updated_group = driver.group_update_db(context, group_id, host)

        self.volume_rpcapi.create_consistencygroup(context, updated_group, host)
예제 #2
0
    def schedule_create_consistencygroup(self, context, group,
                                         request_spec_list,
                                         filter_properties_list):

        weighed_backend = self._schedule_group(context, request_spec_list,
                                               filter_properties_list)

        if not weighed_backend:
            raise exception.NoValidBackend(reason=_("No weighed backends "
                                                    "available"))

        backend = weighed_backend.obj
        updated_group = driver.group_update_db(context, group, backend.host,
                                               backend.cluster_name)

        self.volume_rpcapi.create_consistencygroup(context, updated_group)
예제 #3
0
    def schedule_create_consistencygroup(self, context, group_id,
                                         request_spec_list,
                                         filter_properties_list):

        weighed_host = self._schedule_group(context, request_spec_list,
                                            filter_properties_list)

        if not weighed_host:
            raise exception.NoValidHost(reason="No weighed hosts available")

        host = weighed_host.obj.host

        updated_group = driver.group_update_db(context, group_id, host)

        self.volume_rpcapi.create_consistencygroup(context, updated_group,
                                                   host)
예제 #4
0
    def schedule_create_consistencygroup(self, context, group,
                                         request_spec_list,
                                         filter_properties_list):

        weighed_backend = self._schedule_group(
            context,
            request_spec_list,
            filter_properties_list)

        if not weighed_backend:
            raise exception.NoValidBackend(reason=_("No weighed backends "
                                                    "available"))

        backend = weighed_backend.obj
        updated_group = driver.group_update_db(context, group, backend.host,
                                               backend.cluster_name)

        self.volume_rpcapi.create_consistencygroup(context, updated_group)