You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/02/05 20:58:46 UTC

[GitHub] [cloudstack] ustcweizhou opened a new pull request #4656: Ubuntu 20.04: set Backing Format of qcow2 images in vm start and migration

ustcweizhou opened a new pull request #4656:
URL: https://github.com/apache/cloudstack/pull/4656


   ### Description
   
   This PRs fix issue when fails to start or migrate vm after upgrade to ubuntu 20.04, by setting backing file format of qcow2 images.
   
   In previous cloudstack versions, qcow2 image does not have a backing file format.
   however, it is required in newer qemu versions, for example qemu 4.2 on ubuntu 20.04.
   
   steps to reproduce the issue
   (1) install cloudstack 4.14 or previous version, and ubuntu 19.04 or 18.04/16.04 LTS.
   (2) create vms.
   (3) upgrade to 4.15, upgrade os to ubuntu 20.04 , or install a new server with ubuntu 20.04.
   (4) migrate vm from old ubuntu version to ubuntu 20.04, failed with exception below
   ```
   2021-02-04 13:43:07,397 DEBUG [resource.wrapper.LibvirtMigrateCommandWrapper] (agentRequest-Handler-1:null) (logid:93da9385) ExecutionException : org.libvirt.LibvirtException: Requested operation is not valid: format of backing image '/mnt/03b6f487-9eaf-38bf-ad2d-d985423b832f/66990fcc-fd98-4932-9649-989bf6583d59' of image '/mnt/03b6f487-9eaf-38bf-ad2d-d985423b832f/a3dd1f0f-2557-4e07-951c-e4eb7b3f38b2' was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.html for troubleshooting)
   ```
   (5)stop vm, and start it on ubuntu 20.04 server. failed with exception below
   ```
   2021-02-04 13:46:29,766 WARN  [resource.wrapper.LibvirtStartCommandWrapper] (agentRequest-Handler-5:null) (logid:b54745a7) LibvirtException
   org.libvirt.LibvirtException: Requested operation is not valid: format of backing image '/mnt/03b6f487-9eaf-38bf-ad2d-d985423b832f/66990fcc-fd98-4932-9649-989bf6583d59' of image '/mnt/03b6f487-9eaf-38bf-ad2d-d985423b832f/a3dd1f0f-2557-4e07-951c-e4eb7b3f38b2' was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.html for troubleshooting)
   ```
   
   To make testing easier, step 1 and 2 can be replaced by
   ```
   qemu-img create -f qcow2 -b <backing file> <qcow2 image>
   ```
   so qcow2 image does not have a backing file format.
   
   
   <!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
   
   <!-- For new features, provide link to FS, dev ML discussion etc. -->
   <!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
   
   <!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be closed when this PR gets merged -->
   <!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
   <!-- Fixes: # -->
   
   <!--- ********************************************************************************* -->
   <!--- NOTE: AUTOMATATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE DOCUMENTATION. -->
   <!--- PLEASE PUT AN 'X' in only **ONE** box -->
   <!--- ********************************************************************************* -->
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [ ] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [ ] Minor
   - [ ] Trivial
   
   
   ### Screenshots (if appropriate):
   
   
   ### How Has This Been Tested?
   <!-- Please describe in detail how you tested your changes. -->
   <!-- Include details of your testing environment, and the tests you ran to -->
   <!-- see how your change affects other areas of the code, etc. -->
   
   
   <!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md) document -->
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] ustcweizhou commented on pull request #4656: Ubuntu 20.04: set Backing Format of qcow2 images in vm start and migration

Posted by GitBox <gi...@apache.org>.
ustcweizhou commented on pull request #4656:
URL: https://github.com/apache/cloudstack/pull/4656#issuecomment-774285840


   @rhtyd @shwstppr 
   I have tested with ubuntu 20.04/NFS.
   not sure if there is same issue with
   (1) centos 7 to centos 8 upgrade
   (2) other storage types.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on pull request #4656: Ubuntu 20.04: set Backing Format of qcow2 images in vm start and migration

Posted by GitBox <gi...@apache.org>.
rhtyd commented on pull request #4656:
URL: https://github.com/apache/cloudstack/pull/4656#issuecomment-774421266


   @blueorangutan test 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4656: Ubuntu 20.04: set Backing Format of qcow2 images in vm start and migration

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4656:
URL: https://github.com/apache/cloudstack/pull/4656#issuecomment-774415290


   Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2654


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4656: Ubuntu 20.04: set Backing Format of qcow2 images in vm start and migration

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4656:
URL: https://github.com/apache/cloudstack/pull/4656#issuecomment-774507775


   <b>Trillian test result (tid-3503)</b>
   Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
   Total time taken: 30744 seconds
   Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4656-t3503-kvm-centos7.zip
   Smoke tests completed. 86 look OK, 0 have error(s)
   Only failed tests results shown below:
   
   
   Test | Result | Time (s) | Test File
   --- | --- | --- | ---
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4656: Ubuntu 20.04: set Backing Format of qcow2 images in vm start and migration

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4656:
URL: https://github.com/apache/cloudstack/pull/4656#issuecomment-774421323


   @rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd merged pull request #4656: Ubuntu 20.04: set Backing Format of qcow2 images in vm start and migration

Posted by GitBox <gi...@apache.org>.
rhtyd merged pull request #4656:
URL: https://github.com/apache/cloudstack/pull/4656


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] blueorangutan commented on pull request #4656: Ubuntu 20.04: set Backing Format of qcow2 images in vm start and migration

Posted by GitBox <gi...@apache.org>.
blueorangutan commented on pull request #4656:
URL: https://github.com/apache/cloudstack/pull/4656#issuecomment-774409667


   @rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on pull request #4656: Ubuntu 20.04: set Backing Format of qcow2 images in vm start and migration

Posted by GitBox <gi...@apache.org>.
rhtyd commented on pull request #4656:
URL: https://github.com/apache/cloudstack/pull/4656#issuecomment-774409535


   @blueorangutan package 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org