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/06/28 18:20:57 UTC

[jira] [Commented] (VCL-957) Set known root password for Linux images during capture

    [ https://issues.apache.org/jira/browse/VCL-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15353481#comment-15353481 ] 

ASF subversion and git services commented on VCL-957:
-----------------------------------------------------

Commit 1750551 from arkurth@apache.org in branch 'vcl/trunk'
[ https://svn.apache.org/r1750551 ]

VCL-953
Added subroutines:
Module.pm::get_class_variable_hierarchy
utils.pm::wrap_string
Linux.pm::start_network_interface
Linux.pm::stop_network_interface
Linux.pm::delete_default_gateway
Linux.pm::set_default_gateway
Linux.pm::clear_file
Linux.pm::update_resolv_conf

Reworked Linux.pm::get_exclude_list. Added code to allow for * wildcards in the list entries. Added:
Linux.pm::get_exclude_regex_list
Linux.pm::is_file_in_exclude_list
Rewrote Linux.pm::generate_exclude_list_sample to explain the wildcard feature. It was also a mess.

Rewrote Ubuntu.pm::enable_dhcp and set_static_public_address. It was clobbering the /etc/network/interfaces file if an image had been configured with anything other that the default interface configuration such as setting up bridge.

Rewrote Linux.pm::clean_known_files. Added $CAPTURE_DELETE_FILE_PATHS and $CAPTURE_CLEAR_FILE_PATHS class variables to Linux.pm and Ubuntu.pm. These are array references which list files to clear or delete.

VCL-957
Added command to set the root password in Linux.pm::pre_capture. It's currently using the $WINDOWS_ROOT_PASSWORD variable name but that's fine for now.

Other
Removed call to process_connect_methods from Linux.pm::pre_capture. It wasn't doing anything other than generate warning messages.

Added optional $display_output argument to Linux.pm::file_exists. This is used from Linux.pm::delete_file to reduce vcld.log messages.

Added command to delete /etc/ssh/external_sshd_config in Linux.pm::delete_service when the ext_sshd service is deleted. This file was getting left.

Removed useless/sloppy code in Ubuntu.pm::clean_iptables. Set this subroutine to always return 1. All it had been doing was displaying a warning when it detected the iptables service didn't exist.

> Set known root password for Linux images during capture
> -------------------------------------------------------
>
>                 Key: VCL-957
>                 URL: https://issues.apache.org/jira/browse/VCL-957
>             Project: VCL
>          Issue Type: Improvement
>          Components: vcld (backend)
>            Reporter: Andy Kurth
>            Assignee: Andy Kurth
>             Fix For: 2.5
>
>
> The root password is not getting set during the capture of Linux images.  It is being left as the last random password generated when the image was loaded.
> The root account's password is set for Windows images before capture. This is useful for troubleshooting images which cannot be logged into via SSH using a key after the image loads.
> It would be helpful to set the root password for Linux images to the same password as is used for Windows images before capture.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)