diff options
author | Jiri Tomasek <jtomasek@redhat.com> | 2015-07-09 14:14:04 +0200 |
---|---|---|
committer | Jiri Tomasek <jtomasek@redhat.com> | 2015-07-09 14:23:51 +0200 |
commit | e22b76bd268cd87e1a62207602aeb3c391ee19d8 (patch) | |
tree | f094d0a82e7bb1fa51e0a5745d27ddd31e1cf40d | |
parent | 99201028f74851cc14360107c289812e09d06d17 (diff) | |
download | tuskar-ui-e22b76bd268cd87e1a62207602aeb3c391ee19d8.tar.gz |
Delay introspection between nodes by 5 seconds
Change-Id: I57c33fdba122a67f988366bbc48b35839ec36746
-rw-r--r-- | tuskar_ui/api/node.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tuskar_ui/api/node.py b/tuskar_ui/api/node.py index 12b037b4..68f45dd2 100644 --- a/tuskar_ui/api/node.py +++ b/tuskar_ui/api/node.py @@ -11,6 +11,7 @@ # under the License. import logging +import time from django.conf import settings from django.utils.translation import ugettext_lazy as _ @@ -263,6 +264,11 @@ class Node(base.APIResourceWrapper): for uuid in uuids: discoverd_client.introspect(uuid, IRONIC_DISCOVERD_URL, request.user.token.id) + # NOTE(dtantsur): PXE firmware on virtual machines misbehaves when + # a lot of nodes start DHCPing simultaneously: it ignores NACK from + # DHCP server, tries to get the same address, then times out. Work + # around it by using sleep, anyway introspection takes much longer. + time.sleep(5) @classmethod def set_maintenance(cls, request, uuid, maintenance): |