[
https://issues.apache.org/jira/browse/CLOUDSTACK-9491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15689427#comment-15689427
]
ASF subversion and git services commented on CLOUDSTACK-9491:
-------------------------------------------------------------
Commit 1f2184800bd93d7a020a8a66d19c22be68b1d508 in cloudstack's branch
refs/heads/master from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=1f21848 ]
Merge pull request #1681 from murali-reddy/router_eth_device_index
CLOUDSTACK-9491: incorrect parsing of device list to find ethernet index of
plugged NICIn VmwareResource, findRouterEthDeviceIndex() method find ethernet
interface index given
the mac address. This method is used, once a nic is plugged to determine
ethernet interface.
"/proc/sys/net/ipv4/conf" from the VR and looped through the devices to find
the right
ethernet interface. Howver current logic read it once, and loops through the
device list.
Its observerd device may not show up '/proc/sys/net/ipv4/conf' immediatly once
NIC is plugged
in the VM from vCenter.
Fix ensured, while waiting for 15 sec in the loop, read the latest content from
/proc/sys/net/ipv4/conf
, so that right device list is processed.
Manual tested VPC scenarios of adding new tiers which uses
findRouterEthDeviceIndex, to find the guest/public network ethernet index.
* pr/1681:
CLOUDSTACK-9491: incorrect parsing of device list to find ethernet index of
plugged NIC
Signed-off-by: Rohit Yadav <[email protected]>
> Vmware resource: incorrect parsing of device list to find ethener index of
> plugged nic
> --------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-9491
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9491
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Affects Versions: 4.6.0
> Reporter: Murali Reddy
> Assignee: Murali Reddy
> Fix For: 4.10.0.0, 4.9.1.0, 4.8.2.0
>
>
> In VmwareResource.java, there is logic ( in findRouterEthDeviceIndex) to find
> ethernet interface a mac address is associated with.
> After NIC in plugged in to a Vm through vSphere, it takes some time for the
> device to show up in the guest VM.
> Logic loops through the device list obtained from /proc/sys/net/ipv4/conf
> from the VM, and matched againest mac.
> However '/proc/sys/net/ipv4/conf' is not refreshed, heve logic loops through
> old device list always.
> In addition there is no exception thrown and error is maked by sending -1.
> Eventually, VR scripts are getting -1 as device number causing failure in
> processing the scripts.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)