Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-7535

MicroShift ISO boots without a network connection when static IP configuration is used in kickstart

XMLWordPrintable

    • No
    • uShift Sprint 233
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required

      Description of problem:

      ostree install iso generate with scripts/image-builder/build.sh network can not convert from 'ifcfg-rh' plugins to 'keyfile' plugins as rpm install stage
      

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

      [microshift@edge-1 microshift]$ find _output/rpmbuild/RPMS/ _output/rpmbuild/RPMS/ _output/rpmbuild/RPMS/x86_64 _output/rpmbuild/RPMS/x86_64/microshift-4.12.0_0.nightly_2023_02_04_034821_20230208184818_7e0dcbc8-1.el8.x86_64.rpm _output/rpmbuild/RPMS/x86_64/microshift-networking-4.12.0_0.nightly_2023_02_04_034821_20230208184818_7e0dcbc8-1.el8.x86_64.rpm _output/rpmbuild/RPMS/noarch _output/rpmbuild/RPMS/noarch/microshift-release-info-4.12.0_0.nightly_2023_02_04_034821_20230208184818_7e0dcbc8-1.el8.noarch.rpm _output/rpmbuild/RPMS/noarch/microshift-selinux-4.12.0_0.nightly_2023_02_04_034821_20230208184818_7e0dcbc8-1.el8.noarch.rpm

      How reproducible:

      always

      Steps to Reproduce:

      1. modify ./scripts/image-builder/config/kickstart.ks.template
      # config with static ip address 
      ...
      network --activate --onboot=on --device=enp1s0 --bootproto=static --ip=192.168.122.123 --netmask=255.255.255.0 --hostname=edge-3.example.com --nameserver=192.168.122.12
      ...
      %post --log=/var/log/anaconda/post-install.log --erroronfail
      # disable microshift service in %post
      systemctl disable microshift
      2. $ sh -x scripts/image-builder/build.sh -pull_secret_file ~/.config/containers/auth.json -authorized_keys_file ~/.ssh/authorized_keys
      3. boot system with iso image 

      Actual results:

      system no network after booted

      Expected results:

      system has proper network configuration

      Additional info:

       

       

       

              ggiguash@redhat.com Gregory Giguashvili
              wang.jun.1974 Jun Wang
              Douglas Hensel Douglas Hensel
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: