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

[PR] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   ### Description
   
   This PR fixes #8158 
   
   This PR also allows specifying IP in non-default IP range of shared networks when deploy a VM.
   
   <!--- 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)
   - [x] 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)
   - [ ] build/CI
   
   ### 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 -->
   
   #### How did you try to break this feature and the system with this change?
   
   <!-- 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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   <b>[SF] Trillian test result (tid-9428)</b>
   Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
   Total time taken: 42273 seconds
   Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8741-t9428-kvm-centos7.zip
   Smoke tests completed. 109 look OK, 1 have errors, 0 did not run
   Only failed and skipped tests results shown below:
   
   
   Test | Result | Time (s) | Test File
   --- | --- | --- | ---
   test_08_migrate_vm | `Error` | 43.84 | test_vm_life_cycle.py
   


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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


##########
systemvm/debian/opt/cloud/bin/cs/CsHelper.py:
##########
@@ -113,22 +113,20 @@ def bool_to_yn(val):
 def get_device_info():
     """ Returns all devices on system with their ipv4 ip netmask """
     list = []
+    mtu = None
     for i in execute("ip addr show |grep -v secondary"):
         vals = i.strip().lstrip().rstrip().split()
-        if re.search('[0-9]:',vals[0]):
-            to={}
-            to['mtu'] = vals[4]
-            list.append(to)
+        if re.search('[0-9]:', vals[0]):
+            mtu = vals[4]
 
         if vals[0] == "inet":
-            if len(list) > 0:
-                to = list.pop(len(list)-1)
-            else:
-                to={}
+            to = {}
             to['ip'] = vals[1]
             to['dev'] = vals[-1]
             to['network'] = IPNetwork(to['ip'])
             to['dnsmasq'] = False
+            if mtu:
+                to['mtu'] = mtu

Review Comment:
   yes @sureshanaparti 
   it is good to have, but takes time ..
   
   



-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8863


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

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

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

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


Re: [PR] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   <b>[SF] Trillian test result (tid-9982)</b>
   Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
   Total time taken: 42891 seconds
   Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8741-t9982-kvm-centos7.zip
   Smoke tests completed. 109 look OK, 1 have errors, 0 did not run
   Only failed and skipped tests results shown below:
   
   
   Test | Result | Time (s) | Test File
   --- | --- | --- | ---
   test_08_migrate_vm | `Error` | 0.08 | test_vm_life_cycle.py
   


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9393


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   @rohityadavcloud a [SL] 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.

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

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


Re: [PR] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   @DaanHoogland a [SL] 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.

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

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


Re: [PR] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

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

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

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


Re: [PR] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   > Failed to fetch results with details: bash: line 1: /opt/cloud/bin/filesystem_writable_check.py: Permission denied
   > 
   > Update: after making the file /opt/cloud/bin/filesystem_writable_check.py executable, the health check works fine.
   
   @ccycv 
   did you replace the files in /opt/cloud/bin when you tested this PR ?
   some files (including filesystem_writable_check.py) are not executable in source code, you can  mark them all as executable
   
   ```
   chmod +x /opt/cloud/bin/*
   ```


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   > > Failed to fetch results with details: bash: line 1: /opt/cloud/bin/filesystem_writable_check.py: Permission denied
   > > Update: after making the file /opt/cloud/bin/filesystem_writable_check.py executable, the health check works fine.
   > 
   > @ccycv did you replace the files in /opt/cloud/bin when you tested this PR ? some files (including filesystem_writable_check.py) are not executable in source code, you can mark them all as executable
   > 
   > ```
   > chmod +x /opt/cloud/bin/*
   > ```
   
   I have only replaced the cloud-scripts.tgz on the management server and did the router rebuild.


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

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

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

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


Re: [PR] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   ## [Codecov](https://app.codecov.io/gh/apache/cloudstack/pull/8741?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 13.17%. Comparing base [(`10f72a1`)](https://app.codecov.io/gh/apache/cloudstack/commit/10f72a17f6e903e8c1a38486506ab90871a0e62b?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`3dd5d4c`)](https://app.codecov.io/gh/apache/cloudstack/pull/8741?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   > Report is 1 commits behind head on 4.18.
   
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@            Coverage Diff            @@
   ##               4.18    #8741   +/-   ##
   =========================================
     Coverage     13.17%   13.17%           
     Complexity     9204     9204           
   =========================================
     Files          2724     2724           
     Lines        258137   258137           
     Branches      40235    40235           
   =========================================
     Hits          33998    33998           
     Misses       219830   219830           
     Partials       4309     4309           
   ```
   
   
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/cloudstack/pull/8741?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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   @DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. 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.

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

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


Re: [PR] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache merged PR #8741:
URL: https://github.com/apache/cloudstack/pull/8741


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

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

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

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


Re: [PR] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   @ccycv
   can you test it ?


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

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

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

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


Re: [PR] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   > @ccycv can you test it ?
   
   Just tested in 2 different environments, CloudStack 4.18.1 and 4.19, looks fine. I only think the MTU should be at the end of the config file; right now, it is after the first guest network.
   
   This is how looks a cloud.conf with 5 guest ranges:
   
   ```
   listen-address=127.0.0.1,149.xxx.xxx.53,91.xxx.xxx.137,51.xxx.xxx.66,217.xxx.xxx.51,217.xxx.xxx.182
   dhcp-range=set:interface-eth0-0,149.xxx.xxx.53,static
   dhcp-option=tag:interface-eth0-0,15,cs1cloud.internal
   dhcp-option=tag:interface-eth0-0,6,149.xxx.xxx.53,8.8.4.4,8.8.8.8
   dhcp-option=tag:interface-eth0-0,3,149.xxx.xxx.62
   dhcp-option=eth0,26,1500
   dhcp-option=tag:interface-eth0-0,1,255.255.255.240
   dhcp-range=set:interface-eth0-1,91.xxx.xxx.137,static
   dhcp-option=tag:interface-eth0-1,15,cs1cloud.internal
   dhcp-option=tag:interface-eth0-1,6,91.xxx.xxx.137,8.8.4.4,8.8.8.8
   dhcp-option=tag:interface-eth0-1,3,91.xxx.xxx.142
   dhcp-option=tag:interface-eth0-1,1,255.255.255.240
   dhcp-range=set:interface-eth0-2,51.xxx.xxx.66,static
   dhcp-option=tag:interface-eth0-2,15,cs1cloud.internal
   dhcp-option=tag:interface-eth0-2,6,51.xxx.xxx.66,8.8.4.4,8.8.8.8
   dhcp-option=tag:interface-eth0-2,3,51.xxx.xxx.126
   dhcp-option=tag:interface-eth0-2,1,255.255.255.192
   dhcp-range=set:interface-eth0-3,217.xxx.xxx.51,static
   dhcp-option=tag:interface-eth0-3,15,cs1cloud.internal
   dhcp-option=tag:interface-eth0-3,6,217.xxx.xxx.51,8.8.4.4,8.8.8.8
   dhcp-option=tag:interface-eth0-3,3,217.xxx.xxx.62
   dhcp-option=tag:interface-eth0-3,1,255.255.255.224
   dhcp-range=set:interface-eth0-4,217.xxx.xxx.182,static
   dhcp-option=tag:interface-eth0-4,15,cs1cloud.internal
   dhcp-option=tag:interface-eth0-4,6,217.xxx.xxx.182,8.8.4.4,8.8.8.8
   dhcp-option=tag:interface-eth0-4,3,217.xxx.xxx.190
   dhcp-option=tag:interface-eth0-4,1,255.255.255.224
   
   ```
   
   
   


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   > > > dhcp-option=eth0,26,1500
   > > 
   > > 
   > > @ccycv You tested with the changes in this PR, right ? just to confirm
   > 
   > Yes, with this PR
   
   great, thanks @ccycv 
   let's merge this pr
   
   we can address the mtu issue in a separated pr if it causes mtu misconfiguration inside the vms


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   > > dhcp-option=eth0,26,1500
   > 
   > @ccycv You tested with the changes in this PR, right ? just to confirm
   
   Yes, with this PR


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   > > > > dhcp-option=eth0,26,1500
   > > > 
   > > > 
   > > > @ccycv You tested with the changes in this PR, right ? just to confirm
   > > 
   > > 
   > > Yes, with this PR
   > 
   > great, thanks @ccycv let's merge this pr
   > 
   > we can address the mtu issue in a separated pr if it causes mtu misconfiguration inside the vms
   
   Just detected an issue, i see this in health check :
   
   Failed to fetch results with details: bash: line 1: /opt/cloud/bin/filesystem_writable_check.py: Permission denied


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   @sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. 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.

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

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


Re: [PR] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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


##########
systemvm/debian/opt/cloud/bin/cs/CsHelper.py:
##########
@@ -113,22 +113,20 @@ def bool_to_yn(val):
 def get_device_info():
     """ Returns all devices on system with their ipv4 ip netmask """
     list = []
+    mtu = None
     for i in execute("ip addr show |grep -v secondary"):
         vals = i.strip().lstrip().rstrip().split()
-        if re.search('[0-9]:',vals[0]):
-            to={}
-            to['mtu'] = vals[4]
-            list.append(to)
+        if re.search('[0-9]:', vals[0]):
+            mtu = vals[4]
 
         if vals[0] == "inet":
-            if len(list) > 0:
-                to = list.pop(len(list)-1)
-            else:
-                to={}
+            to = {}
             to['ip'] = vals[1]
             to['dev'] = vals[-1]
             to['network'] = IPNetwork(to['ip'])
             to['dnsmasq'] = False
+            if mtu:
+                to['mtu'] = mtu

Review Comment:
   @weizhouapache can check the config with any marvin 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.

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

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


Re: [PR] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

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

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

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


Re: [PR] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   > dhcp-option=eth0,26,1500
   
   @ccycv 
   You tested with the changes in this PR, right ? just to confirm


-- 
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] VR: fix dnmasq misconfiguration if there are multiple IP ranges in a shared network [cloudstack]

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

   > cloud-scripts.tgz
   
   @ccycv 
   if you use maven to rebuild the tarball, the scripts in the tarball should be executable
   
   ```
   mvn -P developer,systemvm clean install -pl systemvm/
   ```


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