mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge branch '4.5' after 4.5.1 vote passes
This commit is contained in:
commit
1c408dec37
@ -26,4 +26,4 @@ AGENTLOG=logs/agent.log
|
||||
MSMNTDIR=/mnt
|
||||
COMPONENTS-SPEC=components.xml
|
||||
REMOTEHOST=localhost
|
||||
COMMONLIBDIR=client/target/cloud-client-ui-4.5.0-SNAPSHOT/WEB-INF/lib/
|
||||
COMMONLIBDIR=client/target/cloud-client-ui-4.5.1-SNAPSHOT/WEB-INF/lib/
|
||||
|
||||
@ -2092,6 +2092,7 @@ state.Destroyed=Supprim\u00e9e
|
||||
state.detached=D\u00e9tach\u00e9
|
||||
state.Disabled=D\u00e9sactiv\u00e9
|
||||
state.Enabled=Actifs
|
||||
state.enabled=Activ\u00e9
|
||||
state.Error=Erreur
|
||||
state.Expunging=Purge en cours
|
||||
state.Migrating=Migration en cours
|
||||
|
||||
2
debian/rules
vendored
2
debian/rules
vendored
@ -3,7 +3,7 @@
|
||||
|
||||
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
|
||||
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
|
||||
MVNADD := $(shell if echo '$(DEBVERS)' | grep -q snapshot; then echo -SNAPSHOT; fi )
|
||||
MVNADD := $(shell if echo '$(DEBVERS)' | grep -q snapshot; then echo ; fi )
|
||||
PACKAGE = $(shell dh_listpackages|head -n 1|cut -d '-' -f 1)
|
||||
SYSCONFDIR = "/etc"
|
||||
DESTDIR = "debian/tmp"
|
||||
|
||||
@ -164,11 +164,9 @@ public class DirectAgentAttache extends AgentAttache {
|
||||
ServerResource resource = _resource;
|
||||
|
||||
if (resource != null) {
|
||||
PingCommand cmd = null;
|
||||
PingCommand cmd = resource.getCurrentStatus(_id);
|
||||
int retried = 0;
|
||||
cmd = resource.getCurrentStatus(_id);
|
||||
while (cmd == null && retried++ < _HostPingRetryCount.value())
|
||||
{
|
||||
while (cmd == null && ++retried <= _HostPingRetryCount.value()) {
|
||||
Thread.sleep(1000*_HostPingRetryTimer.value());
|
||||
cmd = resource.getCurrentStatus(_id);
|
||||
}
|
||||
|
||||
@ -83,6 +83,7 @@ import com.cloud.host.Host;
|
||||
import com.cloud.host.dao.HostDao;
|
||||
import com.cloud.hypervisor.Hypervisor.HypervisorType;
|
||||
import com.cloud.storage.DataStoreRole;
|
||||
import com.cloud.storage.RegisterVolumePayload;
|
||||
import com.cloud.storage.ScopeType;
|
||||
import com.cloud.storage.Storage.StoragePoolType;
|
||||
import com.cloud.storage.StoragePool;
|
||||
|
||||
@ -698,7 +698,7 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
|
||||
|
||||
@Override
|
||||
public Object unmarshallResultObject(AsyncJob job) {
|
||||
if(job.getResult() != null)
|
||||
if(job != null && job.getResult() != null)
|
||||
return JobSerializerHelper.fromObjectSerializedString(job.getResult());
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -124,6 +124,7 @@ Requires: ipset
|
||||
Requires: jsvc
|
||||
Requires: jakarta-commons-daemon
|
||||
Requires: jakarta-commons-daemon-jsvc
|
||||
Requires: net-tools
|
||||
Requires: perl
|
||||
Requires: libvirt-python
|
||||
Requires: qemu-img
|
||||
@ -269,6 +270,7 @@ install -D client/target/utilities/bin/cloud-setup-management ${RPM_BUILD_ROOT}%
|
||||
install -D client/target/utilities/bin/cloud-setup-baremetal ${RPM_BUILD_ROOT}%{_bindir}/%{name}-setup-baremetal
|
||||
install -D client/target/utilities/bin/cloud-sysvmadm ${RPM_BUILD_ROOT}%{_bindir}/%{name}-sysvmadm
|
||||
install -D client/target/utilities/bin/cloud-update-xenserver-licenses ${RPM_BUILD_ROOT}%{_bindir}/%{name}-update-xenserver-licenses
|
||||
%{_cloudstackmanagementconf}
|
||||
|
||||
cp -r client/target/utilities/scripts/db/* ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/setup
|
||||
cp -r client/target/cloud-client-ui-%{_maventag}/* ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/webapps/client
|
||||
@ -576,6 +578,7 @@ fi
|
||||
%{_defaultdocdir}/%{name}-management-%{version}/LICENSE
|
||||
%{_defaultdocdir}/%{name}-management-%{version}/NOTICE
|
||||
%attr(0644,cloud,cloud) %{_localstatedir}/log/%{name}/management/catalina.out
|
||||
%{_cloudstackmanagementconfattr}
|
||||
|
||||
%files agent
|
||||
%attr(0755,root,root) %{_bindir}/%{name}-setup-agent
|
||||
|
||||
18
packaging/centos63/rhel7/cloudstack-management.conf
Normal file
18
packaging/centos63/rhel7/cloudstack-management.conf
Normal file
@ -0,0 +1,18 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
f /var/run/cloudstack-management.pid 0644 cloud cloud -
|
||||
@ -42,9 +42,19 @@ import com.cloud.host.dao.HostDao;
|
||||
import com.cloud.hypervisor.Hypervisor.HypervisorType;
|
||||
import com.cloud.utils.component.ManagerBase;
|
||||
import com.cloud.utils.fsm.StateListener;
|
||||
import com.cloud.utils.fsm.StateMachine2;
|
||||
import com.cloud.vm.VirtualMachine;
|
||||
import com.cloud.vm.VirtualMachine.Event;
|
||||
import com.cloud.vm.VirtualMachine.State;
|
||||
import org.apache.cloudstack.api.AddBaremetalHostCmd;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import javax.ejb.Local;
|
||||
import javax.inject.Inject;
|
||||
import javax.naming.ConfigurationException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Local(value = {BaremetalManager.class})
|
||||
public class BaremetalManagerImpl extends ManagerBase implements BaremetalManager, StateListener<State, VirtualMachine.Event, VirtualMachine> {
|
||||
|
||||
@ -31,6 +31,7 @@ import javax.ejb.Local;
|
||||
import javax.inject.Inject;
|
||||
import javax.naming.ConfigurationException;
|
||||
|
||||
import com.cloud.utils.fsm.StateMachine2;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import org.apache.cloudstack.affinity.AffinityGroupProcessor;
|
||||
|
||||
@ -35,6 +35,8 @@ import javax.ejb.Local;
|
||||
import javax.inject.Inject;
|
||||
import javax.naming.ConfigurationException;
|
||||
|
||||
import org.apache.cloudstack.storage.datastore.db.TemplateDataStoreDao;
|
||||
import org.apache.cloudstack.storage.datastore.db.TemplateDataStoreVO;
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.cloudstack.acl.ControlledEntity.ACLType;
|
||||
|
||||
@ -127,7 +127,7 @@ class TestSecondaryStorageLimits(cloudstackTestCase):
|
||||
except Exception as e:
|
||||
return [FAIL, e]
|
||||
return [PASS, None]
|
||||
|
||||
|
||||
@data(ROOT_DOMAIN_ADMIN, CHILD_DOMAIN_ADMIN)
|
||||
@attr(tags = ["advanced"], required_hardware="true")
|
||||
def test_01_register_template(self, value):
|
||||
|
||||
@ -41,6 +41,7 @@ from marvin.lib.common import (get_zone,
|
||||
find_storage_pool_type)
|
||||
|
||||
|
||||
|
||||
class Services:
|
||||
|
||||
"""Test Snapshots Services
|
||||
|
||||
@ -543,7 +543,7 @@ class TestVPCNetwork(cloudstackTestCase):
|
||||
def test_04_create_multiple_networks_with_lb(self, value):
|
||||
""" Test create multiple networks with LB service (Should fail)
|
||||
"""
|
||||
|
||||
self.skipTest('Skipping test due to CLOUDSTACK-8437')
|
||||
# Validate the following
|
||||
# 1. Create a VPC using Default Offering
|
||||
# 2. Create a network offering with guest type=Isolated that has LB
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
""" BVT tests for Volumes
|
||||
"""
|
||||
#Import Local Modules
|
||||
from marvin.cloudstackTestCase import cloudstackTestCase
|
||||
from marvin.cloudstackTestCase import cloudstackTestCase, unittest
|
||||
#from marvin.cloudstackException import *
|
||||
from marvin.cloudstackAPI import (deleteVolume,
|
||||
extractVolume,
|
||||
@ -332,7 +332,16 @@ class TestVolumes(cloudstackTestCase):
|
||||
serviceofferingid=cls.service_offering.id,
|
||||
mode=cls.services["mode"]
|
||||
)
|
||||
pools = StoragePool.list(cls.apiclient)
|
||||
# cls.assertEqual(
|
||||
# validateList(pools)[0],
|
||||
# PASS,
|
||||
# "storage pool list validation failed")
|
||||
|
||||
|
||||
|
||||
if cls.hypervisor.lower() == 'lxc' and cls.storage_pools.type.lower() != 'rbd':
|
||||
raise unittest.SkipTest("Snapshots not supported on Hyper-V or LXC")
|
||||
cls.volume = Volume.create(
|
||||
cls.apiclient,
|
||||
cls.services,
|
||||
|
||||
2
tools/build/build_asf.sh
Normal file → Executable file
2
tools/build/build_asf.sh
Normal file → Executable file
@ -108,7 +108,7 @@ echo "cloudstack ($version) unstable; urgency=low" >>$tmpfilenm
|
||||
echo >>$tmpfilenm
|
||||
echo " * Update the version to $version" >>$tmpfilenm
|
||||
echo >>$tmpfilenm
|
||||
echo " -- the Apache CloudStack project <dev@cloudstack.apache.org> `date -j '+%a, %d %b %Y %T %z'`" >>$tmpfilenm
|
||||
echo " -- the Apache CloudStack project <dev@cloudstack.apache.org> `date '+%a, %d %b %Y %T %z'`" >>$tmpfilenm
|
||||
echo >>$tmpfilenm
|
||||
|
||||
cat debian/changelog >>$tmpfilenm
|
||||
|
||||
@ -163,7 +163,7 @@ class ShellColor(object):
|
||||
END = '\033[0m'
|
||||
ITALICS = '\x1B[3m'
|
||||
|
||||
#VERSION = "4.5.0-SNAPSHOT"
|
||||
#VERSION = "4.5.1-SNAPSHOT"
|
||||
|
||||
|
||||
class MarvinCli(cmd.Cmd, object):
|
||||
|
||||
@ -713,6 +713,7 @@ under the License.
|
||||
'label.start.lb.vm': '<fmt:message key="label.start.lb.vm" />',
|
||||
'label.stop.lb.vm': '<fmt:message key="label.stop.lb.vm" />',
|
||||
'label.migrate.lb.vm': '<fmt:message key="label.migrate.lb.vm" />',
|
||||
'label.migrate.volume': '<fmt:message key="label.migrate.volume" />',
|
||||
'label.vpc.virtual.router': '<fmt:message key="label.vpc.virtual.router" />',
|
||||
'label.ovs': '<fmt:message key="label.ovs" />',
|
||||
'label.gslb.service': '<fmt:message key="label.gslb.service" />',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user