overcommit ratios should not be able to set to negative value

Bug #1604116 reported by vu tran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
vu tran

Bug Description

Currently the three overcommit ratios: ram_allocation_ratio, cpu_allocation_ratio, and disk_allocation_ratio can be set to negative values.

Nova scheduler filters (e.g. CoreFilter) will use these ratios to calculate free_vcpus/free_ram_mb/usable_disk_mb (which is negative) and therefore scheduler filters will eventually filter out node which has negative overcommit ratio.

It makes more sense that these 3 ratios values should not be able to set to negative values. If any of these ratios is negative then nova-compute service should fail to start.

Step to reproduce on devstack:

* On compute node, modify /etc/nova/nova.conf to have "cpu_allocation_ratio = -1.0"
* Restart nova-compute (n-cpu) and nova-compute service is up and running (we should expect nova-compute to fail to start)

vu tran (vu-tran)
Changed in nova:
assignee: nobody → vu tran (vu-tran)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/344254

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/344254
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=fcf2a644fbe6efc2bfd2810add36a099cadd959e
Submitter: Jenkins
Branch: master

commit fcf2a644fbe6efc2bfd2810add36a099cadd959e
Author: Vu Tran <email address hidden>
Date: Mon Aug 29 14:05:25 2016 -0400

    Not allow overcommit ratios to be negative

    Currently the three overcommit ratios: ram_allocation_ratio,
    cpu_allocation_ratio, and disk_allocation_ratio can be set to negative values.
    It's up to the scheduler filters to impose the checks on these ratios.

    It makes more sense to make sure these 3 ratios are not negative when
    nova-compute is started. If any of these ratios is negative then nova-compute
    service will fail to start.

    Closes-Bug: #1604116
    Change-Id: Ic960e319b59910c0178e81259b2e35435f2db592

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/389017

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 15.0.0.0b1

This issue was fixed in the openstack/nova 15.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (stable/newton)

Change abandoned by Lee Yarwood (<email address hidden>) on branch: stable/newton
Review: https://review.openstack.org/389017
Reason: Abandoning this review given it is not suitable for stable/newton and has not been touched for a few weeks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.