[
https://issues.apache.org/jira/browse/CLOUDSTACK-9583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15653375#comment-15653375
]
ASF GitHub Bot commented on CLOUDSTACK-9583:
--------------------------------------------
GitHub user murali-reddy opened a pull request:
https://github.com/apache/cloudstack/pull/1757
CLOUDSTACK-9583: VR: In CsDhcp.py preseed both hostaname and localhost to
resolve to 127.0.0.1
The VR executes a ip route flush command as part of configurations. This
command performs a
DNS lookup on the VR hostname. Since the VR does not have a DNS entry, the
ip command would
wait 5 seconds before timing out and executing the flush operation. This
fix adds the VR
hostname to /etc/hosts mapped to 127.0.0.1 to answer the DNS lookup –
reducing the
execution time.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/murali-reddy/cloudstack vr_dhcp_entries
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/1757.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1757
----
commit 4c4696e5e43a870b7504dfde735bc3afd04a843e
Author: Murali Reddy <[email protected]>
Date: 2016-11-10T07:55:22Z
CLOUDSTACK-9583: VR: In CsDhcp.py preseed both hostaname and localhost to
resolve to 127.0.0.1
The VR executes a ip route flush command as part of configurations. This
command performs a
DNS lookup on the VR hostname. Since the VR does not have a DNS entry, the
ip command would
wait 5 seconds before timing out and executing the flush operation. This
fix adds the VR
hostname to /etc/hosts mapped to 127.0.0.1 to answer the DNS lookup –
reducing the
execution time.
----
> VR: In CsDhcp.py preseed both hostaname and localhost to resolve to 127.0.0.1
> -----------------------------------------------------------------------------
>
> Key: CLOUDSTACK-9583
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9583
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Reporter: Murali Reddy
> Fix For: 4.9.1.0
>
>
> It is observed that 'ip route flush' was timing out after 20 seconds with
> the error that can't resolve the name of the vrouter. Since this is done for
> each rule for a router with a lot of rules, adding the entry to hosts file
> fixes it and the router provisioning is observed faster.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)