Bug 784677 - image installs erroneously change system hostname setting
Summary: image installs erroneously change system hostname setting
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: RejectedBlocker RejectedNTH
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-25 19:25 UTC by David Lehman
Modified: 2012-11-30 03:20 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-30 03:20:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Lehman 2012-01-25 19:25:10 UTC
Description of problem:
When installing to a disk image, anaconda calls /bin/hostname with the hostname set in the user interface. This is not appropriate. The image install must not modify the configuration of the system it is being run on, but rather configure a separate system within the disk image.

Version-Release number of selected component (if applicable):
anaconda-17.3-1

How reproducible:
Always

Steps to Reproduce:
1. Do a disk image install and set a hostname
  
Actual results:
The hostname of the system on which you're running anaconda will be changed.

Expected results:
The hostname of the system on which you're running anaconda remains unchanged.

Additional info:
This was introduced with the following commit:

commit 8563670436f38d8f504ccf1a3e9a4ff95a975acc
Author: Radek Vykydal <rvykydal>
Date:   Tue Dec 7 15:36:55 2010 +0100

    Set installer environment hostname for sw raid LABELs (#640743)
    
    mdadm tool will use it when creating the device.


An alternative fix without the undesirable side-effects would be to pass --homehost= to mdadm when creating new arrays.

Comment 1 David Lehman 2012-01-25 19:26:16 UTC
Adding to F17Alpha since this should be a fairly quick fix and needs to make F17.

Comment 2 Adam Williamson 2012-01-27 17:46:16 UTC
Discussed at 2012-01-27 blocker review meeting. We can't see any impact of this bug on the alpha criteria. dlehman proposed it essentially as a reminder-to-self to get the issue fixed, but unfortunately we can't really use the blocker or nth processes in that way. We recommend use of the priority/severity fields for this purpose instead.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 3 Chris Lumens 2012-11-30 03:20:37 UTC
This shouldn't be a problem in git anymore.  See pyanaconda/network.py:

def setHostname(hn):
    if flags.imageInstall:
        log.info("image install -- not setting hostname")
        return

Not that we've really tested image installs, though.


Note You need to log in before you can comment on or make changes to this bug.