Skip to content

libvirt: Unable to destroy if domain is not running and keep error loop. #656

Closed

Description

@praveenkumar

Version

$ openshift-install version
bin/openshift-install v0.3.0-187-g09aa205d4df479476c06bc8d79e69091eaf7a13f
Terraform v0.11.10

Platform (aws|libvirt|openstack): libvirt

What happened?

 $ virsh -c $OPENSHIFT_INSTALL_LIBVIRT_URI list --all
 Id    Name                           State
----------------------------------------------------
 -     master0                        shut off
 -     test1-worker-0-zd7hd           shut off

$ bin/openshift-install destroy cluster --dir test --log-level debug
DEBUG Deleting libvirt volumes                     
DEBUG Deleting libvirt domains                     
DEBUG Deleting libvirt network                     
DEBUG Exiting deleting libvirt network             
DEBUG goroutine deleteNetwork complete             
ERROR Error destroying domain test1-worker-0-zd7hd: virError(Code=55, Domain=10, Message='Requested operation is not valid: domain is not running') 
DEBUG Exiting deleting libvirt domains             
DEBUG Exiting deleting libvirt volumes             
DEBUG goroutine deleteVolumes complete             
DEBUG Deleting libvirt domains                     
ERROR Error destroying domain test1-worker-0-zd7hd: virError(Code=55, Domain=10, Message='Requested operation is not valid: domain is not running') 
[...]

What you expected to happen?

It should delete or just error out without looping continue.

How to reproduce it (as minimally and precisely as possible)?

$ openshift-install create cluster
---- Manually shutdown the VM's ----
$ openshift-install destroy cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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