diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-08-07 14:13:29 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-08-07 14:13:29 +0000 |
commit | 7844932bb99c995b14d7b26c8bdaf98d62e28a06 (patch) | |
tree | 4859bfac4f70d2ec2ed04f9bb7d7e840030f0076 | |
parent | d52d5ebfa3f6058863869193b7ce11927c433e3a (diff) | |
parent | e22b76bd268cd87e1a62207602aeb3c391ee19d8 (diff) | |
download | tuskar-ui-7844932bb99c995b14d7b26c8bdaf98d62e28a06.tar.gz |
Merge "Delay introspection between nodes by 5 seconds"
-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 2f67ae78..2ad65195 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 _ @@ -266,6 +267,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): |