Skip to content
  1. Oct 11, 2024
  2. Oct 09, 2024
  3. Oct 02, 2024
  4. Aug 07, 2024
  5. Aug 02, 2024
  6. Jul 31, 2024
    • f-trivino's avatar
      Merge pull request #1273 from t-woerner/new_image_build_with_podman · 0c6a7c8a
      f-trivino authored
      New image builder without molecule using podman
      0c6a7c8a
    • Thomas Woerner's avatar
      infra/image/build.sh: Fail if deployment failed or podman is missing · 0d246b1c
      Thomas Woerner authored
      If the deployment was enabled and failed, the script still continued
      without failing. If podman was missing it failed without a proper error.
      
      The script now fails and does not enable the services and also does not
      commit after the failed deployment. Also is fails if podman is missing.
      0d246b1c
    • Rafael Guterres Jeffman's avatar
      ci lint: Allow ShellCheck to test source-d scripts. · 785681f1
      Rafael Guterres Jeffman authored
      As the scripts 'utils/run-tests.sh' and 'utils/setup_test_container.sh'
      use some scripts as function libraries, this change forces shellcheck to
      also verify those scripts.
      785681f1
    • Rafael Guterres Jeffman's avatar
    • Rafael Guterres Jeffman's avatar
      ustream ci: Use infra scripts to build testing images · 928ed30b
      Rafael Guterres Jeffman authored
      As we do not use molecule features, using a Dockerfile and the
      ansible-freeipa deployment roles is enough to create the container
      testing images.
      
      This patch removes the usage of molecule in favor of the custom
      ansible-freeipa image building script, which allow us to have a similar
      process for creating images both on the ustream CI, or on a developer's
      environment.
      
      Also, CentOS 7 is removed from the build script, as it in not possible
      to run CentOS 7 containers with current versions of systemd.
      928ed30b
    • Rafael Guterres Jeffman's avatar
      rjeffman: this is a fixup for infra/images/build.sh · fb6fed58
      Rafael Guterres Jeffman authored
      This patch modifies the image building script by adding:
      
      - An usage message.
      - An option "-I" to NOT install IPA to the generated container.
      - An opiton "-c NAME" to both set the name and use an existing container
        to ONLY install IPA.
      - Rename "scenario" to "DISTRO" as "scenario" should be used for the
        container scenario usage, rather than the distro (I'll change the name
        also in the Azure scripts)
      - Use 'log' (from shlog) to print messages.
      fb6fed58
    • Rafael Guterres Jeffman's avatar
      Add shell utitily functions for scripts · b0e03a03
      Rafael Guterres Jeffman authored
      Add two shell libaries with utilities to write shell scripts.
      
      The 'utils/shlog' file provides macro names for ANSI escape sequences to
      control color output on terminals, a 'log' functions with pre-defined
      behavior for ERROR, WARN, DEBUG, INFO and SUCCESS level messages, and
      the 'quiet' function which executes a command and hides its output.
      
      The 'utils/shfun' file provides an interruptinon handler for SIGINT, and
      the following functions:
      
      - run_if_exists: run a command if it is available
      - cleanup: cleanup environment, possibly stopping a container and a
        Python virtual environment.
      - start_virtual_environmnt: initiates a Python virtual environment
      - in_python_virtualenv: test if the script is running inside a Python
        virtual environment
      - die: abort the script with an error message end exit code 1
      
      New files:
      
        - utils/shlog
        - utils/shfun
      b0e03a03
    • Thomas Woerner's avatar
      tests/azure/templates/build_container.yml: Use new image builder · 7ac0ec6b
      Thomas Woerner authored
      The new infra/image/build.sh script is used instead of molecule.
      7ac0ec6b
    • Thomas Woerner's avatar
      New image builder without molecule using podman · 8153239e
      Thomas Woerner authored
      The new image builder is not using molecule and uses podman directly for
      the generation of the ansible-test images.
      
      Two additional services are installed to simplify the use of the
      container in the test:
      
      - fixnet.service uses /root/fixnet.sh to fix IP address of the server in
        /etc/hosts and to set localhost as the nameserver.
        This service is executed before IPA is started. This eliminates the
        need to restart the IPA server after the container has been started
        and the IPs have been fixed.
      - fixipaip.service uses /root/fixipaip.sh to fix the IP address of the
        IPA dnsrecords of server and ipa-ca.
      
      With these services it is now only needed to wait till all services in
      the container are started. There is no need to restart the IPA server
      anymore. Simply use something like this before starting the tests:
      
          while [ -n "$(podman exec ansible-test systemctl list-jobs | grep -vi 'no jobs running')" ]; do echo "waiting.."; sleep 5; done
      
      New files
      - infra/image/build.sh
      - infra/image/dockerfile/c8s
      - infra/image/dockerfile/c9s
      - infra/image/dockerfile/c10s
      - infra/image/dockerfile/fedora-latest
      - infra/image/dockerfile/fedora-rawhide
      - infra/image/inventory
      - infra/image/system-service/fixipaip.service
      - infra/image/system-service/fixipaip.sh
      - infra/image/system-service/fixnet.service
      - infra/image/system-service/fixnet.sh
      8153239e
  7. Jul 30, 2024
  8. Jul 22, 2024
  9. Jul 20, 2024
  10. Jul 19, 2024
  11. Jul 17, 2024
    • Thomas Woerner's avatar
      Truncate stdout and stderr in upstream test log · 3dfa026e
      Thomas Woerner authored
      Truncate stdout and stderr in the way that it hopefully shows all
      important information. At least 15 lines of stdout (Ansible tasks) and
      remaining from stderr to fill up to maxlen size.
      
      The test log mostly only showed lines from stderr as the log was a
      concatenation of stdout and stderr and only the last 2500 chars of this
      have been used. This was hiding the test result from stdout and failures
      have not beeen visible.
      3dfa026e
  12. Jul 01, 2024
Loading