Commit f4ea2447 authored by Thiago Paiva's avatar Thiago Paiva
Browse files

Logging the checks to test

parent 85d8ea68
venv
actuator.conf
servers.yml
......@@ -103,6 +103,12 @@ class Waker(NotificationEndpoint):
new_vcpus = stats.vcpus - server.vcpus
new_free_ram_mb = stats.free_ram_mb - server.free_ram_mb
new_free_disk_gb = stats.free_disk_gb - server.free_disk_gb
LOG.debug("\n\n======================================")
LOG.debug("INFO")
LOG.debug("new_vcpus: %s" % new_vcpus)
LOG.debug("new_free_ram_mb: %s" % new_free_ram_mb)
LOG.debug("new_free_disk_gb: %s" % new_free_disk_gb)
LOG.debug("======================================\n\n")
# TODO(thiagop): what is disk_available_least?
if new_vcpus > CONF.thresholds.vcpus:
continue
......@@ -156,6 +162,12 @@ class Morpheus(NotificationEndpoint):
new_free_ram_mb = stats.free_ram_mb - server.free_ram_mb
new_free_disk_gb = stats.free_disk_gb - server.free_disk_gb
# TODO(thiagop): what is disk_available_least?
LOG.debug("\n\n======================================")
LOG.debug("INFO")
LOG.debug("new_vcpus: %s" % new_vcpus)
LOG.debug("new_free_ram_mb: %s" % new_free_ram_mb)
LOG.debug("new_free_disk_gb: %s" % new_free_disk_gb)
LOG.debug("======================================\n\n")
if new_vcpus < CONF.thresholds.vcpus:
continue
elif new_free_ram_mb < CONF.thresholds.free_ram_mb:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment