Skip to content

Commit ec2bf09

Browse files
Harikrishna PatnalaAbhinandan Prateek
authored andcommitted
CLOUDSTACK-2794: Global parameter "router.template.id" should be removed The parameter was not in use. We use zone/global coonfigutaion parameters router.template.xenserver/vmware/hyperv/kvm/lxc to deploy router
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
1 parent ea7b446 commit ec2bf09

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

server/src/com/cloud/agent/manager/AgentManagerImpl.java

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,19 @@
126126
/**
127127
* Implementation of the Agent Manager. This class controls the connection to the agents.
128128
*
129-
* @config {@table || Param Name | Description | Values | Default || || port | port to listen on for agent connection. | Integer
130-
* | 8250 || || workers | # of worker threads | Integer | 5 || || router.template.id | default id for template | Integer
131-
* | 1 || || router.ram.size | default ram for router vm in mb | Integer | 128 || || router.ip.address | ip address for
132-
* the router | ip | 10.1.1.1 || || wait | Time to wait for control commands to return | seconds | 1800 || || domain |
133-
* domain for domain routers| String | foo.com || || alert.wait | time to wait before alerting on a disconnected agent |
134-
* seconds | 1800 || || update.wait | time to wait before alerting on a updating agent | seconds | 600 || ||
135-
* ping.interval | ping interval in seconds | seconds | 60 || || instance.name | Name of the deployment String |
136-
* required || || start.retry | Number of times to retry start | Number | 2 || || ping.timeout | multiplier to
137-
* ping.interval before announcing an agent has timed out | float | 2.0x || || router.stats.interval | interval to
138-
* report router statistics | seconds | 300s || * }
129+
* @config {@table || Param Name | Description | Values | Default ||
130+
* || port | port to listen on for agent connection. | Integer | 8250 ||
131+
* || workers | # of worker threads | Integer | 5 || || router.ram.size | default ram for router vm in mb | Integer | 128 ||
132+
* || router.ip.address | ip address for the router | ip | 10.1.1.1 ||
133+
* || wait | Time to wait for control commands to return | seconds | 1800 ||
134+
* || domain | domain for domain routers| String | foo.com ||
135+
* || alert.wait | time to wait before alerting on a disconnected agent | seconds | 1800 ||
136+
* || update.wait | time to wait before alerting on a updating agent | seconds | 600 ||
137+
* || ping.interval | ping interval in seconds | seconds | 60 ||
138+
* || instance.name | Name of the deployment String | required ||
139+
* || start.retry | Number of times to retry start | Number | 2 ||
140+
* || ping.timeout | multiplier to ping.interval before announcing an agent has timed out | float | 2.0x ||
141+
* || router.stats.interval | interval to report router statistics | seconds | 300s || }
139142
**/
140143
@Local(value = { AgentManager.class })
141144
public class AgentManagerImpl extends ManagerBase implements AgentManager, HandlerFactory {

server/src/com/cloud/configuration/Config.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ public enum Config {
175175
ExternalNetworkStatsInterval("Advanced", NetworkManager.class, Integer.class, "external.network.stats.interval", "300", "Interval (in seconds) to report external network statistics.", null),
176176
RouterCheckInterval("Advanced", NetworkManager.class, Integer.class, "router.check.interval", "30", "Interval (in seconds) to report redundant router status.", null),
177177
RouterCheckPoolSize("Advanced", NetworkManager.class, Integer.class, "router.check.poolsize", "10", "Numbers of threads using to check redundant router status.", null),
178-
RouterTemplateId("Advanced", NetworkManager.class, Long.class, "router.template.id", "1", "Default ID for template.", null),
179178
RouterTemplateXen("Advanced", NetworkManager.class, String.class, "router.template.xen", "SystemVM Template (XenServer)", "Name of the default router template on Xenserver.", null, ConfigurationParameterScope.zone.toString()),
180179
RouterTemplateKVM("Advanced", NetworkManager.class, String.class, "router.template.kvm", "SystemVM Template (KVM)", "Name of the default router template on KVM.", null, ConfigurationParameterScope.zone.toString()),
181180
RouterTemplateVmware("Advanced", NetworkManager.class, String.class, "router.template.vmware", "SystemVM Template (vSphere)", "Name of the default router template on Vmware.", null, ConfigurationParameterScope.zone.toString()),

server/src/com/cloud/template/TemplateManagerImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
257257
UploadDao _uploadDao;
258258
@Inject
259259
protected GuestOSDao _guestOSDao;
260-
long _routerTemplateId = -1;
261260
@Inject
262261
StorageManager _storageMgr;
263262
@Inject
@@ -819,7 +818,6 @@ public boolean stop() {
819818
public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {
820819

821820
final Map<String, String> configs = _configDao.getConfiguration("AgentManager", params);
822-
_routerTemplateId = NumbersUtil.parseInt(configs.get("router.template.id"), 1);
823821

824822
String value = _configDao.getValue(Config.PrimaryStorageDownloadWait.toString());
825823
_primaryStorageDownloadWait = NumbersUtil.parseInt(value, Integer.parseInt(Config.PrimaryStorageDownloadWait.getDefaultValue()));

setup/db/db/schema-410to420.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(uuid, hypervisor_type, hype
3030
UPDATE `cloud`.`hypervisor_capabilities` SET `storage_motion_supported`=true WHERE id=16;
3131
UPDATE `cloud`.`hypervisor_capabilities` SET `storage_motion_supported`=true WHERE id=11;
3232
DELETE FROM `cloud`.`configuration` where name='vmware.percluster.host.max';
33+
DELETE FROM `cloud`.`configuration` where name='router.template.id';
3334
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'AgentManager', 'xen.nics.max', '7', 'Maximum allowed nics for Vms created on Xen');
3435
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Network', 'DEFAULT', 'management-server', 'midonet.apiserver.address', 'http://localhost:8081', 'Specify the address at which the Midonet API server can be contacted (if using Midonet)');
3536
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Network', 'DEFAULT', 'management-server', 'midonet.providerrouter.id', 'd7c5e6a3-e2f4-426b-b728-b7ce6a0448e5', 'Specifies the UUID of the Midonet provider router (if using Midonet)');

0 commit comments

Comments
 (0)