kubevirt/common-templates

ansible-playbook generate-templates.yaml failed : has no attribute 'image_list'

Shea-D opened this issue · 4 comments

Is this a BUG REPORT or FEATURE REQUEST?:
BUG.

What happened:
When I tried to generate templates, before centos stream 8, it was successful.

......
TASK [Load RHEL 6 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 6 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load CentOS Stream 8 image urls] **************************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.plugins.lookup.osinfo.OsInfoGObjectProxy object' has no attribute 'image_list'\n\nThe error appears to be in '/home/d/common-templates/generate-templates.yaml': line 123, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: Load CentOS Stream 8 image urls\n    ^ here\n"}

PLAY RECAP ******************************************************************************************************************************************************************************************
127.0.0.1                  : ok=9    changed=5    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

it is said that there is no attribute ‘image_list’, I have followed the steps in readme.md before I ran this command 'ansible-playbook generate-templates.yaml', and I don't know why it reported this error.

What you expected to happen:
generate all templates.

How to reproduce it (as minimally and precisely as possible):
git clone https://github.com/kubevirt/common-templates
cd common-templates/
git submodule init
git submodule update
make -C osinfo-db
yum install jq
yum install ansible
yum install libosinfo
yum install python-gobject
yum install osinfo-db-tools
yum install intltool
ansible-playbook generate-templates.yaml

Anything else we need to know?:

Environment:

  • KubeVirt version (use virtctl version):
    v0.51.0
  • Kubernetes version (use kubectl version):
    v0.21.0
  • common-templates version:
    latest
  • OS (e.g. from /etc/os-release):
    centos7
  • Kernel (e.g. uname -a):
    Linux 3.10.0-957.el7.x86_64
  • Others:
    It is an okd cluster.

Hi, can you please run:

git pull upstream master
git submodule update -f
make generate

and if the same error occured again, can you please put here the whole log?

Hi, can you please run:

git pull upstream master
git submodule update -f
make generate

and if the same error occured again, can you please put here the whole log?

Thanks for reply!
I tried it again and this is the log, I found that remote branch is origin so I changed this command.

[root@support common-templates]# git pull upstream master
fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
[root@support common-templates]# git remote -v
origin  https://github.com/kubevirt/common-templates (fetch)
origin  https://github.com/kubevirt/common-templates (push)
[root@support common-templates]# git pull origin master
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Total 2 (delta 1), reused 1 (delta 1), pack-reused 0
Unpacking objects: 100% (2/2), done.
From https://github.com/kubevirt/common-templates
 * branch            master     -> FETCH_HEAD
Updating ca0c476..e17be76
Fast-forward
 osinfo-db | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
[root@support common-templates]# git submodule update -f
remote: Enumerating objects: 85, done.
remote: Counting objects: 100% (85/85), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 85 (delta 60), reused 82 (delta 59), pack-reused 0
Unpacking objects: 100% (85/85), done.
From https://gitlab.com/libosinfo/osinfo-db
   04f3995..625fc22  master     -> origin/master
 * [new tag]         v20220516  -> v20220516
Submodule path 'osinfo-db': checked out '625fc22219b60952d395eed739a17fde6cf15eb7'
[root@support common-templates]# make generate
# Just build the XML files, no need to export to tarball
make -C osinfo-db/ OSINFO_DB_EXPORT=echo
make[1]: Entering directory `/home/d/common-templates/osinfo-db'
  I18N      data/install-script/opensuse.org/opensuse-autoyast-jeos.xml
...
  I18N      data/device/pcisig.com/pci-1033-0194.d/class.xml
  I18N      data/device/usb.org/usb-80ee-0021.d/class.xml
  EXP       osinfo-db-20220518.tar.xz
--license ./COPYING --version 20220518 --dir data osinfo-db-20220518.tar.xz
make[1]: Leaving directory `/home/d/common-templates/osinfo-db'
ansible-playbook generate-templates.yaml
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [127.0.0.1] ************************************************************************************************************************************************************************************

TASK [Prepare dist directory] ***********************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Load RHEL 9 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 9 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': True, u'emulatorthread': True, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load RHEL 8 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 8 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': True, u'emulatorthread': True, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load RHEL 7 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 7 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': True, u'emulatorthread': True, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load RHEL 6 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 6 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load CentOS Stream 8 image urls] **************************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.plugins.lookup.osinfo.OsInfoGObjectProxy object' has no attribute 'image_list'\n\nThe error appears to be in '/home/d/common-templates/generate-templates.yaml': line 123, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: Load CentOS Stream 8 image urls\n    ^ here\n"}

PLAY RECAP ******************************************************************************************************************************************************************************************
127.0.0.1                  : ok=9    changed=4    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

make: *** [generate] Error 2
  I18N      data/device/pcisig.com/pci-1033-0194.d/class.xml
  I18N      data/device/usb.org/usb-80ee-0021.d/class.xml
  EXP       osinfo-db-20220518.tar.xz
--license ./COPYING --version 20220518 --dir data osinfo-db-20220518.tar.xz
make[1]: Leaving directory `/home/d/common-templates/osinfo-db'
ansible-playbook generate-templates.yaml
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [127.0.0.1] ************************************************************************************************************************************************************************************

TASK [Prepare dist directory] ***********************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Load RHEL 9 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 9 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': True, u'emulatorthread': True, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load RHEL 8 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 8 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': True, u'emulatorthread': True, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load RHEL 7 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 7 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': True, u'emulatorthread': True, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load RHEL 6 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 6 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load CentOS Stream 8 image urls] **************************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.plugins.lookup.osinfo.OsInfoGObjectProxy object' has no attribute 'image_list'\n\nThe error appears to be in '/home/d/common-templates/generate-templates.yaml': line 123, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: Load CentOS Stream 8 image urls\n    ^ here\n"}

PLAY RECAP ******************************************************************************************************************************************************************************************
127.0.0.1                  : ok=9    changed=4    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

make: *** [generate] Error 2
  I18N      data/device/pcisig.com/pci-1033-0194.d/class.xml
  I18N      data/device/usb.org/usb-80ee-0021.d/class.xml
  EXP       osinfo-db-20220518.tar.xz
--license ./COPYING --version 20220518 --dir data osinfo-db-20220518.tar.xz
make[1]: Leaving directory `/home/d/common-templates/osinfo-db'
ansible-playbook generate-templates.yaml
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [127.0.0.1] ************************************************************************************************************************************************************************************

TASK [Prepare dist directory] ***********************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Load RHEL 9 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 9 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': True, u'emulatorthread': True, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load RHEL 8 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 8 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'1.5Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': True, u'emulatorthread': True, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load RHEL 7 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 7 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': True, u'emulatorthread': True, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'highperformance', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': True, u'emulatorthread': True, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load RHEL 6 versions] *************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Generate RHEL 6 templates] ********************************************************************************************************************************************************************
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'1Gi', u'flavor': u'tiny'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': True, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'2Gi', u'flavor': u'small'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 1, u'iothreads': False, u'emulatorthread': False, u'memsize': u'4Gi', u'flavor': u'medium'})
changed: [127.0.0.1] => (item={u'workload': u'server', u'tablet': False, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})
changed: [127.0.0.1] => (item={u'workload': u'desktop', u'tablet': True, u'default': False, u'cpus': 2, u'iothreads': False, u'emulatorthread': False, u'memsize': u'8Gi', u'flavor': u'large'})

TASK [Load CentOS Stream 8 image urls] **************************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.plugins.lookup.osinfo.OsInfoGObjectProxy object' has no attribute 'image_list'\n\nThe error appears to be in '/home/d/common-templates/generate-templates.yaml': line 123, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: Load CentOS Stream 8 image urls\n    ^ here\n"}

PLAY RECAP ******************************************************************************************************************************************************************************************
127.0.0.1                  : ok=9    changed=4    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

make: *** [generate] Error 2

Your libosinfo version is too old. CentOS 7 comes with libosinfo version 1.1.0, but the image_list attribute was first included in version 1.3.0. Can you generate the templates on another host?

Your libosinfo version is too old. CentOS 7 comes with libosinfo version 1.1.0, but the image_list attribute was first included in version 1.3.0. Can you generate the templates on another host?

I'll try it! it seems the solution to this problem! thanks for reply!