Unable to enroll ironic node (ExactRamFilter)

asked 2016-09-27 13:02:51 -0500

erik-stephens gravatar image

When trying to launch the bare metal instance:

nova boot --flavor ironic --image my-image --nic net-name=mgmt i1

I see this in the nova logs:

2016-09-27 17:47:17.593 15523 INFO nova.filters [req-af43b9ac-ae1b-4cb2-9a85-deb491edb84e 404af861dff4497a85900624beb55548 0b3f521d0576430a9e26a28ba102db61 - - -] Filter ExactRamFilter returned 0 hosts
2016-09-27 17:47:17.594 15523 INFO nova.filters [req-af43b9ac-ae1b-4cb2-9a85-deb491edb84e 404af861dff4497a85900624beb55548 0b3f521d0576430a9e26a28ba102db61 - - -] Filtering removed all hosts for the request with instance ID 'c996f7d7-fd9b-444d-917f-d9b20c13b889'. Filter results: ['RetryFilter: (start: 1, end: 1)', 'AvailabilityZoneFilter: (start: 1, end: 1)', 'ComputeFilter: (start: 1, end: 1)', 'ComputeCapabilitiesFilter: (start: 1, end: 1)', 'ImagePropertiesFilter: (start: 1, end: 1)', 'ExactRamFilter: (start: 1, end: 0)']

The amount of available memory matches the flavor. What am I doing wrong? Thanks!

$ nova flavor-show ironic
+----------------------------+--------------------------------------+
| Property                   | Value                                |
+----------------------------+--------------------------------------+
| OS-FLV-DISABLED:disabled   | False                                |
| OS-FLV-EXT-DATA:ephemeral  | 10                                   |
| disk                       | 100                                  |
| extra_specs                | {}                                   |
| id                         | 30eb703c-4e23-4524-a323-c33076576414 |
| name                       | ironic                               |
| os-flavor-access:is_public | False                                |
| ram                        | 12288                                |
| rxtx_factor                | 1.0                                  |
| swap                       |                                      |
| vcpus                      | 8                                    |
+----------------------------+--------------------------------------+

$ ironic --json node-show n2 | jq '{provision_state,power_state,properties,instance_info}'
{
  "provision_state": "available",
  "power_state": "power off",
  "properties": {
    "memory_mb": 12288,
    "cpu_arch": "x86_64",
    "local_gb": 100,
    "cpus": 8
  },
  "instance_info": {
    "ramdisk": "03c11a2a-1c34-41b0-99f6-03087de77a2c",
    "kernel": "c38e420f-98c3-49ce-9f65-2a2d9e65a691",
    "root_gb": 10,
    "image_source": "27f20cea-7cdb-4879-b119-050b783112e5"
  }
}

I tried with various ram allocation settings (the default of 0.0, 1.0):

$ grep ram_allocation_ratio /etc/nova/nova.conf
#ram_allocation_ratio=0.0
ram_allocation_ratio=1.0
edit retag flag offensive close merge delete