mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge release branch 4.9 to master
* 4.9: CLOUDSTACK-9857: With this change if agent dies the systemd will catch it properly and show process as exited CLOUDSTACK-9805: Display VR list in network details CLOUDSTACK-9356: FIX Cannot add users in VPC VPN
This commit is contained in:
commit
9cc3ae8a94
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# chkconfig: 35 99 10
|
# chkconfig: 35 99 10
|
||||||
# description: Cloud Agent
|
# description: Cloud Agent
|
||||||
|
# pidfile: /var/run/cloudstack-agent.pid
|
||||||
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# chkconfig: 35 99 10
|
# chkconfig: 35 99 10
|
||||||
# description: Cloud Agent
|
# description: Cloud Agent
|
||||||
|
# pidfile: /var/run/cloudstack-agent.pid
|
||||||
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# chkconfig: 35 99 10
|
# chkconfig: 35 99 10
|
||||||
# description: Cloud Agent
|
# description: Cloud Agent
|
||||||
|
# pidfile: /var/run/cloudstack-agent.pid
|
||||||
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# chkconfig: 35 99 10
|
# chkconfig: 35 99 10
|
||||||
# description: Cloud Agent
|
# description: Cloud Agent
|
||||||
|
# pidfile: /var/run/cloudstack-agent.pid
|
||||||
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
|||||||
@ -522,21 +522,26 @@ public class RemoteAccessVpnManagerImpl extends ManagerBase implements RemoteAcc
|
|||||||
|
|
||||||
boolean success = true;
|
boolean success = true;
|
||||||
|
|
||||||
boolean[] finals = new boolean[users.size()];
|
Boolean[] finals = new Boolean[users.size()];
|
||||||
for (RemoteAccessVPNServiceProvider element : _vpnServiceProviders) {
|
for (RemoteAccessVPNServiceProvider element : _vpnServiceProviders) {
|
||||||
s_logger.debug("Applying vpn access to " + element.getName());
|
s_logger.debug("Applying vpn access to " + element.getName());
|
||||||
for (RemoteAccessVpnVO vpn : vpns) {
|
for (RemoteAccessVpnVO vpn : vpns) {
|
||||||
try {
|
try {
|
||||||
String[] results = element.applyVpnUsers(vpn, users);
|
String[] results = element.applyVpnUsers(vpn, users);
|
||||||
if (results != null) {
|
if (results != null) {
|
||||||
|
int indexUser = -1;
|
||||||
for (int i = 0; i < results.length; i++) {
|
for (int i = 0; i < results.length; i++) {
|
||||||
s_logger.debug("VPN User " + users.get(i) + (results[i] == null ? " is set on " : (" couldn't be set due to " + results[i]) + " on ") + vpn);
|
indexUser ++;
|
||||||
|
if (indexUser == users.size()) {
|
||||||
|
indexUser = 0; // results on multiple VPC routers are combined in commit 13eb789, reset user index if one VR is done.
|
||||||
|
}
|
||||||
|
s_logger.debug("VPN User " + users.get(indexUser) + (results[i] == null ? " is set on " : (" couldn't be set due to " + results[i]) + " on ") + vpn.getUuid());
|
||||||
if (results[i] == null) {
|
if (results[i] == null) {
|
||||||
if (!finals[i]) {
|
if (finals[indexUser] == null) {
|
||||||
finals[i] = true;
|
finals[indexUser] = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
finals[i] = false;
|
finals[indexUser] = false;
|
||||||
success = false;
|
success = false;
|
||||||
vpnTemp = vpn;
|
vpnTemp = vpn;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1862,7 +1862,6 @@
|
|||||||
<script type="text/javascript" src="scripts/ui-custom/securityRules.js"></script>
|
<script type="text/javascript" src="scripts/ui-custom/securityRules.js"></script>
|
||||||
<script type="text/javascript" src="scripts/ui-custom/vpc.js"></script>
|
<script type="text/javascript" src="scripts/ui-custom/vpc.js"></script>
|
||||||
<script type="text/javascript" src="scripts/vpc.js"></script>
|
<script type="text/javascript" src="scripts/vpc.js"></script>
|
||||||
<script type="text/javascript" src="scripts/network.js"></script>
|
|
||||||
<script type="text/javascript" src="scripts/ui-custom/recurringSnapshots.js"></script>
|
<script type="text/javascript" src="scripts/ui-custom/recurringSnapshots.js"></script>
|
||||||
<script type="text/javascript" src="scripts/ui-custom/uploadVolume.js"></script>
|
<script type="text/javascript" src="scripts/ui-custom/uploadVolume.js"></script>
|
||||||
<script type="text/javascript" src="scripts/storage.js"></script>
|
<script type="text/javascript" src="scripts/storage.js"></script>
|
||||||
@ -1877,6 +1876,7 @@
|
|||||||
<script type="text/javascript" src="scripts/ui-custom/physicalResources.js"></script>
|
<script type="text/javascript" src="scripts/ui-custom/physicalResources.js"></script>
|
||||||
<script type="text/javascript" src="scripts/ui-custom/zoneWizard.js"></script>
|
<script type="text/javascript" src="scripts/ui-custom/zoneWizard.js"></script>
|
||||||
<script type="text/javascript" src="scripts/system.js"></script>
|
<script type="text/javascript" src="scripts/system.js"></script>
|
||||||
|
<script type="text/javascript" src="scripts/network.js"></script>
|
||||||
<script type="text/javascript" src="scripts/domains.js"></script>
|
<script type="text/javascript" src="scripts/domains.js"></script>
|
||||||
<script type="text/javascript" src="scripts/docs.js"></script>
|
<script type="text/javascript" src="scripts/docs.js"></script>
|
||||||
<script type="text/javascript" src="scripts/vm_snapshots.js"></script>
|
<script type="text/javascript" src="scripts/vm_snapshots.js"></script>
|
||||||
|
|||||||
@ -1152,6 +1152,10 @@
|
|||||||
hiddenTabs.push('egressRules');
|
hiddenTabs.push('egressRules');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isAdmin()) {
|
||||||
|
hiddenTabs.push("virtualRouters");
|
||||||
|
}
|
||||||
|
|
||||||
return hiddenTabs;
|
return hiddenTabs;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1615,6 +1619,11 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
virtualRouters: {
|
||||||
|
title: "label.virtual.appliances",
|
||||||
|
listView: cloudStack.sections.system.subsections.virtualRouters.sections.routerNoGroup.listView
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5444,8 +5453,10 @@
|
|||||||
tabFilter: function(args) {
|
tabFilter: function(args) {
|
||||||
var hiddenTabs = [];
|
var hiddenTabs = [];
|
||||||
var isRouterOwner = isAdmin();
|
var isRouterOwner = isAdmin();
|
||||||
if (!isRouterOwner)
|
if (!isRouterOwner) {
|
||||||
hiddenTabs.push("router");
|
hiddenTabs.push("router");
|
||||||
|
hiddenTabs.push("virtualRouters");
|
||||||
|
}
|
||||||
return hiddenTabs;
|
return hiddenTabs;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -5611,6 +5622,10 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
virtualRouters: {
|
||||||
|
title: "label.virtual.routers",
|
||||||
|
listView: cloudStack.sections.system.subsections.virtualRouters.sections.routerNoGroup.listView
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9573,6 +9573,16 @@
|
|||||||
domainid: args.context.routerGroupByAccount[0].domainid
|
domainid: args.context.routerGroupByAccount[0].domainid
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if ("networks" in args.context) {
|
||||||
|
$.extend(data2, {
|
||||||
|
networkid: args.context.networks[0].id
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if ("vpc" in args.context) {
|
||||||
|
$.extend(data2, {
|
||||||
|
vpcid: args.context.vpc[0].id
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var routers =[];
|
var routers =[];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user