force host should pass compute_filters

Bug #1421871 reported by jichenjc
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Low
Unassigned

Bug Description

the compute service for opnstk1 is down

nova boot --availability-zone nova:opnstk1 --image a0c65331-067e-46e9-ab80-19d0cd98d778 --flavor 103 ji9

will make the instance stuck to

+--------------------------------------+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+----------+
| 7b0f8217-e533-4a02-a782-e9b03b4911ae | ji9 | BUILD | scheduling | NOSTATE | |
+--------------------------------------+------+--------+------------+-------------+----------+

actually, we need to return the no valid host exception because host is down

jichenjc (jichenjc)
Changed in nova:
assignee: nobody → jichenjc (jichenjc)
Changed in nova:
importance: Undecided → Low
status: New → Confirmed
Changed in nova:
assignee: jichenjc (jichenjc) → Shashwat Srivastava (shashwat-srivastava)
Changed in nova:
assignee: Shashwat Srivastava (shashwat-srivastava) → nobody
Revision history for this message
Nikola Đipanov (ndipanov) wrote :

This seems to have the same cause as this bug: https://bugs.launchpad.net/nova/+bug/1427772 (the reason you see this is because ComputeFilter was not run).

However - you could still get this if you try to force an instance to a host before servicegroup API notices that the host has gone down. Since we use cast the result will be the same (the instance will be stuck with the task_state set to 'scheduling' forever.

I think that the only reasonable solution to this seeing how oslo.messaging works internally IMHO is to add a new task state (maybe 'dispatching to target node' or something to that effect) so I will not close it as a duplicate for now

Revision history for this message
jichenjc (jichenjc) wrote :

not a expert in oslo.messaging, let me dig into more about this ,thanks for the info

Changed in nova:
assignee: nobody → jichenjc (jichenjc)
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/216759

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by jichenjc (<email address hidden>) on branch: master
Review: https://review.openstack.org/216759

Changed in nova:
assignee: jichenjc (jichenjc) → nobody
status: In Progress → Confirmed
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.