Opscode Open Source Ticket Tracking

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Chef
  • CHEF-3176

default route

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Chef Client, Chef Solo
  • Labels:
    • default
    • dev
    • networking
    • route
  • Environment:

    Linux (RHEL)

Description

For routing, we should be able to set a default route. For example, this should be valid:

route 'default' do
gateway '192.168.16.15'
device 'eth1'
end

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • Transitions Summary
Hide
Permalink
Derek Kniffin added a comment - 04/Jun/12 10:29 PM - edited

In the meantime, I am using this as a workaround:

execute 'default_eth1_route' do
command 'echo "default via 192.168.16.15" >> /etc/sysconfig/network-scripts/route-eth1'
not_if 'grep default /etc/sysconfig/network-scripts/route-eth1'
end

Show
Derek Kniffin added a comment - 04/Jun/12 10:29 PM - edited In the meantime, I am using this as a workaround: execute 'default_eth1_route' do command 'echo "default via 192.168.16.15" >> /etc/sysconfig/network-scripts/route-eth1' not_if 'grep default /etc/sysconfig/network-scripts/route-eth1' end
Hide
Permalink
Bryan McLellan [Opscode] added a comment - 07/Jun/12 5:54 PM

What version of Chef are you running?

Show
Bryan McLellan [Opscode] added a comment - 07/Jun/12 5:54 PM What version of Chef are you running?
Hide
Permalink
Derek Kniffin added a comment - 20/Jun/12 3:19 PM

0.10.10

Show
Derek Kniffin added a comment - 20/Jun/12 3:19 PM 0.10.10
Hide
Permalink
Tiago Cruz added a comment - 20/Jul/12 3:34 PM - edited

Confirmed!

I did:
=================================
route "172.21.170.0/24" do
gateway = "192.168.15.1"
device "eth1"
end
=================================

and I got in 'route -n' on Ubuntu 11.10:

===================================================================================================
172.21.170.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
===================================================================================================

but I'm expecting

===================================================================================================
172.21.170.0 192.168.15.1 255.255.255.0 UG 0 0 0 eth1
===================================================================================================

The 'gateway' is not there, and the network guys does not like this, hehehe

$ chef-client -v
Chef: 10.12.0

Show
Tiago Cruz added a comment - 20/Jul/12 3:34 PM - edited Confirmed! I did: ================================= route "172.21.170.0/24" do gateway = "192.168.15.1" device "eth1" end ================================= and I got in 'route -n' on Ubuntu 11.10: =================================================================================================== 172.21.170.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 =================================================================================================== but I'm expecting =================================================================================================== 172.21.170.0 192.168.15.1 255.255.255.0 UG 0 0 0 eth1 =================================================================================================== The 'gateway' is not there, and the network guys does not like this, hehehe $ chef-client -v Chef: 10.12.0
Hide
Permalink
Derek Kniffin added a comment - 20/Jul/12 3:44 PM

It looks like you have a different issue, if I'm interpreting what you said correctly. What you're saying is that the gateway bit isn't working. I believe your problem is that you have an "=" in there.

Show
Derek Kniffin added a comment - 20/Jul/12 3:44 PM It looks like you have a different issue, if I'm interpreting what you said correctly. What you're saying is that the gateway bit isn't working. I believe your problem is that you have an "=" in there.
Hide
Permalink
Tiago Cruz added a comment - 20/Jul/12 4:16 PM

Ow Derek, you are right! Thanks!

Show
Tiago Cruz added a comment - 20/Jul/12 4:16 PM Ow Derek, you are right! Thanks!

People

  • Assignee:
    Unassigned
    Reporter:
    Derek Kniffin
Vote (1)
Watch (1)

Dates

  • Created:
    04/Jun/12 10:17 PM
    Updated:
    06/Nov/12 6:57 PM
  • Atlassian JIRA (v5.1.5#784-sha1:6c72993)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Chef and Ohai. Try JIRA - bug tracking software for your team.