@@ -84,7 +84,7 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
84
84
85
85
Describe ("Workload cluster (default)" , func () {
86
86
It ("It should be creatable and deletable" , func () {
87
- shared .Byf ("Creating a cluster" )
87
+ shared .Logf ("Creating a cluster" )
88
88
clusterName := fmt .Sprintf ("cluster-%s" , namespace .Name )
89
89
configCluster := defaultConfigCluster (clusterName , namespace .Name )
90
90
configCluster .ControlPlaneMachineCount = pointer .Int64Ptr (3 )
@@ -144,7 +144,7 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
144
144
145
145
Describe ("Workload cluster (external cloud provider)" , func () {
146
146
It ("It should be creatable and deletable" , func () {
147
- shared .Byf ("Creating a cluster" )
147
+ shared .Logf ("Creating a cluster" )
148
148
clusterName := fmt .Sprintf ("cluster-%s" , namespace .Name )
149
149
configCluster := defaultConfigCluster (clusterName , namespace .Name )
150
150
configCluster .ControlPlaneMachineCount = pointer .Int64Ptr (1 )
@@ -166,7 +166,7 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
166
166
Expect (workerMachines ).To (HaveLen (1 ))
167
167
Expect (controlPlaneMachines ).To (HaveLen (1 ))
168
168
169
- shared .Byf ("Waiting for worker nodes to be in Running phase" )
169
+ shared .Logf ("Waiting for worker nodes to be in Running phase" )
170
170
statusChecks := []framework.MachineStatusCheck {framework .MachinePhaseCheck (string (clusterv1 .MachinePhaseRunning ))}
171
171
machineStatusInput := framework.WaitForMachineStatusCheckInput {
172
172
Getter : e2eCtx .Environment .BootstrapClusterProxy .GetClient (),
@@ -185,7 +185,7 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
185
185
186
186
Describe ("Workload cluster (without lb)" , func () {
187
187
It ("Should create port(s) with custom options" , func () {
188
- shared .Byf ("Creating a cluster" )
188
+ shared .Logf ("Creating a cluster" )
189
189
clusterName := fmt .Sprintf ("cluster-%s" , namespace .Name )
190
190
configCluster := defaultConfigCluster (clusterName , namespace .Name )
191
191
configCluster .ControlPlaneMachineCount = pointer .Int64Ptr (1 )
@@ -207,7 +207,7 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
207
207
Expect (workerMachines ).To (HaveLen (1 ))
208
208
Expect (controlPlaneMachines ).To (HaveLen (1 ))
209
209
210
- shared .Byf ("Creating MachineDeployment with custom port options" )
210
+ shared .Logf ("Creating MachineDeployment with custom port options" )
211
211
md3Name := clusterName + "-md-3"
212
212
testSecurityGroupName := "testSecGroup"
213
213
// create required test security group
@@ -242,7 +242,7 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
242
242
InfraMachineTemplate : makeOpenStackMachineTemplateWithPortOptions (namespace .Name , clusterName , md3Name , customPortOptions , machineTags ),
243
243
})
244
244
245
- shared .Byf ("Waiting for custom port to be created" )
245
+ shared .Logf ("Waiting for custom port to be created" )
246
246
var plist []ports.Port
247
247
var err error
248
248
Eventually (func () int {
@@ -297,28 +297,28 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
297
297
// We can't clean up these networks in a corresponding AfterEach because they will still be in use by the cluster.
298
298
// Instead we clean them up after the cluster has been deleted.
299
299
300
- shared .Byf ("Creating additional networks" )
300
+ shared .Logf ("Creating additional networks" )
301
301
302
302
extraNet1 , err = shared .CreateOpenStackNetwork (e2eCtx , fmt .Sprintf ("%s-extraNet1" , namespace .Name ), "10.14.0.0/24" )
303
303
Expect (err ).NotTo (HaveOccurred ())
304
304
postClusterCleanup = append (postClusterCleanup , func () {
305
- shared .Byf ("Deleting additional network %s" , extraNet1 .Name )
305
+ shared .Logf ("Deleting additional network %s" , extraNet1 .Name )
306
306
err := shared .DeleteOpenStackNetwork (e2eCtx , extraNet1 .ID )
307
307
Expect (err ).NotTo (HaveOccurred ())
308
308
})
309
309
310
310
extraNet2 , err = shared .CreateOpenStackNetwork (e2eCtx , fmt .Sprintf ("%s-extraNet2" , namespace .Name ), "10.14.1.0/24" )
311
311
Expect (err ).NotTo (HaveOccurred ())
312
312
postClusterCleanup = append (postClusterCleanup , func () {
313
- shared .Byf ("Deleting additional network %s" , extraNet2 .Name )
313
+ shared .Logf ("Deleting additional network %s" , extraNet2 .Name )
314
314
err := shared .DeleteOpenStackNetwork (e2eCtx , extraNet2 .ID )
315
315
Expect (err ).NotTo (HaveOccurred ())
316
316
})
317
317
318
318
os .Setenv ("CLUSTER_EXTRA_NET_1" , extraNet1 .ID )
319
319
os .Setenv ("CLUSTER_EXTRA_NET_2" , extraNet2 .ID )
320
320
321
- shared .Byf ("Creating a cluster" )
321
+ shared .Logf ("Creating a cluster" )
322
322
clusterName = fmt .Sprintf ("cluster-%s" , namespace .Name )
323
323
configCluster = defaultConfigCluster (clusterName , namespace .Name )
324
324
configCluster .ControlPlaneMachineCount = pointer .Int64Ptr (1 )
@@ -358,10 +358,10 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
358
358
359
359
for i := range allMachines {
360
360
machine := & allMachines [i ]
361
- shared .Byf ("Checking ports for machine %s" , machine .Name )
361
+ shared .Logf ("Checking ports for machine %s" , machine .Name )
362
362
instanceID := getInstanceIDForMachine (machine )
363
363
364
- shared .Byf ("Fetching ports for instance %s" , instanceID )
364
+ shared .Logf ("Fetching ports for instance %s" , instanceID )
365
365
ports , err := shared .DumpOpenStackPorts (e2eCtx , ports.ListOpts {
366
366
DeviceID : instanceID ,
367
367
})
@@ -396,15 +396,15 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
396
396
397
397
Describe ("MachineDeployment misconfigurations" , func () {
398
398
It ("Should fail to create MachineDeployment with invalid subnet or invalid availability zone" , func () {
399
- shared .Byf ("Creating a cluster" )
399
+ shared .Logf ("Creating a cluster" )
400
400
clusterName := fmt .Sprintf ("cluster-%s" , namespace .Name )
401
401
configCluster := defaultConfigCluster (clusterName , namespace .Name )
402
402
configCluster .ControlPlaneMachineCount = pointer .Int64Ptr (1 )
403
403
configCluster .WorkerMachineCount = pointer .Int64Ptr (0 )
404
404
configCluster .Flavor = shared .FlavorDefault
405
405
_ = createCluster (ctx , configCluster )
406
406
407
- shared .Byf ("Creating Machine Deployment with invalid subnet id" )
407
+ shared .Logf ("Creating Machine Deployment with invalid subnet id" )
408
408
md1Name := clusterName + "-md-1"
409
409
framework .CreateMachineDeployment (ctx , framework.CreateMachineDeploymentInput {
410
410
Creator : e2eCtx .Environment .BootstrapClusterProxy .GetClient (),
@@ -413,14 +413,14 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
413
413
InfraMachineTemplate : makeOpenStackMachineTemplate (namespace .Name , clusterName , md1Name , "invalid-subnet" ),
414
414
})
415
415
416
- shared .Byf ("Looking for failure event to be reported" )
416
+ shared .Logf ("Looking for failure event to be reported" )
417
417
Eventually (func () bool {
418
418
eventList := getEvents (namespace .Name )
419
419
subnetError := "Failed to create server: no ports with fixed IPs found on Subnet \" invalid-subnet\" "
420
420
return isErrorEventExists (namespace .Name , md1Name , "FailedCreateServer" , subnetError , eventList )
421
421
}, e2eCtx .E2EConfig .GetIntervals (specName , "wait-worker-nodes" )... ).Should (BeTrue ())
422
422
423
- shared .Byf ("Creating Machine Deployment in an invalid Availability Zone" )
423
+ shared .Logf ("Creating Machine Deployment in an invalid Availability Zone" )
424
424
md2Name := clusterName + "-md-2"
425
425
framework .CreateMachineDeployment (ctx , framework.CreateMachineDeploymentInput {
426
426
Creator : e2eCtx .Environment .BootstrapClusterProxy .GetClient (),
@@ -429,7 +429,7 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
429
429
InfraMachineTemplate : makeOpenStackMachineTemplate (namespace .Name , clusterName , md2Name , "" ),
430
430
})
431
431
432
- shared .Byf ("Looking for failure event to be reported" )
432
+ shared .Logf ("Looking for failure event to be reported" )
433
433
Eventually (func () bool {
434
434
eventList := getEvents (namespace .Name )
435
435
azError := "The requested availability zone is not available"
@@ -461,11 +461,11 @@ var _ = Describe("e2e tests [PR-Blocking]", func() {
461
461
// second compute is already up by the time we get here,
462
462
// and we don't have to wait.
463
463
Eventually (func () []string {
464
- shared .Byf ("Waiting for the alternate AZ '%s' to be created" , failureDomainAlt )
464
+ shared .Logf ("Waiting for the alternate AZ '%s' to be created" , failureDomainAlt )
465
465
return shared .GetComputeAvailabilityZones (e2eCtx )
466
466
}, e2eCtx .E2EConfig .GetIntervals (specName , "wait-alt-az" )... ).Should (ContainElement (failureDomainAlt ))
467
467
468
- shared .Byf ("Creating a cluster" )
468
+ shared .Logf ("Creating a cluster" )
469
469
clusterName = fmt .Sprintf ("cluster-%s" , namespace .Name )
470
470
configCluster := defaultConfigCluster (clusterName , namespace .Name )
471
471
configCluster .ControlPlaneMachineCount = pointer .Int64Ptr (3 )
@@ -803,7 +803,7 @@ func makeMachineDeployment(namespace, mdName, clusterName string, failureDomain
803
803
}
804
804
805
805
func waitForDaemonSetRunning (ctx context.Context , ctrlClient crclient.Client , namespace , name string ) {
806
- shared .Byf ("Ensuring DaemonSet %s is running" , name )
806
+ shared .Logf ("Ensuring DaemonSet %s is running" , name )
807
807
daemonSet := & appsv1.DaemonSet {}
808
808
Eventually (
809
809
func () (bool , error ) {
@@ -816,7 +816,7 @@ func waitForDaemonSetRunning(ctx context.Context, ctrlClient crclient.Client, na
816
816
}
817
817
818
818
func waitForNodesReadyWithoutCCMTaint (ctx context.Context , ctrlClient crclient.Client , nodeCount int ) {
819
- shared .Byf ("Waiting for the workload nodes to be ready" )
819
+ shared .Logf ("Waiting for the workload nodes to be ready" )
820
820
Eventually (func () (int , error ) {
821
821
nodeList := & corev1.NodeList {}
822
822
if err := ctrlClient .List (ctx , nodeList ); err != nil {
@@ -853,15 +853,15 @@ func createTestVolumeType(e2eCtx *shared.E2EContext) {
853
853
volumeClient , err := openstack .NewBlockStorageV3 (providerClient , gophercloud.EndpointOpts {Region : clientOpts .RegionName })
854
854
Expect (err ).NotTo (HaveOccurred ())
855
855
856
- shared .Byf ("Creating test volume type" )
856
+ shared .Logf ("Creating test volume type" )
857
857
_ , err = volumetypes .Create (volumeClient , & volumetypes.CreateOpts {
858
858
Name : e2eCtx .E2EConfig .GetVariable (shared .OpenStackVolumeTypeAlt ),
859
859
Description : "Test volume type" ,
860
860
IsPublic : pointer .BoolPtr (true ),
861
861
ExtraSpecs : map [string ]string {},
862
862
}).Extract ()
863
863
if capoerrors .IsConflict (err ) {
864
- shared .Byf ("Volume type already exists. This may happen in development environments, but it is not expected in CI." )
864
+ shared .Logf ("Volume type already exists. This may happen in development environments, but it is not expected in CI." )
865
865
return
866
866
}
867
867
Expect (err ).NotTo (HaveOccurred ())
0 commit comments