This bug has been around since the early days of CloudStack. Best I can tell the secondary storage state isn’t actually monitored so it will always stay in this annoying Alert state.
Here’s the bug report
https://issues.apache.org/
It’s not an official fix or workaround but for all new installations I tend to manually fix them in the database just to make things a little neater. And here’s the process…
Please always backup your databases before making any changes by hand
1. The query below shows my 2 secondary storage mounts in their alert state but also available for ready for use.
|
1 2 3 4 5 6 7 8 |
mysql> SELECT id,name,status,available FROM cloud.host WHERE type="SecondaryStorage" AND removed IS NULL ; +----+--------------------------------------------+--------+-----------+ | id | name | status | available | +----+--------------------------------------------+--------+-----------+ | 21 | nfs://tbnas501.lab.local/secondary1/export | Alert | 1 | | 39 | nfs://tbnas501.lab.local/secondary2/export | Alert | 1 | +----+--------------------------------------------+--------+-----------+ 2 rows in set (0.00 sec) |
2. This query will change their status from “Alert” to “Up”
|
1 2 3 |
mysql> UPDATE cloud.host SET status='Up' WHERE type="SecondaryStorage" AND status="Alert" AND removed IS NULL; Query OK, 0 rows affected (0.03 sec) Rows matched: 2 Changed: 0 Warnings: 0 |
3. Check the status again to make sure the update was successful.
|
1 2 3 4 5 6 7 8 |
mysql> SELECT id,name,status,available FROM cloud.host WHERE type="SecondaryStorage" AND removed IS NULL ; +----+--------------------------------------------+--------+-----------+ | id | name | status | available | +----+--------------------------------------------+--------+-----------+ | 21 | nfs://tbnas501.lab.local/secondary1/export | Up | 1 | | 39 | nfs://tbnas501.lab.local/secondary2/export | Up | 1 | +----+--------------------------------------------+--------+-----------+ 2 rows in set (0.00 sec) |
Refresh your dashboard in CloudStack and behold your nice alert free Host Alerts box.

Leave a Reply