Skip to content
Snippets Groups Projects
  1. Mar 23, 2022
    • Mark Goddard's avatar
      Ubuntu: add support for Apt repository configuration · c603be25
      Mark Goddard authored
      This change adds support for configuring Apt repositories on Ubuntu
      hosts during host configuration.
      
      Repositories are configured in a single file
      (/etc/apt/sources.list.d/kayobe.sources), using the modern deb822
      format [1]. This format is more flexible and readable than the original
      single-line format, particularly if multiple options are used.
      
      Using a single file allows us to more easily keep the set of
      repositories in sync, since Ansible doesn't make it easy to clean things
      up.
      
      Support is added for marking repositories as signed by a particular GPG
      key. This approach is now preferred over the deprecated [2] apt-key
      tool, which resulted in a set of globally trusted keys.
      
      It is also possible to disable the repositories in
      /etc/apt/sources.list via apt_disable_sources_list. This allows for
      replacing the standard repositories with a local mirror.
      
      CI tests and documentation are provided.
      
      [1] https://manpages.ubuntu.com/manpages/focal/en/man5/sources.list.5.html
      [2] https://manpages.ubuntu.com/manpages/groovy/man8/apt-key.8.html
      
      Story: 2009655
      Task: 43818
      
      Change-Id: I3f821937b0930a0ac9341178de7ae5123d82b957
      c603be25
  2. Mar 18, 2022
  3. Mar 07, 2022
  4. Dec 23, 2021
    • Mark Goddard's avatar
      Disable EPEL by default · e0dec916
      Mark Goddard authored
      EPEL is no longer required for a default installation. Let's disable it.
      
      Also clean up the install_epel variable from Kolla Ansible globals.yml
      template, since it never existed.
      
      Story: 2009757
      Task: 44227
      
      Change-Id: I96eb4685f997e85ad2ee5318640d58d0287a016d
      e0dec916
  5. Dec 07, 2021
  6. Oct 12, 2021
  7. Oct 07, 2021
    • Mark Goddard's avatar
      CI: always return host configure test results · c2ae611e
      Mark Goddard authored
      Currently, the overcloud host configure test results are only returned
      on success, when they are least useful. This is because the zuul_return
      task is not reached when the test task fails. This change reorders the
      tasks to fix the issue.
      
      Change-Id: Ie572eda567782cc377767bd8d925145e2ad4bd61
      c2ae611e
  8. Oct 06, 2021
  9. Oct 04, 2021
  10. May 11, 2021
    • Mark Goddard's avatar
      CentOS Stream: update DNF repo file names · ece41b7a
      Mark Goddard authored
      CentOS repositories were renamed following the separation of CentOS
      Linux and Stream. This change updates their names when using a local
      mirror. It also removes the old files.
      
      Change-Id: Ifcc3781d771e150b5771f2bf20cd8bcbc5faa443
      Story: 2008795
      Task: 42435
      ece41b7a
  11. May 07, 2021
  12. Apr 21, 2021
    • Mark Goddard's avatar
      Ubuntu: support policy-based routing in systemd-networkd · 181352f1
      Mark Goddard authored
      This change adds support for policy-based routing via systemd-networkd.
      Due to differences in the configuration mechanism, routing policy
      rules are configured via dicts for Ubuntu, while remaining as strings
      on CentOS. Ideally we would support both formats.
      
      Story: 2004960
      Task: 42217
      
      Change-Id: I77aec0160eb7e4dd763326bfe6e3d9a44b248108
      181352f1
    • Mark Goddard's avatar
      Ubuntu: support systemd-networkd · 3bbf736d
      Mark Goddard authored
      This change adds support for network configuration via systemd-networkd
      on Ubuntu systems.
      
      This is implemented via an Ansible Galaxy role,
      stackhpc.systemd_networkd which was forked from
      aruhier.systemd_networkd. Several improvements were made in
      https://github.com/stackhpc/ansible-role-systemd-networkd/pull/1,
      including:
      
      * Add support for removing unexpected config files
      * Use become where necessary
      * Refactor config generation into a single task to improve performance
      
      The systemd_networkd role does not add much abstraction on top of the
      systemd-networkd configuration file format, which provides a lot of
      flexibility at the expense of additional code in Kayobe. This code is
      implemented as filter plugins, similarly to the existing
      MichaelRigart.interfaces role.
      
      This patch includes support for:
      
      * Ethernet interfaces
      * bridges
      * bonds
      * VLANs
      * virtual Ethernet pairs (to connect Linux bridges and OVS bridges)
      * static IP addresses
      * static routes
      * MTU
      
      Some network attributes are currently not supported for
      systemd-networkd:
      
      * rules
      * route options
      * ethtool_opts
      * zone
      * allowed addresses
      
      Story: 2004960
      Task: 41881
      
      Change-Id: I248b5bb9ce5a80a07a2a311cb3aca6daca920720
      3bbf736d
  13. Mar 25, 2021
  14. Mar 01, 2021
    • Mark Goddard's avatar
      CI: Ubuntu host configure job · 9c29d7d7
      Mark Goddard authored
      Issues:
      
      * bond configuration not working on Ubuntu - disabled in CI test
      
      Story: 2004960
      Task: 41560
      
      Change-Id: Ib124dc6f313a2a13fa509b10702c6141f102f2f9
      9c29d7d7
  15. Oct 01, 2020
    • Stig Telfer's avatar
      When EPEL install flag is not set · e5a28188
      Stig Telfer authored
      The flag dnf_install_epel was being used to predicate installation
      of the EPEL RPM repo package, but not preventing the installation
      of configuration for access to EPEL.  This small patch completes
      the job.
      
      Updates the overcloud host configure CI job to install EPEL mirrors,
      since it was previously relying on this buggy behaviour.
      
      Change-Id: Ib417837d0772338b16ea9f7f2540549f277d5de8
      e5a28188
  16. May 29, 2020
  17. May 28, 2020
    • Mark Goddard's avatar
      CI: Encrypt passwords.yml in overcloud host configure job · 3b03bfe3
      Mark Goddard authored
      This gives us some test coverage with Ansible Vault.
      
      Change-Id: Ic9db7f84e9f0dcbe69c31b6fff6bda3dfb401a33
      Story: 2004959
      Task: 39813
      3b03bfe3
    • Mark Goddard's avatar
      Remove support for CentOS 7 and Python 2 · b9d76f6e
      Mark Goddard authored
      * Always use Python 3
      * Drop code paths for CentOS 7
      * Drop support for Yum
      * Remove support for host NTP daemon, always use chrony
      * Switch references from 'yum_install_epel' to 'dnf_install_epel'
      * Remove overcloud host image workaround for tagged VLAN admin network
      * Remove the kayobe.utils.yum_install function, which is unused
      
      Change-Id: I368f6edafed9779658798fc342116b4c1b3ffd48
      Story: 2006574
      Task: 39481
      b9d76f6e
  18. May 20, 2020
  19. Apr 16, 2020
    • Mark Goddard's avatar
      CI: Add overcloud host configure job · 92a437f6
      Mark Goddard authored
      Tests various non-default configuration:
      
      * Custom users
      * Network interfaces, VLANs, bridges, bonds
      * Software RAID
      * LVM & docker devicemapper
      * timezone
      * Package mirrors
      * yum-cron / DNF automatic
      
      This improved test coverage allows us to be more confident about these
      features working on CentOS 8.
      
      Change-Id: I36148e4356deb7d5ec00d8d3ebeb2d3932ff4f94
      Story: 2006574
      Task: 38938
      92a437f6
Loading