Skip to content

Conversation

@praveenkumar
Copy link
Member

Due to openshift/installer#1956 , now
by default the location of the qcow2 images are part of
/var/lib/libvirt/openshift/<cluster_name>_<random_hash> so
this change will make sure we are copy correct file as part of
our CI.

Copy link
Contributor

@cfergeau cfergeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"we are copying the correct file" in the commit log


sudo cp /var/lib/libvirt/images/${VM_PREFIX}-master-0 $destDir
sudo cp /var/lib/libvirt/images/${VM_PREFIX}-base $destDir
if [ -f /var/lib/libvirt/images/${VM_PREFIX}-master-0 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be cleaner to check for libvirt storage pool existence, get the path from there, and use it. But given our use of sh to do all of this, the way you did is much easier/efficient.

Due to openshift/installer#1956 , now
by default the location of the qcow2 images are part of
`/var/lib/libvirt/openshift/<cluster_name>_<random_hash>` so
this change will make sure we are copying the correct file as part of
our CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants