Created
April 5, 2023 22:29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jay@bftest:~/bifrost$ ./bifrost-cli testenv | |
Detecting package manager | |
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease | |
Get:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB] | |
Get:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB] | |
Get:4 http://us.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB] | |
Fetched 337 kB in 1s (473 kB/s) | |
Reading package lists... Done | |
Installing Python and PIP | |
Virtual environment exists, skipping creation | |
Installing bindep | |
Using Bindep to install binary dependencies | |
Installing Python requirements | |
Completed installation of basic dependencies. | |
Installing/upgrading Ansible | |
WARNING: Skipping ansible-base as it is not installed. | |
Setting ANSIBLE_COLLECTIONS_PATHS to virtualenv | |
Installing ansible collections on /opt/stack/bifrost/collections | |
Starting galaxy collection install process | |
Nothing to do. All requested collections are already installed. If you want to reinstall them, consider using `--force`. | |
Creating 2 test node(s) with 3072 MiB RAM and 10 GiB of disk | |
PLAY [Executes install, enrollment, and testing in one playbook] ******************************************************* | |
TASK [Gathering Facts] ************************************************************************************************* | |
ok: [127.0.0.1] | |
TASK [Set default baremetal.json file if not already defined] ********************************************************** | |
skipping: [127.0.0.1] | |
TASK [Set variables if running in the CI] ****************************************************************************** | |
skipping: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : Update apt cache if Ubuntu/Debian] ***************************************************** | |
changed: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : Enable CRB repository for CentOS Stream 9] ********************************************* | |
skipping: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : Load distribution defaults] ************************************************************ | |
ok: [127.0.0.1] => (item=/home/jay/bifrost/playbooks/roles/bifrost-create-vm-nodes/tasks/../defaults/required_defaults_Debian.yml) | |
TASK [bifrost-create-vm-nodes : Include OS version-specific defaults] ************************************************** | |
ok: [127.0.0.1] => (item=/home/jay/bifrost/playbooks/roles/bifrost-create-vm-nodes/tasks/../defaults/dummy-defaults.yml) | |
TASK [bifrost-create-vm-nodes : Install required packages] ************************************************************* | |
ok: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : Work around libgrypt issue on RHEL/CentOS 8.3] ***************************************** | |
skipping: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : ensure installation root folder exists] ************************************************ | |
ok: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : download requirements via git] ********************************************************* | |
changed: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : ensure ownership of requirements] ****************************************************** | |
changed: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : remove existing requirements] ********************************************************** | |
skipping: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : copy requirements from local path] ***************************************************** | |
skipping: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : downgrade openstacksdk in upper constraints] ******************************************* | |
changed: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : fail if secure boot is requested without UEFI] ***************************************** | |
skipping: [127.0.0.1] | |
TASK [install gunicorn and lxml] *************************************************************************************** | |
TASK [bifrost-pip-install : Check that sourcedir is provided with source_install] ************************************** | |
skipping: [127.0.0.1] | |
TASK [bifrost-pip-install : Set extra_args if upper_constraints_file is defined] *************************************** | |
ok: [127.0.0.1] | |
TASK [bifrost-pip-install : Install gunicorn package from pip using virtualenv] **************************************** | |
ok: [127.0.0.1] | |
TASK [bifrost-pip-install : Install requirements from {{ sourcedir }} using pip] *************************************** | |
skipping: [127.0.0.1] | |
TASK [bifrost-pip-install : Install from {{ sourcedir }} using pip] **************************************************** | |
skipping: [127.0.0.1] | |
TASK [bifrost-pip-install : Check that sourcedir is provided with source_install] ************************************** | |
skipping: [127.0.0.1] | |
TASK [bifrost-pip-install : Set extra_args if upper_constraints_file is defined] *************************************** | |
ok: [127.0.0.1] | |
TASK [bifrost-pip-install : Install lxml package from pip using virtualenv] ******************************************** | |
ok: [127.0.0.1] | |
TASK [bifrost-pip-install : Install requirements from {{ sourcedir }} using pip] *************************************** | |
skipping: [127.0.0.1] | |
TASK [bifrost-pip-install : Install from {{ sourcedir }} using pip] **************************************************** | |
skipping: [127.0.0.1] | |
TASK [install libvirt-python if needed] ******************************************************************************** | |
TASK [bifrost-pip-install : Check that sourcedir is provided with source_install] ************************************** | |
skipping: [127.0.0.1] | |
TASK [bifrost-pip-install : Set extra_args if upper_constraints_file is defined] *************************************** | |
ok: [127.0.0.1] | |
TASK [bifrost-pip-install : Install libvirt-python package from pip using virtualenv] ********************************** | |
ok: [127.0.0.1] | |
TASK [bifrost-pip-install : Install requirements from {{ sourcedir }} using pip] *************************************** | |
skipping: [127.0.0.1] | |
TASK [bifrost-pip-install : Install from {{ sourcedir }} using pip] **************************************************** | |
skipping: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : configure libvirt log filters for qemu] ************************************************ | |
ok: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : Restart libvirt service] *************************************************************** | |
changed: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : Enable IP forwarding in sysctl] ******************************************************** | |
ok: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : Look for sgabios in /usr/share/qemu/] ************************************************** | |
ok: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : Look for sgabios in /usr/share/misc] *************************************************** | |
ok: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : Place sgabios.bin] ********************************************************************* | |
skipping: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : Stop default dnsmasq service] ********************************************************** | |
ok: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : destroy libvirt network] *************************************************************** | |
changed: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : ensure libvirt network is present] ***************************************************** | |
changed: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : find facts on libvirt networks] ******************************************************** | |
ok: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : Delete network interface if virtual network is not active] ***************************** | |
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["ip", "link", "del", "virbr0"], "delta": "0:00:00.002517", "end": "2023-04-05 22:28:45.781334", "msg": "non-zero return code", "rc": 1, "start": "2023-04-05 22:28:45.778817", "stderr": "Cannot find device \"virbr0\"", "stderr_lines": ["Cannot find device \"virbr0\""], "stdout": "", "stdout_lines": []} | |
...ignoring | |
TASK [bifrost-create-vm-nodes : set libvirt network to autostart] ****************************************************** | |
changed: [127.0.0.1] | |
TASK [bifrost-create-vm-nodes : ensure libvirt network is running] ***************************************************** | |
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "internal error: Network is already in use by interface enp1s0"} | |
PLAY RECAP ************************************************************************************************************* | |
127.0.0.1 : ok=26 changed=9 unreachable=0 failed=1 skipped=17 rescued=0 ignored=1 | |
Command '['/opt/stack/bifrost/bin/ansible-playbook', 'test-bifrost-create-vm.yaml', '-i', 'inventory/localhost', '-e', 'bifrost_venv_dir=/opt/stack/bifrost', '-e', 'test_vm_num_nodes=2', '-e', 'test_vm_memory_size=3072', '-e', 'test_vm_disk_gib=10', '-e', 'test_vm_domain_type=qemu', '-e', 'test_vm_node_driver=ipmi', '-e', 'default_boot_mode=uefi', '-e', 'baremetal_json_file=/home/jay/bifrost/baremetal-inventory.json', '-e', 'baremetal_nodes_json=/home/jay/bifrost/baremetal-nodes.json', '-e', 'git_branch=master']' returned non-zero exit status 2. |
Author
jayofdoom
commented
Apr 5, 2023
jay@bftest:~/bifrost$ dpkg -l | grep qemu
ii ipxe-qemu 1.21.1+git-20220113.fbbdc3926-0ubuntu1 all PXE boot firmware - ROM images for qemu
ii ipxe-qemu-256k-compat-efi-roms 1.0.0+git-20150424.a25a16d-0ubuntu4 all PXE boot firmware - Compat EFI ROM images for qemu
ii libvirt-daemon-driver-qemu 8.0.0-1ubuntu7.4 amd64 Virtualization daemon QEMU connection driver
ii qemu-block-extra 1:6.2+dfsg-2ubuntu6.6 amd64 extra block backend modules for qemu-system and qemu-utils
ii qemu-system-common 1:6.2+dfsg-2ubuntu6.6 amd64 QEMU full system emulation binaries (common files)
ii qemu-system-data 1:6.2+dfsg-2ubuntu6.6 all QEMU full system emulation (data files)
ii qemu-system-gui 1:6.2+dfsg-2ubuntu6.6 amd64 QEMU full system emulation binaries (user interface and audio support)
ii qemu-system-x86 1:6.2+dfsg-2ubuntu6.6 amd64 QEMU full system emulation binaries (x86)
ii qemu-utils 1:6.2+dfsg-2ubuntu6.6 amd64 QEMU utilities
jay@bftest:~/bifrost$ dpkg -l | grep kvm
jay@bftest:~/bifrost$
TASK [bifrost-create-vm-nodes : Delete network interface if virtual network is not active] *****************************
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["ip", "link", "del", "virbr0"], "delta": "0:00:00.002533", "end": "2023-04-05 22:34:28.663316", "msg": "non-zero return code", "rc": 1, "start": "2023-04-05 22:34:28.660783", "stderr": "Cannot find device \"virbr0\"", "stderr_lines": ["Cannot find device \"virbr0\""], "stdout": "", "stdout_lines": []}
...ignoring
TASK [bifrost-create-vm-nodes : set libvirt network to autostart] ******************************************************
changed: [127.0.0.1]
TASK [bifrost-create-vm-nodes : ensure libvirt network is running] *****************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "internal error: Network is already in use by interface enp1s0"}
PLAY RECAP *************************************************************************************************************
127.0.0.1 : ok=26 changed=10 unreachable=0 failed=1 skipped=17 rescued=0 ignored=1
Command '['/opt/stack/bifrost/bin/ansible-playbook', 'test-bifrost-create-vm.yaml', '-i', 'inventory/localhost', '-e', 'bifrost_venv_dir=/opt/stack/bifrost', '--ask-become-pass', '-e', 'test_vm_num_nodes=2', '-e', 'test_vm_memory_size=3072', '-e', 'test_vm_disk_gib=10', '-e', 'test_vm_domain_type=qemu', '-e', 'test_vm_node_driver=ipmi', '-e', 'default_boot_mode=uefi', '-e', 'baremetal_json_file=/home/jay/bifrost/baremetal-inventory.json', '-e', 'baremetal_nodes_json=/home/jay/bifrost/baremetal-nodes.json', '-e', 'git_branch=master']' returned non-zero exit status 2.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment