Multiple nova schedulers for Ironic and nova conflict when they work together in one Region

Bug #1632539 reported by Tao Li
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Triaged
Wishlist
Unassigned

Bug Description

When Ironic and nova work in one region。we should deploy multiple nova-scheduler process,some for Ironic node scheduling and others for virtual machines scheduling。 Then we call rest API to boot an ironic node, nova-conductor polls the message to multiple nova-scheduler,and not distinguish nova-schedulers for ironic from nova-schedulers for virtual machines。 so it will cause an exception for not selecting a valid host to boot。

I eager to solving this question because this scenario happened in our deploying project。

Anyone has good ideas?

Tao Li (eric-litao)
affects: tempest → nova
Tao Li (eric-litao)
affects: nova → ironic-inspector
affects: ironic-inspector → ironic
Revision history for this message
Dmitry Tantsur (divius) wrote :

Hi! This fully belongs in Nova, so moving it back. I don't have a precise answer to your question, but nova-scheduler's do not depend on the exact compute backends. It is nova-compute instances that are backend-specific.

I guess your problem is with choosing between BM and VM nodes. You can use, for example, host aggregates to distinguish between these. I suggest you reach out to the Nova team for better explanation.

affects: ironic → nova
Revision history for this message
Michael Davies (mrda) wrote :

Certainly there's been some work experimenting with host aggregates to allow this scenario, but I don't believe this is ready for general consumption yet. The better bet would be to wait for CellsV2 and deploy VMs in one region and BMs in another. That approach will most likely do what you want easily.

To put this another way, I think what you're asking is a feature request. It's certainly in the realm of Nova.

Changed in nova:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Tao Li (eric-litao) wrote :

Thanks to Dmitry Tantsur and Michael Davies, I mean how to select nova scheduler not select nova compute host.For example, BM schedulers set scheduler_host_manager=ironic_host_manager and VM schedulers set scheduler_host_manager=host_manager in one region, host aggregates can not reach the goal, becasue host aggregate only affects nova compute not nova scheduler, so deploying different regions for BM and VM is a better choice.

Revision history for this message
Seamanhanshan (yaojun) wrote :

i think using multiple nova-schedulers with differ filters setting should take care the hypervisor type. Indeed, why nova-conductor can't distribute baremetal and VM instance creation requests to delegated nova-scheduler?

Revision history for this message
Tao Li (eric-litao) wrote :

I think nova-conductor knows the hypervisor type is a choice。But I think it's aim is not to konw the hypervisor type,because it‘s a common mechanism。

Revision history for this message
Tao Li (eric-litao) wrote :

I think more and think it is possible in a region for baremetal nodes and compute nodes in small scale. So Seamanhanshan's opinion should be considered. We should need a filter that knows the hypervisor type and decides to use which filter for baremetal nodes and compute nodes.
so i will try to solve it issue. what do you think, Caine?

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.