Issue #20842 has been reported by Romain Chossart.
----------------------------------------
Bug #20842: Race condition with ifconfig -a and ifconfig $interface when
$interface is removed
https://projects.puppetlabs.com/issues/20842
* Author: Romain Chossart
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* Keywords: ifconfig race condition
* Branch:
* Affected Facter version: 1.6.10
----------------------------------------
When using facter, if an interface is deleted at the wrong moment, the
following message is displayed:
<pre>vif10356.0: error fetching interface information: Device not found</pre>
I can reproduce it with our system by running it in a loop:
<pre>
root@grave:~# for i in {1..1000}; do facter 2>&1 | tee /tmp/facter | { grep
'error fetching interface information' && break;} done
vif10356.0: error fetching interface information: Device not found
vif10356.0: error fetching interface information: Device not found
vif10356.0: error fetching interface information: Device not found
vif10356.0: error fetching interface information: Device not found
vif10356.0: error fetching interface information: Device not found
vif10356.0: error fetching interface information: Device not found
</pre>
Looking at the strace/source quickly enclined me to think that this is due to
facter using "ifconfig -a" first to have the list of interfaces and then using
"ifconfig $interface" on each of them (at which point the interface might have
disappeared...).
Virtual interfaces are created and deleted relatively often on some VM Hosts so
this happens daily on our servers.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.