mirror of https://github.com/apache/cloudstack.git
Merge branch '2.2.y' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.2.y
This commit is contained in:
commit
516ea0ee0f
|
|
@ -59,7 +59,7 @@ public class ClusterSyncCommand extends Command implements CronCommand {
|
|||
|
||||
@Override
|
||||
public boolean executeInSequence() {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -432,6 +432,9 @@ public class RemoteAccessVpnManagerImpl implements RemoteAccessVpnService, Manag
|
|||
_vpnUsersDao.remove(user.getId());
|
||||
}
|
||||
} else {
|
||||
if (user.getState() == State.Add) {
|
||||
_vpnUsersDao.remove(user.getId());
|
||||
}
|
||||
s_logger.warn("Failed to apply vpn for user " + user.getUsername() + ", accountId=" + user.getAccountId());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,5 +92,14 @@ public class Upgrade2212to2213 implements DbUpgrade {
|
|||
// drop primary keys
|
||||
DbUpgradeUtils.dropPrimaryKeyIfExists(conn, "cloud_usage.usage_load_balancer_policy");
|
||||
DbUpgradeUtils.dropPrimaryKeyIfExists(conn, "cloud_usage.usage_port_forwarding");
|
||||
|
||||
//Drop usage_network_offering unique key
|
||||
try {
|
||||
PreparedStatement pstmt = conn.prepareStatement("drop index network_offering_id on cloud_usage.usage_network_offering");
|
||||
pstmt.executeUpdate();
|
||||
s_logger.debug("Dropped usage_network_offering unique key");
|
||||
} catch (Exception e) {
|
||||
// Ignore error if the usage_network_offering table or the unique key doesn't exist
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -249,8 +249,7 @@ CREATE TABLE `cloud_usage`.`usage_network_offering` (
|
|||
`network_offering_id` bigint unsigned NOT NULL,
|
||||
`is_default` smallint(1) NOT NULL,
|
||||
`created` DATETIME NOT NULL,
|
||||
`deleted` DATETIME NULL,
|
||||
UNIQUE KEY (`network_offering_id`, `vm_instance_id`, `created`)
|
||||
`deleted` DATETIME NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE `cloud_usage`.`usage_network_offering` ADD INDEX `i_usage_network_offering__account_id`(`account_id`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue