Skip to content

Error: failed to dial libvirt: dial unix /var/run/libvirt/libvirt-sock: connect: no such file or directory #1635

@YanhuiMa

Description

@YanhuiMa

In RHEL9, there will be following error:

level=error msg=Error: failed to dial libvirt: dial unix /var/run/libvirt/libvirt-sock: connect: no such file or directory
level=error
level=error msg= with provider["openshift/local/libvirt"],
level=error msg= on main.tf line 1, in provider "libvirt":
level=error msg= 1: provider "libvirt" {
level=error
level=error msg=failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failure applying terraform for "bootstrap" stage: error applying Terraform configs: failed to apply Terraform: exit status 1
level=error
level=error msg=Error: failed to dial libvirt: dial unix /var/run/libvirt/libvirt-sock: connect: no such file or directory
level=error
level=error msg= with provider["openshift/local/libvirt"],
level=error msg= on main.tf line 1, in provider "libvirt":
level=error msg= 1: provider "libvirt" {
level=error
level=error
+(utils.sh:1): create_cluster(): auth_template_and_removetmp
+(utils.sh:858): auth_template_and_removetmp(): echo 4
+(utils.sh:859): auth_template_and_removetmp(): generate_auth_template
+(utils.sh:319): generate_auth_template(): set +x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions