mirror of https://github.com/apache/cloudstack.git
Merge release branch 4.6 to master
* 4.6: CLOUDSTACK-9020: UI enhancements from metrics view CLOUDSTACK-9064: The users should be able to create multiple Guest Shared Networks in same Vlan ID, same Physical Network and same network, just with a different IP ranges. CLOUDSTACK-9078: Gave scripts executable permissions. CLOUDSTACK-9076: Changed ownership of directory /var/lib/cloudstack to cloud. Cannot list vlanipranges by keyword
This commit is contained in:
commit
7e64c12067
|
|
@ -1947,7 +1947,7 @@ public class NetworkOrchestrator extends ManagerBase implements NetworkOrchestra
|
|||
} else {
|
||||
// don't allow to creating shared network with given Vlan ID, if there already exists a isolated network or
|
||||
// shared network with same Vlan ID in the zone
|
||||
if (_networksDao.countByZoneUriAndGuestType(zoneId, uri, GuestType.Isolated) > 0 || _networksDao.countByZoneUriAndGuestType(zoneId, uri, GuestType.Shared) > 0) {
|
||||
if (_networksDao.countByZoneUriAndGuestType(zoneId, uri, GuestType.Isolated) > 0 ) {
|
||||
throw new InvalidParameterValueException("There is a isolated/shared network with vlan id: " + vlanId + " already exists " + "in zone " + zoneId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -121,6 +121,8 @@ class cloudManagementConfig(serviceCfgBase):
|
|||
#distro like sl 6.1 needs this folder, or tomcat6 failed to start
|
||||
checkHostName()
|
||||
bash("mkdir /var/log/cloudstack-management/")
|
||||
bash("chown cloud:cloud -R /var/lib/cloudstack/")
|
||||
bash("chmod +x -R /usr/share/cloudstack-management/webapps/client/WEB-INF/classes/scripts/")
|
||||
#set max process per account is unlimited
|
||||
if os.path.exists("/etc/security/limits.conf"):
|
||||
cfo = configFileOps("/etc/security/limits.conf")
|
||||
|
|
|
|||
|
|
@ -1596,9 +1596,9 @@ public class ManagementServerImpl extends ManagerBase implements ManagementServe
|
|||
final SearchCriteria<VlanVO> sc = sb.create();
|
||||
if (keyword != null) {
|
||||
final SearchCriteria<VlanVO> ssc = _vlanDao.createSearchCriteria();
|
||||
ssc.addOr("vlanId", SearchCriteria.Op.LIKE, "%" + keyword + "%");
|
||||
ssc.addOr("vlanTag", SearchCriteria.Op.LIKE, "%" + keyword + "%");
|
||||
ssc.addOr("ipRange", SearchCriteria.Op.LIKE, "%" + keyword + "%");
|
||||
sc.addAnd("vlanId", SearchCriteria.Op.SC, ssc);
|
||||
sc.addAnd("vlanTag", SearchCriteria.Op.SC, ssc);
|
||||
} else {
|
||||
if (id != null) {
|
||||
sc.setParameters("id", id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue