Skip to content

Commit f36a937

Browse files
Merge pull request #1363 from vr4manta/revert-1358-OCPBUGS-55424
OCPBUGS-55461: Revert "Added skip for when config not multi nic"
2 parents 96394c8 + e6d519d commit f36a937

File tree

2 files changed

+14
-32
lines changed

2 files changed

+14
-32
lines changed

test/e2e/vsphere/machines.go

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const (
2323
machineReadyTimeout = time.Minute * 6
2424
)
2525

26-
var _ = Describe("[sig-cluster-lifecycle][OCPFeatureGate:VSphereMultiDisk][platform:vsphere] Managed cluster should", Label("Conformance"), func() {
26+
var _ = Describe("[sig-cluster-lifecycle][OCPFeatureGate:VSphereMultiDisk][platform:vsphere] Managed cluster should", func() {
2727
defer GinkgoRecover()
2828
ctx := context.Background()
2929

@@ -46,7 +46,7 @@ var _ = Describe("[sig-cluster-lifecycle][OCPFeatureGate:VSphereMultiDisk][platf
4646
Expect(err).NotTo(HaveOccurred())
4747
})
4848

49-
It("create machines with data disks [apigroup:machine.openshift.io][Suite:openshift/conformance/parallel]", func() {
49+
It("create machines with data disks [apigroup:machine.openshift.io]", func() {
5050
machineName := "machine-multi-test"
5151
dataDisks := []v1beta1.VSphereDisk{
5252
{
@@ -151,43 +151,33 @@ var _ = Describe("[sig-cluster-lifecycle][OCPFeatureGate:VSphereMultiDisk][platf
151151
err = util.ScaleMachineSet(cfg, ddMachineSet.Name, 0)
152152
Expect(err).NotTo(HaveOccurred())
153153

154-
// Verify / wait for machine is removed
155-
By("verifying machine is destroyed")
156-
Eventually(func() (int32, error) {
157-
ms, err := mc.MachineSets(util.MachineAPINamespace).Get(ctx, ddMachineSet.Name, metav1.GetOptions{})
158-
if err != nil {
159-
return -1, err
160-
}
161-
return ms.Status.ReadyReplicas, nil
162-
}, machineReadyTimeout).Should(BeEquivalentTo(0))
163-
164154
// Delete machineset
165155
By("deleting the machineset")
166156
err = mc.MachineSets(util.MachineAPINamespace).Delete(ctx, ddMachineSet.Name, metav1.DeleteOptions{})
167157
Expect(err).NotTo(HaveOccurred())
168158
},
169-
Entry("with thin data disk [apigroup:machine.openshift.io][Suite:openshift/conformance/parallel]", "ms-thin-test", []v1beta1.VSphereDisk{
159+
Entry("with thin data disk [apigroup:machine.openshift.io]", "ms-thin-test", []v1beta1.VSphereDisk{
170160
{
171161
Name: "thickDataDisk",
172162
SizeGiB: 1,
173163
ProvisioningMode: v1beta1.ProvisioningModeThick,
174164
},
175165
}),
176-
Entry("with thick data disk [apigroup:machine.openshift.io][Suite:openshift/conformance/parallel]", "ms-thick-test", []v1beta1.VSphereDisk{
166+
Entry("with thick data disk [apigroup:machine.openshift.io]", "ms-thick-test", []v1beta1.VSphereDisk{
177167
{
178168
Name: "thickDataDisk",
179169
SizeGiB: 1,
180170
ProvisioningMode: v1beta1.ProvisioningModeThick,
181171
},
182172
}),
183-
Entry("with eagerly zeroed data disk [apigroup:machine.openshift.io][Suite:openshift/conformance/parallel]", "ms-zeroed-test", []v1beta1.VSphereDisk{
173+
Entry("with eagerly zeroed data disk [apigroup:machine.openshift.io]", "ms-zeroed-test", []v1beta1.VSphereDisk{
184174
{
185175
Name: "zeroedDataDisk",
186176
SizeGiB: 1,
187177
ProvisioningMode: v1beta1.ProvisioningModeEagerlyZeroed,
188178
},
189179
}),
190-
Entry("with a data disk using each provisioning mode [apigroup:machine.openshift.io][Suite:openshift/conformance/parallel]", "ms-multi-test", []v1beta1.VSphereDisk{
180+
Entry("with a data disk using each provisioning mode [apigroup:machine.openshift.io]", "ms-multi-test", []v1beta1.VSphereDisk{
191181
{
192182
Name: "thinDataDisk",
193183
SizeGiB: 1,

test/e2e/vsphere/multi-nic.go

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,13 @@ func failIfIncorrectPortgroupsAttachedToVMs(
8282
}
8383

8484
func failIfNodeNetworkingInconsistentWithMachineNetwork(infra configv1.PlatformSpec, machineNetworks []string) {
85-
// This can happen in scenarios where multinetwork is not enabled.
86-
if len(infra.VSphere.NodeNetworking.External.NetworkSubnetCIDR) == 0 ||
87-
len(infra.VSphere.NodeNetworking.Internal.NetworkSubnetCIDR) == 0 {
88-
Skip("skipping test due to incomplete config")
89-
}
90-
9185
internalNodeNetworking := infra.VSphere.NodeNetworking.Internal
9286
externalNodeNetworking := infra.VSphere.NodeNetworking.External
9387

94-
// machineNetworks contain the VIPs now so we'll need to check each network to see if we find one that matches internal/external.
9588
By("comparing nodeNetworking slices to the machine network")
9689
for _, nodeNetworkingSpec := range []configv1.VSpherePlatformNodeNetworkingSpec{internalNodeNetworking, externalNodeNetworking} {
97-
for _, network := range nodeNetworkingSpec.NetworkSubnetCIDR {
98-
Expect(slices.Contains(machineNetworks, network)).To(BeTrue())
99-
}
90+
slices.Sort(nodeNetworkingSpec.NetworkSubnetCIDR)
91+
Expect(slices.Equal(nodeNetworkingSpec.NetworkSubnetCIDR, machineNetworks)).To(BeTrue())
10092
}
10193
}
10294

@@ -134,7 +126,7 @@ func failIfMachineDoesNotHaveAllPortgroups(machine machinev1beta1.Machine, failu
134126
Expect(slices.Equal(expectedPortgroups, portgroups)).To(BeTrue())
135127
}
136128

137-
var _ = Describe("[sig-cluster-lifecycle][OCPFeatureGate:VSphereMultiNetworks][platform:vsphere] Managed cluster should", Label("Conformance"), func() {
129+
var _ = Describe("[sig-cluster-lifecycle][OCPFeatureGate:VSphereMultiNetworks][platform:vsphere] Managed cluster should", func() {
138130
defer GinkgoRecover()
139131
ctx := context.Background()
140132

@@ -198,24 +190,24 @@ var _ = Describe("[sig-cluster-lifecycle][OCPFeatureGate:VSphereMultiNetworks][p
198190
}
199191
})
200192

201-
It("node addresses should be correlated with the machine network [apigroup:machine.openshift.io][Suite:openshift/conformance/parallel]", func() {
193+
It("node addresses should be correlated with the machine network", func() {
202194
By("checking for correlation between node internal/external IPs and the machine network")
203195
failIfNodeNotInMachineNetwork(*nodes, machineNetworks)
204196
})
205197

206-
It("machine network should be correlated with node networking [apigroup:machine.openshift.io][Suite:openshift/conformance/parallel]", func() {
198+
It("machine network should be correlated with node networking", func() {
207199
failIfNodeNetworkingInconsistentWithMachineNetwork(infra.Spec.PlatformSpec, machineNetworks)
208200
})
209201

210-
It("machines should have all specified portgroup associated with their failure domain [apigroup:machine.openshift.io][Suite:openshift/conformance/parallel]", func() {
202+
It("machines should have all specified portgroup associated with their failure domain", func() {
211203
failIfMachinesDoNotHaveAllPortgroups(infra.Spec.PlatformSpec, machines)
212204
})
213205

214-
It("node VMs should have all specified portgroups attached which are associated with their failure domain [apigroup:machine.openshift.io][Suite:openshift/conformance/parallel]", func() {
206+
It("node VMs should have all specified portgroups attached which are associated with their failure domain", func() {
215207
failIfIncorrectPortgroupsAttachedToVMs(ctx, infra.Spec.PlatformSpec, nodes, vsphereCreds)
216208
})
217209

218-
It("new machines should pass multi network tests [apigroup:machine.openshift.io][Suite:openshift/conformance/parallel]", func() {
210+
It("new machines should pass multi network tests", func() {
219211
machineSets, err := e2eutil.GetMachineSets(cfg)
220212
Expect(err).NotTo(HaveOccurred())
221213

0 commit comments

Comments
 (0)