> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmo/how-to/instance-creation-fails-with-error-timeout-waiting-for-vif-plug.md).

# Instance Creation Fails with Error "Timeout Waiting For Vif Plugging Callback

## Problem

* Instance creation fails for one or more networks
* The below error is observed in the UI or logs

{% tabs %}
{% tab title="None" %}

```none
WARNING nova.virt.libvirt.driver [req-[uuid] [user@dmoain.com] CT] [instance: [instance-uuid]] Timeout waiting for vif plugging callback for instance [instance-uuid]
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack v4.0 and Higher

## Cause

This can happen when one or more DHCP agents associated with the network are not running due to various reasons like the host being offline. You may verify the state of the DHCP agent by running the Openstack CLI command

{% tabs %}
{% tab title="None" %}

```none
# openstack network agent list
```

{% endtab %}
{% endtabs %}

If the host is reporting as connected, please check the */var/log/pf9/pf9-neutron-dhcp-agent.log* for any errors.

## Resolution

1. If the hosts with DHCP agent roles are online and you observe errors in the DHCP agent logs on the hosts, as a workaround you could disable the DHCP agent from older hosts and enable it on the other hosts in the environment. This can be done from the UI as well.

<figure><img src="https://3413721029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8o9pwjt91cVZOj58RUXj%2Fuploads%2Fgit-blob-812edd11449dfc3056688f17d358bdc86df220ee%2F1623345595.png?alt=media" alt="mceclip0.png"><figcaption><p>mceclip0.png</p></figcaption></figure>

2. After enabling the DHCP on a new host, verify that the new DHCP agent has come up with the command executed in Step 1. Try instance creation and check if it still fails.
3. If you are still encountering any errors, please log a ticket with [Platform9 support](https://github.com/platform9/pcd-docs-gitbook/blob/main/kb/managed-openstack/support.pf9.io)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://platform9.com/kb/pmo/how-to/instance-creation-fails-with-error-timeout-waiting-for-vif-plug.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
