Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-2636

RH124-312: 11.11 Lab grade fail on check /etc/hosts file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • RH124 - RHEL 7 1 20140606
    • RH124 - RHEL 7 1 20140606
    • RH124
    • None
    • ROL

      URL:
      Reporter RHNID:
      Section: -
      Language: |
      Workaround: Change the line 134 of the script /usr/local/bin/lab-network to:

      grep -P "10\.0\.[[:digit:]]

      {1,2}\.1.*$(hosts_name)" /etc/hosts &> /dev/null

      Description: On execute "lab network grade", it fails on check the file /etc/hosts if the station number has 2 digits.

      The grade script checks with the line 134:

      grep "10\.0\.[[:digit:]]\.1.*$(hosts_name)" /etc/hosts

      If change to:

      grep -P "10\.0\.[[:digit:]]{1,2}

      \.1.*$(hosts_name)" /etc/hosts

      the script succeed.

            ghacker_jira George Hacker (Inactive)
            ricardoalonsos Ricardo Alonso dos Santos Nascimento
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: