Skip to content

Fixes #38219 - fix Ansible Tower API path based on AAP version #2490

Fixes #38219 - fix Ansible Tower API path based on AAP version

Fixes #38219 - fix Ansible Tower API path based on AAP version #2490

Triggered via pull request February 20, 2025 13:42
Status Failure
Total duration 29m 58s
Artifacts 32

foreman.yml

on: pull_request
Setup matrix
4s
Setup matrix
Katello  /  Setup matrix
3s
Katello / Setup matrix
Matrix: tests
Matrix: Katello / existing-database
Matrix: Katello / test
Katello  /  Test suite
3s
Katello / Test suite
Test suite
1s
Test suite
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 15 warnings
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L39
Failure: test_0047_rendered ansible_tower_callback_script template should match snapshots Rendered template ansible_tower_callback_script did not match the snapshot.. --- expected +++ actual @@ -1,6 +1,14 @@ "#!/bin/sh echo \"Calling Ansible AWX/Tower provisioning callback...\" -/usr/bin/curl -v -k -s --data \"host_config_key=\" https:///api/v2/job_templates//callback/ + +# Query the AC version +if [ $(echo \"$(curl -k -s https:///api/v2/ping/ | jq -r .version | cut -d. -f1,2) >= 4.6\" | bc) -eq 1 ]; then +api_base='/api/controller/v2/job_templates/' +else +api_base='/api/v2/job_templates/' +fi + +/usr/bin/curl -v -k -s --data \"host_config_key=\" https://${api_base}/callback/ echo \"DONE\" "
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L39
Failure: test_0029_rendered Kickstart default finish template should match snapshots Rendered template Kickstart default finish did not match the snapshot.. --- expected +++ actual @@ -1 +1 @@ -"\n\n\n\n\n\n\n\necho \"Updating system time\"\nsystemctl enable --now chronyd\n/usr/bin/chronyc -a makestep\n/usr/sbin/hwclock --systohc\n\n\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n\n# registration_type = 'subscription_manager'\n \n echo \"##############################################################\"\n echo \"################# SUBSCRIPTION MANAGER #######################\"\n echo \"##############################################################\"\n echo\n echo \"Starting the subscription-manager registration process\"\n\n # Set up subscription-manager\n # Select package manager for the OS (sets the $PKG_MANAGER* variables)\nif [ -z \"$PKG_MANAGER\" ]; then\n if [ -f /etc/os-release ] ; then\n . /etc/os-release\n fi\n \n if [ \"${NAME%.*}\" = 'FreeBSD' ]; then\n PKG_MANAGER='pkg'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} delete -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} install -y\"\n elif [ -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/amazon-linux-release -o -f /etc/system-release ]; then\n PKG_MANAGER='dnf'\n if [ -f /etc/redhat-release -a \"${VERSION_ID%.*}\" -le 7 ]; then\n PKG_MANAGER='yum'\n elif [ -f /etc/system-release ]; then\n PKG_MANAGER='yum'\n fi\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} upgrade -y\"\n elif [ -f /etc/debian_version ]; then\n PKG_MANAGER='apt-get'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y\"\n elif [ -f /etc/arch-release ]; then\n PKG_MANAGER='pacman'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --noconfirm -S\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --noconfirm -R\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --noconfirm -S\"\n elif [ x$ID = xopensuse-tumbleweed -o x$ID = xsles ]; then\n PKG_MANAGER='zypper'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --non-interactive install --auto-agree-with-licenses\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --non-interactive remove\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --non-interactive update\"\n fi\nfi\n\n# Define the path to rhsm.conf\nRHSM_CFG=/etc/rhsm/rhsm.conf\n\n\n\n# Prepare subscription-manager\nif ! [ -x \"$(command -v subscription-manager)\" ] ; then\n $PKG_MANAGER_INSTALL subscription-manager\nelse\n echo \"subscription-manager is already installed!\"\n \nfi\n\n# Check if rhsm.conf exists\nif ! [ -f $RHSM_CFG ] ; then\n echo \"'$RHSM_CFG' not found, cannot configure subscription-manager\"\n exit 1\nfi\n\n\n# Configure subscription-manager\ntest -f $RHSM_CFG.bak || cp $RHSM_CFG $RHSM_CFG.bak\nsubscription-manager config \\\n --server.hostname=\"subscription.rhsm.redhat.com\" \\\n --server.port=\"443\" \\\n --server.prefix=\"/subscription\" \\\n --rhsm.repo_ca_cert=\"/etc/rhsm/ca/redhat-uep.pem\" \\\n --rhsm.baseurl=\"https://cdn.redhat.com\"\n\n# Older versions of subscription manager may not recognize\n# report_package_profile and package_profile_on_trans options.\n# So set them separately and redirect out & error to /dev/null\n# to fail silently.\nsubscription-manager config --rhsm.package_profile_on_trans=1 > /dev/null 2>&1 || true\nsubscription-manager config --rhsm.report_package_profile=1 > /dev/null 2>&1 || true\n\n# Configuration for EL6\nif grep --quiet full_refresh_on_yum $RHSM_CFG; then\n sed -i \"s/full_refresh_on_yum\\s*=.*$/full_refresh_on_yum = 1/g\" $RHSM_CFG\nelse\n full_refresh_config=\"#config for on-premise management\\nfull_refresh_on_yum = 1\"\n sed -i \"/baseurl/a $full_refresh_config\" $RHSM_CFG\nfi\n\n# Restart
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L39
Failure: test_0036_rendered Preseed default finish template should match snapshots Rendered template Preseed default finish did not match the snapshot.. --- expected +++ actual @@ -96,6 +96,14 @@ EOF cat << EOF-2929810d > /etc/systemd/system/ansible-callback.service + +# Query the AC version +if [ $(echo \"$(curl -k -s https:///api/v2/ping/ | jq -r .version | cut -d. -f1,2) >= 4.6\" | bc) -eq 1 ]; then +api_base='/api/controller/v2/job_templates/' +else +api_base='/api/v2/job_templates/' +fi + [Unit] Description=Provisioning callback to Ansible Tower Wants=network-online.target @@ -103,7 +111,7 @@ [Service] Type=oneshot -ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https:///api/v2/job_templates//callback/ +ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https://${api_base}/callback/ ExecStartPost=/usr/bin/systemctl disable ansible-callback [Install]
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L39
Failure: test_0028_rendered Kickstart default template should match snapshots Rendered template Kickstart default did not match the snapshot.. --- expected +++ actual @@ -1 +1 @@ -"# This kickstart file was rendered from the Foreman provisioning template \"Kickstart default\".\n# for snapshot-ipv4-dhcp-el7 running CentOS 7 x86_64\n# Organization: Organization 1\n# Location: Location 1\n\ninstall\n\nurl --url http://mirror.centos.org/centos/7/os/x86_64\n\n\nlang en_US.UTF-8\nselinux --enforcing\nkeyboard us\n\nnetwork --device=00-f0-54-1a-7e-e0 --hostname snapshot-ipv4-dhcp-el7 --noipv6 --mtu=1142 --bootproto dhcp --nameserver=192.168.42.2,192.168.42.3\n\nrootpw --iscrypted $1$rtd8Ub7R$5Ohzuy8WXlkaK9cA2T1wb0\nfirewall --service=ssh\nauthconfig --useshadow --passalgo=sha512 --kickstart\ntimezone --utc UTC \n\nservices --disabled gpm,sendmail,cups,pcmcia,isdn,rawdevices,hpoj,bluetooth,openibd,avahi-daemon,avahi-dnsconfd,hidd,hplip,pcscd\n\n\n\nbootloader --location=mbr --append=\"nofb quiet splash=quiet\" \n\nzerombr\nclearpart --all --initlabel\npart /boot --fstype ext3 --size=100 --asprimary\npart / --fstype ext3 --size=1024 --grow\npart swap --recommended\n\nskipx\ntext\nreboot\n\n%packages\n\nyum\ndhclient\nchrony\n-ntp\nwget\ndracut-fips\n-prelink\n\n%end\n\n\n%post --nochroot\nexec < /dev/tty3 > /dev/tty3\nchvt 3\n(\n\n\n\nchvt 1\n) 2>&1 | tee /mnt/sysimage/root/install.postnochroot.log\n%end\n\n\n%post\nexec < /dev/tty3 > /dev/tty3\nchvt 3\n(\nlogger \"Starting anaconda snapshot-ipv4-dhcp-el7 postinstall\"\n\necho \"Updating system time\"\nsystemctl enable --now chronyd\n/usr/bin/chronyc -a makestep\n/usr/sbin/hwclock --systohc\n\n\n\n\n\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n\n# registration_type = 'subscription_manager'\n \n echo \"##############################################################\"\n echo \"################# SUBSCRIPTION MANAGER #######################\"\n echo \"##############################################################\"\n echo\n echo \"Starting the subscription-manager registration process\"\n\n # Set up subscription-manager\n # Select package manager for the OS (sets the $PKG_MANAGER* variables)\nif [ -z \"$PKG_MANAGER\" ]; then\n if [ -f /etc/os-release ] ; then\n . /etc/os-release\n fi\n \n if [ \"${NAME%.*}\" = 'FreeBSD' ]; then\n PKG_MANAGER='pkg'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} delete -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} install -y\"\n elif [ -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/amazon-linux-release -o -f /etc/system-release ]; then\n PKG_MANAGER='dnf'\n if [ -f /etc/redhat-release -a \"${VERSION_ID%.*}\" -le 7 ]; then\n PKG_MANAGER='yum'\n elif [ -f /etc/system-release ]; then\n PKG_MANAGER='yum'\n fi\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} upgrade -y\"\n elif [ -f /etc/debian_version ]; then\n PKG_MANAGER='apt-get'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y\"\n elif [ -f /etc/arch-release ]; then\n PKG_MANAGER='pacman'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --noconfirm -S\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --noconfirm -R\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --noconfirm -S\"\n elif [ x$ID = xopensuse-tumbleweed -o x$ID = xsles ]; then\n PKG_MANAGER='zypper'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --non-interactive install --auto-agree-with-licenses\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --non-interactive remove\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --non-interactive update\"\n fi\nfi\n\n# Define the path to rhsm.conf\nRHSM_CFG=/etc/rhsm/rhsm.conf\n\n\n\n# Prepare subscription-manager\nif ! [ -x \"$(command -v subscription-man
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L39
Failure: test_0048_rendered ansible_tower_callback_service template should match snapshots Rendered template ansible_tower_callback_service did not match the snapshot.. --- expected +++ actual @@ -1,11 +1,19 @@ -"[Unit] +" +# Query the AC version +if [ $(echo \"$(curl -k -s https:///api/v2/ping/ | jq -r .version | cut -d. -f1,2) >= 4.6\" | bc) -eq 1 ]; then +api_base='/api/controller/v2/job_templates/' +else +api_base='/api/v2/job_templates/' +fi + +[Unit] Description=Provisioning callback to Ansible Tower Wants=network-online.target After=network-online.target [Service] Type=oneshot -ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https:///api/v2/job_templates//callback/ +ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https://${api_base}/callback/ ExecStartPost=/usr/bin/systemctl disable ansible-callback [Install]
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L39
Failure: test_0033_rendered Kickstart default user data template should match snapshots Rendered template Kickstart default user data did not match the snapshot.. --- expected +++ actual @@ -1 +1 @@ -"#!/bin/bash\n\n\necho \"\" > /etc/hostname\n\nhostname \n\ncat > /etc/hosts << EOF\n127.0.0.1 snapshot-ipv4-dhcp-el7 localhost localhost.localdomain\n::1 ip6-localhost ip6-loopback\nfe00::0 ip6-localnet\nff00::0 ip6-mcastprefix\nff02::1 ip6-allnodes\nff02::2 ip6-allrouters\nEOF\n\n\n\n\n\n\n\necho \"Updating system time\"\nsystemctl enable --now chronyd\n/usr/bin/chronyc -a makestep\n/usr/sbin/hwclock --systohc\n\n\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n\n# registration_type = 'subscription_manager'\n \n echo \"##############################################################\"\n echo \"################# SUBSCRIPTION MANAGER #######################\"\n echo \"##############################################################\"\n echo\n echo \"Starting the subscription-manager registration process\"\n\n # Set up subscription-manager\n # Select package manager for the OS (sets the $PKG_MANAGER* variables)\nif [ -z \"$PKG_MANAGER\" ]; then\n if [ -f /etc/os-release ] ; then\n . /etc/os-release\n fi\n \n if [ \"${NAME%.*}\" = 'FreeBSD' ]; then\n PKG_MANAGER='pkg'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} delete -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} install -y\"\n elif [ -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/amazon-linux-release -o -f /etc/system-release ]; then\n PKG_MANAGER='dnf'\n if [ -f /etc/redhat-release -a \"${VERSION_ID%.*}\" -le 7 ]; then\n PKG_MANAGER='yum'\n elif [ -f /etc/system-release ]; then\n PKG_MANAGER='yum'\n fi\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} upgrade -y\"\n elif [ -f /etc/debian_version ]; then\n PKG_MANAGER='apt-get'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y\"\n elif [ -f /etc/arch-release ]; then\n PKG_MANAGER='pacman'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --noconfirm -S\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --noconfirm -R\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --noconfirm -S\"\n elif [ x$ID = xopensuse-tumbleweed -o x$ID = xsles ]; then\n PKG_MANAGER='zypper'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --non-interactive install --auto-agree-with-licenses\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --non-interactive remove\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --non-interactive update\"\n fi\nfi\n\n# Define the path to rhsm.conf\nRHSM_CFG=/etc/rhsm/rhsm.conf\n\n\n\n# Prepare subscription-manager\nif ! [ -x \"$(command -v subscription-manager)\" ] ; then\n $PKG_MANAGER_INSTALL subscription-manager\nelse\n echo \"subscription-manager is already installed!\"\n \nfi\n\n# Check if rhsm.conf exists\nif ! [ -f $RHSM_CFG ] ; then\n echo \"'$RHSM_CFG' not found, cannot configure subscription-manager\"\n exit 1\nfi\n\n\n# Configure subscription-manager\ntest -f $RHSM_CFG.bak || cp $RHSM_CFG $RHSM_CFG.bak\nsubscription-manager config \\\n --server.hostname=\"subscription.rhsm.redhat.com\" \\\n --server.port=\"443\" \\\n --server.prefix=\"/subscription\" \\\n --rhsm.repo_ca_cert=\"/etc/rhsm/ca/redhat-uep.pem\" \\\n --rhsm.baseurl=\"https://cdn.redhat.com\"\n\n# Older versions of subscription manager may not recognize\n# report_package_profile and package_profile_on_trans options.\n# So set them separately and redirect out & error to /dev/null\n# to fail silently.\nsubscription-manager config --rhsm.package_profile_on_trans=1 > /dev/null 2>&1 || true\nsubscription-manager config --rhsm.report_package_profile=1 > /dev/null 2>&1 || true\n\n# Configuration for EL6\nif gre
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L27
Failure: test_0047_rendered ansible_tower_callback_script template should match snapshots Rendered template ansible_tower_callback_script did not match the snapshot.. --- expected +++ actual @@ -1,6 +1,14 @@ "#!/bin/sh echo \"Calling Ansible AWX/Tower provisioning callback...\" -/usr/bin/curl -v -k -s --data \"host_config_key=\" https:///api/v2/job_templates//callback/ + +# Query the AC version +if [ $(echo \"$(curl -k -s https:///api/v2/ping/ | jq -r .version | cut -d. -f1,2) >= 4.6\" | bc) -eq 1 ]; then +api_base='/api/controller/v2/job_templates/' +else +api_base='/api/v2/job_templates/' +fi + +/usr/bin/curl -v -k -s --data \"host_config_key=\" https://${api_base}/callback/ echo \"DONE\" "
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L27
Failure: test_0029_rendered Kickstart default finish template should match snapshots Rendered template Kickstart default finish did not match the snapshot.. --- expected +++ actual @@ -1 +1 @@ -"\n\n\n\n\n\n\n\necho \"Updating system time\"\nsystemctl enable --now chronyd\n/usr/bin/chronyc -a makestep\n/usr/sbin/hwclock --systohc\n\n\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n\n# registration_type = 'subscription_manager'\n \n echo \"##############################################################\"\n echo \"################# SUBSCRIPTION MANAGER #######################\"\n echo \"##############################################################\"\n echo\n echo \"Starting the subscription-manager registration process\"\n\n # Set up subscription-manager\n # Select package manager for the OS (sets the $PKG_MANAGER* variables)\nif [ -z \"$PKG_MANAGER\" ]; then\n if [ -f /etc/os-release ] ; then\n . /etc/os-release\n fi\n \n if [ \"${NAME%.*}\" = 'FreeBSD' ]; then\n PKG_MANAGER='pkg'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} delete -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} install -y\"\n elif [ -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/amazon-linux-release -o -f /etc/system-release ]; then\n PKG_MANAGER='dnf'\n if [ -f /etc/redhat-release -a \"${VERSION_ID%.*}\" -le 7 ]; then\n PKG_MANAGER='yum'\n elif [ -f /etc/system-release ]; then\n PKG_MANAGER='yum'\n fi\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} upgrade -y\"\n elif [ -f /etc/debian_version ]; then\n PKG_MANAGER='apt-get'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y\"\n elif [ -f /etc/arch-release ]; then\n PKG_MANAGER='pacman'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --noconfirm -S\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --noconfirm -R\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --noconfirm -S\"\n elif [ x$ID = xopensuse-tumbleweed -o x$ID = xsles ]; then\n PKG_MANAGER='zypper'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --non-interactive install --auto-agree-with-licenses\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --non-interactive remove\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --non-interactive update\"\n fi\nfi\n\n# Define the path to rhsm.conf\nRHSM_CFG=/etc/rhsm/rhsm.conf\n\n\n\n# Prepare subscription-manager\nif ! [ -x \"$(command -v subscription-manager)\" ] ; then\n $PKG_MANAGER_INSTALL subscription-manager\nelse\n echo \"subscription-manager is already installed!\"\n \nfi\n\n# Check if rhsm.conf exists\nif ! [ -f $RHSM_CFG ] ; then\n echo \"'$RHSM_CFG' not found, cannot configure subscription-manager\"\n exit 1\nfi\n\n\n# Configure subscription-manager\ntest -f $RHSM_CFG.bak || cp $RHSM_CFG $RHSM_CFG.bak\nsubscription-manager config \\\n --server.hostname=\"subscription.rhsm.redhat.com\" \\\n --server.port=\"443\" \\\n --server.prefix=\"/subscription\" \\\n --rhsm.repo_ca_cert=\"/etc/rhsm/ca/redhat-uep.pem\" \\\n --rhsm.baseurl=\"https://cdn.redhat.com\"\n\n# Older versions of subscription manager may not recognize\n# report_package_profile and package_profile_on_trans options.\n# So set them separately and redirect out & error to /dev/null\n# to fail silently.\nsubscription-manager config --rhsm.package_profile_on_trans=1 > /dev/null 2>&1 || true\nsubscription-manager config --rhsm.report_package_profile=1 > /dev/null 2>&1 || true\n\n# Configuration for EL6\nif grep --quiet full_refresh_on_yum $RHSM_CFG; then\n sed -i \"s/full_refresh_on_yum\\s*=.*$/full_refresh_on_yum = 1/g\" $RHSM_CFG\nelse\n full_refresh_config=\"#config for on-premise management\\nfull_refresh_on_yum = 1\"\n sed -i \"/baseurl/a $full_refresh_config\" $RHSM_CFG\nfi\n\n# Restart
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L27
Failure: test_0036_rendered Preseed default finish template should match snapshots Rendered template Preseed default finish did not match the snapshot.. --- expected +++ actual @@ -96,6 +96,14 @@ EOF cat << EOF-2929810d > /etc/systemd/system/ansible-callback.service + +# Query the AC version +if [ $(echo \"$(curl -k -s https:///api/v2/ping/ | jq -r .version | cut -d. -f1,2) >= 4.6\" | bc) -eq 1 ]; then +api_base='/api/controller/v2/job_templates/' +else +api_base='/api/v2/job_templates/' +fi + [Unit] Description=Provisioning callback to Ansible Tower Wants=network-online.target @@ -103,7 +111,7 @@ [Service] Type=oneshot -ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https:///api/v2/job_templates//callback/ +ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https://${api_base}/callback/ ExecStartPost=/usr/bin/systemctl disable ansible-callback [Install]
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L27
Failure: test_0028_rendered Kickstart default template should match snapshots Rendered template Kickstart default did not match the snapshot.. --- expected +++ actual @@ -1 +1 @@ -"# This kickstart file was rendered from the Foreman provisioning template \"Kickstart default\".\n# for snapshot-ipv4-dhcp-el7 running CentOS 7 x86_64\n# Organization: Organization 1\n# Location: Location 1\n\ninstall\n\nurl --url http://mirror.centos.org/centos/7/os/x86_64\n\n\nlang en_US.UTF-8\nselinux --enforcing\nkeyboard us\n\nnetwork --device=00-f0-54-1a-7e-e0 --hostname snapshot-ipv4-dhcp-el7 --noipv6 --mtu=1142 --bootproto dhcp --nameserver=192.168.42.2,192.168.42.3\n\nrootpw --iscrypted $1$rtd8Ub7R$5Ohzuy8WXlkaK9cA2T1wb0\nfirewall --service=ssh\nauthconfig --useshadow --passalgo=sha512 --kickstart\ntimezone --utc UTC \n\nservices --disabled gpm,sendmail,cups,pcmcia,isdn,rawdevices,hpoj,bluetooth,openibd,avahi-daemon,avahi-dnsconfd,hidd,hplip,pcscd\n\n\n\nbootloader --location=mbr --append=\"nofb quiet splash=quiet\" \n\nzerombr\nclearpart --all --initlabel\npart /boot --fstype ext3 --size=100 --asprimary\npart / --fstype ext3 --size=1024 --grow\npart swap --recommended\n\nskipx\ntext\nreboot\n\n%packages\n\nyum\ndhclient\nchrony\n-ntp\nwget\ndracut-fips\n-prelink\n\n%end\n\n\n%post --nochroot\nexec < /dev/tty3 > /dev/tty3\nchvt 3\n(\n\n\n\nchvt 1\n) 2>&1 | tee /mnt/sysimage/root/install.postnochroot.log\n%end\n\n\n%post\nexec < /dev/tty3 > /dev/tty3\nchvt 3\n(\nlogger \"Starting anaconda snapshot-ipv4-dhcp-el7 postinstall\"\n\necho \"Updating system time\"\nsystemctl enable --now chronyd\n/usr/bin/chronyc -a makestep\n/usr/sbin/hwclock --systohc\n\n\n\n\n\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n\n# registration_type = 'subscription_manager'\n \n echo \"##############################################################\"\n echo \"################# SUBSCRIPTION MANAGER #######################\"\n echo \"##############################################################\"\n echo\n echo \"Starting the subscription-manager registration process\"\n\n # Set up subscription-manager\n # Select package manager for the OS (sets the $PKG_MANAGER* variables)\nif [ -z \"$PKG_MANAGER\" ]; then\n if [ -f /etc/os-release ] ; then\n . /etc/os-release\n fi\n \n if [ \"${NAME%.*}\" = 'FreeBSD' ]; then\n PKG_MANAGER='pkg'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} delete -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} install -y\"\n elif [ -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/amazon-linux-release -o -f /etc/system-release ]; then\n PKG_MANAGER='dnf'\n if [ -f /etc/redhat-release -a \"${VERSION_ID%.*}\" -le 7 ]; then\n PKG_MANAGER='yum'\n elif [ -f /etc/system-release ]; then\n PKG_MANAGER='yum'\n fi\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} upgrade -y\"\n elif [ -f /etc/debian_version ]; then\n PKG_MANAGER='apt-get'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y\"\n elif [ -f /etc/arch-release ]; then\n PKG_MANAGER='pacman'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --noconfirm -S\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --noconfirm -R\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --noconfirm -S\"\n elif [ x$ID = xopensuse-tumbleweed -o x$ID = xsles ]; then\n PKG_MANAGER='zypper'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --non-interactive install --auto-agree-with-licenses\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --non-interactive remove\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --non-interactive update\"\n fi\nfi\n\n# Define the path to rhsm.conf\nRHSM_CFG=/etc/rhsm/rhsm.conf\n\n\n\n# Prepare subscription-manager\nif ! [ -x \"$(command -v subscription-man
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L27
Failure: test_0033_rendered Kickstart default user data template should match snapshots Rendered template Kickstart default user data did not match the snapshot.. --- expected +++ actual @@ -1 +1 @@ -"#!/bin/bash\n\n\necho \"\" > /etc/hostname\n\nhostname \n\ncat > /etc/hosts << EOF\n127.0.0.1 snapshot-ipv4-dhcp-el7 localhost localhost.localdomain\n::1 ip6-localhost ip6-loopback\nfe00::0 ip6-localnet\nff00::0 ip6-mcastprefix\nff02::1 ip6-allnodes\nff02::2 ip6-allrouters\nEOF\n\n\n\n\n\n\n\necho \"Updating system time\"\nsystemctl enable --now chronyd\n/usr/bin/chronyc -a makestep\n/usr/sbin/hwclock --systohc\n\n\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n\n# registration_type = 'subscription_manager'\n \n echo \"##############################################################\"\n echo \"################# SUBSCRIPTION MANAGER #######################\"\n echo \"##############################################################\"\n echo\n echo \"Starting the subscription-manager registration process\"\n\n # Set up subscription-manager\n # Select package manager for the OS (sets the $PKG_MANAGER* variables)\nif [ -z \"$PKG_MANAGER\" ]; then\n if [ -f /etc/os-release ] ; then\n . /etc/os-release\n fi\n \n if [ \"${NAME%.*}\" = 'FreeBSD' ]; then\n PKG_MANAGER='pkg'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} delete -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} install -y\"\n elif [ -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/amazon-linux-release -o -f /etc/system-release ]; then\n PKG_MANAGER='dnf'\n if [ -f /etc/redhat-release -a \"${VERSION_ID%.*}\" -le 7 ]; then\n PKG_MANAGER='yum'\n elif [ -f /etc/system-release ]; then\n PKG_MANAGER='yum'\n fi\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} upgrade -y\"\n elif [ -f /etc/debian_version ]; then\n PKG_MANAGER='apt-get'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y\"\n elif [ -f /etc/arch-release ]; then\n PKG_MANAGER='pacman'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --noconfirm -S\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --noconfirm -R\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --noconfirm -S\"\n elif [ x$ID = xopensuse-tumbleweed -o x$ID = xsles ]; then\n PKG_MANAGER='zypper'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --non-interactive install --auto-agree-with-licenses\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --non-interactive remove\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --non-interactive update\"\n fi\nfi\n\n# Define the path to rhsm.conf\nRHSM_CFG=/etc/rhsm/rhsm.conf\n\n\n\n# Prepare subscription-manager\nif ! [ -x \"$(command -v subscription-manager)\" ] ; then\n $PKG_MANAGER_INSTALL subscription-manager\nelse\n echo \"subscription-manager is already installed!\"\n \nfi\n\n# Check if rhsm.conf exists\nif ! [ -f $RHSM_CFG ] ; then\n echo \"'$RHSM_CFG' not found, cannot configure subscription-manager\"\n exit 1\nfi\n\n\n# Configure subscription-manager\ntest -f $RHSM_CFG.bak || cp $RHSM_CFG $RHSM_CFG.bak\nsubscription-manager config \\\n --server.hostname=\"subscription.rhsm.redhat.com\" \\\n --server.port=\"443\" \\\n --server.prefix=\"/subscription\" \\\n --rhsm.repo_ca_cert=\"/etc/rhsm/ca/redhat-uep.pem\" \\\n --rhsm.baseurl=\"https://cdn.redhat.com\"\n\n# Older versions of subscription manager may not recognize\n# report_package_profile and package_profile_on_trans options.\n# So set them separately and redirect out & error to /dev/null\n# to fail silently.\nsubscription-manager config --rhsm.package_profile_on_trans=1 > /dev/null 2>&1 || true\nsubscription-manager config --rhsm.report_package_profile=1 > /dev/null 2>&1 || true\n\n# Configuration for EL6\nif gre
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L27
Failure: test_0036_rendered Preseed default finish template should match snapshots Rendered template Preseed default finish did not match the snapshot.. --- expected +++ actual @@ -96,6 +96,14 @@ EOF cat << EOF-2929810d > /etc/systemd/system/ansible-callback.service + +# Query the AC version +if [ $(echo \"$(curl -k -s https:///api/v2/ping/ | jq -r .version | cut -d. -f1,2) >= 4.6\" | bc) -eq 1 ]; then +api_base='/api/controller/v2/job_templates/' +else +api_base='/api/v2/job_templates/' +fi + [Unit] Description=Provisioning callback to Ansible Tower Wants=network-online.target @@ -103,7 +111,7 @@ [Service] Type=oneshot -ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https:///api/v2/job_templates//callback/ +ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https://${api_base}/callback/ ExecStartPost=/usr/bin/systemctl disable ansible-callback [Install]
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L27
Failure: test_0048_rendered ansible_tower_callback_service template should match snapshots Rendered template ansible_tower_callback_service did not match the snapshot.. --- expected +++ actual @@ -1,11 +1,19 @@ -"[Unit] +" +# Query the AC version +if [ $(echo \"$(curl -k -s https:///api/v2/ping/ | jq -r .version | cut -d. -f1,2) >= 4.6\" | bc) -eq 1 ]; then +api_base='/api/controller/v2/job_templates/' +else +api_base='/api/v2/job_templates/' +fi + +[Unit] Description=Provisioning callback to Ansible Tower Wants=network-online.target After=network-online.target [Service] Type=oneshot -ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https:///api/v2/job_templates//callback/ +ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https://${api_base}/callback/ ExecStartPost=/usr/bin/systemctl disable ansible-callback [Install]
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L27
Failure: test_0029_rendered Kickstart default finish template should match snapshots Rendered template Kickstart default finish did not match the snapshot.. --- expected +++ actual @@ -1 +1 @@ -"\n\n\n\n\n\n\n\necho \"Updating system time\"\nsystemctl enable --now chronyd\n/usr/bin/chronyc -a makestep\n/usr/sbin/hwclock --systohc\n\n\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n\n# registration_type = 'subscription_manager'\n \n echo \"##############################################################\"\n echo \"################# SUBSCRIPTION MANAGER #######################\"\n echo \"##############################################################\"\n echo\n echo \"Starting the subscription-manager registration process\"\n\n # Set up subscription-manager\n # Select package manager for the OS (sets the $PKG_MANAGER* variables)\nif [ -z \"$PKG_MANAGER\" ]; then\n if [ -f /etc/os-release ] ; then\n . /etc/os-release\n fi\n \n if [ \"${NAME%.*}\" = 'FreeBSD' ]; then\n PKG_MANAGER='pkg'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} delete -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} install -y\"\n elif [ -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/amazon-linux-release -o -f /etc/system-release ]; then\n PKG_MANAGER='dnf'\n if [ -f /etc/redhat-release -a \"${VERSION_ID%.*}\" -le 7 ]; then\n PKG_MANAGER='yum'\n elif [ -f /etc/system-release ]; then\n PKG_MANAGER='yum'\n fi\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} upgrade -y\"\n elif [ -f /etc/debian_version ]; then\n PKG_MANAGER='apt-get'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y\"\n elif [ -f /etc/arch-release ]; then\n PKG_MANAGER='pacman'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --noconfirm -S\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --noconfirm -R\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --noconfirm -S\"\n elif [ x$ID = xopensuse-tumbleweed -o x$ID = xsles ]; then\n PKG_MANAGER='zypper'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --non-interactive install --auto-agree-with-licenses\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --non-interactive remove\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --non-interactive update\"\n fi\nfi\n\n# Define the path to rhsm.conf\nRHSM_CFG=/etc/rhsm/rhsm.conf\n\n\n\n# Prepare subscription-manager\nif ! [ -x \"$(command -v subscription-manager)\" ] ; then\n $PKG_MANAGER_INSTALL subscription-manager\nelse\n echo \"subscription-manager is already installed!\"\n \nfi\n\n# Check if rhsm.conf exists\nif ! [ -f $RHSM_CFG ] ; then\n echo \"'$RHSM_CFG' not found, cannot configure subscription-manager\"\n exit 1\nfi\n\n\n# Configure subscription-manager\ntest -f $RHSM_CFG.bak || cp $RHSM_CFG $RHSM_CFG.bak\nsubscription-manager config \\\n --server.hostname=\"subscription.rhsm.redhat.com\" \\\n --server.port=\"443\" \\\n --server.prefix=\"/subscription\" \\\n --rhsm.repo_ca_cert=\"/etc/rhsm/ca/redhat-uep.pem\" \\\n --rhsm.baseurl=\"https://cdn.redhat.com\"\n\n# Older versions of subscription manager may not recognize\n# report_package_profile and package_profile_on_trans options.\n# So set them separately and redirect out & error to /dev/null\n# to fail silently.\nsubscription-manager config --rhsm.package_profile_on_trans=1 > /dev/null 2>&1 || true\nsubscription-manager config --rhsm.report_package_profile=1 > /dev/null 2>&1 || true\n\n# Configuration for EL6\nif grep --quiet full_refresh_on_yum $RHSM_CFG; then\n sed -i \"s/full_refresh_on_yum\\s*=.*$/full_refresh_on_yum = 1/g\" $RHSM_CFG\nelse\n full_refresh_config=\"#config for on-premise management\\nfull_refresh_on_yum = 1\"\n sed -i \"/baseurl/a $full_refresh_config\" $RHSM_CFG\nfi\n\n# Restart
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L27
Failure: test_0047_rendered ansible_tower_callback_script template should match snapshots Rendered template ansible_tower_callback_script did not match the snapshot.. --- expected +++ actual @@ -1,6 +1,14 @@ "#!/bin/sh echo \"Calling Ansible AWX/Tower provisioning callback...\" -/usr/bin/curl -v -k -s --data \"host_config_key=\" https:///api/v2/job_templates//callback/ + +# Query the AC version +if [ $(echo \"$(curl -k -s https:///api/v2/ping/ | jq -r .version | cut -d. -f1,2) >= 4.6\" | bc) -eq 1 ]; then +api_base='/api/controller/v2/job_templates/' +else +api_base='/api/v2/job_templates/' +fi + +/usr/bin/curl -v -k -s --data \"host_config_key=\" https://${api_base}/callback/ echo \"DONE\" "
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L27
Failure: test_0028_rendered Kickstart default template should match snapshots Rendered template Kickstart default did not match the snapshot.. --- expected +++ actual @@ -1 +1 @@ -"# This kickstart file was rendered from the Foreman provisioning template \"Kickstart default\".\n# for snapshot-ipv4-dhcp-el7 running CentOS 7 x86_64\n# Organization: Organization 1\n# Location: Location 1\n\ninstall\n\nurl --url http://mirror.centos.org/centos/7/os/x86_64\n\n\nlang en_US.UTF-8\nselinux --enforcing\nkeyboard us\n\nnetwork --device=00-f0-54-1a-7e-e0 --hostname snapshot-ipv4-dhcp-el7 --noipv6 --mtu=1142 --bootproto dhcp --nameserver=192.168.42.2,192.168.42.3\n\nrootpw --iscrypted $1$rtd8Ub7R$5Ohzuy8WXlkaK9cA2T1wb0\nfirewall --service=ssh\nauthconfig --useshadow --passalgo=sha512 --kickstart\ntimezone --utc UTC \n\nservices --disabled gpm,sendmail,cups,pcmcia,isdn,rawdevices,hpoj,bluetooth,openibd,avahi-daemon,avahi-dnsconfd,hidd,hplip,pcscd\n\n\n\nbootloader --location=mbr --append=\"nofb quiet splash=quiet\" \n\nzerombr\nclearpart --all --initlabel\npart /boot --fstype ext3 --size=100 --asprimary\npart / --fstype ext3 --size=1024 --grow\npart swap --recommended\n\nskipx\ntext\nreboot\n\n%packages\n\nyum\ndhclient\nchrony\n-ntp\nwget\ndracut-fips\n-prelink\n\n%end\n\n\n%post --nochroot\nexec < /dev/tty3 > /dev/tty3\nchvt 3\n(\n\n\n\nchvt 1\n) 2>&1 | tee /mnt/sysimage/root/install.postnochroot.log\n%end\n\n\n%post\nexec < /dev/tty3 > /dev/tty3\nchvt 3\n(\nlogger \"Starting anaconda snapshot-ipv4-dhcp-el7 postinstall\"\n\necho \"Updating system time\"\nsystemctl enable --now chronyd\n/usr/bin/chronyc -a makestep\n/usr/sbin/hwclock --systohc\n\n\n\n\n\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n\n# registration_type = 'subscription_manager'\n \n echo \"##############################################################\"\n echo \"################# SUBSCRIPTION MANAGER #######################\"\n echo \"##############################################################\"\n echo\n echo \"Starting the subscription-manager registration process\"\n\n # Set up subscription-manager\n # Select package manager for the OS (sets the $PKG_MANAGER* variables)\nif [ -z \"$PKG_MANAGER\" ]; then\n if [ -f /etc/os-release ] ; then\n . /etc/os-release\n fi\n \n if [ \"${NAME%.*}\" = 'FreeBSD' ]; then\n PKG_MANAGER='pkg'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} delete -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} install -y\"\n elif [ -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/amazon-linux-release -o -f /etc/system-release ]; then\n PKG_MANAGER='dnf'\n if [ -f /etc/redhat-release -a \"${VERSION_ID%.*}\" -le 7 ]; then\n PKG_MANAGER='yum'\n elif [ -f /etc/system-release ]; then\n PKG_MANAGER='yum'\n fi\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} upgrade -y\"\n elif [ -f /etc/debian_version ]; then\n PKG_MANAGER='apt-get'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y\"\n elif [ -f /etc/arch-release ]; then\n PKG_MANAGER='pacman'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --noconfirm -S\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --noconfirm -R\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --noconfirm -S\"\n elif [ x$ID = xopensuse-tumbleweed -o x$ID = xsles ]; then\n PKG_MANAGER='zypper'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --non-interactive install --auto-agree-with-licenses\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --non-interactive remove\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --non-interactive update\"\n fi\nfi\n\n# Define the path to rhsm.conf\nRHSM_CFG=/etc/rhsm/rhsm.conf\n\n\n\n# Prepare subscription-manager\nif ! [ -x \"$(command -v subscription-man
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L39
Failure: test_0033_rendered Kickstart default user data template should match snapshots Rendered template Kickstart default user data did not match the snapshot.. --- expected +++ actual @@ -1 +1 @@ -"#!/bin/bash\n\n\necho \"\" > /etc/hostname\n\nhostname \n\ncat > /etc/hosts << EOF\n127.0.0.1 snapshot-ipv4-dhcp-el7 localhost localhost.localdomain\n::1 ip6-localhost ip6-loopback\nfe00::0 ip6-localnet\nff00::0 ip6-mcastprefix\nff02::1 ip6-allnodes\nff02::2 ip6-allrouters\nEOF\n\n\n\n\n\n\n\necho \"Updating system time\"\nsystemctl enable --now chronyd\n/usr/bin/chronyc -a makestep\n/usr/sbin/hwclock --systohc\n\n\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n\n# registration_type = 'subscription_manager'\n \n echo \"##############################################################\"\n echo \"################# SUBSCRIPTION MANAGER #######################\"\n echo \"##############################################################\"\n echo\n echo \"Starting the subscription-manager registration process\"\n\n # Set up subscription-manager\n # Select package manager for the OS (sets the $PKG_MANAGER* variables)\nif [ -z \"$PKG_MANAGER\" ]; then\n if [ -f /etc/os-release ] ; then\n . /etc/os-release\n fi\n \n if [ \"${NAME%.*}\" = 'FreeBSD' ]; then\n PKG_MANAGER='pkg'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} delete -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} install -y\"\n elif [ -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/amazon-linux-release -o -f /etc/system-release ]; then\n PKG_MANAGER='dnf'\n if [ -f /etc/redhat-release -a \"${VERSION_ID%.*}\" -le 7 ]; then\n PKG_MANAGER='yum'\n elif [ -f /etc/system-release ]; then\n PKG_MANAGER='yum'\n fi\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} upgrade -y\"\n elif [ -f /etc/debian_version ]; then\n PKG_MANAGER='apt-get'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y\"\n elif [ -f /etc/arch-release ]; then\n PKG_MANAGER='pacman'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --noconfirm -S\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --noconfirm -R\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --noconfirm -S\"\n elif [ x$ID = xopensuse-tumbleweed -o x$ID = xsles ]; then\n PKG_MANAGER='zypper'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --non-interactive install --auto-agree-with-licenses\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --non-interactive remove\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --non-interactive update\"\n fi\nfi\n\n# Define the path to rhsm.conf\nRHSM_CFG=/etc/rhsm/rhsm.conf\n\n\n\n# Prepare subscription-manager\nif ! [ -x \"$(command -v subscription-manager)\" ] ; then\n $PKG_MANAGER_INSTALL subscription-manager\nelse\n echo \"subscription-manager is already installed!\"\n \nfi\n\n# Check if rhsm.conf exists\nif ! [ -f $RHSM_CFG ] ; then\n echo \"'$RHSM_CFG' not found, cannot configure subscription-manager\"\n exit 1\nfi\n\n\n# Configure subscription-manager\ntest -f $RHSM_CFG.bak || cp $RHSM_CFG $RHSM_CFG.bak\nsubscription-manager config \\\n --server.hostname=\"subscription.rhsm.redhat.com\" \\\n --server.port=\"443\" \\\n --server.prefix=\"/subscription\" \\\n --rhsm.repo_ca_cert=\"/etc/rhsm/ca/redhat-uep.pem\" \\\n --rhsm.baseurl=\"https://cdn.redhat.com\"\n\n# Older versions of subscription manager may not recognize\n# report_package_profile and package_profile_on_trans options.\n# So set them separately and redirect out & error to /dev/null\n# to fail silently.\nsubscription-manager config --rhsm.package_profile_on_trans=1 > /dev/null 2>&1 || true\nsubscription-manager config --rhsm.report_package_profile=1 > /dev/null 2>&1 || true\n\n# Configuration for EL6\nif gre
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L39
Failure: test_0036_rendered Preseed default finish template should match snapshots Rendered template Preseed default finish did not match the snapshot.. --- expected +++ actual @@ -96,6 +96,14 @@ EOF cat << EOF-2929810d > /etc/systemd/system/ansible-callback.service + +# Query the AC version +if [ $(echo \"$(curl -k -s https:///api/v2/ping/ | jq -r .version | cut -d. -f1,2) >= 4.6\" | bc) -eq 1 ]; then +api_base='/api/controller/v2/job_templates/' +else +api_base='/api/v2/job_templates/' +fi + [Unit] Description=Provisioning callback to Ansible Tower Wants=network-online.target @@ -103,7 +111,7 @@ [Service] Type=oneshot -ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https:///api/v2/job_templates//callback/ +ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https://${api_base}/callback/ ExecStartPost=/usr/bin/systemctl disable ansible-callback [Install]
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L39
Failure: test_0048_rendered ansible_tower_callback_service template should match snapshots Rendered template ansible_tower_callback_service did not match the snapshot.. --- expected +++ actual @@ -1,11 +1,19 @@ -"[Unit] +" +# Query the AC version +if [ $(echo \"$(curl -k -s https:///api/v2/ping/ | jq -r .version | cut -d. -f1,2) >= 4.6\" | bc) -eq 1 ]; then +api_base='/api/controller/v2/job_templates/' +else +api_base='/api/v2/job_templates/' +fi + +[Unit] Description=Provisioning callback to Ansible Tower Wants=network-online.target After=network-online.target [Service] Type=oneshot -ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https:///api/v2/job_templates//callback/ +ExecStart=/usr/bin/curl -k -s --data \"host_config_key=\" https://${api_base}/callback/ ExecStartPost=/usr/bin/systemctl disable ansible-callback [Install]
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13: test/unit/foreman/renderer_test.rb#L39
Failure: test_0029_rendered Kickstart default finish template should match snapshots Rendered template Kickstart default finish did not match the snapshot.. --- expected +++ actual @@ -1 +1 @@ -"\n\n\n\n\n\n\n\necho \"Updating system time\"\nsystemctl enable --now chronyd\n/usr/bin/chronyc -a makestep\n/usr/sbin/hwclock --systohc\n\n\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\n\n# registration_type = 'subscription_manager'\n \n echo \"##############################################################\"\n echo \"################# SUBSCRIPTION MANAGER #######################\"\n echo \"##############################################################\"\n echo\n echo \"Starting the subscription-manager registration process\"\n\n # Set up subscription-manager\n # Select package manager for the OS (sets the $PKG_MANAGER* variables)\nif [ -z \"$PKG_MANAGER\" ]; then\n if [ -f /etc/os-release ] ; then\n . /etc/os-release\n fi\n \n if [ \"${NAME%.*}\" = 'FreeBSD' ]; then\n PKG_MANAGER='pkg'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} delete -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} install -y\"\n elif [ -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/amazon-linux-release -o -f /etc/system-release ]; then\n PKG_MANAGER='dnf'\n if [ -f /etc/redhat-release -a \"${VERSION_ID%.*}\" -le 7 ]; then\n PKG_MANAGER='yum'\n elif [ -f /etc/system-release ]; then\n PKG_MANAGER='yum'\n fi\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} upgrade -y\"\n elif [ -f /etc/debian_version ]; then\n PKG_MANAGER='apt-get'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} install -y\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} remove -y\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -o APT::Get::Upgrade-Allow-New='true' upgrade -y\"\n elif [ -f /etc/arch-release ]; then\n PKG_MANAGER='pacman'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --noconfirm -S\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --noconfirm -R\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --noconfirm -S\"\n elif [ x$ID = xopensuse-tumbleweed -o x$ID = xsles ]; then\n PKG_MANAGER='zypper'\n PKG_MANAGER_INSTALL=\"${PKG_MANAGER} --non-interactive install --auto-agree-with-licenses\"\n PKG_MANAGER_REMOVE=\"${PKG_MANAGER} --non-interactive remove\"\n PKG_MANAGER_UPGRADE=\"${PKG_MANAGER} --non-interactive update\"\n fi\nfi\n\n# Define the path to rhsm.conf\nRHSM_CFG=/etc/rhsm/rhsm.conf\n\n\n\n# Prepare subscription-manager\nif ! [ -x \"$(command -v subscription-manager)\" ] ; then\n $PKG_MANAGER_INSTALL subscription-manager\nelse\n echo \"subscription-manager is already installed!\"\n \nfi\n\n# Check if rhsm.conf exists\nif ! [ -f $RHSM_CFG ] ; then\n echo \"'$RHSM_CFG' not found, cannot configure subscription-manager\"\n exit 1\nfi\n\n\n# Configure subscription-manager\ntest -f $RHSM_CFG.bak || cp $RHSM_CFG $RHSM_CFG.bak\nsubscription-manager config \\\n --server.hostname=\"subscription.rhsm.redhat.com\" \\\n --server.port=\"443\" \\\n --server.prefix=\"/subscription\" \\\n --rhsm.repo_ca_cert=\"/etc/rhsm/ca/redhat-uep.pem\" \\\n --rhsm.baseurl=\"https://cdn.redhat.com\"\n\n# Older versions of subscription manager may not recognize\n# report_package_profile and package_profile_on_trans options.\n# So set them separately and redirect out & error to /dev/null\n# to fail silently.\nsubscription-manager config --rhsm.package_profile_on_trans=1 > /dev/null 2>&1 || true\nsubscription-manager config --rhsm.report_package_profile=1 > /dev/null 2>&1 || true\n\n# Configuration for EL6\nif grep --quiet full_refresh_on_yum $RHSM_CFG; then\n sed -i \"s/full_refresh_on_yum\\s*=.*$/full_refresh_on_yum = 1/g\" $RHSM_CFG\nelse\n full_refresh_config=\"#config for on-premise management\\nfull_refresh_on_yum = 1\"\n sed -i \"/baseurl/a $full_refresh_config\" $RHSM_CFG\nfi\n\n# Restart
Test suite
Process completed with exit code 1.
db:seed - Ruby 3.0 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
db:seed - Ruby 2.7 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
Katello / db:seed - Foreman refs/pull/10445/merge with Ruby 3.0 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
test:graphql - Ruby 3.0 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
test:external - Ruby 2.7 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
test:graphql - Ruby 2.7 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
assets:precompile RAILS_ENV=production DATABASE_URL=nulldb://nohost - Ruby 3.0 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
assets:precompile RAILS_ENV=production DATABASE_URL=nulldb://nohost - Ruby 3.0 and Node 18 on PostgreSQL 13
No files were found with the provided path: webpack/assets/javascripts/all_react_app_exports.js. No artifacts will be uploaded.
assets:precompile RAILS_ENV=production DATABASE_URL=nulldb://nohost - Ruby 2.7 and Node 18 on PostgreSQL 13
No files were found with the provided path: webpack/assets/javascripts/all_react_app_exports.js. No artifacts will be uploaded.
Katello / plugin:assets:precompile[katello] RAILS_ENV=production DATABASE_URL=nulldb://nohost - Foreman refs/pull/10445/merge with Ruby 3.0 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
test:functionals - Ruby 2.7 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
test:units - Ruby 2.7 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
webpack:compile test:integration - Ruby 3.0 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
test:units - Ruby 3.0 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
Katello / test:katello - Foreman refs/pull/10445/merge with Ruby 2.7 and Node 18 on PostgreSQL 13
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists

Artifacts

Produced during runtime
Name Size
Gemfile-ruby-2.7-node-18-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.lock
4.7 KB
Gemfile-ruby-2.7-node-18-pg-13-dbseed.lock
4.7 KB
Gemfile-ruby-2.7-node-18-pg-13-testexternal.lock
4.7 KB
Gemfile-ruby-2.7-node-18-pg-13-testfunctionals.lock
4.7 KB
Gemfile-ruby-2.7-node-18-pg-13-testgraphql.lock
4.7 KB
Gemfile-ruby-2.7-node-18-pg-13-testunits.lock
4.7 KB
Gemfile-ruby-2.7-node-18-pg-13-webpackcompiletestintegration.lock
4.7 KB
Gemfile-ruby-27-node-18-pg-13-foreman-refspull10445merge-dbseed.lock
5.48 KB
Gemfile-ruby-27-node-18-pg-13-foreman-refspull10445merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.lock
5.48 KB
Gemfile-ruby-27-node-18-pg-13-foreman-refspull10445merge-testkatello.lock
5.48 KB
Gemfile-ruby-3.0-node-18-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.lock
4.71 KB
Gemfile-ruby-3.0-node-18-pg-13-dbseed.lock
4.71 KB
Gemfile-ruby-3.0-node-18-pg-13-testexternal.lock
4.71 KB
Gemfile-ruby-3.0-node-18-pg-13-testfunctionals.lock
4.71 KB
Gemfile-ruby-3.0-node-18-pg-13-testgraphql.lock
4.71 KB
Gemfile-ruby-3.0-node-18-pg-13-testunits.lock
4.71 KB
Gemfile-ruby-3.0-node-18-pg-13-webpackcompiletestintegration.lock
4.71 KB
Gemfile-ruby-30-node-18-pg-13-foreman-refspull10445merge-dbseed.lock
5.5 KB
Gemfile-ruby-30-node-18-pg-13-foreman-refspull10445merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.lock
5.5 KB
Gemfile-ruby-30-node-18-pg-13-foreman-refspull10445merge-testkatello.lock
5.5 KB
all_react_app_exports-ruby-2.7-node-18-pg-13-webpackcompiletestintegration.js
8.1 KB
all_react_app_exports-ruby-27-node-18-pg-13-foreman-refspull10445merge-testkatello.js
8.1 KB
all_react_app_exports-ruby-3.0-node-18-pg-13-webpackcompiletestintegration.js
8.1 KB
all_react_app_exports-ruby-30-node-18-pg-13-foreman-refspull10445merge-testkatello.js
8.1 KB
package-lock-ruby-2.7-node-18-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.json
227 KB
package-lock-ruby-2.7-node-18-pg-13-webpackcompiletestintegration.json
227 KB
package-lock-ruby-27-node-18-pg-13-foreman-refspull10445merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.json
324 KB
package-lock-ruby-27-node-18-pg-13-foreman-refspull10445merge-testkatello.json
324 KB
package-lock-ruby-3.0-node-18-pg-13-assetsprecompileRAILSENVproductionDATABASEURLnulldbnohost.json
227 KB
package-lock-ruby-3.0-node-18-pg-13-webpackcompiletestintegration.json
227 KB
package-lock-ruby-30-node-18-pg-13-foreman-refspull10445merge-pluginassetsprecompilekatelloRAILSENVproductionDATABASEURLnulldbnohost.json
324 KB
package-lock-ruby-30-node-18-pg-13-foreman-refspull10445merge-testkatello.json
324 KB