Skip to content

Commit 4b92405

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
Merge remote-tracking branch 'origin/main' into sync/apache-main-proper
2 parents 66f0151 + 5da4a98 commit 4b92405

3 files changed

Lines changed: 36 additions & 0 deletions

File tree

core/src/main/java/com/cloud/agent/api/UpdateVmNicAnswer.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
<<<<<<<< HEAD:core/src/main/java/com/cloud/agent/api/UpdateVmNicAnswer.java
1718
//
1819
package com.cloud.agent.api;
1920

@@ -24,4 +25,16 @@ public UpdateVmNicAnswer() {
2425
public UpdateVmNicAnswer(UpdateVmNicCommand cmd, boolean success, String result) {
2526
super(cmd, success, result);
2627
}
28+
========
29+
package org.apache.cloudstack.acl.apikeypair;
30+
31+
import java.util.List;
32+
33+
public interface ApiKeyPairService {
34+
List<ApiKeyPairPermission> findAllPermissionsByKeyPairId(Long apiKeyPairId, Long roleId);
35+
36+
ApiKeyPair findByApiKey(String apiKey);
37+
38+
ApiKeyPair findById(Long id);
39+
>>>>>>>> origin/main:api/src/main/java/org/apache/cloudstack/acl/apikeypair/ApiKeyPairService.java
2740
}

server/src/main/java/com/cloud/resourcelimit/ReservationHelper.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// specific language governing permissions and limitations
1717
// under the License.
1818
//
19+
<<<<<<<< HEAD:server/src/main/java/com/cloud/resourcelimit/ReservationHelper.java
1920

2021
package com.cloud.resourcelimit;
2122

@@ -30,6 +31,16 @@ public static void closeAll(List<Reserver> reservations) throws CloudRuntimeExce
3031
for (Reserver reservation : reservations) {
3132
reservation.close();
3233
}
34+
========
35+
package com.cloud.agent.api;
36+
37+
public class UpdateVmNicAnswer extends Answer {
38+
public UpdateVmNicAnswer() {
39+
}
40+
41+
public UpdateVmNicAnswer(UpdateVmNicCommand cmd, boolean success, String result) {
42+
super(cmd, success, result);
43+
>>>>>>>> origin/main:core/src/main/java/com/cloud/agent/api/UpdateVmNicAnswer.java
3344
}
3445

3546
}

server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,6 +1731,18 @@ private void checkForPendingBackupJobs(final BackupVO backup) {
17311731
}
17321732
}
17331733

1734+
private void checkForPendingBackupJobs(final BackupVO backup) {
1735+
String backupUuid = backup.getUuid();
1736+
long pendingJobs = asyncJobManager.countPendingJobs(backupUuid,
1737+
CreateVMFromBackupCmd.class.getName(),
1738+
CreateVMFromBackupCmdByAdmin.class.getName(),
1739+
RestoreBackupCmd.class.getName(),
1740+
RestoreVolumeFromBackupAndAttachToVMCmd.class.getName());
1741+
if (pendingJobs > 0) {
1742+
throw new CloudRuntimeException("Cannot delete Backup while a create Instance from Backup or restore Backup operation is in progress, please try again later.");
1743+
}
1744+
}
1745+
17341746
/**
17351747
* Get the pair: hostIp, datastoreUuid in which to restore the volume, based on the VM to be attached information
17361748
*/

0 commit comments

Comments
 (0)