forked from rook/rook
ceph: revert "ceph: test latest ceph on raw device"
This reverts commit 114a949cfb since
14.2.14 is out and has a fix to use raw mode instead of LVM mode on
partitions.
Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Vendored
-1
@@ -238,7 +238,6 @@ def RunIntegrationTest(k, v) {
|
||||
STORAGE_PROVIDER_TESTS='''+"${env.testProvider}"+''' \
|
||||
TEST_ARGUMENTS='''+"${env.testArgs}"+''' \
|
||||
TEST_IS_OFFICIAL_BUILD='''+"${env.isOfficialBuild}"+''' \
|
||||
TEST_OSDS_ON_PARTITIONS="false" \
|
||||
TEST_SCRATCH_DEVICE=/dev/nvme0n1
|
||||
kubectl config view
|
||||
_output/tests/linux_amd64/integration -test.v -test.timeout 7200s 2>&1 | tee _output/tests/integrationTests.log'''
|
||||
|
||||
@@ -42,24 +42,19 @@ import (
|
||||
|
||||
const (
|
||||
// test with the latest nautilus build
|
||||
nautilusTestImage = "ceph/ceph:v14"
|
||||
// test with the latest nautilus build. ceph-volume is not allowing OSDs on partitions on v14.2.13 and newer.
|
||||
nautilusTestImageOnPartitions = "ceph/ceph:v14.2.12"
|
||||
nautilusTestImage = "ceph/ceph:v14.2.12"
|
||||
// test with the latest octopus build
|
||||
octopusTestImage = "ceph/ceph:v15"
|
||||
// test with the latest octopus build.
|
||||
octopusTestImageOnPartitions = "ceph/ceph:v15.2.9"
|
||||
// test with the latest master image
|
||||
masterTestImage = "ceph/daemon-base:latest-master-devel"
|
||||
cephOperatorLabel = "app=rook-ceph-operator"
|
||||
defaultclusterName = "test-cluster"
|
||||
// if false, expect to create OSDs on raw devices,
|
||||
// otherwise use a version of ceph that is compatible with OSDs on partitions
|
||||
usePartitionEnvVar = "TEST_OSDS_ON_PARTITIONS"
|
||||
)
|
||||
|
||||
var (
|
||||
MasterVersion = cephv1.CephVersionSpec{Image: masterTestImage, AllowUnsupported: true}
|
||||
NautilusVersion = cephv1.CephVersionSpec{Image: nautilusTestImage}
|
||||
OctopusVersion = cephv1.CephVersionSpec{Image: octopusTestImage}
|
||||
MasterVersion = cephv1.CephVersionSpec{Image: masterTestImage, AllowUnsupported: true}
|
||||
)
|
||||
|
||||
// CephInstaller wraps installing and uninstalling rook on a platform
|
||||
@@ -77,20 +72,6 @@ type CephInstaller struct {
|
||||
cleanupHost bool
|
||||
}
|
||||
|
||||
func NautilusVersion() cephv1.CephVersionSpec {
|
||||
if os.Getenv(usePartitionEnvVar) == "false" {
|
||||
return cephv1.CephVersionSpec{Image: nautilusTestImage}
|
||||
}
|
||||
return cephv1.CephVersionSpec{Image: nautilusTestImageOnPartitions}
|
||||
}
|
||||
|
||||
func OctopusVersion() cephv1.CephVersionSpec {
|
||||
if os.Getenv(usePartitionEnvVar) == "false" {
|
||||
return cephv1.CephVersionSpec{Image: octopusTestImage}
|
||||
}
|
||||
return cephv1.CephVersionSpec{Image: octopusTestImageOnPartitions}
|
||||
}
|
||||
|
||||
// CreateCephOperator creates rook-operator via kubectl
|
||||
func (h *CephInstaller) CreateCephOperator(namespace string) (err error) {
|
||||
logger.Infof("Starting Rook Operator")
|
||||
|
||||
@@ -96,7 +96,7 @@ func (s *CephFlexDriverSuite) SetupSuite() {
|
||||
skipOSDCreation: false,
|
||||
minimalMatrixK8sVersion: flexDriverMinimalTestVersion,
|
||||
rookVersion: installer.VersionMaster,
|
||||
cephVersion: installer.OctopusVersion(),
|
||||
cephVersion: installer.OctopusVersion,
|
||||
}
|
||||
|
||||
s.clusterInfo = client.AdminClusterInfo(s.namespace)
|
||||
|
||||
@@ -74,7 +74,7 @@ func (hs *HelmSuite) SetupSuite() {
|
||||
skipOSDCreation: false,
|
||||
minimalMatrixK8sVersion: helmMinimalTestVersion,
|
||||
rookVersion: installer.VersionMaster,
|
||||
cephVersion: installer.NautilusVersion(),
|
||||
cephVersion: installer.NautilusVersion,
|
||||
}
|
||||
|
||||
hs.op, hs.kh = StartTestCluster(hs.T, &helmTestCluster)
|
||||
|
||||
@@ -142,7 +142,7 @@ func NewMCTestOperations(t func() *testing.T, namespace1 string, namespace2 stri
|
||||
checkIfShouldRunForMinimalTestMatrix(t, kh, multiClusterMinimalTestVersion)
|
||||
|
||||
cleanupHost := false
|
||||
i := installer.NewCephInstaller(t, kh.Clientset, false, "", installer.VersionMaster, installer.NautilusVersion(), cleanupHost)
|
||||
i := installer.NewCephInstaller(t, kh.Clientset, false, "", installer.VersionMaster, installer.NautilusVersion, cleanupHost)
|
||||
|
||||
op := &MCTestOperations{i, kh, t, namespace1, namespace2, installer.SystemNamespace(namespace1), "", false}
|
||||
if kh.VersionAtLeast("v1.13.0") {
|
||||
@@ -199,7 +199,7 @@ func (o MCTestOperations) Teardown() {
|
||||
func (o MCTestOperations) startCluster(namespace, store string) error {
|
||||
logger.Infof("starting cluster %s", namespace)
|
||||
err := o.installer.CreateRookCluster(namespace, o.systemNamespace, store, o.testOverPVC, o.storageClassName,
|
||||
cephv1.MonSpec{Count: 1, AllowMultiplePerNode: true}, true, false, false, installer.NautilusVersion())
|
||||
cephv1.MonSpec{Count: 1, AllowMultiplePerNode: true}, true, false, false, installer.NautilusVersion)
|
||||
if err != nil {
|
||||
o.T().Fail()
|
||||
o.installer.GatherAllRookLogs(o.T().Name(), namespace, o.systemNamespace)
|
||||
|
||||
@@ -99,7 +99,7 @@ func (suite *SmokeSuite) SetupSuite() {
|
||||
skipOSDCreation: false,
|
||||
minimalMatrixK8sVersion: smokeSuiteMinimalTestVersion,
|
||||
rookVersion: installer.VersionMaster,
|
||||
cephVersion: installer.OctopusVersion(),
|
||||
cephVersion: installer.OctopusVersion,
|
||||
}
|
||||
|
||||
suite.op, suite.k8sh = StartTestCluster(suite.T, &smokeTestCluster)
|
||||
|
||||
@@ -86,7 +86,7 @@ func (s *UpgradeSuite) SetupSuite() {
|
||||
skipOSDCreation: false,
|
||||
minimalMatrixK8sVersion: upgradeMinimalTestVersion,
|
||||
rookVersion: installer.Version1_4,
|
||||
cephVersion: installer.NautilusVersion(),
|
||||
cephVersion: installer.NautilusVersion,
|
||||
}
|
||||
|
||||
s.op, s.k8sh = StartTestCluster(s.T, &upgradeTestCluster)
|
||||
@@ -200,7 +200,7 @@ func (s *UpgradeSuite) TestUpgradeToMaster() {
|
||||
//
|
||||
logger.Infof("*** UPGRADING CEPH FROM Nautilus TO Octopus ***")
|
||||
s.gatherLogs(systemNamespace, "_before_octopus_upgrade")
|
||||
s.upgradeCephVersion(installer.OctopusVersion().Image, numOSDs)
|
||||
s.upgradeCephVersion(installer.OctopusVersion.Image, numOSDs)
|
||||
// Verify reading and writing to the test clients
|
||||
newFile = "post-octopus-upgrade-file"
|
||||
s.verifyFilesAfterUpgrade(filesystemName, newFile, message, rbdFilesToRead, cephfsFilesToRead)
|
||||
|
||||
Reference in New Issue
Block a user