Click here to Skip to main content
16,017,755 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello all,

I was trying to install Xroad with these steps:

sudo snap install lxd
newgrp lxd
sudo lxd init

sudo apt update
sudo apt install software-properties-common
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt install ansible

ansible-playbook -i hosts/lxd_hosts.txt xroad_init.yml

Im using Ubuntu 22.04 VirtualBox, Bridged Network.
At first i remember trying it 1st time on 1st Ubuntu (with settings above), ansible and xroad seemed to be fine. Now i want to do it in 2nd VBox Ubuntu (with same settings above) also but i got this error "AttributeError: NoneType object has no attribute items" that leads to lxd_container

vboxuser@Ubu2: ~/xroad/ansible
=
<localhost> EXEC /bin/sh -c 'rm -f -r /home/vboxuser/.ansible/tmp/ansible-tmp-17 28036128.1841958-3528-129319791180256/> /dev/null 2>&1 && sleep 0'
The full traceback is:
Traceback (most recent call last):
File "/home/vboxuser/.ansible/tmp/ansible-tmp-1728036128.1841958-3528-12931979 1180256/Ansiballz_lxd_container.py", line 107, in <module>
_ansiballz_main()
File "/home/vboxuser/.ansible/tmp/ansible-tmp-1728036128.1841958-3528-12931979 1180256/Ansiballz_lxd_container.py", line 99, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/vboxuser/.ansible/tmp/ansible-tmp-1728036128.1841958-3528-12931979 1180256/Ansiballz_lxd_container.py", line 47, in invoke_module runpy.run_module(mod_name='ansible_collections.community.general.plugins.mod
ules.lxd_container', init_globals-dict(_module_fqn='ansible_collections.communit y.general.plugins.modules.lxd_container', _modlib_path=modlib_path), File "/usr/lib/python3.10/runpy.py", line 224, in run_module return _run_module_code(code, init_globals, run_name, mod_spec) File "/usr/lib/python3.10/runpy.py", line 96, in _run_module_code _run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals)
File "/tmp/ansible_lxd_container_payload_g1eotpsb/ansible_lxd_container_payloa d.zip/ansible_collections/community/general/plugins/modules/lxd_container.py", l ine 901, in <module>

ath), \n File
/usr/lib/python3.18/runpy.py\", Line 224, in run_module\n urn _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/u python3.10/runpy.py\", line 96, in _run_module_code\n _run_code(code, bals, init_globals, In File \"/usr/lib/python3.10/runpy.py\", line 86, in ode\n exec(code, run_globals) \n File \"/tmp/ansible_lxd_container_pay eotpsb/ansible_lxd_container_payload.zip/ansible_collections/community/ger Lugins/modules/lxd_container.py\", line 901, in <module>\n File \"/tmp/ar lxd_container_payload_g1eotpsb/ansible_lxd_container_payload.zip/ansible_ Lons/community/general/plugins/modules/lxd_container.py\", line 897, in m
File \"/tmp/ansible_lxd_container_payload_gleotpsb/ansible_lxd_container_ .zip/ansible_collections/community/general/plugins/modules/lxd_container. ine 771, in run\nAttributeError: 'NoneType' object has no attribute 'item "module stdout": "" "msg": "MODULE FAILURE \nSee stdout/stderr for the exact error",
"rc": 1

AttributeError: 'NoneType' object has no attribute 'items' failed: [localhost] (item=xroad-lxd-ss1) => {
"ansible_loop_var": "item",
"changed": false,
"item": "xroad-lxd-ss1",
"module stderr": "Traceback (most recent call last):10


What I have tried:

I tried:

Re installing lxd, Ubuntu
update + upgrade
Change MAC address
Change from Bridged to NAT, then reinstall LXD
LXD version 6 and 5
sudo adduser vboxuser lxd
Installing 3.12 python


Thanks for any help
Posted
Updated yesterday
v3
Comments
Pete O'Hanlon 9hrs 5mins ago    
What's inside your yml file? Chances are, this is where your error is.
53xit13298 9hrs ago    
Here's the yml it's the default from Github, i didnt change anything:
https://github.com/nordic-institute/X-Road/blob/develop/ansible/xroad_init.yml

1 solution

ansible-galaxy collection install community.general -f
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900