Instances are going to error state while using affinity rules

Solution Verified - Updated -

Issue

  • Created SameHost policy with nova server-group-create
nova server-group-create --policy affinity SameHost
  • Booted first VM on compute-1 using hint.
nova boot novaschedulertest --flavor m1.tiny --image novaschedulertest --availability-zone performance:hpbs11-10to16-compute-1.localdomain --nic net-id=7a6d6dab-425b-48f1-b493-789bfa3589ed --hint group=40157bb9-c317-4cae-87d8-618048bf093a
  • Booted another 14 VM's to same host using same hint group which is used to spawn first instance.
nova boot novaschedulertest --flavor m1.tiny --image novaschedulertest --nic net-id=7a6d6dab-425b-48f1-b493-789bfa3589ed --hint group=40157bb9-c317-4cae-87d8-618048bf093a --min-count 14
  • Repeating second operation of spawning multiple instances using hint group is getting failed sometimes, instances are getting stuck in BUILD state or ending with ERROR state.
+--------------------------------------+----------------------+--------+------------+-------------+-------------------------------+
| ID                                   | Name                 | Status | Task State | Power State | Networks                      |
+--------------------------------------+----------------------+--------+------------+-------------+-------------------------------+
| ac3322a4-3299-4855-b2b0-3baebef3b2db | novaschedulertest    | ACTIVE | -          | Running     | novaschedulertest=172.16.0.52 |
| 302e1bb4-3259-4b11-a4b7-37d348b7baf9 | novaschedulertest-1  | ERROR  | -          | Paused      | novaschedulertest=172.16.0.53 |
| e0200f07-33c1-401d-8376-aaa09c7d12b7 | novaschedulertest-10 | ERROR  | -          | NOSTATE     | novaschedulertest=172.16.0.61 |
| 2563e194-1cd5-4168-8132-b82326c65722 | novaschedulertest-11 | BUILD  | scheduling | NOSTATE     |                               |
| 13edbb1b-a8ca-4c8f-84e5-afce668bda54 | novaschedulertest-12 | BUILD  | scheduling | NOSTATE     |                               |
| 98b52434-33ae-4e3f-b810-ca13f9ecec61 | novaschedulertest-13 | BUILD  | scheduling | NOSTATE     |                               |
| e4dbad76-c8ba-49d6-b496-643326ff5dd0 | novaschedulertest-14 | BUILD  | scheduling | NOSTATE     |                               |
| aa104e46-ec12-47e4-8d24-85ffe66e77ac | novaschedulertest-2  | ERROR  | -          | NOSTATE     | novaschedulertest=172.16.0.54 |
| 93c40c56-23fe-4391-bff9-b5105961575f | novaschedulertest-3  | ERROR  | -          | NOSTATE     | novaschedulertest=172.16.0.55 |
| 4b2dfc88-3080-467e-b069-056831f084c7 | novaschedulertest-4  | ERROR  | -          | NOSTATE     | novaschedulertest=172.16.0.56 |
| c48f3c62-5291-4e3c-bee4-17d1e6cd69f1 | novaschedulertest-5  | ERROR  | -          | NOSTATE     | novaschedulertest=172.16.0.57 |
| 28dd12df-9bd7-48e0-b31f-fa96eecd7a18 | novaschedulertest-6  | ERROR  | -          | NOSTATE     | novaschedulertest=172.16.0.62 |
| b1ec23e3-47b2-48ae-91f8-05a2a65f28eb | novaschedulertest-7  | ERROR  | -          | NOSTATE     | novaschedulertest=172.16.0.58 |
| fc035c1b-ae34-4670-8ad5-10ab7a6dc34f | novaschedulertest-8  | ERROR  | -          | NOSTATE     | novaschedulertest=172.16.0.59 |
| ec47525a-4138-436b-99d5-8ea58e4e9117 | novaschedulertest-9  | ERROR  | -          | NOSTATE     | novaschedulertest=172.16.0.60 |
+--------------------------------------+----------------------+--------+------------+-------------+-------------------------------+

Environment

  • Red Hat OpenStack Platform 7.0
  • Ceph used as backend for nova
  • librbd1-0.94.5-13.el7cp.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In