Skip to main content

Overview

This guide covers the most common failure modes in the Optimization: audits that fail to complete, action plans that stall during execution, live migration errors from the Compute API, and data source connectivity issues. Each section includes log locations, diagnostic commands, and remediation steps.

Quick Diagnostic Reference

Check all Optimization container health

Check container status
All three containers must show (healthy):
  • watcher_api
  • watcher_decision_engine
  • watcher_applier
Check for recent errors in all containers

Audit Failures

Audit Stuck in PENDING

The audit is queued but the Decision Engine has not picked it up.
Check Decision Engine is running
Common causes:
  • Decision Engine container is stopped or unhealthy
  • RabbitMQ messaging connection is broken
  • All Decision Engine workers are busy with another audit
Restart Decision Engine

Audit Fails with Strategy Error

Show audit details
Check Decision Engine logs for strategy errors
Common causes and fixes:

Audit Succeeds but Generates Empty Action Plan

The audit completed successfully but no migrations were recommended. This is expected behaviour when:
  • All hosts are within the target utilization range (no consolidation needed)
  • All instances are already on their optimal host
  • The cluster is fully balanced for the selected goal
Check current utilization
If the cluster appears underutilized but no actions were generated, lower the strategy threshold parameters — see Strategy Configuration.

Action Plan Execution Failures

Action Plan Stuck in PENDING

The plan was approved but the Applier has not started execution.
Check Applier logs
Check action plan details
Common causes:
  • Applier container is stopped
  • Plan has expired (exceeded action_plan_expiry)
  • Taskflow workflow database is locked
Restart Applier
If the plan is expired, create a new audit to generate a fresh plan.

Live Migration Action Fails

The Applier attempted a migration but Polystack Compute rejected it.
Check action-level failure details
Check Applier logs for migration errors
Common migration errors:
Error: LiveMigrationWithOldNovaNotSupported or migration times out.The instance disk is backed by local ephemeral storage and cannot be live-migrated.Fix: Verify the instance is volume-backed before running optimization:
Check instance storage
Instances with no attached volumes must be excluded from optimization scope or migrated to volume-backed equivalents by the project owner.
Error: MigrationPreCheckError: Guest requires CPU feature not present on destination.Compute hosts have different CPU feature sets and no common baseline is configured.Fix: Set a common CPU model in nova.conf on all compute hosts:
nova.conf — CPU compatibility
See Compute Integration for details.
Error: NoValidHost: No valid host was found.The destination host identified during the audit no longer has sufficient vCPU or memory available (cluster state changed between audit and execution).Fix: Run a new audit to generate a fresh plan reflecting current cluster state. Lower action_plan_expiry to prevent stale plans from executing:
watcher.conf
Error: HTTPBadRequest: Cannot live migrate to disabled host.A host was disabled between audit completion and plan execution.Fix: Re-enable the host or run a new audit with current host availability.
Re-enable a host

Data Source Issues

Prometheus Not Reachable

Strategies that require Prometheus (outlet_temperature, saving_energy) fail with NoDataFound.
Test Prometheus connectivity from Decision Engine
Expected: "status": "success" with results.
Check Prometheus section in watcher.conf

Telemetry Metrics Missing

Strategies that require Telemetry (workload_stabilization, noisy_neighbor) fail with InsufficientData or generate no recommendations.
Check Telemetry collector is configured
Verify metrics exist in Telemetry
If no instance resources are listed, the Telemetry service is not collecting metrics. Verify Polystack Telemetry is deployed and the ceilometer compute agent is enabled.

Authentication Failures

401 Unauthorized in Applier Logs

The Applier service account credentials are invalid or expired.
Check Applier authentication errors
Test the service account token
If token issue fails, the service account credentials in watcher.conf are incorrect. Update the [keystone_authtoken] section and restart all Optimizer containers:
Restart after credential update

Log Locations

Search all Optimizer logs for errors

Next Steps

Strategy Configuration

Adjust thresholds and parameters when audits generate no recommendations.

Compute Integration

Verify shared storage and CPU compatibility for live migration.

Data Sources

Diagnose Prometheus and Telemetry connectivity failures.

Security

Resolve service account authentication failures.