-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
network_* facts don't work on OpenVZ #43
Comments
Hi there! Thanks for reporting this. So, it's failing because we're expecting to get an ipaddress out: Could you provide the output of /sbin/ip route show on an example node? I don't have an OpenVZ environment in which to test this. |
Here's the output of
Maybe the relevant (?) Facter output is also helpful:
|
I'll see if I can't make this behave a little better. Thanks for the outputs. I'll let you know if I need anything further once I get a chance to sit down and look at this. |
Could you give me a full facter output (perfectly okay to synthesize anything that might be sensitive) from an OpenVZ node? |
Hi again, to be certain, can you post the output of a few different OpenVZ network configurations? ip route show 0/0 can you add multiple interfaces to an OpenVZ node? for example, a VM-only network, and an egress access network? could you provide the above outputs with that configuration, as well as stock? |
also what's the output of ip route get 8.8.8.8 in both situations? |
Hi, Here's the output of
|
And here's the output for an OpenVZ container with two
|
So the problem only exists with |
@joschi I'm being drawn towards no result, as there is no nexthop IP to provide. One possible direction to go would be to create another fact 'network_nexthop' as well, and populate that with the ip in cases when our nexthop is an IP, and with the interface in this case. I'm somewhat averse to this, as It feels like code duplication which doesn't provide much functionality. I'm open to being convinced differently however. Here's an update to the module's fact and spec tests which I think will behave in your environment: Can you test it out and let me know if it behaves, or causes some horrible side effect that nobody anticipated? |
Since Facter cannot find out that information I wouldn't expect to get this fact at all. But at least I don't want to have Ruby warnings (see initial issue description) to appear in my Puppet output. |
That's what I thought. Does the updated fact behave as anticipated? MobileMail
|
Hi there. Does the updated fact listed here resolve the problem you were On Tue, Jul 23, 2013 at 7:54 AM, Wolf Noble [email protected] wrote:
|
Hi, sorry for the late reply. Your patch does indeed solve the problem. I do not see the warnings on each Puppet agent run anymore. |
Excellent! I've just submitted a PR to merge this in. Thanks again for reporting this and working with us to improve the module. |
If OpenVZ (or Virtuozzo) is being used for virtualization the facts
network_nexthop_ip
,network_primary_interface
, andnetwork_primary_ip
do not work because the default route is set to a (virtual) ethernet device instead of an IP address.This leads to warnings on every Puppet run:
The text was updated successfully, but these errors were encountered: