redhat-cop / infra.leapp

Collection of Ansible roles for automating RHEL in-place upgrades using Leapp.
MIT License
44 stars 34 forks source link

version check not updating correctly. #114

Closed peterywong closed 12 months ago

peterywong commented 1 year ago

During the post upgrade checks, it does not seem to be getting the correct version.

TASK [infra.leapp.upgrade : Validate current OS major version] *** fatal: [sys-test-nl02]: FAILED! => changed=false assertion: ansible_distribution_major_version == rhel_dest_major_version evaluated_to: false msg: Expected leapp destination OS major version 8 but OS major version is 7.

djdanielsson commented 1 year ago

that is very odd... can you check the task "Collect updated facts" and view that output to see what it sees as the major version there?

peterywong commented 1 year ago

TASK [infra.leapp.upgrade : Collect updated facts] *** ok: [sys-test-nl02]

djdanielsson commented 1 year ago

You will need to run it in verbose mode if you are doing this CLI or you could use navigator to dive deeper into it and see the values in that task

peterywong commented 1 year ago

TASK [infra.leapp.upgrade : Collect updated facts] *** task path: /Users/peter/.ansible/collections/ansible_collections/infra/leapp/roles/upgrade/tasks/upgrade-validation.yml:2 Using module file /opt/homebrew/Cellar/ansible/8.0.0/libexec/lib/python3.11/site-packages/ansible/modules/setup.py Pipelining is enabled.

ESTABLISH SSH CONNECTION FOR USER: root SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o 'ControlPath="/Users/peter/.ansible/cp/5c6ec58be6"' sys-test-nl02 '/bin/sh -c '"'"'/usr/bin/python3 && sleep 0'"'"'' (0, b'\n{"ansible_facts": {"ansible_user_id": "root", "ansible_user_uid": 0, "ansible_user_gid": 0, "ansible_user_gecos": "root", "ansible_user_dir": "/root", "ansible_user_shell": "/bin/bash", "ansible_real_user_id": 0, "ansible_effective_user_id": 0, "ansible_real_group_id": 0, "ansible_effective_group_id": 0, "ansible_distribution": "RedHat", "ansible_distribution_release": "Ootpa", "ansible_distribution_version": "8.8", "ansible_distribution_major_version": "8", "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_file_parsed": true, "ansible_distribution_file_search_string": "Red Hat", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_is_chroot": false, "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDPfPvjcJ23LB3a7f1V+85B57ZlE/2/6jXe8dpP/uW0E75tfkf9EcaM0O7aCT7bkPgXyerimS+TgJV98bVZuSjP7HX9GZ7mTArdYD/SEJoE/62sICo4Lg3Irpv+zal6IbtiwLvLsG8yJ9pdNYS+nK6dDejXENoI3iCY1V+s1r1Nc1Gv5CXQXf2Ite7axa3toyw+EzTkXgtlYQM/twpkx0AWrrhlXc9NzObCYHa2OGTV/fTP2FnNxWcDesjLvW3n2IL6klmAqukhlccE1IqYorhFK5OlVMHfvuJw2HA+hiM2ivBhKo0Y0d8kTy6Ahxhdd4Kh3y0SIoMs2kMCz68ldxk5", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBA/EslC4ywgLqqVTF3IwWFG1DooWIzfRqE54kzZcgSRTh0zWE0MxPrurVcTP0AVL+3mVdE/qScNGCAGNHhiA80c=", "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIGJ6KfEUOgLVmgY0EFxfrnsvrLlZ/S64UC7qRe/FIyrm", "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_system": "Linux", "ansible_kernel": "4.18.0-477.15.1.el8_8.x86_64", "ansible_kernel_version": "#1 SMP Fri Jun 2 08:27:19 EDT 2023", "ansible_machine": "x86_64", "ansible_python_version": "3.6.8", "ansible_fqdn": "sys-test-nl02.ads.ucr.edu", "ansible_hostname": "sys-test-nl02", "ansible_nodename": "sys-test-nl02", "ansible_domain": "ads.ucr.edu", "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_userspace_architecture": "x86_64", "ansible_machine_id": "b44516a68abb48809d68900a024f662c", "ansible_fips": false, "ansible_date_time": {"year": "2023", "month": "08", "weekday": "Friday", "weekday_number": "5", "weeknumber": "31", "day": "04", "hour": "11", "minute": "28", "second": "54", "epoch": "1691173734", "epoch_int": "1691173734", "date": "2023-08-04", "time": "11:28:54", "iso8601_micro": "2023-08-04T18:28:54.288156Z", "iso8601": "2023-08-04T18:28:54Z", "iso8601_basic": "20230804T112854288156", "iso8601_basic_short": "20230804T112854", "tz": "PDT", "tz_dst": "PDT", "tz_offset": "-0700"}, "ansible_dns": {"search": ["ads.ucr.edu"], "nameservers": ["169.235.156.110", "138.23.62.34"]}, "ansible_virtualization_role": "guest", "ansible_virtualization_type": "VMware", "ansible_virtualization_tech_guest": ["VMware"], "ansible_virtualization_tech_host": [], "ansible_python": {"version": {"major": 3, "minor": 6, "micro": 8, "releaselevel": "final", "serial": 0}, "version_info": [3, 6, 8, "final", 0], "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython"}, "ansible_system_capabilities_enforced": "False", "ansible_system_capabilities": [], "ansible_iscsi_iqn": "iqn.1994-05.com.redhat:2ca0cf8f199b", "ansible_processor": ["0", "GenuineIntel", "Intel(R) Xeon(R) Gold 6254 CPU @ 3.10GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) Gold 6254 CPU @ 3.10GHz"], "ansible_processor_count": 2, "ansible_processor_cores": 1, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 2, "ansible_processor_nproc": 2, "ansible_memtotal_mb": 1747, "ansible_memfree_mb": 328, "ansible_swaptotal_mb": 4095, "ansible_swapfree_mb": 4091, "ansible_memory_mb": {"real": {"total": 1747, "used": 1419, "free": 328}, "nocache": {"free": 1023, "used": 724}, "swap": {"total": 4095, "free": 4091, "used": 4, "cached": 0}}, "ansible_bios_date": "11/12/2020", "ansible_bios_vendor": "Phoenix Technologies LTD", "ansible_bios_version": "6.00", "ansible_board_asset_tag": "NA", "ansible_board_name": "440BX Desktop Reference Platform", "ansible_board_serial": "None", "ansible_board_vendor": "Intel Corporation", "ansible_board_version": "None", "ansible_chassis_asset_tag": "No Asset Tag", "ansible_chassis_serial": "None", "ansible_chassis_vendor": "No Enclosure", "ansible_chassis_version": "N/A", "ansible_form_factor": "Other", "ansible_product_name": "VMware Virtual Platform", "ansible_product_serial": "VMware-42 29 c7 3c 9a 94 8f d9-27 91 7e 4f 06 44 05 4c", "ansible_product_uuid": "3cc72942-949a-d98f-2791-7e4f0644054c", "ansible_product_version": "None", "ansible_system_vendor": "VMware, Inc.", "ansible_devices": {"sr0": {"virtual": 1, "links": {"ids": ["ata-VMware_Virtual_IDE_CDROM_Drive_00000000000000000001"], "uuids": [], "labels": [], "masters": []}, "vendor": "NECVMWar", "model": "VMware IDE CDR00", "sas_address": null, "sas_device_handle": null, "removable": "1", "support_discard": "0", "partitions": {}, "rotational": "1", "scheduler_mode": "mq-deadline", "sectors": "2097151", "sectorsize": "512", "size": "1024.00 MB", "host": "IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)", "holders": []}, "dm-0": {"virtual": 1, "links": {"ids": ["dm-name-vg_root-lv_root", "dm-uuid-LVM-KsXLI2isnmDUJCRbJNGpMLGNnmURlCmZbQRllx2dAc4x9iMYpHtwdEPJPgBNOvuD"], "uuids": ["20bd7b50-616f-4ef3-8e61-f7fc0007b973"], "labels": [], "masters": []}, "vendor": null, "model": null, "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "512", "partitions": {}, "rotational": "1", "scheduler_mode": "", "sectors": "165666816", "sectorsize": "512", "size": "79.00 GB", "host": "", "holders": []}, "sda": {"virtual": 1, "links": {"ids": [], "uuids": [], "labels": [], "masters": []}, "vendor": "VMware", "model": "Virtual disk", "sas_address": null, "sas_device_handle": null, "removable": "0", "support_discard": "512", "partitions": {"sda2": {"links": {"ids": ["lvm-pv-uuid-mfgKfb-7qVI-9Ukg-qFro-W7F5-JQ6B-8GhpIv"], "uuids": [], "labels": [], "masters": ["dm-0"]}, "start": "2099200", "sectors": "165672960", "sectorsize": 512, "size": "79.00 GB", "uuid": null, "holders": ["vg_root-lv_root"]}, "sda1": {"links": {"ids": [], "uuids": ["ab111c56-46e1-4e5c-bd98-0328e8b0c427"], "labels": [], "masters": []}, "start": "2048", "sectors": "2097152", "sectorsize": 512, "size": "1.00 GB", "uuid": "ab111c56-46e1-4e5c-bd98-0328e8b0c427", "holders": []}}, "rotational": "1", "scheduler_mode": "mq-deadline", "sectors": "167772160", "sectorsize": "512", "size": "80.00 GB", "host": "Serial Attached SCSI controller: VMware PVSCSI SCSI Controller (rev 02)", "holders": []}}, "ansible_device_links": {"ids": {"dm-0": ["dm-name-vg_root-lv_root", "dm-uuid-LVM-KsXLI2isnmDUJCRbJNGpMLGNnmURlCmZbQRllx2dAc4x9iMYpHtwdEPJPgBNOvuD"], "sr0": ["ata-VMware_Virtual_IDE_CDROM_Drive_00000000000000000001"], "sda2": ["lvm-pv-uuid-mfgKfb-7qVI-9Ukg-qFro-W7F5-JQ6B-8GhpIv"]}, "uuids": {"dm-0": ["20bd7b50-616f-4ef3-8e61-f7fc0007b973"], "sda1": ["ab111c56-46e1-4e5c-bd98-0328e8b0c427"]}, "labels": {}, "masters": {"sda2": ["dm-0"]}}, "ansible_uptime_seconds": 122, "ansible_lvm": {"lvs": {"lv_root": {"size_g": "79.00", "vg": "vg_root"}}, "vgs": {"vg_root": {"size_g": "79.00", "free_g": "0", "num_lvs": "1", "num_pvs": "1"}}, "pvs": {"/dev/sda2": {"size_g": "79.00", "free_g": "0", "vg": "vg_root"}}}, "ansible_mounts": [{"mount": "/", "device": "/dev/mapper/vg_root-lv_root", "fstype": "xfs", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_total": 84779995136, "size_available": 75454480384, "block_size": 4096, "block_total": 20698241, "block_available": 18421504, "block_used": 2276737, "inode_total": 41416704, "inode_available": 41334023, "inode_used": 82681, "uuid": "20bd7b50-616f-4ef3-8e61-f7fc0007b973"}, {"mount": "/boot", "device": "/dev/sda1", "fstype": "xfs", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_total": 1063256064, "size_available": 761155584, "block_size": 4096, "block_total": 259584, "block_available": 185829, "block_used": 73755, "inode_total": 524288, "inode_available": 523924, "inode_used": 364, "uuid": "ab111c56-46e1-4e5c-bd98-0328e8b0c427"}], "ansible_hostnqn": "", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/vmlinuz-4.18.0-477.15.1.el8_8.x86_64", "root": "/dev/mapper/vg_root-lv_root", "ro": true, "crashkernel": "auto", "spectre_v2": "retpoline", "rd.lvm.lv": "vg_root/lv_root", "biosdevname": "0", "rhgb": true, "quiet": true}, "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/vmlinuz-4.18.0-477.15.1.el8_8.x86_64", "root": "/dev/mapper/vg_root-lv_root", "ro": true, "crashkernel": "auto", "spectre_v2": "retpoline", "rd.lvm.lv": "vg_root/lv_root", "biosdevname": "0", "rhgb": true, "quiet": true}, "ansible_local": {"non_rhel_packages": ["qualys-cloud-agent-6.0.0-41.x86_64"], "pre_ripu": {"_ansible_facts_gathered": true, "all_ipv4_addresses": ["172.16.186.17"], "all_ipv6_addresses": [], "apparmor": {"status": "disabled"}, "architecture": "x86_64", "bios_date": "11/12/2020", "bios_vendor": "Phoenix Technologies LTD", "bios_version": "6.00", "board_asset_tag": "NA", "board_name": "440BX Desktop Reference Platform", "board_serial": "None", "board_vendor": "Intel Corporation", "board_version": "None", "chassis_asset_tag": "No Asset Tag", "chassis_serial": "None", "chassis_vendor": "No Enclosure", "chassis_version": "N/A", "cmdline": {"BOOT_IMAGE": "/vmlinuz-3.10.0-1160.88.1.el7.x86_64", "LANG": "en_US.UTF-8", "biosdevname": "0", "crashkernel": "auto", "quiet": true, "rd.lvm.lv": "vg_root/lv_root", "rhgb": true, "ro": true, "root": "/dev/mapper/vg_root-lv_root", "spectre_v2": "retpoline"}, "date_time": {"date": "2023-08-04", "day": "04", "epoch": "1691171902", "epoch_int": "1691171902", "hour": "10", "iso8601": "2023-08-04T17:58:22Z", "iso8601_basic": "20230804T105822696130", "iso8601_basic_short": "20230804T105822", "iso8601_micro": "2023-08-04T17:58:22.696130Z", "minute": "58", "month": "08", "second": "22", "time": "10:58:22", "tz": "PDT", "tz_dst": "PDT", "tz_offset": "-0700", "weekday": "Friday", "weekday_number": "5", "weeknumber": "31", "year": "2023"}, "default_ipv4": {"address": "172.16.186.17", "alias": "ens192", "broadcast": "172.16.187.255", "gateway": "172.16.186.1", "interface": "ens192", "macaddress": "00:50:56:a9:b2:a1", "mtu": 1500, "netmask": "255.255.254.0", "network": "172.16.186.0", "prefix": "23", "type": "ether"}, "default_ipv6": {}, "device_links": {"ids": {"dm-0": ["dm-name-vg_root-lv_root", "dm-uuid-LVM-KsXLI2isnmDUJCRbJNGpMLGNnmURlCmZbQRllx2dAc4x9iMYpHtwdEPJPgBNOvuD"], "sda2": ["lvm-pv-uuid-mfgKfb-7qVI-9Ukg-qFro-W7F5-JQ6B-8GhpIv"], "sr0": ["ata-VMware_Virtual_IDE_CDROM_Drive_00000000000000000001"]}, "labels": {}, "masters": {"sda2": ["dm-0"]}, "uuids": {"dm-0": ["20bd7b50-616f-4ef3-8e61-f7fc0007b973"], "sda1": ["ab111c56-46e1-4e5c-bd98-0328e8b0c427"]}}, "devices": {"dm-0": {"holders": [], "host": "", "links": {"ids": ["dm-name-vg_root-lv_root", "dm-uuid-LVM-KsXLI2isnmDUJCRbJNGpMLGNnmURlCmZbQRllx2dAc4x9iMYpHtwdEPJPgBNOvuD"], "labels": [], "masters": [], "uuids": ["20bd7b50-616f-4ef3-8e61-f7fc0007b973"]}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "", "sectors": "165666816", "sectorsize": "512", "size": "79.00 GB", "support_discard": "512", "vendor": null, "virtual": 1}, "sda": {"holders": [], "host": "Serial Attached SCSI controller: VMware PVSCSI SCSI Controller (rev 02)", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": "Virtual disk", "partitions": {"sda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["ab111c56-46e1-4e5c-bd98-0328e8b0c427"]}, "sectors": "2097152", "sectorsize": 512, "size": "1.00 GB", "start": "2048", "uuid": "ab111c56-46e1-4e5c-bd98-0328e8b0c427"}, "sda2": {"holders": ["vg_root-lv_root"], "links": {"ids": ["lvm-pv-uuid-mfgKfb-7qVI-9Ukg-qFro-W7F5-JQ6B-8GhpIv"], "labels": [], "masters": ["dm-0"], "uuids": []}, "sectors": "165672960", "sectorsize": 512, "size": "79.00 GB", "start": "2099200", "uuid": null}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "167772160", "sectorsize": "512", "size": "80.00 GB", "support_discard": "512", "vendor": "VMware", "virtual": 1}, "sr0": {"holders": [], "host": "IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)", "links": {"ids": ["ata-VMware_Virtual_IDE_CDROM_Drive_00000000000000000001"], "labels": [], "masters": [], "uuids": []}, "model": "VMware IDE CDR00", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "deadline", "sectors": "2097151", "sectorsize": "512", "size": "1024.00 MB", "support_discard": "0", "vendor": "NECVMWar", "virtual": 1}}, "distribution": "RedHat", "distribution_file_parsed": true, "distribution_file_path": "/etc/redhat-release", "distribution_file_search_string": "Red Hat", "distribution_file_variety": "RedHat", "distribution_major_version": "7", "distribution_release": "Maipo", "distribution_version": "7.9", "dns": {"nameservers": ["169.235.156.110", "138.23.62.34"], "search": ["ads.ucr.edu"]}, "domain": "ads.ucr.edu", "effective_group_id": 0, "effective_user_id": 0, "ens192": {"active": true, "device": "ens192", "features": {"busy_poll": "off [fixed]", "fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "on", "hw_tc_offload": "off [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "on", "loopback": "off [fixed]", "netns_local": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "on", "rx_all": "off [fixed]", "rx_checksumming": "on", "rx_fcs": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "rx_vlan_filter": "on [fixed]", "rx_vlan_offload": "on", "rx_vlan_stag_filter": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "scatter_gather": "on", "tcp_segmentation_offload": "on", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "tx_checksumming": "on", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_lockless": "off [fixed]", "tx_nocache_copy": "off", "tx_scatter_gather": "on", "tx_scatter_gather_fraglist": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_sit_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_tcp_segmentation": "on", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "on", "tx_vlan_stag_hw_insert": "off [fixed]", "udp_fragmentation_offload": "off [fixed]", "vlan_challenged": "off [fixed]"}, "hw_timestamp_filters": [], "ipv4": {"address": "172.16.186.17", "broadcast": "172.16.187.255", "netmask": "255.255.254.0", "network": "172.16.186.0", "prefix": "23"}, "macaddress": "00:50:56:a9:b2:a1", "module": "vmxnet3", "mtu": 1500, "pciid": "0000:0b:00.0", "promisc": false, "speed": 10000, "timestamping": ["rx_software", "software"], "type": "ether"}, "env": {"HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "2", "SSH_AUTH_SOCK": "/tmp/ssh-KvzInOtCYP/agent.20230", "SSH_CLIENT": "172.18.62.2 49165 22", "SSH_CONNECTION": "172.18.62.2 49165 172.16.186.17 22", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_ID": "6", "_": "/usr/bin/python"}, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "sys-test-nl02.ads.ucr.edu", "hostname": "sys-test-nl02", "hostnqn": "", "interfaces": ["lo", "ens192"], "is_chroot": false, "iscsi_iqn": "iqn.1994-05.com.redhat:2ca0cf8f199b", "kernel": "3.10.0-1160.88.1.el7.x86_64", "kernel_version": "#1 SMP Sat Feb 18 13:27:00 UTC 2023", "lo": {"active": true, "device": "lo", "features": {"busy_poll": "off [fixed]", "fcoe_mtu": "off [fixed]", "generic_receive_offload": "on", "generic_segmentation_offload": "on", "highdma": "on [fixed]", "hw_tc_offload": "off [fixed]", "l2_fwd_offload": "off [fixed]", "large_receive_offload": "off [fixed]", "loopback": "on [fixed]", "netns_local": "on [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "rx_all": "off [fixed]", "rx_checksumming": "on [fixed]", "rx_fcs": "off [fixed]", "rx_gro_hw": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "rx_vlan_filter": "off [fixed]", "rx_vlan_offload": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "scatter_gather": "on", "tcp_segmentation_offload": "on", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "tx_checksumming": "on", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_ipip_segmentation": "off [fixed]", "tx_lockless": "on [fixed]", "tx_nocache_copy": "off [fixed]", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tx_sctp_segmentation": "on", "tx_sit_segmentation": "off [fixed]", "tx_tcp6_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp_segmentation": "on", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_vlan_offload": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "udp_fragmentation_offload": "on", "vlan_challenged": "on [fixed]"}, "hw_timestamp_filters": [], "ipv4": {"address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0", "prefix": "8"}, "mtu": 65536, "promisc": false, "timestamping": ["rx_software", "software"], "type": "loopback"}, "loadavg": {"15m": 0.27, "1m": 0.26, "5m": 0.42}, "ansible_local": {}, "locally_reachable_ips": {"ipv4": ["127.0.0.0/8", "127.0.0.1", "172.16.186.17"], "ipv6": []}, "lsb": {}, "lvm": {"lvs": {"lv_root": {"size_g": "79.00", "vg": "vg_root"}}, "pvs": {"/dev/sda2": {"free_g": "0", "size_g": "79.00", "vg": "vg_root"}}, "vgs": {"vg_root": {"free_g": "0", "num_lvs": "1", "num_pvs": "1", "size_g": "79.00"}}}, "machine": "x86_64", "machine_id": "b44516a68abb48809d68900a024f662c", "memfree_mb": 472, "memory_mb": {"nocache": {"free": 1298, "used": 521}, "real": {"free": 472, "total": 1819, "used": 1347}, "swap": {"cached": 0, "free": 4093, "total": 4095, "used": 2}}, "memtotal_mb": 1819, "mounts": [{"block_available": 209206, "block_size": 4096, "block_total": 259584, "block_used": 50378, "device": "/dev/sda1", "fstype": "xfs", "inode_available": 523956, "inode_total": 524288, "inode_used": 332, "mount": "/boot", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 856907776, "size_total": 1063256064, "uuid": "ab111c56-46e1-4e5c-bd98-0328e8b0c427"}, {"block_available": 18721663, "block_size": 4096, "block_total": 20698241, "block_used": 1976578, "device": "/dev/mapper/vg_root-lv_root", "fstype": "xfs", "inode_available": 41338904, "inode_total": 41416704, "inode_used": 77800, "mount": "/", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 76683931648, "size_total": 84779995136, "uuid": "20bd7b50-616f-4ef3-8e61-f7fc0007b973"}], "nodename": "sys-test-nl02", "os_family": "RedHat", "pkg_mgr": "yum", "proc_cmdline": {"BOOT_IMAGE": "/vmlinuz-3.10.0-1160.88.1.el7.x86_64", "LANG": "en_US.UTF-8", "biosdevname": "0", "crashkernel": "auto", "quiet": true, "rd.lvm.lv": "vg_root/lv_root", "rhgb": true, "ro": true, "root": "/dev/mapper/vg_root-lv_root", "spectre_v2": "retpoline"}, "processor": ["0", "GenuineIntel", "Intel(R) Xeon(R) Gold 6254 CPU @ 3.10GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) Gold 6254 CPU @ 3.10GHz"], "processor_cores": 1, "processor_count": 2, "processor_nproc": 2, "processor_threads_per_core": 1, "processor_vcpus": 2, "product_name": "VMware Virtual Platform", "product_serial": "VMware-42 29 c7 3c 9a 94 8f d9-27 91 7e 4f 06 44 05 4c", "product_uuid": "3CC72942-949A-D98F-2791-7E4F0644054C", "product_version": "None", "python": {"executable": "/usr/bin/python", "has_sslcontext": true, "type": "CPython", "version": {"major": 2, "micro": 5, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [2, 7, 5, "final", 0]}, "python_version": "2.7.5", "real_group_id": 0, "real_user_id": 0, "selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBA/EslC4ywgLqqVTF3IwWFG1DooWIzfRqE54kzZcgSRTh0zWE0MxPrurVcTP0AVL+3mVdE/qScNGCAGNHhiA80c=", "ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIGJ6KfEUOgLVmgY0EFxfrnsvrLlZ/S64UC7qRe/FIyrm", "ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDPfPvjcJ23LB3a7f1V+85B57ZlE/2/6jXe8dpP/uW0E75tfkf9EcaM0O7aCT7bkPgXyerimS+TgJV98bVZuSjP7HX9GZ7mTArdYD/SEJoE/62sICo4Lg3Irpv+zal6IbtiwLvLsG8yJ9pdNYS+nK6dDejXENoI3iCY1V+s1r1Nc1Gv5CXQXf2Ite7axa3toyw+EzTkXgtlYQM/twpkx0AWrrhlXc9NzObCYHa2OGTV/fTP2FnNxWcDesjLvW3n2IL6klmAqukhlccE1IqYorhFK5OlVMHfvuJw2HA+hiM2ivBhKo0Y0d8kTy6Ahxhdd4Kh3y0SIoMs2kMCz68ldxk5", "ssh_host_key_rsa_public_keytype": "ssh-rsa", "swapfree_mb": 4093, "swaptotal_mb": 4095, "system": "Linux", "system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "35", "36+ep"], "system_capabilities_enforced": "True", "system_vendor": "VMware, Inc.", "uptime_seconds": 503, "user_dir": "/root", "user_gecos": "root", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_tech_guest": ["VMware"], "virtualization_tech_host": [], "virtualization_type": "VMware", "discovered_interpreter_python": "/usr/bin/python", "gather_subset": ["all"], "module_setup": true}}, "ansible_apparmor": {"status": "disabled"}, "ansible_loadavg": {"1m": 2.03, "5m": 0.8, "15m": 0.3}, "ansible_selinux_python_present": true, "ansible_selinux": {"status": "enabled", "policyvers": 33, "config_mode": "permissive", "mode": "permissive", "type": "targeted"}, "ansible_interfaces": ["lo", "ens192"], "ansible_lo": {"device": "lo", "mtu": 65536, "active": true, "type": "loopback", "promisc": false, "ipv4": {"address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0", "prefix": "8"}, "features": {"rx_checksumming": "on [fixed]", "tx_checksumming": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ip_generic": "on [fixed]", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "on [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on [fixed]", "tx_scatter_gather_fraglist": "on [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "on", "tx_tcp_mangleid_segmentation": "on", "tx_tcp6_segmentation": "on", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "off [fixed]", "rx_vlan_offload": "off [fixed]", "tx_vlan_offload": "off [fixed]", "ntuple_filters": "off [fixed]", "receive_hashing": "off [fixed]", "highdma": "on [fixed]", "rx_vlan_filter": "off [fixed]", "vlan_challenged": "on [fixed]", "tx_lockless": "on [fixed]", "netns_local": "on [fixed]", "tx_gso_robust": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off [fixed]", "tx_udp_tnl_csum_segmentation": "off [fixed]", "tx_gso_partial": "off [fixed]", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_sctp_segmentation": "on", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "on", "tx_gso_list": "on", "rx_udp_gro_forwarding": "off", "rx_gro_list": "off", "tls_hw_rx_offload": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off [fixed]", "loopback": "on [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]"}, "timestamping": [], "hw_timestamp_filters": []}, "ansible_ens192": {"device": "ens192", "macaddress": "00:50:56:a9:b2:a1", "mtu": 1500, "active": true, "module": "vmxnet3", "type": "ether", "pciid": "0000:0b:00.0", "speed": 10000, "promisc": false, "ipv4": {"address": "172.16.186.17", "broadcast": "172.16.187.255", "netmask": "255.255.254.0", "network": "172.16.186.0", "prefix": "23"}, "features": {"rx_checksumming": "on", "tx_checksumming": "on", "tx_checksum_ipv4": "off [fixed]", "tx_checksum_ip_generic": "on", "tx_checksum_ipv6": "off [fixed]", "tx_checksum_fcoe_crc": "off [fixed]", "tx_checksum_sctp": "off [fixed]", "scatter_gather": "on", "tx_scatter_gather": "on", "tx_scatter_gather_fraglist": "off [fixed]", "tcp_segmentation_offload": "on", "tx_tcp_segmentation": "on", "tx_tcp_ecn_segmentation": "off [fixed]", "tx_tcp_mangleid_segmentation": "off", "tx_tcp6_segmentation": "on", "generic_segmentation_offload": "on", "generic_receive_offload": "on", "large_receive_offload": "on", "rx_vlan_offload": "on", "tx_vlan_offload": "on", "ntuple_filters": "off [fixed]", "receive_hashing": "on", "highdma": "on", "rx_vlan_filter": "on [fixed]", "vlan_challenged": "off [fixed]", "tx_lockless": "off [fixed]", "netns_local": "off [fixed]", "tx_gso_robust": "off [fixed]", "tx_fcoe_segmentation": "off [fixed]", "tx_gre_segmentation": "off [fixed]", "tx_gre_csum_segmentation": "off [fixed]", "tx_ipxip4_segmentation": "off [fixed]", "tx_ipxip6_segmentation": "off [fixed]", "tx_udp_tnl_segmentation": "off", "tx_udp_tnl_csum_segmentation": "off", "tx_gso_partial": "off [fixed]", "tx_tunnel_remcsum_segmentation": "off [fixed]", "tx_sctp_segmentation": "off [fixed]", "tx_esp_segmentation": "off [fixed]", "tx_udp_segmentation": "off [fixed]", "tx_gso_list": "off [fixed]", "rx_udp_gro_forwarding": "off", "rx_gro_list": "off", "tls_hw_rx_offload": "off [fixed]", "fcoe_mtu": "off [fixed]", "tx_nocache_copy": "off", "loopback": "off [fixed]", "rx_fcs": "off [fixed]", "rx_all": "off [fixed]", "tx_vlan_stag_hw_insert": "off [fixed]", "rx_vlan_stag_hw_parse": "off [fixed]", "rx_vlan_stag_filter": "off [fixed]", "l2_fwd_offload": "off [fixed]", "hw_tc_offload": "off [fixed]", "esp_hw_offload": "off [fixed]", "esp_tx_csum_hw_offload": "off [fixed]", "rx_udp_tunnel_port_offload": "off [fixed]", "tls_hw_tx_offload": "off [fixed]", "rx_gro_hw": "off [fixed]", "tls_hw_record": "off [fixed]"}, "timestamping": [], "hw_timestamp_filters": []}, "ansible_default_ipv4": {"gateway": "172.16.186.1", "interface": "ens192", "address": "172.16.186.17", "broadcast": "172.16.187.255", "netmask": "255.255.254.0", "network": "172.16.186.0", "prefix": "23", "macaddress": "00:50:56:a9:b2:a1", "mtu": 1500, "type": "ether", "alias": "ens192"}, "ansible_default_ipv6": {}, "ansible_all_ipv4_addresses": ["172.16.186.17"], "ansible_all_ipv6_addresses": [], "ansible_locally_reachable_ips": {"ipv4": ["127.0.0.0/8", "127.0.0.1", "172.16.186.17"], "ipv6": []}, "ansible_env": {"SSH_CONNECTION": "172.18.62.2 53710 172.16.186.17 22", "MODULES_RUN_QUARANTINE": "LD_LIBRARY_PATH LD_PRELOAD", "_": "/usr/bin/python3", "LANG": "en_US.UTF-8", "SSH_AUTH_SOCK": "/tmp/ssh-wbPMvvOQi5/agent.7565", "S_COLORS": "auto", "which_declare": "declare -f", "XDG_SESSION_ID": "1", "MODULES_CMD": "/usr/share/Modules/libexec/modulecmd.tcl", "USER": "root", "SELINUX_ROLE_REQUESTED": "", "PWD": "/root", "HOME": "/root", "SSH_CLIENT": "172.18.62.2 53710 22", "SELINUX_LEVEL_REQUESTED": "", "LOADEDMODULES": "", "SHELL": "/bin/bash", "SELINUX_USE_CURRENT_RANGE": "", "SHLVL": "2", "MANPATH": ":", "MODULEPATH": "/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles", "LOGNAME": "root", "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "XDG_RUNTIME_DIR": "/run/user/0", "MODULEPATH_modshare": "/usr/share/Modules/modulefiles:2:/etc/modulefiles:2:/usr/share/modulefiles:2", "PATH": "/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "MODULESHOME": "/usr/share/Modules", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "BASH_FUNC_which%%": "() { ( alias;\\n eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@\\n}", "BASH_FUNC_module%%": "() { unset _mlshdbg;\\n if [ \\"${MODULES_SILENT_SHELL_DEBUG:-0}\\" = \'1\' ]; then\\n case \\"$-\\" in \\n *v*x*)\\n set +vx;\\n _mlshdbg=\'vx\'\\n ;;\\n *v*)\\n set +v;\\n _mlshdbg=\'v\'\\n ;;\\n *x*)\\n set +x;\\n _mlshdbg=\'x\'\\n ;;\\n *)\\n _mlshdbg=\'\'\\n ;;\\n esac;\\n fi;\\n unset _mlre _mlIFS;\\n if [ -n \\"${IFS+x}\\" ]; then\\n _mlIFS=$IFS;\\n fi;\\n IFS=\' \';\\n for _mlv in ${MODULES_RUN_QUARANTINE:-};\\n do\\n if [ \\"${_mlv}\\" = \\"${_mlv##*[!A-Za-z0-9_]}\\" -a \\"${_mlv}\\" = \\"${_mlv#[0-9]}\\" ]; then\\n if [ -n \\"`eval \'echo ${\'$_mlv\'+x}\'`\\" ]; then\\n _mlre=\\"${_mlre:-}${_mlv}_modquar=\'`eval \'echo ${\'$_mlv\'}\'`\' \\";\\n fi;\\n _mlrv=\\"MODULES_RUNENV_${_mlv}\\";\\n _mlre=\\"${_mlre:-}${_mlv}=\'`eval \'echo ${\'$_mlrv\':-}\'`\' \\";\\n fi;\\n done;\\n if [ -n \\"${_mlre:-}\\" ]; then\\n eval `eval ${_mlre} /usr/bin/tclsh /usr/share/Modules/libexec/modulecmd.tcl bash \'\\"$@\\"\'`;\\n else\\n eval `/usr/bin/tclsh /usr/share/Modules/libexec/modulecmd.tcl bash \\"$@\\"`;\\n fi;\\n _mlstatus=$?;\\n if [ -n \\"${_mlIFS+x}\\" ]; then\\n IFS=$_mlIFS;\\n else\\n unset IFS;\\n fi;\\n unset _mlre _mlv _mlrv _mlIFS;\\n if [ -n \\"${_mlshdbg:-}\\" ]; then\\n set -$_mlshdbg;\\n fi;\\n unset _mlshdbg;\\n return $_mlstatus\\n}", "BASH_FUNC_switchml%%": "() { typeset swfound=1;\\n if [ \\"${MODULES_USE_COMPAT_VERSION:-0}\\" = \'1\' ]; then\\n typeset swname=\'main\';\\n if [ -e /usr/share/Modules/libexec/modulecmd.tcl ]; then\\n typeset swfound=0;\\n unset MODULES_USE_COMPAT_VERSION;\\n fi;\\n else\\n typeset swname=\'compatibility\';\\n if [ -e /usr/share/Modules/libexec/modulecmd-compat ]; then\\n typeset swfound=0;\\n MODULES_USE_COMPAT_VERSION=1;\\n export MODULES_USE_COMPAT_VERSION;\\n fi;\\n fi;\\n if [ $swfound -eq 0 ]; then\\n echo \\"Switching to Modules $swname version\\";\\n source /usr/share/Modules/init/bash;\\n else\\n echo \\"Cannot switch to Modules $swname version, command not found\\";\\n return 1;\\n fi\\n}", "BASH_FUNC_scl%%": "() { if [ \\"$1\\" = \\"load\\" -o \\"$1\\" = \\"unload\\" ]; then\\n eval \\"module $@\\";\\n else\\n /usr/bin/scl \\"$@\\";\\n fi\\n}", "BASH_FUNC_ml%%": "() { module ml \\"$@\\"\\n}"}, "ansible_fibre_channel_wwn": [], "ansible_lsb": {}, "ansible_service_mgr": "systemd", "gather_subset": ["all"], "module_setup": true}, "invocation": {"module_args": {"gather_subset": ["all"], "gather_timeout": 10, "filter": [], "fact_path": "/etc/ansible/facts.d"}}}\n', b"OpenSSH_9.3p1, LibreSSL 3.3.6\r\ndebug1: Reading configuration data /Users/peter/.ssh/config\r\ndebug1: /Users/peter/.ssh/config line 16: Applying options for *\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files\r\ndebug1: /etc/ssh/ssh_config line 54: Applying options for *\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/peter/.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/peter/.ssh/known_hosts2'\r\ndebug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 47656\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n") ok: [sys-test-nl02]
peterywong commented 1 year ago

TASK [infra.leapp.upgrade : Determine rhel_dest_major_version] *** task path: /Users/peter/.ansible/collections/ansible_collections/infra/leapp/roles/upgrade/tasks/upgrade-validation.yml:5 ok: [sys-test-nl02] => changed=false ansible_facts: rhel_dest_major_version: '8'

TASK [infra.leapp.upgrade : Validate current OS major version] *** task path: /Users/peter/.ansible/collections/ansible_collections/infra/leapp/roles/upgrade/tasks/upgrade-validation.yml:9 fatal: [sys-test-nl02]: FAILED! => changed=false assertion: ansible_distribution_major_version == rhel_dest_major_version evaluated_to: false msg: Expected leapp destination OS major version 8 but OS major version is 7. NOTIFIED HANDLER infra.leapp.common : Add end time to log file for sys-test-nl02 NOTIFIED HANDLER infra.leapp.common : Slurp ripu.log file for sys-test-nl02 NOTIFIED HANDLER infra.leapp.common : Decode ripu.log file for sys-test-nl02 NOTIFIED HANDLER infra.leapp.common : Rename log file for sys-test-nl02

djdanielsson commented 1 year ago

I don't understand.... it is rhel 8 and the destination version is 8 so why it is failing that assertion doesn't add up

peterywong commented 1 year ago

That's what I don't understand either.

peterywong commented 1 year ago

Could it be a bug in Ansible core 2.15.0?

djdanielsson commented 1 year ago

you aren't using ansible-core 2.15 you are using ansible 8 from the looks of the output you have provided

peterywong commented 1 year ago

This is what I get from --version

peter@PetersMacStudio ansible % ansible --version [WARNING]: log file at /var/log/ansible.log is not writeable and we cannot create it, aborting

ansible [core 2.15.0] config file = /Users/peter/Git/ansible/ansible.cfg configured module search path = ['/Users/peter/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/homebrew/Cellar/ansible/8.0.0/libexec/lib/python3.11/site-packages/ansible ansible collection location = /Users/peter/.ansible/collections:/usr/share/ansible/collections executable location = /opt/homebrew/bin/ansible python version = 3.11.4 (main, Jun 20 2023, 17:23:00) [Clang 14.0.3 (clang-1403.0.22.14.1)] (/opt/homebrew/Cellar/ansible/8.0.0/libexec/bin/python3.11) jinja version = 3.1.2 libyaml = True

peter@PetersMacStudio ansible % ansible-playbook --version [WARNING]: log file at /var/log/ansible.log is not writeable and we cannot create it, aborting

ansible-playbook [core 2.15.0] config file = /Users/peter/Git/ansible/ansible.cfg configured module search path = ['/Users/peter/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/homebrew/Cellar/ansible/8.0.0/libexec/lib/python3.11/site-packages/ansible ansible collection location = /Users/peter/.ansible/collections:/usr/share/ansible/collections executable location = /opt/homebrew/bin/ansible-playbook python version = 3.11.4 (main, Jun 20 2023, 17:23:00) [Clang 14.0.3 (clang-1403.0.22.14.1)] (/opt/homebrew/Cellar/ansible/8.0.0/libexec/bin/python3.11) jinja version = 3.1.2 libyaml = True

peterywong commented 1 year ago

Ansible 8 is ansible-core 2.15 according to this link https://docs.ansible.com/ansible/latest/roadmap/COLLECTIONS_8.html

djdanielsson commented 1 year ago

I mean it is but it isn't exactly but that is fine. no I don't think that it is related to the version... I will have to think about this some more to try and come up with some more things to try to figure out why this is happening

peterywong commented 1 year ago

Thank you for looking into this issue.

djdanielsson commented 1 year ago

are you still having this issue?

peterywong commented 1 year ago

Yes, I'm still having the same issue.

peterywong commented 1 year ago

I have tried running the same playbook on a RHEL7 machine and it has the same issues as running it on a MacOS.

djdanielsson commented 12 months ago

I have been thinking about this, I don't see why it would matter but maybe try run with ansible-navigator...

peterywong commented 12 months ago

Looks like I got it working now, I was missing gather_facts in my second script.

Thank you for your help.