Hi.
On earlier versions of cobbler there was an if_gateway_<interface> and an appropriate switch in cobbler system add for setting it. And this did what you'd expect, it put the GATEWAY shell variable assignment in the ifcfg_<interface> file.
So I took my backup serveer and put C7.0 on and the newest cobbler and started working in it. In the older 6.5 cobbler I have running, the network_config SNIPPET I believed looked at if_gateway_<interface> and did the right thing. Somehow the value got put in the ifcfg_<interface> file. The newest one I have on my backup server doesn't do this. the SNIPPET only looks at the gateway and if ifcfg_<interface> is all you have set, gripes mightily about gateway being the wrong format. Nothing gets put in ifcfg_<interface> and if gateway is set that goes very neatly into /etc/sysconfig/network.
Does anyone know when this behavior changed?
Thanks.
Chris J.
On 12/01/2014 01:25 PM, Chris Johnson wrote:
Hi.
On earlier versions of cobbler there was an if_gateway_<interface> and an appropriate switch in cobbler system add for setting it. And this did what you'd expect, it put the GATEWAY shell variable assignment in the ifcfg_<interface> file.
So I took my backup serveer and put C7.0 on and the newest cobbler and started working in it. In the older 6.5 cobbler I have running, the network_config SNIPPET I believed looked at if_gateway_<interface> and did the right thing. Somehow the value got put in the ifcfg_<interface> file. The newest one I have on my backup server doesn't do this. the SNIPPET only looks at the gateway and if ifcfg_<interface> is all you have set, gripes mightily about gateway being the wrong format. Nothing gets put in ifcfg_<interface> and if gateway is set that goes very neatly into /etc/sysconfig/network.
Does anyone know when this behavior changed?
I am not sure what you mean with "C7.0" and "6.5 cobbler". I assume "6.5 Cobbler" = Cobbler 2.6.5. Current unstable Cobbler will be released as Cobbler 3.0 when we finish implementation and it gets stable. C7.0 = ?
Have you enabled static network setup in the network interface with the specific gateway? Looking at the code, this should be enough. If you have done that and it still does not work, probably we have a bug, you can open an issue in Cobbler issue tracker: https://github.com/cobbler/cobbler/issues . Please include the error msg you get.
Regards, Alan Evangelista
Hi,
I have --bootproto=static in the kickstart if that's what you mean. The current version of cobbler I have running is 2.6.5-9.1, C6.5 is CentOS 6.5 and C7 is CentOS 7.
Chis
On 12/01/2014 01:25 PM, Chris Johnson wrote:
Hi.
On earlier versions of cobbler there was an if_gateway_<interface> and an appropriate switch in cobbler system add for setting it. And this did what you'd expect, it put the GATEWAY shell variable assignment in the ifcfg_<interface> file.
So I took my backup serveer and put C7.0 on and the newest cobbler and started working in it. In the older 6.5 cobbler I have running, the network_config SNIPPET I believed looked at if_gateway_<interface> and did the right thing. Somehow the value got put in the ifcfg_<interface> file. The newest one I have on my backup server doesn't do this. the SNIPPET only looks at the gateway and if ifcfg_<interface> is all you have set, gripes mightily about gateway being the wrong format. Nothing gets put in ifcfg_<interface> and if gateway is set that goes very neatly into /etc/sysconfig/network.
Does anyone know when this behavior changed?
I am not sure what you mean with "C7.0" and "6.5 cobbler". I assume "6.5 Cobbler" = Cobbler 2.6.5. Current unstable Cobbler will be released as Cobbler 3.0 when we finish implementation and it gets stable. C7.0 = ?
Have you enabled static network setup in the network interface with the specific gateway? Looking at the code, this should be enough. If you have done that and it still does not work, probably we have a bug, you can open an issue in Cobbler issue tracker: https://github.com/cobbler/cobbler/issues . Please include the error msg you get.
Regards, Alan Evangelista
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
On 12/13/2014 11:59 AM, Chris Johnson wrote:
On 12/01/2014 01:25 PM, Chris Johnson wrote:
On earlier versions of cobbler there was an if_gateway_<interface> and an appropriate switch in cobbler system add for setting it. And this did what you'd expect, it put the GATEWAY shell variable assignment in the ifcfg_<interface> file.
Have you enabled static network setup in the network interface with the specific gateway? Looking at the code, this should be enough.
CJ> I have --bootproto=static in the kickstart if that's what you mean.
No, I mean the static boolean field in the network interface config in the system object.
Regards, Alan Evangelista
On 12/13/2014 11:59 AM, Chris Johnson wrote:
On 12/01/2014 01:25 PM, Chris Johnson wrote:
On earlier versions of cobbler there was an if_gateway_<interface> and an appropriate switch in cobbler system add for setting it. And this did what you'd expect, it put the GATEWAY shell variable assignment in the ifcfg_<interface> file.
Have you enabled static network setup in the network interface with the specific gateway? Looking at the code, this should be enough.
CJ> I have --bootproto=static in the kickstart if that's what you mean.
No, I mean the static boolean field in the network interface config in the system object.
Huh, ok, confused. Isn't that what the --bootproto=static switch in cobbler system add is supposed to set?
On 12/14/2014 02:45 PM, Chris Johnson wrote:
On 12/13/2014 11:59 AM, Chris Johnson wrote:
On 12/01/2014 01:25 PM, Chris Johnson wrote:
On earlier versions of cobbler there was an if_gateway_<interface> and an appropriate switch in cobbler system add for setting it. And this did what you'd expect, it put the GATEWAY shell variable assignment in the ifcfg_<interface> file.
Have you enabled static network setup in the network interface with the specific gateway? Looking at the code, this should be enough.
CJ> I have --bootproto=static in the kickstart if that's what you mean.
No, I mean the static boolean field in the network interface config in the system object.
Huh, ok, confused. Isn't that what the --bootproto=static switch in cobbler system add is supposed to set?
Regarding Cobbler CLI, there is no --bootproto option in cobbler system add, you are confusing (1) the kickstart option with (2) the Cobbler system's network interface option. There is a --static option in cobbler system add which sets the boolean I mentioned before. However, it could be changed after adding the system, that's why I asked you to check its current value.
Regards, Alan Evangelista
Regarding Cobbler CLI, there is no --bootproto option in cobbler system add, you are confusing (1) the kickstart option with (2) the Cobbler system's network interface option. There is a --static option in cobbler system add which sets the boolean I mentioned before. However, it could be changed after adding the system, that's why I asked you to check its current value.
Regards, Alan Evangelista
--static=1. Sorry about that.
Chris.
On 12/14/2014 04:33 PM, Chris Johnson wrote:
Regarding Cobbler CLI, there is no --bootproto option in cobbler system add, you are confusing (1) the kickstart option with (2) the Cobbler system's network interface option. There is a --static option in cobbler system add which sets the boolean I mentioned before. However, it could be changed after adding the system, that's why I asked you to check its current value.
Regards, Alan Evangelista
--static=1. Sorry about that.
So, your system has the static boolean option and the if_gateway option set for the network interface you are using to netboot and the network interface's gateway is not being written to /etc/sysconfig?
Regards, Alan
On 12/14/14 4:15 PM, Alan Evangelista wrote:
So, your system has the static boolean option and the if_gateway option set for the network interface you are using to netboot and the network interface's gateway is not being written to /etc/sysconfig?
Regards, Alan
It was previously written to the ifcfg_<interface> file and is now written nowhere unless I set it with --gateway. So yes. Correct. A conundrum since it used to work.
Chris.
On 12/14/2014 08:01 PM, Chris Johnson wrote:
On 12/14/14 4:15 PM, Alan Evangelista wrote:
So, your system has the static boolean option and the if_gateway option set for the network interface you are using to netboot and the network interface's gateway is not being written to /etc/sysconfig?
It was previously written to the ifcfg_<interface> file and is now written nowhere unless I set it with --gateway. So yes. Correct. A conundrum since it used to work.
Then please open an issue in Cobbler issue tracker.
Regards, Alan
cobbler@lists.fedorahosted.org