Closed lueschem closed 5 years ago
Additional fixup needed: lxc executable is not in path when calling sudo edi (without sudo it works):
INFO:root:Running command: ['sudo', '-u', 'pi', 'ansible-playbook', '--connection', 'lxd', '--inventory', '/home/pi/edi-arm64/tmp9367q2uu/inventory', '--extra-vars', '@/home/pi/edi-arm64/tmp9367q2uu/extra_vars_100_base_system', '/home/pi/edi/edi/plugins/playbooks/debian/base_system/main.yml']
PLAY [edi] *****
TASK [setup] *** fatal: [pytest-N10EEE]: FAILED! => {"failed": true, "msg": "lxc command not found in PATH"} to retry, use: --limit @/home/pi/edi/edi/plugins/playbooks/debian/base_system/main.retry
PLAY RECAP ***** pytest-N10EEE : ok=0 changed=0 unreachable=0 failed=1
Error: Command '['sudo', '-u', 'pi', 'ansible-playbook', '--connection', 'lxd', '--inventory', '/home/pi/edi-arm64/tmp9367q2uu/inventory', '--extra-vars', '@/home/pi/edi-arm64/tmp9367q2uu/extra_vars_100_base_system', '/home/pi/edi/edi/plugins/playbooks/debian/base_system/main.yml']' returned non-zero exit status 2 For more information increase the log level.
Another thing to fix:
/var/lib/dpkg/info/edi.postinst: 6: /var/lib/dpkg/info/edi.postinst: cannot create /etc/bash_completion.d/edi: Directory nonexistent dpkg: error processing package edi (--configure): subprocess installed post-installation script returned error exit status 2 Processing triggers for systemd (232-25+deb9u4) ... Errors were encountered while processing: edi E: Sub-process /usr/bin/dpkg returned an error code (1)
Issue Type
Environment detail
Desired Behavior
edi should work smoothly on Debian stretch as long as the LXD snap is installed.
Actual Behavior
How to reproduce:
Following fixes were needed: