Sahara deployment fails

Bug #1321284 reported by Sergii Golovatiuk
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Sergii Golovatiuk

Bug Description

Deployment Sahara nodes fails as Nova can't find appropriate node. It's stuck on "Scheduling" without any progress. This happened due to mutually exclusive filters ( 'DifferentHostFilter', 'SameHostFilter') in scheduler_default_filters.

Changed in fuel:
importance: Undecided → High
assignee: nobody → Sergii Golovatiuk (sgolovatiuk)
milestone: none → 5.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
status: New → In Progress
Revision history for this message
Dmitry Mescheryakov (dmitrymex) wrote :

As far as I know, DifferentHostFilter and SameHostFilter can co-exist together nicely. Take a look at the docs:
http://docs.openstack.org/trunk/config-reference/content/section_compute-scheduler.html
It explicitly states that " To take advantage of this filter, the requester must pass a scheduler hint" for both filters. I.e. the filters are not invoked unless user explicitly set specific hints in 'nova boot' parameters.

Also, the line with two filters are here for almost a month:
https://github.com/stackforge/fuel-library/blame/master/deployment/puppet/osnailyfacter/manifests/cluster_ha.pp#L457
I know that Vadim Rovachev tests Sahara not once since then and it mostly worked.

Revision history for this message
Dmitry Mescheryakov (dmitrymex) wrote :

I think the issue should be investigated further. Sahara do needs DifferentHostFilter and should not be a problem since it worked so far.

Revision history for this message
Dmitry Mescheryakov (dmitrymex) wrote :

Also, it would help if you clarify which env and test scenario you've used

Revision history for this message
Sergii Golovatiuk (sgolovatiuk) wrote :

Here is a pick from nova scheduler documentation

DifferentHostFilter - allows to put the instance on a different host from a set of instances.
SameHostFilter - puts the instance on the same host as another instance in a set of instances.

It's mutual exclusion which makes no sense to nova scheduler. I left DifferentHost in Sahara manifest. However, it's a big topic and area for investigation as all keys have own weight and own impact.

Changed in fuel:
assignee: Sergii Golovatiuk (sgolovatiuk) → Vladimir Kuklin (vkuklin)
Changed in fuel:
assignee: Vladimir Kuklin (vkuklin) → Sergii Golovatiuk (sgolovatiuk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/94632
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=71b112d8442c5a60b9ebe95b99b7b2bf9eb34b2a
Submitter: Jenkins
Branch: master

commit 71b112d8442c5a60b9ebe95b99b7b2bf9eb34b2a
Author: Sergii Golovatiuk <email address hidden>
Date: Wed May 21 14:34:49 2014 +0000

    Replace concat.rb with latest stdlib equivalent

    Sync concat puppet function to fix some bugs

    Related-Bug: #1320184
    Related-Bug: #1321284

    Change-Id: I49a614122469b37b1c4eb2fbc29b0877a4427fbd

Changed in fuel:
assignee: Sergii Golovatiuk (sgolovatiuk) → Vladimir Kuklin (vkuklin)
Changed in fuel:
assignee: Vladimir Kuklin (vkuklin) → Sergii Golovatiuk (sgolovatiuk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/94366
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=b1f06a3416c0323ca742149c5257b47d616f9072
Submitter: Jenkins
Branch: master

commit b1f06a3416c0323ca742149c5257b47d616f9072
Author: Sergii Golovatiuk <email address hidden>
Date: Tue May 20 13:20:01 2014 +0000

    Fix Nova scheduler_default_filters

    Fix nova scheduler_default_filters filters for Sahara Deployment

    - Change Sahara scheduler_default_filters strategy to DifferentHost
    - Refactor to remove unused variables

    Change-Id: I2a908e1b3e704326d10ff1867971048769df29f5
    Closes-Bug: 1321284

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-library (stable/4.1)

Related fix proposed to branch: stable/4.1
Review: https://review.openstack.org/96858

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (stable/4.1)

Reviewed: https://review.openstack.org/96858
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=18d81e17cfd13c135bb433a11dcc7d2c69f2c84d
Submitter: Jenkins
Branch: stable/4.1

commit 18d81e17cfd13c135bb433a11dcc7d2c69f2c84d
Author: Sergii Golovatiuk <email address hidden>
Date: Wed May 21 14:34:49 2014 +0000

    Replace concat.rb with latest stdlib equivalent

    Sync concat puppet function to fix some bugs

    Related-Bug: #1320184
    Related-Bug: #1321284

    Change-Id: I49a614122469b37b1c4eb2fbc29b0877a4427fbd

Revision history for this message
Meg McRoberts (dreidellhasa) wrote :

Marked as fixed in 4.1.1 Release Notes

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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