ERRATA CORRIGE:
The Network restart is triggered using the UI WITH "Clean Up" set and without
"Make redundant" enabled.
Thomas
Dear Cloudstack-Developers,
a Network restart triggered using the UI (without "Clean up" and without "Make
redundant" enabled) fails with:
"Can't find all necessary running routers!"
I have looked up the source code for it and came to the following relevant
snippet in
server/src/main/java/com/cloud/network/element/VirtualRouterElement.java
starting at line 234:
###
if (offering.isRedundantRouter() || network.isRollingRestart()) {
expectedRouters = 2;
}
###
From the log files I see that a rollingRestart is indeed triggered, but why
does it expect two routers then? Because there might be two routers running
simultaneously during the restart? If that was the case, then why in the
following lines, relevant snippet (starting at line 237):
###
if (routers == null || routers.size() < expectedRouters) {
//we might have a router which is already deployed and running.
//so check the no of routers in network currently.
List<DomainRouterVO> current_routers =
_routerDao.listByNetworkAndRole(network.getId(), Role.VIRTUAL_ROUTER);
if (current_routers.size() < 2) {
updateToFailedState(network);
throw new ResourceUnavailableException("Can't find all
necessary running routers!", DataCenter.class, network.getDataCenterId());
}
}
###
is throwing an Exception when current_routers.size() is smaller than 2 and not
smaller than 1?
I understand that the logic is designed towards more complex networks, but will
this logic not always fails for an already implemented BASIC network on KVM,
with no redudant routers enabled and one VR already active?
Please let me know what I am missing, I attach the relevant log file inline at
the end of this message.
Sincerely,
Thomas Moroder
--
Find out more about server24 and our range of CloudStack related services
CloudStack Reference Cloud <https://www.server24.net/>
CloudStack Consulting
<http://www.server24.it/cloud/integrazione-e-consulenza-cloud/>
This email and any attachments to it may be confidential and are intended solely
for the use of the individual to whom it is addressed. Any views or opinions
expressed are solely those of the author and do not necessarily represent those
of server24 or related companies. If you are not the intended recipient of this
email, you must neither take any action based upon its contents, nor copy or
show it to anyone. Please contact the sender if you believe you have received
this email in error. server24 is a division of incubatec Ltd, a company
incorporated in South Tyrol, Italy with offices in Italy, Germany and the USA.
server24 is a registered trademark.
Incubatec GmbH - Srl
Via Scurcia'str. 36, 39046 Ortisei(BZ), ITALIA
Registered with the chamber of commerce of Bolzano the 8th of November 2001 with
REA-No. 168204 (s.c. of EUR 10.000 f.p.u.)
President: Thomas Moroder, VAT-No. IT 02283140214
Tel: +39.0471796829 - Fax: +39.0471797949
IMPRINT:
http://www.incubatec.com/imprint.html
PRIVACY:
http://www.server24.it/informativa_completa.html