-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libvert issue #99
Comments
Hi @addisflava, thank you for reporting this, are you trying to install it on Ubuntu? |
I updated the provisioner to use the latest version of the module. |
Hi @kubealex I have the same issue with Ubuntu 22.04. Exact same output as above. I noticed that on Ubuntu the file is located under /usr/share/OVMF/OVMF_CODE.fd but the provisioner is looking for it /usr/share/edk2/ovmf/OVMF_CODE.fd FAILED! => {"changed": false, "cmd": "/usr/bin/terraform apply -no-color -input=false -auto-approve -lock=true /tmp/tmpjt848myj.tfplan", "msg": "\nError: error creating libvirt domain: operation failed: unable to find any master var store for loader: /usr/share/edk2/ovmf/OVMF_CODE.fd\n\n with module.loadbalancer[0].libvirt_domain.service-vm[0],\n on .terraform/modules/loadbalancer/modules/terraform-libvirt-instance/main.tf line 47, in resource "libvirt_domain" "service-vm":\n 47: resource "libvirt_domain" "service-vm" {\n\n\nError: error creating libvirt domain: operation failed: unable to find any master var store for loader: /usr/share/edk2/ovmf/OVMF_CODE.fd\n\n with module.master_nodes.libvirt_domain.service-vm[0],\n on .terraform/modules/master_nodes/modules/terraform-libvirt-instance/main.tf line 47, in resource "libvirt_domain" "service-vm":\n |
hi @romyt can you please double check with the latest changes? I added a variable to globally set the path of the Firmware based on the host OS, I tested it now and it works, can you please confirm on your end? |
Hi @kubealex, Full logs bellow: TASK [Ensure control plane VMs are in place] ********************************************************************************** PLAY RECAP ******************************************************************************************************************** |
Mmmhhh @romyt, that's interesting...when you have time can you show me the content (if any) of the /use/share/OVMF folder? Maybe the name of the file changed 🤯 Thank you! |
I read here that libvirt on Ubuntu 22.04 has a permission bug. I wonder if this is not the reason. What version of libvirt do you use for your test? The content of: |
thank you @romyt sysadmin@ubuntu-server:~/libvirt-k8s-provisioner$ sudo virsh version sysadmin@ubuntu-server:~/libvirt-k8s-provisioner$ libvirtd --version sysadmin@ubuntu-server:~/libvirt-k8s-provisioner$ uname -a I'm using a fresh cloud image for the setup: And this is the outcome of a fresh run: PLAY RECAP ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** |
The only difference is Let me try to move the code on the server itself and run it from there using root account to see if I still have the same issue. |
Same problem running on the server! There is definitely something not right here... TASK [Ensure cluster VMs are in place] **************************************************************************************** PLAY RECAP ******************************************************************************************************************** |
"msg": "\nError: error creating libvirt domain: operation failed: unable to find any master var store for loader: /usr/share/edk2/ovmf/OVMF_CODE.fd\n\n with module.master_nodes.libvirt_domain.service-vm[0],\n on .terraform/modules/master_nodes/modules/terraform-libvirt-instance/main.tf line 47, in resource "libvirt_domain" "service-vm":\n 47: resource "libvirt_domain" "service-vm" {\n\n\nError: error creating libvirt domain: operation failed: unable to find any master var store for loader: /usr/share/edk2/ovmf/OVMF_CODE.fd\n\n with module.worker_nodes.libvirt_domain.service-vm[0],\n on .terraform/modules/worker_nodes/modules/terraform-libvirt-instance/main.tf line 47, in resource "libvirt_domain" "service-vm":\n 47: resource "libvirt_domain" "service-vm" {",
"rc": 1,
"stderr": "\nError: error creating libvirt domain: operation failed: unable to find any master var store for loader: /usr/share/edk2/ovmf/OVMF_CODE.fd\n\n with module.master_nodes.libvirt_domain.service-vm[0],\n on .terraform/modules/master_nodes/modules/terraform-libvirt-instance/main.tf line 47, in resource "libvirt_domain" "service-vm":\n 47: resource "libvirt_domain" "service-vm" {\n\n\nError: error creating libvirt domain: operation failed: unable to find any master var store for loader: /usr/share/edk2/ovmf/OVMF_CODE.fd\n\n with module.worker_nodes.libvirt_domain.service-vm[0],\n on .terraform/modules/worker_nodes/modules/terraform-libvirt-instance/main.tf line 47, in resource "libvirt_domain" "service-vm":\n 47: resource "libvirt_domain" "service-vm" {\n\n",
"stderr_lines": [
"",
"Error: error creating libvirt domain: operation failed: unable to find any master var store for loader: /usr/share/edk2/ovmf/OVMF_CODE.fd",
"",
" with module.master_nodes.libvirt_domain.service-vm[0],",
" on .terraform/modules/master_nodes/modules/terraform-libvirt-instance/main.tf line 47, in resource "libvirt_domain" "service-vm":",
" 47: resource "libvirt_domain" "service-vm" {",
"",
"",
"Error: error creating libvirt domain: operation failed: unable to find any master var store for loader: /usr/share/edk2/ovmf/OVMF_CODE.fd",
"",
" with module.worker_nodes.libvirt_domain.service-vm[0],",
" on .terraform/modules/worker_nodes/modules/terraform-libvirt-instance/main.tf line 47, in resource "libvirt_domain" "service-vm":",
" 47: resource "libvirt_domain" "service-vm" {",
""
],
"stdout": "module.libvirt_pool.libvirt_pool.vm_pool: Creating...\nmodule.libvirt_network.libvirt_network.vm_network: Creating...\nmodule.libvirt_pool.libvirt_pool.vm_pool: Creation complete after 5s [id=71027022-1700-4007-9dc4-0d2d17c23e2e]\nmodule.libvirt_network.libvirt_network.vm_network: Creation complete after 5s [id=a1f12fab-2aca-4b4b-8fc2-861ec807a64c]\nmodule.master_nodes.data.template_file.user_data[0]: Reading...\nmodule.worker_nodes.data.template_file.user_data[0]: Reading...\nmodule.master_nodes.libvirt_volume.os_image[0]: Creating...\nmodule.worker_nodes.libvirt_volume.os_image[0]: Creating...\nmodule.worker_nodes.data.template_file.user_data[0]: Read complete after 0s [id=34f0436f48849fa59eb76b98d30720376f110444df95237e3adcc96c7f0d8d52]\nmodule.master_nodes.data.template_file.user_data[0]: Read complete after 0s [id=d12f168eb9e443c541d4177bb394b0294ce1dca493cc2131735408e6ccfa06d2]\nmodule.worker_nodes.libvirt_cloudinit_disk.commoninit[0]: Creating...\nmodule.master_nodes.libvirt_cloudinit_disk.commoninit[0]: Creating...\nmodule.master_nodes.libvirt_volume.os_image[0]: Creation complete after 1s [id=/var/lib/libvirt/images/k8s-test/k8s-test-master-0-os_image]\nmodule.master_nodes.libvirt_volume.os_disk[0]: Creating...\nmodule.worker_nodes.libvirt_volume.os_image[0]: Creation complete after 2s [id=/var/lib/libvirt/images/k8s-test/k8s-test-worker-0-os_image]\nmodule.worker_nodes.libvirt_volume.os_disk[0]: Creating...\nmodule.worker_nodes.libvirt_cloudinit_disk.commoninit[0]: Creation complete after 2s [id=/var/lib/libvirt/images/k8s-test/k8s-test-worker-0-commoninit.iso;77011195-611e-4f46-bc26-54ade61e309a]\nmodule.master_nodes.libvirt_cloudinit_disk.commoninit[0]: Creation complete after 2s [id=/var/lib/libvirt/images/k8s-test/k8s-test-master-0-commoninit.iso;2de59958-e79e-41bd-acac-5899cf09e398]\nmodule.master_nodes.libvirt_volume.os_disk[0]: Creation complete after 1s [id=/var/lib/libvirt/images/k8s-test/k8s-test-master-0]\nmodule.master_nodes.libvirt_domain.service-vm[0]: Creating...\nmodule.worker_nodes.libvirt_volume.os_disk[0]: Creation complete after 1s [id=/var/lib/libvirt/images/k8s-test/k8s-test-worker-0]\nmodule.worker_nodes.libvirt_domain.service-vm[0]: Creating...\n",
"stdout_lines": [
"module.libvirt_pool.libvirt_pool.vm_pool: Creating...",
"module.libvirt_network.libvirt_network.vm_network: Creating...",
"module.libvirt_pool.libvirt_pool.vm_pool: Creation complete after 5s [id=71027022-1700-4007-9dc4-0d2d17c23e2e]",
"module.libvirt_network.libvirt_network.vm_network: Creation complete after 5s [id=a1f12fab-2aca-4b4b-8fc2-861ec807a64c]",
"module.master_nodes.data.template_file.user_data[0]: Reading...",
"module.worker_nodes.data.template_file.user_data[0]: Reading...",
"module.master_nodes.libvirt_volume.os_image[0]: Creating...",
"module.worker_nodes.libvirt_volume.os_image[0]: Creating...",
"module.worker_nodes.data.template_file.user_data[0]: Read complete after 0s [id=34f0436f48849fa59eb76b98d30720376f110444df95237e3adcc96c7f0d8d52]",
"module.master_nodes.data.template_file.user_data[0]: Read complete after 0s [id=d12f168eb9e443c541d4177bb394b0294ce1dca493cc2131735408e6ccfa06d2]",
"module.worker_nodes.libvirt_cloudinit_disk.commoninit[0]: Creating...",
"module.master_nodes.libvirt_cloudinit_disk.commoninit[0]: Creating...",
"module.master_nodes.libvirt_volume.os_image[0]: Creation complete after 1s [id=/var/lib/libvirt/images/k8s-test/k8s-test-master-0-os_image]",
"module.master_nodes.libvirt_volume.os_disk[0]: Creating...",
"module.worker_nodes.libvirt_volume.os_image[0]: Creation complete after 2s [id=/var/lib/libvirt/images/k8s-test/k8s-test-worker-0-os_image]",
"module.worker_nodes.libvirt_volume.os_disk[0]: Creating...",
"module.worker_nodes.libvirt_cloudinit_disk.commoninit[0]: Creation complete after 2s [id=/var/lib/libvirt/images/k8s-test/k8s-test-worker-0-commoninit.iso;77011195-611e-4f46-bc26-54ade61e309a]",
"module.master_nodes.libvirt_cloudinit_disk.commoninit[0]: Creation complete after 2s [id=/var/lib/libvirt/images/k8s-test/k8s-test-master-0-commoninit.iso;2de59958-e79e-41bd-acac-5899cf09e398]",
"module.master_nodes.libvirt_volume.os_disk[0]: Creation complete after 1s [id=/var/lib/libvirt/images/k8s-test/k8s-test-master-0]",
"module.master_nodes.libvirt_domain.service-vm[0]: Creating...",
"module.worker_nodes.libvirt_volume.os_disk[0]: Creation complete after 1s [id=/var/lib/libvirt/images/k8s-test/k8s-test-worker-0]",
"module.worker_nodes.libvirt_domain.service-vm[0]: Creating..."
]
}
The text was updated successfully, but these errors were encountered: