Add query for bug 1326312

This bug was introduced to nova by
  https://review.openstack.org/#/c/94043

and is being reverted, but in the mean time, all of ironic's jobs
are failing with this pattern.

Related-bug: #1326312

Change-Id: I05e43d37fb6b57c45789ec5fcc61c2a2ae5d4f85
Merge "Add query for bug 1326312"