Skip to content

Commit 2caa557

Browse files
authored
Merge pull request #512 from jschoiRR/mold-diplo-2024-main
[Mold API, UI] 20240620일자 신규 소스 병합 및 빌드 오류 수정(한글화포함)
2 parents 81565c2 + ce1494a commit 2caa557

File tree

18 files changed

+71
-57
lines changed

18 files changed

+71
-57
lines changed

api/src/main/java/org/apache/cloudstack/api/command/user/volume/ListVolumesCmd.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ public Boolean isEncrypted() {
175175
return encrypted;
176176
}
177177

178-
public Boolean isEncrypted() {
179-
return encrypted;
180-
}
181-
182178
/////////////////////////////////////////////////////
183179
/////////////// API Implementation///////////////////
184180
/////////////////////////////////////////////////////

engine/schema/src/main/java/com/cloud/service/dao/ServiceOfferingDao.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ List<ServiceOfferingVO> createSystemServiceOfferings(String name, String uniqueN
5555
List<ServiceOfferingVO> listPublicByCpuAndMemory(Integer cpus, Integer memory);
5656

5757
List<ServiceOfferingVO> listByHostTag(String tag);
58-
58+
5959
ServiceOfferingVO findServiceOfferingByComputeOnlyDiskOffering(long diskOfferingId, boolean includingRemoved);
6060
}

plugins/host-allocators/random/src/main/java/com/cloud/agent/manager/allocator/impl/RandomAllocator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import com.cloud.deploy.DeploymentPlanner.ExcludeList;
3737
import com.cloud.host.Host;
3838
import com.cloud.host.Host.Type;
39+
import com.cloud.host.HostVO;
3940
import com.cloud.host.dao.HostDao;
4041
import com.cloud.offering.ServiceOffering;
4142
import com.cloud.resource.ResourceManager;

plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesServiceHelperImpl.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -102,25 +102,6 @@ public void checkVmCanBeDestroyed(UserVm userVm) {
102102
throw new CloudRuntimeException(msg);
103103
}
104104

105-
@Override
106-
public void checkVmCanBeDestroyed(UserVm userVm) {
107-
if (!UserVmManager.CKS_NODE.equals(userVm.getUserVmType())) {
108-
return;
109-
}
110-
KubernetesClusterVmMapVO vmMapVO = kubernetesClusterVmMapDao.findByVmId(userVm.getId());
111-
if (vmMapVO == null) {
112-
return;
113-
}
114-
logger.error(String.format("VM ID: %s is a part of Kubernetes cluster ID: %d", userVm.getId(), vmMapVO.getClusterId()));
115-
KubernetesCluster kubernetesCluster = kubernetesClusterDao.findById(vmMapVO.getClusterId());
116-
String msg = "Instance is a part of a Kubernetes cluster";
117-
if (kubernetesCluster != null) {
118-
msg += String.format(": %s", kubernetesCluster.getName());
119-
}
120-
msg += ". Use Instance delete option from Kubernetes cluster details or scale API for " +
121-
"Kubernetes clusters with 'nodeids' to destroy the instance.";
122-
throw new CloudRuntimeException(msg);
123-
}
124105

125106
@Override
126107
public String getConfigComponentName() {

plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/actionworkers/KubernetesClusterResourceModifierActionWorker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ protected List<UserVm> provisionKubernetesClusterNodeVms(final long nodeCount, f
349349
ResourceUnavailableException, InsufficientCapacityException {
350350
List<UserVm> nodes = new ArrayList<>();
351351
for (int i = offset + 1; i <= nodeCount; i++) {
352-
CallContext vmContext = CallContext.register(CallContext.current(), ApiCommandResourceType.VirtualMachine);NetworkServiceImpl.java
352+
CallContext vmContext = CallContext.register(CallContext.current(), ApiCommandResourceType.VirtualMachine);
353353
try {
354354
UserVm vm = createKubernetesNode(publicIpAddress);
355355
vmContext.setEventResourceId(vm.getId());

plugins/storage/volume/linstor/src/main/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ private String createResource(VolumeInfo vol, StoragePoolVO storagePoolVO) {
449449
applyQoSSettings(storagePoolVO, linstorApi, rscName, vol.getMaxIops());
450450

451451
return LinstorUtil.getDevicePath(linstorApi, rscName);
452-
} catch (ApiException apiEx)
452+
} catch (ApiException apiEx) {
453453
logger.error("Linstor: ApiEx - " + apiEx.getMessage());
454454
throw new CloudRuntimeException(apiEx.getBestMessage(), apiEx);
455455
}

plugins/user-authenticators/oauth2/src/main/java/org/apache/cloudstack/oauth2/OAuth2UserAuthenticator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public Pair<Boolean, ActionOnFailedAuthentication> authenticate(String username,
5959

6060
final UserAccount userAccount = userAccountDao.getUserAccount(username, domainId);
6161
if (userAccount == null) {
62-
s_logger.debug("Unable to find user with " + username + " in domain " + domainId + ", or user source is not OAUTH2");
62+
logger.debug("Unable to find user with " + username + " in domain " + domainId + ", or user source is not OAUTH2");
6363
return new Pair<Boolean, ActionOnFailedAuthentication>(false, null);
6464
} else {
6565
User user = userDao.getUser(userAccount.getId());

plugins/user-authenticators/oauth2/src/test/java/org/apache/cloudstack/oauth2/OAuth2UserAuthenticatorTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
import static org.mockito.Mockito.never;
4949
import static org.mockito.Mockito.verify;
5050
import static org.mockito.Mockito.when;
51-
import static org.mockito.Mockito.doReturn;
5251

5352
@RunWith(MockitoJUnitRunner.class)
5453
public class OAuth2UserAuthenticatorTest {

server/src/main/java/com/cloud/agent/manager/allocator/impl/FirstFitAllocator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import javax.inject.Inject;
2626
import javax.naming.ConfigurationException;
2727

28+
import com.cloud.utils.exception.CloudRuntimeException;
2829
import org.apache.cloudstack.framework.config.dao.ConfigurationDao;
2930
import org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtils;
3031
import org.springframework.stereotype.Component;

server/src/main/java/com/cloud/api/ApiServer.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@
161161
import com.cloud.exception.ResourceAllocationException;
162162
import com.cloud.exception.ResourceUnavailableException;
163163
import com.cloud.exception.UnavailableCommandException;
164-
import com.cloud.projects.dao.ProjectDao;
165164
import com.cloud.storage.VolumeApiService;
166165
import com.cloud.user.Account;
167166
import com.cloud.user.AccountManager;
@@ -224,12 +223,8 @@ public class ApiServer extends ManagerBase implements HttpRequestHandler, ApiSer
224223
@Inject
225224
private UUIDManager uuidMgr;
226225
@Inject
227-
private AsyncJobManager asyncMgr;
228-
@Inject
229226
private EntityManager entityMgr;
230227
@Inject
231-
private ProjectDao projectDao;
232-
@Inject
233228
private AlertManager alertMgr;
234229

235230
private List<PluggableService> pluggableServices;

0 commit comments

Comments
 (0)