Re: VM system add static route, ANd Public Interface for a VM on Shared Network

2025-07-13 Thread weiz...@apache.org
Hi Chi,




The python script cannot be executed in this way.




You can add add a test fw/lb/pf rule or enable nat, to test it







-Wei








At 2025-07-13 22:59:52, "Chi vediamo"  wrote:
>Hello Wei, I just got the opportunity to test is not working:
>
>If i try to run the  CsAddress.py script alone I got an error from . import 
>CsHelper, even without adding the lines
>
># python3 /opt/cloud/bin/cs/CsAddress.py
>Traceback (most recent call last):
>  File "/opt/cloud/bin/cs/CsAddress.py", line 23, in 
>from . import CsHelper
>
>And the static routes are not added.
>
>
>Tata Y.
>
>> On Jun 16, 2025, at 11:48 AM, Wei ZHOU  wrote:
>> 
>> maybe better to add after line 375
>> 
>> if self.dev == "eth2":
>>route.set_route("10.x.x.x/30 via x.y.z.1 dev eth2")
>> 
>> -Wei
>> 
>> On Mon, Jun 16, 2025 at 5:23 PM Chi vediamo  wrote:
>> 
>>> Hello Wei,
>>> 
>>> I am going to test this now, Will you recommend
>>> 
>>> after the :  def post_configure(self, address): line 337 ?
>>> or after the  the whole definition like line 375
>>> 
>>> Thank you again.
>>> 
>>> Tata Y.
>>> 
>>> 
 On Jun 16, 2025, at 10:43 AM, Wei ZHOU  wrote:
 
 sorry I thought you want to add iptables rules
 :facepalm
 
 
 If you want to add a route, you can add a line to CsAddress.py
 
>>> https://github.com/apache/cloudstack/blob/main/systemvm/debian/opt/cloud/bin/cs/CsAddress.py#L710C9-L710C27
 for example
 route.set_route("10.x.x.x/30 via x.y.z.1 dev eth2")
 
 
 -Wei
 
 
 
 


Re:Re: CS 4.20.1 VRouter not visible under SUbdomain

2025-07-18 Thread weiz...@apache.org



Hi,




Virtual Routers are only visible and accessible for root admins.




-Wei










At 2025-07-19 00:38:10, "Chi vediamo"  wrote:

Maybe is something Obvious, Does anybody have an input on this?


Thank you


Tata Y.



On Jul 17, 2025, at 5:37 PM, Chi vediamo  wrote:


Team, 


I am curious, or is bug?


The Scenario:


ROOT DOMAIN
|___SUB-DOMAIN1


1) The vRouters are not visible to the Subdomains Is this a Normal Behavior, 
the Subdomain Domain using the Domain Admin role - Is this the intended 
Behaviour ?
I was unable to fins any roles that may impact the visibility of the VROUTER
2) Previously on 4.20 the Subdomain Logo on the top Left Corner was the same 
logo as the Sub-domain After we Upgrade Now shows Is the Logo of the Main Logo, 
like a Cloudstack Logo - Is this the Intended Behavious ?


Thank you


Tata Y.