You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "a1768623020 (via GitHub)" <gi...@apache.org> on 2024/04/01 03:09:20 UTC

[PR] add The name of the Qemu binary to look for. [cloudstack]

a1768623020 opened a new pull request, #8855:
URL: https://github.com/apache/cloudstack/pull/8855

   ### Description
   This PR adds the qemu'binary option for building SystemVM and provides an option for building Arm64 architecture
   By default, Packer only looks for programs with a binary name of qemu-system-x86_64, while on arm64, the name is qemu-kvm. Running the script directly on arm64 will result in a build failure
   
   <!--- 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: AUTOMATION 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)
   - [x] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   - [ ] build/CI
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [x] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [ ] Minor
   - [x] Trivial
   
   
   ### Screenshots (if appropriate):
   Before adding options
   ![PixPin_2024-04-01_11-01-21](https://github.com/apache/cloudstack/assets/32887476/4c92caa0-838a-491d-a8d6-ca39efa38172)
   
   After adding options
   ![PixPin_2024-04-01_11-00-21](https://github.com/apache/cloudstack/assets/32887476/828e869c-4450-4ac0-bafd-8ceabf57f3c3)
   ### How Has This Been Tested?
   An error occurred when using the build script to build. Upon checking the template file, it was found that the system virtual machine image file points to the x86_64 download address. After changing the download address and checksum, the build script was run again and it was found that it still cannot be built normally. When checking the build configuration of the packer, it was found that by default, the qemu component of the packer looks for the qemu-system-x86_64 binary program, which does not exist on the arm64 server. After adding this option and modifying it to qemu-kvm, the script can be built normally
   
   <!-- Please describe in detail how you tested your changes. -->
   <!-- Include details of your testing environment, and the tests you ran to -->
   
   #### How did you try to break this feature and the system with this change?
   Ignore this section
   <!-- see how your change affects other areas of the code, etc. -->
   
   
   <!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

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


Re: [PR] add The name of the Qemu binary to look for. [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on code in PR #8855:
URL: https://github.com/apache/cloudstack/pull/8855#discussion_r1555554098


##########
tools/appliance/systemvmtemplate/template.json:
##########
@@ -22,6 +22,7 @@
         "<enter><wait>"
       ],
       "boot_wait": "5s",
+      "qemu_binary": "qemu-system-x86_64",

Review Comment:
   @a1768623020 
   can you move this to line 34 ?
   the parameters are ordered now.



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

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


Re: [PR] add The name of the Qemu binary to look for. [cloudstack]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #8855:
URL: https://github.com/apache/cloudstack/pull/8855#issuecomment-2032397769

   ## [Codecov](https://app.codecov.io/gh/apache/cloudstack/pull/8855?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   All modified and coverable lines are covered by tests :white_check_mark:
   > Project coverage is 14.16%. Comparing base [(`88d2504`)](https://app.codecov.io/gh/apache/cloudstack/commit/88d250487c2dfb91754644a09c7e862aea490d61?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`abdd113`)](https://app.codecov.io/gh/apache/cloudstack/pull/8855?dropdown=coverage&src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   > Report is 2 commits behind head on main.
   
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@              Coverage Diff              @@
   ##               main    #8855       +/-   ##
   =============================================
   - Coverage     31.12%   14.16%   -16.96%     
   + Complexity    34000    12859    -21141     
   =============================================
     Files          5404     5234      -170     
     Lines        380309   355715    -24594     
     Branches      55507    51237     -4270     
   =============================================
   - Hits         118372    50395    -67977     
   - Misses       246252   298479    +52227     
   + Partials      15685     6841     -8844     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/cloudstack/pull/8855/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [simulator-marvin-tests](https://app.codecov.io/gh/apache/cloudstack/pull/8855/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `15.03% <ø> (-9.84%)` | :arrow_down: |
   | [uitests](https://app.codecov.io/gh/apache/cloudstack/pull/8855/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `4.34% <ø> (ø)` | |
   | [unit-tests](https://app.codecov.io/gh/apache/cloudstack/pull/8855/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/cloudstack/pull/8855?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

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


Re: [PR] add The name of the Qemu binary to look for. [cloudstack]

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on PR #8855:
URL: https://github.com/apache/cloudstack/pull/8855#issuecomment-2029081256

   Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
   Here are some useful points:
   - In case of a new feature add useful documentation (raise doc PR at https://github.com/apache/cloudstack-documentation)
   - Be patient and persistent. It might take some time to get a review or get the final approval from the committers.
   - Pay attention to the quality of your code, ensure tests are passing and your PR doesn't have conflicts.
   - Please follow [ASF Code of Conduct](https://github.com/apache/.github/blob/main/.github/CODE_OF_CONDUCT.md) for all communication including (but not limited to) comments on Pull Requests, Issues, Mailing list and Slack.
   - Be sure to read the [CloudStack Coding Conventions](https://cwiki.apache.org/confluence/display/CLOUDSTACK/Coding+conventions).
   Apache CloudStack is a community-driven project and together we are making it better 🚀.
   In case of doubts contact the developers at:
   Mailing List: dev@cloudstack.apache.org (https://cloudstack.apache.org/mailing-lists.html)
   Slack: https://apachecloudstack.slack.com/
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

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


Re: [PR] add The name of the Qemu binary to look for. [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #8855:
URL: https://github.com/apache/cloudstack/pull/8855#issuecomment-2031933909

   @a1768623020 
   will it break the systemvm templates build on rocky/rhel/alma host ?
   
   the hosts do not have file `qemu-system-x86_64`, but `/usr/libexec/qemu-kvm`


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

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


Re: [PR] add The name of the Qemu binary to look for. [cloudstack]

Posted by "a1768623020 (via GitHub)" <gi...@apache.org>.
a1768623020 commented on PR #8855:
URL: https://github.com/apache/cloudstack/pull/8855#issuecomment-2041993835

   > @a1768623020 will it break the systemvm templates build on rocky/rhel/alma host ?
   > 
   > the hosts do not have file `qemu-system-x86_64`, but `/usr/libexec/qemu-kvm`
   
   no,The default value is qemu-system-x86_64 If I don't add this option, he will also look for it.
   Adding this option is only for compiling other architectures


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

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