}
if (virNetworkObjIsActive(privnet)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("Network '%s' is still running"), network->name);
goto cleanup;
}
}
if (virNetworkObjIsActive(privnet)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("Network '%s' is already running"), network->name);
goto cleanup;
}
}
if (virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is already active"), pool->name);
goto cleanup;
}
}
if (virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is already active"), pool->name);
goto cleanup;
}
}
if (virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is already active"), pool->name);
goto cleanup;
}
}
if (!virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is not active"), pool->name);
goto cleanup;
}
}
if (virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is already active"), pool->name);
goto cleanup;
}
}
if (!virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is not active"), pool->name);
goto cleanup;
}
}
if (!virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is not active"), pool->name);
goto cleanup;
}
if (!virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is not active"), pool->name);
goto cleanup;
}
if (!virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is not active"), pool->name);
goto cleanup;
}
}
if (!virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is not active"), pool->name);
goto cleanup;
}
}
if (!virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is not active"), pool->name);
goto cleanup;
}
}
if (!virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is not active"), vol->pool);
goto cleanup;
}
}
if (!virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is not active"), vol->pool);
goto cleanup;
}
}
if (!virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is not active"), vol->pool);
goto cleanup;
}
}
if (!virStoragePoolObjIsActive(privpool)) {
- testError(VIR_ERR_INTERNAL_ERROR,
+ testError(VIR_ERR_OPERATION_INVALID,
_("storage pool '%s' is not active"), vol->pool);
goto cleanup;
}
virCommandPtr cmd = NULL;
if (virDomainObjIsActive(vm)) {
- umlReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+ umlReportError(VIR_ERR_OPERATION_INVALID, "%s",
_("VM is already active"));
return -1;
}
}
if (virDomainObjIsActive(vm)) {
- umlReportError(VIR_ERR_NO_SUPPORT, "%s",
+ umlReportError(VIR_ERR_OPERATION_INVALID, "%s",
_("cannot set memory of an active domain"));
goto cleanup;
}
}
if (virDomainObjIsActive(vm)) {
- umlReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+ umlReportError(VIR_ERR_OPERATION_INVALID, "%s",
_("cannot delete active domain"));
goto cleanup;
}
if (!vm->persistent) {
- umlReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+ umlReportError(VIR_ERR_OPERATION_INVALID, "%s",
_("cannot undefine transient domain"));
goto cleanup;
}
}
if (!vm->persistent) {
- umlReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+ umlReportError(VIR_ERR_OPERATION_INVALID, "%s",
_("cannot set autostart for transient domain"));
goto cleanup;
}