Comment 2 for bug 1859859

Revision history for this message
Don Penney (dpenney) wrote :

How are you doing this installation? From the collected logs, looking through the anaconda logs, it looks like you are maybe using the net_smallsystem_ks.cfg file as the basis for a remote installation kickstart. The net_* kickstart files are for installation of nodes from the active controller, not for the initial installation of controller-0. The initial installation kickstart (smallsystem_ks.cfg on the ISO) provides some extra steps for the installation of the first controller, including software repo setup/mirroring.

For installation from a network server, there is a pxeboot_setup.sh utility in the ISO and pxeboot_*.cfg kickstart templates that have the extra steps needed for the installation of the first controller.

The patch-agent is failing because it cannot find the required software groups, an indication that the software repos were not properly mirrored as part of the post-installation setup that is in the kickstarts of the initial controller install:

2020-01-15T12:57:56: sw-patch-agent[1053928]: base.py(415): WARNING: Failed to synchronize cache for repo 'platform-base', ignoring this repo.
2020-01-15T12:57:56: sw-patch-agent[1053928]: patch_agent.py(493): ERROR: Could not find software group: updates-controller-worker
2020-01-15T12:57:56: sw-patch-agent[1053928]: patch_functions.py(68): ERROR: Uncaught exception
Traceback (most recent call last):
  File "/usr/sbin/sw-patch-agent", line 15, in <module>
    main()
  File "/usr/lib64/python2.7/site-packages/cgcs_patch/patch_agent.py", line 870, in main
    pa.query()
  File "/usr/lib64/python2.7/site-packages/cgcs_patch/patch_agent.py", line 495, in query
    for pkg in pkggrp.packages_iter():
AttributeError: 'NoneType' object has no attribute 'packages_iter'

You can see these additional pieces for the first controller installation in the following kickstart sections:
https://opendev.org/starlingx/metal/src/branch/master/bsp-files/kickstarts/post_usb_controller.cfg
https://opendev.org/starlingx/metal/src/branch/master/bsp-files/kickstarts/post_pxeboot_controller.cfg

I downloaded the 20200115T023003Z ISO and verified installation works as expected.