Comment 2 for bug 1565028

Revision history for this message
Steve McLellan (sjmc7) wrote :

On detach, not so much:

{
  "event_type": "port.update.end",
  "payload": {
    "port": {
      "allowed_address_pairs": [],
      "extra_dhcp_opts": [],
      "updated_at": "2016-04-06T17:40:05",
      "device_owner": "",
      "port_security_enabled": true,
      "binding:profile": {},
      "fixed_ips": [
        {
          "subnet_id": "e89b3879-db18-4c9d-a2b5-9a985f0bd512",
          "ip_address": "172.40.0.4"
        },
        {
          "subnet_id": "44064101-3f26-4eae-ab0e-2c9e6751f849",
          "ip_address": "fd4f:2ae3:e98a:0:f816:3eff:fe2e:2028"
        }
      ],
      "id": "ee486fc1-0919-4109-9990-a2f21b25fec7",
      "security_groups": [
        "9790d25c-aea7-4342-b4ef-5f0f7cb657bd"
      ],
      "binding:vif_details": {},
      "binding:vif_type": "unbound",
      "mac_address": "fa:16:3e:2e:20:28",
      "status": "DOWN",
      "binding:host_id": "",
      "description": "",
      "device_id": "",
      "name": "attaching-port",
      "admin_state_up": true,
      "network_id": "910cc348-b4f2-4ee3-b131-27829ab59984",
      "dns_name": "octo-1",
      "created_at": "2016-04-01T17:47:16",
      "binding:vnic_type": "normal",
      "tenant_id": "3307049f95b7408c95d6e84483fc995a"
    }
  }
  # SNIP
}

Running a query against servers in e-s seems like something to try to avoid; it will rely on the search index being up to date (i.e. although a document may have been indexed it's not necessarily visible to search yet versus retrieval by id). I don't see a cleaner option though. Ideally nova would send out a notification as it does for volume attach.