You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "summer-abacus (via GitHub)" <gi...@apache.org> on 2025/12/23 12:44:33 UTC

[D] Redundant virtual routers on same host [cloudstack]

GitHub user summer-abacus created a discussion: Redundant virtual routers on same host

We are running CloudStack 4.22.0 and setup a redundant virtual router. There are three kvm-hosts running.  After setting one kvm host into maintenance mode, we see  that the primary and backup router are on the same host. 

```
(cloudstackdev) πŸ€ > list routers listall=true filter=name,state,redundantstate,hostname,
count = 5
router:
+-----------+---------+----------------+----------+
|   NAME    |  STATE  | REDUNDANTSTATE | HOSTNAME |
+-----------+---------+----------------+----------+
| r-8-VM    | Running | UNKNOWN        | srv1-215 |
| r-75-VM   | Running | UNKNOWN        | srv1-215 |
| r-981-VM  | Running | BACKUP         | srv1-215 |
| r-982-VM  | Running | PRIMARY        | srv1-215 |
| r-1063-VM | Running | UNKNOWN        | srv1-213 |
+-----------+---------+----------------+----------+
```

```
(cloudstackdev) πŸ•Š > list hosts filter=name,state,type,version,
count = 5
host:
+-----------+-------+--------------------+----------+
|   NAME    | STATE |        TYPE        | VERSION  |
+-----------+-------+--------------------+----------+
| srv1-214  | Up    | Routing            | 4.22.0.0 |
| srv1-215  | Up    | Routing            | 4.22.0.0 |
| v-1058-VM | Up    | ConsoleProxy       | 4.22.0.0 |
| s-1059-VM | Up    | SecondaryStorageVM | 4.22.0.0 |
| srv1-213  | Up    | Routing            | 4.22.0.0 |
+-----------+-------+--------------------+----------+
```

Is there a configuration to avoid having the primary and backup router on the same host?




GitHub link: https://github.com/apache/cloudstack/discussions/12329

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Redundant virtual routers on same host [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Redundant virtual routers on same host

ah ok, understood.

the VRs are deployed to different hosts, but the pod/cluster/host ids are not considered during the host maintenance.


GitHub link: https://github.com/apache/cloudstack/discussions/12329#discussioncomment-15412341

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Redundant virtual routers on same host [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Redundant virtual routers on same host

> I don’t think there is @summer-abacus . Sounds like a good feature. cc @weizhouapache @sureshanaparti 

Actually the feature already exists.

ACS tries to deploy redundant VRs in different pod, then different cluster, then different host. If all fail, then deploy VRs on the same host.

Maybe share more logs to see what caused it.


GitHub link: https://github.com/apache/cloudstack/discussions/12329#discussioncomment-15329507

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Redundant virtual routers on same host [cloudstack]

Posted by "summer-abacus (via GitHub)" <gi...@apache.org>.
GitHub user summer-abacus closed a discussion: Redundant virtual routers on same host

We are running CloudStack 4.22.0 and setup a redundant virtual router. There are three kvm-hosts running.  After setting one kvm host into maintenance mode, we see  that the primary and backup router are on the same host. 

```
(cloudstackdev) πŸ€ > list routers listall=true filter=name,state,redundantstate,hostname,
count = 5
router:
+-----------+---------+----------------+----------+
|   NAME    |  STATE  | REDUNDANTSTATE | HOSTNAME |
+-----------+---------+----------------+----------+
| r-8-VM    | Running | UNKNOWN        | srv1-215 |
| r-75-VM   | Running | UNKNOWN        | srv1-215 |
| r-981-VM  | Running | BACKUP         | srv1-215 |
| r-982-VM  | Running | PRIMARY        | srv1-215 |
| r-1063-VM | Running | UNKNOWN        | srv1-213 |
+-----------+---------+----------------+----------+
```

```
(cloudstackdev) πŸ•Š > list hosts filter=name,state,type,version,
count = 5
host:
+-----------+-------+--------------------+----------+
|   NAME    | STATE |        TYPE        | VERSION  |
+-----------+-------+--------------------+----------+
| srv1-214  | Up    | Routing            | 4.22.0.0 |
| srv1-215  | Up    | Routing            | 4.22.0.0 |
| v-1058-VM | Up    | ConsoleProxy       | 4.22.0.0 |
| s-1059-VM | Up    | SecondaryStorageVM | 4.22.0.0 |
| srv1-213  | Up    | Routing            | 4.22.0.0 |
+-----------+-------+--------------------+----------+
```

Is there a configuration to avoid having the primary and backup router on the same host?




GitHub link: https://github.com/apache/cloudstack/discussions/12329

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Redundant virtual routers on same host [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Redundant virtual routers on same host

I don’t think there is @summer-abacus . Sounds like a good feature. cc @weizhouapache @sureshanaparti 

GitHub link: https://github.com/apache/cloudstack/discussions/12329#discussioncomment-15328814

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Redundant virtual routers on same host [cloudstack]

Posted by "summer-abacus (via GitHub)" <gi...@apache.org>.
GitHub user summer-abacus added a comment to the discussion: Redundant virtual routers on same host

At the moment it looks like reproducable.

migrate virtual router r-981-VM to srv1-214

```
list routers listall=true filter=name,state,redundantstate,hostname,
count = 5
router:
+-----------+---------+----------------+----------+
|   NAME    |  STATE  | REDUNDANTSTATE | HOSTNAME |
+-----------+---------+----------------+----------+
| r-8-VM    | Running | UNKNOWN        | srv1-215 |
| r-75-VM   | Running | UNKNOWN        | srv1-215 |
| r-981-VM  | Running | BACKUP         | srv1-214 |
| r-982-VM  | Running | PRIMARY        | srv1-215 |
| r-1063-VM | Running | UNKNOWN        | srv1-214 |
+-----------+---------+----------------+----------+
```

set srv1-214 into maintenance mode

r-981-VM will be migrated to srv1-215

```
(cloudstackmsu) 🐞 > list routers listall=true filter=name,state,redundantstate,hostname,
count = 5
router:
+-----------+---------+----------------+----------+
|   NAME    |  STATE  | REDUNDANTSTATE | HOSTNAME |
+-----------+---------+----------------+----------+
| r-8-VM    | Running | UNKNOWN        | srv1-215 |
| r-75-VM   | Running | UNKNOWN        | srv1-215 |
| r-981-VM  | Running | BACKUP         | srv1-215 |
| r-982-VM  | Running | PRIMARY        | srv1-215 |
| r-1063-VM | Running | UNKNOWN        | srv1-214 |
+-----------+---------+----------------+----------+
```

Same happens, when we migrate the r-981-VM to srv1-213. And there is also nothing running on this cluster at the moment:

```
 list hostsmetrics filter=name,cpuallocated,memoryallocated
host:
count = 3
+----------+--------------+-----------------+
|   NAME   | CPUALLOCATED | MEMORYALLOCATED |
+----------+--------------+-----------------+
| srv1-214 | 0.00%        |               0 |
| srv1-215 | 1.03%        |      8053063680 |
| srv1-213 | 2.16%        |     22011707392 |
+----------+--------------+-----------------+
```

I've attached the management server logs but I do not see anything unexpected in there.
[mgmt-srv-router.log](https://github.com/user-attachments/files/24429091/mgmt-srv-router.log)



GitHub link: https://github.com/apache/cloudstack/discussions/12329#discussioncomment-15411982

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org