Red Hat - installer bug



  • Little bug with the installer, nothing major. Without entering any input when I’m asked what OS I’m using, and just hit ENTER, it throws an error. In the past it’s assumed the right OS.

    Version: 7286 Installer/Updater
    
      What version of Linux would you like to run the installation for?
    
              1) Redhat Based Linux (Redhat, CentOS, Mageia)
              2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
              3) Arch Linux
    
      Choice: [1] 
      Invalid input, please try again.
      What version of Linux would you like to run the installation for?
    
              1) Redhat Based Linux (Redhat, CentOS, Mageia)
              2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
              3) Arch Linux
    
      Choice: [1] 
    
    
    
      Starting Redhat based Installation
    


  • I just looked in the wiki, there are not spaces. those must have came from me copy/pasting on my phone.

    Right now, this is verbatim what’s in the wiki, notice I put quotes around the message.

    yum install git -y
    cd ~
    mkdir git
    cd git
    git clone --depth 1 https://github.com/FOGProject/fogproject.git
    cd fogproject/bin
    ./installfog.sh
    echo "Now you should have fog installed."
    


  • @Tom-Elliott I will fix that.


  • Senior Developer

    @Sebastian-Roth 0_1466418166415_upload-da609be1-1165-474a-b39a-37ebf19d1dd1

    Notice the selected text? There’s a lot of extra white space. This is particularly from: https://wiki.fogproject.org/wiki/index.php?title=CentOS_7

    This is what I get if I try to run just simple copy paste from those lines:

       +------------------------------------------+
       |     ..#######:.    ..,#,..     .::##::.  |
       |.:######          .:;####:......;#;..     |
       |...##...        ...##;,;##::::.##...      |
       |   ,#          ...##.....##:::##     ..:: |
       |   ##    .::###,,##.   . ##.::#.:######::.|
       |...##:::###::....#. ..  .#...#. #...#:::. |
       |..:####:..    ..##......##::##  ..  #     |
       |    #  .      ...##:,;##;:::#: ... ##..   |
       |   .#  .       .:;####;::::.##:::;#:..    |
       |    #                     ..:;###..       |
       |                                          |
       +------------------------------------------+
       |      Free Computer Imaging Solution      |
       +------------------------------------------+
       |  Credits: http://fogproject.org/Credits  |
       |       http://fogproject.org/Credits      |
       |       Released under GPL Version 3       |
       +------------------------------------------+
    
    
       Version: 8169 Installer/Updater
    
    
     * Found FOG Settings from previous install at: /opt/fog/.fogsettings
    
     * Performing upgrade using these settings
    
    
      Starting Redhat based Installation
    
    
    
       ######################################################################
       #     FOG now has everything it needs for this setup, but please     #
       #   understand that this script will overwrite any setting you may   #
       #   have setup for services like DHCP, apache, pxe, tftp, and NFS.   #
       ######################################################################
       # It is not recommended that you install this on a production system #
       #        as this script modifies many of your system settings.       #
       ######################################################################
       #             This script should be run by the root user.            #
       #      It will prepend the running with sudo if root is not set      #
       ######################################################################
       #           ** Notice ** FOG is difficult to setup securely          #
       #        SELinux and IPTables are usually asked to be disabled       #
       #           There have been strides in adding capabilities           #
       #          The recommendations would now be more appropriate         #
       #    to set SELinux to permissive and to disable firewall for now.   #
       #  You can find some methods to enable SELinux and maintain firewall #
       #   settings and ports. If you feel comfortable doing so please do   #
       ######################################################################
       #            Please see our wiki for more information at:            #
       ######################################################################
       #             https://wiki.fogproject.org/wiki/index.php             #
       ######################################################################
    
     * Here are the settings FOG will use:
     * Base Linux: Redhat
     * Detected Linux Distribution: Fedora
     * Server IP Address: 10.0.7.1
     * Server Subnet Mask: 255.0.0.0
     * Interface: eno16777728
     * Installation Type: Normal Server
     * Donate: 0
     * Internationalization: 
     * Image Storage Location: /images
     * Using FOG DHCP: No
     * DHCP will NOT be setup but you must setup your
     | current DHCP server to use FOG for PXE services.
    
     * On a Linux DHCP server you must set: next-server and filename
    
     * On a Windows DHCP server you must set options 066 and 067
    
     * Option 066/next-server is the IP of the FOG Server: (e.g. 10.0.7.1)
     * Option 067/filename is the bootfile: (e.g. undionly.kpxe)
    
    
     * Are you sure you wish to continue (Y/N) y
    
    
     * Sorry, answer not recognized
    
    [root@fogstorage bin]# 
    

  • Developer

    @Wayne-Workman said:

    I’m thinking the last “echo” command was piping stuff into the OS selection, causing the input to be invalid.

    This shouldn’t be the case as the bash is normally waiting for commands and scripts to finish if they are not called like cmd &

    Probably some magic invisible (meta) character copied from the wiki?



  • I’m thinking the last “echo” command was piping stuff into the OS selection, causing the input to be invalid.

    Just a theory at this point.

    The only thing I’ve done different with the last two nodes is following exactly what Sebastian posted, which means I wasn’t copy/pasting from the Wiki, which leads me to believe something with what’s in the wiki is causing this minor issue.


  • Senior Developer

    @Sebastian-Roth I don’t think anything is wrong with the commands but I think he copied and pasted from wiki maybe? I’ve seen a few times where what we originally suspected the issue was (tab /space ) is there and that would be a problem then.


  • Developer

    I don’t get it… What’s wrong with those commands?


  • Senior Developer



  • @Tom-Elliott I just thought of something…

    Try copy/pasting ALL of this and see if it happens… I am probably really dumb…

    yum install git -y 
    cd ~ 
    mkdir git 
    cd git 
    git clone --depth 1 https://github.com/FOGProject/fogproject.git 
    cd fogproject/bin 
    ./installfog.sh 
    echo Now you should have fog installed.
    

  • Senior Developer

    @Wayne-Workman Not a single one. Not to this particular bug at least.



  • This afternoon the bug did not appear, again. This particular install I didn’t update the OS first. So updates didn’t play a roll in the bug.

    I’m unsure what was causing it. Have any more changes been made to the installer about this?



  • I’ll try again this afternoon on another new node.




  • Senior Developer



  • @Sebastian-Roth You’re not going to believe this and I’m going to sound like a liar but… it didn’t do it this time around… :-\



  • @Tom-Elliott yeah.

    Here in a minute I’m going to do what Sebastian said.


  • Senior Developer

    @Wayne-Workman Are you seeing this, btw, on your home system as well?



  • @Sebastian-Roth Will do, I can do this tomorrow morning on yet another new node.


  • Developer

    @Wayne-Workman Can you please to me a favor? Run the installer like this:

    sudo -i
    cd /path/to/fogproject/bin
    set -x
    ./installfog.sh
    ...
    set +x
    

    You’ll see a lot of stuff on the console. Can you copy&paste all of it and post here?


 

330
Online

41.5k
Users

11.9k
Topics

113.2k
Posts