Get ZeroDivisionError: 'float division by zero' with flavor m1.nano

Bug #1517033 reported by Zhenzan Zhou on 2015-11-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zhenzan Zhou

Bug Description

I have a VM created by tempest which uses flavor m1.nano whose disk size is 0. So it generates ZeroDivisionError when trig audit command:

2015-11-17 08:32:02.960 14230 DEBUG watcher.decision_engine.framework.command.trigger_audit_command [req-bbb4b867-8583-4b0f-8d7c-b7e61e839aac ] update audit FAILED update_audit /usr/local/lib/python2.7/dist-packages/watcher/decision_engine/framework/command/
2015-11-17 08:32:03.006 14230 DEBUG oslo_messaging._drivers.amqpdriver [req-bbb4b867-8583-4b0f-8d7c-b7e61e839aac ] CAST unique_id: 5d20d5cc0c294ce0ac0bc637c502dc4d NOTIFY exchange 'openstack' topic '' _send /usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/
2015-11-17 08:32:03.008 14230 ERROR watcher.decision_engine.framework.command.trigger_audit_command [req-bbb4b867-8583-4b0f-8d7c-b7e61e839aac ] float division by zero

Changed in watcher:
assignee: nobody → Zhenzan Zhou (zhenzan-zhou)

Fix proposed to branch: master

Changed in watcher:
status: New → In Progress

Submitter: Jenkins
Branch: master

commit a6db530c7713feaa5593abfe8cb1aa5be8ef3907
Author: Zhenzan Zhou <email address hidden>
Date: Tue Nov 17 21:18:02 2015 +0800

    Avoid dividing zero

    Some flavors may set disk size 0 byte, so disk_capacity may be 0.

    Change-Id: I0f2cfd5ce9f64cd94e7b6ded7865384cb2b1e190
    Closes-Bug: #1517033

Changed in watcher:
status: In Progress → Fix Committed
Changed in watcher:
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
Changed in watcher:
milestone: none → mitaka-2
Changed in watcher:
importance: Undecided → High
Changed in watcher:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers