You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/07/19 20:57:20 UTC
[jira] [Commented] (VCL-961) VCL may clobber custom network
configurations on Linux images
[ https://issues.apache.org/jira/browse/VCL-961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15384837#comment-15384837 ]
ASF subversion and git services commented on VCL-961:
-----------------------------------------------------
Commit 1753423 from arkurth@apache.org in branch 'vcl/trunk'
[ https://svn.apache.org/r1753423 ]
VCL-961
Added generate_ifcfg_file subroutines to Linux.pm. Updated enable_dhcp and set_static_public_address to use it.
Reworked Linux.pm::set_static_public_address to not simply overwrite the ifcfg-* file. Changed set_static_public_address to use set_default_gateway and update_resolv_conf subroutines rather than using duplicated code.
Updated Linux.pm::get_network_configuration to retrieve network bridge information and add it to the hash returned. Updated OS.pm::get_public_interface_name to check if the configuration for an interface contains a 'master' key indicating that the interface is a slave -- usually because it is bridged. If this key is set then the interface isn't considered.
Fixed some regex/parsing issues with Linux.pm::get_network_bridge_info.
VCL-970
Added code to create a route-* file in Linux.pm::set_default_gateway so that the default gateway persists across reboots. Also added code to enable_dhcp to delete an interface's route-* file.
VCL-969
Added code to Linux.pm::pre_capture to disable the 'firstboot' service if it exists.
> VCL may clobber custom network configurations on Linux images
> -------------------------------------------------------------
>
> Key: VCL-961
> URL: https://issues.apache.org/jira/browse/VCL-961
> Project: VCL
> Issue Type: Improvement
> Components: vcld (backend)
> Affects Versions: 2.4.2
> Reporter: Andy Kurth
> Assignee: Andy Kurth
> Fix For: 2.5
>
>
> During image capture, vcld recreates /etc/sysconfig/network-scripts/ifcfg-eth0 and ifcfg-eth0 with a very simple DHCP configuration. This breaks things if the image creator configured a bridged interface.
> The code should be updated to intelligently reconfigure these files when enabling DHCP, leaving a bridge intact if configured.
> Any Red Hat 6.x and earlier based image is affected including CentOS 6.x.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)