Skip to content
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

unable to set /32 route #281

Closed
AlexSamad opened this issue Dec 25, 2021 · 2 comments · Fixed by #282
Closed

unable to set /32 route #281

AlexSamad opened this issue Dec 25, 2021 · 2 comments · Fixed by #282

Comments

@AlexSamad
Copy link

Hi

I have this set

network_route { '22.7.32.61':
ensure => 'present',
gateway => '10.32.20.122',
netmask => '255.255.255.255',
network => '22.7.32.61',
}

and it fails

Error: Could not prefetch network_route provider 'redhat': invalid address: 32

Warning: /Stage[main]/Role::Ybdns::R20211224/Network_route[22.7.32.61]: Skipping because provider prefetch failed

when i try this
puppet resource network_route 22.7.32.61

I get this

Error: Could not run: invalid address: 32

@AlexSamad
Copy link
Author

AlexSamad commented Dec 25, 2021

Did some more digging
my route-eth0 file had

22.7.32.61/32 via 10.32.20.122 dev eth0

if couldn't handle it and was balking at that.

@voxpupuli voxpupuli deleted a comment from christophmerz Dec 25, 2021
@AlexSamad
Copy link
Author

AlexSamad commented Dec 28, 2021

Still getting this after reboot of the node

Error: /Stage[main]/Role::Ybdns::R20211224/Network_route[22.7.32.61]: Could not evaluate: undefined method `[]' for nil:NilClass

  network_route { '22.7.32.61':
    ensure    => 'present',
    gateway   => '10.32.20.122',
    netmask   => '255.255.255.255',
    network   => '22.7.32.61',
    interface  => 'eth0',
  }
cat /etc/sysconfig/network-scripts/route-eth0
# HEADER: This file is being managed by puppet. Changes to
# HEADER: routes that are not being managed by puppet will persist;
# HEADER: however changes to routes that are being managed by puppet will
# HEADER: be overwritten. In addition, file order is NOT guaranteed.
# HEADER: Last generated at: 2021-12-25 13:49:10 +1100
22.7.32.61/255.255.255.255 via 10.32.20.122 dev eth0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant