Skip to content

Commit 1c408de

Browse files
committed
Merge branch '4.5' after 4.5.1 vote passes
2 parents 5ba904a + 4ba72a8 commit 1c408de

File tree

18 files changed

+57
-12
lines changed

18 files changed

+57
-12
lines changed

build/replace.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ AGENTLOG=logs/agent.log
2626
MSMNTDIR=/mnt
2727
COMPONENTS-SPEC=components.xml
2828
REMOTEHOST=localhost
29-
COMMONLIBDIR=client/target/cloud-client-ui-4.5.0-SNAPSHOT/WEB-INF/lib/
29+
COMMONLIBDIR=client/target/cloud-client-ui-4.5.1-SNAPSHOT/WEB-INF/lib/

client/WEB-INF/classes/resources/messages_fr_FR.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,6 +2092,7 @@ state.Destroyed=Supprim\u00e9e
20922092
state.detached=D\u00e9tach\u00e9
20932093
state.Disabled=D\u00e9sactiv\u00e9
20942094
state.Enabled=Actifs
2095+
state.enabled=Activ\u00e9
20952096
state.Error=Erreur
20962097
state.Expunging=Purge en cours
20972098
state.Migrating=Migration en cours

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
55
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
6-
MVNADD := $(shell if echo '$(DEBVERS)' | grep -q snapshot; then echo -SNAPSHOT; fi )
6+
MVNADD := $(shell if echo '$(DEBVERS)' | grep -q snapshot; then echo ; fi )
77
PACKAGE = $(shell dh_listpackages|head -n 1|cut -d '-' -f 1)
88
SYSCONFDIR = "/etc"
99
DESTDIR = "debian/tmp"

engine/orchestration/src/com/cloud/agent/manager/DirectAgentAttache.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,9 @@ protected synchronized void runInContext() {
164164
ServerResource resource = _resource;
165165

166166
if (resource != null) {
167-
PingCommand cmd = null;
167+
PingCommand cmd = resource.getCurrentStatus(_id);
168168
int retried = 0;
169-
cmd = resource.getCurrentStatus(_id);
170-
while (cmd == null && retried++ < _HostPingRetryCount.value())
171-
{
169+
while (cmd == null && ++retried <= _HostPingRetryCount.value()) {
172170
Thread.sleep(1000*_HostPingRetryTimer.value());
173171
cmd = resource.getCurrentStatus(_id);
174172
}

engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
import com.cloud.host.dao.HostDao;
8484
import com.cloud.hypervisor.Hypervisor.HypervisorType;
8585
import com.cloud.storage.DataStoreRole;
86+
import com.cloud.storage.RegisterVolumePayload;
8687
import com.cloud.storage.ScopeType;
8788
import com.cloud.storage.Storage.StoragePoolType;
8889
import com.cloud.storage.StoragePool;

framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ public String marshallResultObject(Serializable obj) {
698698

699699
@Override
700700
public Object unmarshallResultObject(AsyncJob job) {
701-
if(job.getResult() != null)
701+
if(job != null && job.getResult() != null)
702702
return JobSerializerHelper.fromObjectSerializedString(job.getResult());
703703
return null;
704704
}

packaging/centos63/cloud.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Requires: ipset
124124
Requires: jsvc
125125
Requires: jakarta-commons-daemon
126126
Requires: jakarta-commons-daemon-jsvc
127+
Requires: net-tools
127128
Requires: perl
128129
Requires: libvirt-python
129130
Requires: qemu-img
@@ -269,6 +270,7 @@ install -D client/target/utilities/bin/cloud-setup-management ${RPM_BUILD_ROOT}%
269270
install -D client/target/utilities/bin/cloud-setup-baremetal ${RPM_BUILD_ROOT}%{_bindir}/%{name}-setup-baremetal
270271
install -D client/target/utilities/bin/cloud-sysvmadm ${RPM_BUILD_ROOT}%{_bindir}/%{name}-sysvmadm
271272
install -D client/target/utilities/bin/cloud-update-xenserver-licenses ${RPM_BUILD_ROOT}%{_bindir}/%{name}-update-xenserver-licenses
273+
%{_cloudstackmanagementconf}
272274

273275
cp -r client/target/utilities/scripts/db/* ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/setup
274276
cp -r client/target/cloud-client-ui-%{_maventag}/* ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/webapps/client
@@ -576,6 +578,7 @@ fi
576578
%{_defaultdocdir}/%{name}-management-%{version}/LICENSE
577579
%{_defaultdocdir}/%{name}-management-%{version}/NOTICE
578580
%attr(0644,cloud,cloud) %{_localstatedir}/log/%{name}/management/catalina.out
581+
%{_cloudstackmanagementconfattr}
579582

580583
%files agent
581584
%attr(0755,root,root) %{_bindir}/%{name}-setup-agent
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
f /var/run/cloudstack-management.pid 0644 cloud cloud -

plugins/hypervisors/baremetal/src/com/cloud/baremetal/manager/BaremetalManagerImpl.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,19 @@
4242
import com.cloud.hypervisor.Hypervisor.HypervisorType;
4343
import com.cloud.utils.component.ManagerBase;
4444
import com.cloud.utils.fsm.StateListener;
45+
import com.cloud.utils.fsm.StateMachine2;
4546
import com.cloud.vm.VirtualMachine;
4647
import com.cloud.vm.VirtualMachine.Event;
4748
import com.cloud.vm.VirtualMachine.State;
49+
import org.apache.cloudstack.api.AddBaremetalHostCmd;
50+
import org.apache.log4j.Logger;
51+
52+
import javax.ejb.Local;
53+
import javax.inject.Inject;
54+
import javax.naming.ConfigurationException;
55+
import java.util.ArrayList;
56+
import java.util.List;
57+
import java.util.Map;
4858

4959
@Local(value = {BaremetalManager.class})
5060
public class BaremetalManagerImpl extends ManagerBase implements BaremetalManager, StateListener<State, VirtualMachine.Event, VirtualMachine> {

server/src/com/cloud/deploy/DeploymentPlanningManagerImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import javax.inject.Inject;
3232
import javax.naming.ConfigurationException;
3333

34+
import com.cloud.utils.fsm.StateMachine2;
3435
import org.apache.log4j.Logger;
3536

3637
import org.apache.cloudstack.affinity.AffinityGroupProcessor;

0 commit comments

Comments
 (0)