This job view page is being replaced by Spyglass soon. Check out the new job view.
PRkaruppiah7890: Capture test case range variable before running sub test in parallel
ResultFAILURE
Tests 0 failed / 203 succeeded
Started2021-10-18 15:02
Elapsed2m30s
Revision85fbf56bd8dde0528a799902379b157a9e1fc493
Refs 1777

No Test Failures!


Show 203 Passed Tests

Error lines from build-log.txt

... skipping 661 lines ...
=== PAUSE TestAzureCluster_ValidateUpdate/azurecluster_azureEnvironment_is_immutable
=== RUN   TestAzureCluster_ValidateUpdate/azurecluster_azureEnvironment_is_immutable#01
=== PAUSE TestAzureCluster_ValidateUpdate/azurecluster_azureEnvironment_is_immutable#01
=== RUN   TestAzureCluster_ValidateUpdate/control_plane_outbound_lb_is_immutable
=== PAUSE TestAzureCluster_ValidateUpdate/control_plane_outbound_lb_is_immutable
=== CONT  TestAzureCluster_ValidateUpdate/azurecluster_with_pre-existing_vnet_-_valid_spec
--- FAIL: TestAzureCluster_ValidateUpdate (0.00s)
    --- FAIL: TestAzureCluster_ValidateUpdate/azurecluster_with_pre-existing_vnet_-_valid_spec (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x228 pc=0x143134a]

goroutine 191 [running]:
testing.tRunner.func1.2(0x1580120, 0x2311d00)
	/usr/local/go/src/testing/testing.go:1143 +0x332
testing.tRunner.func1(0xc000630180)
... skipping 5 lines ...
sigs.k8s.io/cluster-api-provider-azure/api/v1beta1.TestAzureCluster_ValidateUpdate.func7(0xc000630180)
	/home/prow/go/src/sigs.k8s.io/cluster-api-provider-azure/api/v1beta1/azurecluster_webhook_test.go:254 +0x75
testing.tRunner(0xc000630180, 0xc0001e5040)
	/usr/local/go/src/testing/testing.go:1193 +0xef
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1238 +0x2b3
FAIL	sigs.k8s.io/cluster-api-provider-azure/api/v1beta1	0.208s
=== RUN   TestGetDefaultImageSKUID
=== RUN   TestGetDefaultImageSKUID/v1.14.9
=== RUN   TestGetDefaultImageSKUID/v1.14.10
=== RUN   TestGetDefaultImageSKUID/v1.15.6
=== RUN   TestGetDefaultImageSKUID/v1.15.7
=== RUN   TestGetDefaultImageSKUID/v1.16.3
... skipping 475 lines ...
=== PAUSE TestReconcile/agentpool_in_terminal_provisioning_state
=== CONT  TestReconcile
    agentpools_test.go:83: Testing agentpool provision state: Succeeded
=== RUN   TestReconcile/agentpool_in_terminal_provisioning_state#01
=== PAUSE TestReconcile/agentpool_in_terminal_provisioning_state#01
=== CONT  TestReconcile
    agentpools_test.go:83: Testing agentpool provision state: Failed
=== RUN   TestReconcile/agentpool_in_terminal_provisioning_state#02
=== PAUSE TestReconcile/agentpool_in_terminal_provisioning_state#02
=== CONT  TestReconcile
    agentpools_test.go:83: Testing agentpool provision state: Deleting
=== RUN   TestReconcile/agentpool_in_nonterminal_provisioning_state
=== PAUSE TestReconcile/agentpool_in_nonterminal_provisioning_state
... skipping 7 lines ...
=== PAUSE TestReconcile/agentpool_in_nonterminal_provisioning_state#02
=== CONT  TestReconcile
    agentpools_test.go:254: Testing no agentpool exists
=== RUN   TestReconcile/no_agentpool_exists
=== PAUSE TestReconcile/no_agentpool_exists
=== CONT  TestReconcile
    agentpools_test.go:254: Testing fail to get existing agent pool
=== RUN   TestReconcile/fail_to_get_existing_agent_pool
=== PAUSE TestReconcile/fail_to_get_existing_agent_pool
=== CONT  TestReconcile
    agentpools_test.go:254: Testing can create an Agent Pool
=== RUN   TestReconcile/can_create_an_Agent_Pool
=== PAUSE TestReconcile/can_create_an_Agent_Pool
=== CONT  TestReconcile
    agentpools_test.go:254: Testing fail to create an Agent Pool
=== RUN   TestReconcile/fail_to_create_an_Agent_Pool
=== PAUSE TestReconcile/fail_to_create_an_Agent_Pool
=== CONT  TestReconcile
    agentpools_test.go:254: Testing fail to update an Agent Pool
=== RUN   TestReconcile/fail_to_update_an_Agent_Pool
=== PAUSE TestReconcile/fail_to_update_an_Agent_Pool
=== CONT  TestReconcile
    agentpools_test.go:254: Testing no update needed on Agent Pool
=== RUN   TestReconcile/no_update_needed_on_Agent_Pool
=== PAUSE TestReconcile/no_update_needed_on_Agent_Pool
... skipping 230 lines ...
    controller.go:269: missing call(s) to *mock_subnets.MockClient.Get(expected a context.Context, but got <nil>, is equal to my-rg (string), is equal to my-vnet (string), is equal to my-subnet (string)) /home/prow/go/src/sigs.k8s.io/cluster-api-provider-azure/azure/services/bastionhosts/bastionhosts_test.go:178
    controller.go:269: aborting test due to missing call(s)
=== CONT  TestReconcileBastionHosts/fails_to_get_a_created_publicip
    bastionhosts_test.go:270: 
        Expected
            <*errors.withStack | 0xc00000e450>: {
                error: <*errors.withMessage | 0xc00070af40>{
                    cause: <*errors.withStack | 0xc00000e420>{
                        error: <*errors.withMessage | 0xc00070ac80>{
                            cause: <autorest.DetailedError>{
                                Original: nil,
                                PackageType: "",
                                Method: "",
                                StatusCode: <int>404,
                                Message: "Not found",
... skipping 12 lines ...
                                    Uncompressed: false,
                                    Trailer: nil,
                                    Request: nil,
                                    TLS: nil,
                                },
                            },
                            msg: "failed to get public IP for azure bastion",
                        },
                        stack: [0x149267c, 0x1492d98, 0x1498514, 0x521c2f, 0x4738c1],
                    },
                    msg: "error creating Azure Bastion",
                },
                stack: [0x1492de5, 0x1498514, 0x521c2f, 0x4738c1],
            }
        to match error
            <string>: failed to get created publicIP: #: Internal Server Error: StatusCode=500
    controller.go:269: missing call(s) to *mock_subnets.MockClient.Get(expected a context.Context, but got <nil>, is equal to my-rg (string), is equal to my-vnet (string), is equal to my-subnet (string)) /home/prow/go/src/sigs.k8s.io/cluster-api-provider-azure/azure/services/bastionhosts/bastionhosts_test.go:150
    controller.go:269: missing call(s) to *mock_publicips.MockClient.Get(expected a context.Context, but got <nil>, is equal to my-rg (string), is equal to my-publicip (string)) /home/prow/go/src/sigs.k8s.io/cluster-api-provider-azure/azure/services/bastionhosts/bastionhosts_test.go:153
    controller.go:269: missing call(s) to *mock_publicips.MockClient.CreateOrUpdate(expected a context.Context, but got <nil>, is equal to my-rg (string), is equal to my-publicip (string), is assignable to PublicIPAddress) /home/prow/go/src/sigs.k8s.io/cluster-api-provider-azure/azure/services/bastionhosts/bastionhosts_test.go:152
    controller.go:269: aborting test due to missing call(s)
I1018 15:04:03.648849   12842 azurebastion.go:40]  "msg"="getting azure bastion subnet"  "subnet"={"name":"my-subnet","securityGroup":{},"routeTable":{},"natGateway":{"ip":{"name":""}}}
I1018 15:04:03.648902   12842 azurebastion.go:46]  "msg"="creating bastion host"  "bastion"="my-bastion"
... skipping 13 lines ...
        *mock_subnets.MockClient.Get(expected a context.Context, but got <nil>, is equal to my-rg (string), is equal to my-vnet (string), is equal to my-subnet (string)) /home/prow/go/src/sigs.k8s.io/cluster-api-provider-azure/azure/services/bastionhosts/bastionhosts_test.go:98
        should be called before:
        *mock_publicips.MockClient.Get(expected a context.Context, but got *context.valueCtx, is equal to my-rg (string), is equal to my-publicip (string)) /home/prow/go/src/sigs.k8s.io/cluster-api-provider-azure/azure/services/bastionhosts/bastionhosts_test.go:99
    controller.go:269: missing call(s) to *mock_subnets.MockClient.Get(expected a context.Context, but got <nil>, is equal to my-rg (string), is equal to my-vnet (string), is equal to my-subnet (string)) /home/prow/go/src/sigs.k8s.io/cluster-api-provider-azure/azure/services/bastionhosts/bastionhosts_test.go:98
    controller.go:269: missing call(s) to *mock_publicips.MockClient.Get(expected a context.Context, but got *context.valueCtx, is equal to my-rg (string), is equal to my-publicip (string)) /home/prow/go/src/sigs.k8s.io/cluster-api-provider-azure/azure/services/bastionhosts/bastionhosts_test.go:99
    controller.go:269: aborting test due to missing call(s)
--- FAIL: TestReconcileBastionHosts (0.00s)
    --- FAIL: TestReconcileBastionHosts/fail_to_get_subnets (0.01s)
    --- FAIL: TestReconcileBastionHosts/create_publicip_fails (0.01s)
    --- FAIL: TestReconcileBastionHosts/bastion_successfully_created_with_created_public_ip (0.01s)
    --- FAIL: TestReconcileBastionHosts/fails_to_get_a_created_publicip (0.01s)
    --- PASS: TestReconcileBastionHosts/fail_to_create_a_bastion (0.02s)
    --- FAIL: TestReconcileBastionHosts/bastion_successfully_created (0.02s)
    --- FAIL: TestReconcileBastionHosts/fail_to_get_publicip (0.02s)
=== RUN   TestDeleteBastionHost
=== RUN   TestDeleteBastionHost/successfully_delete_an_existing_bastion_host
=== PAUSE TestDeleteBastionHost/successfully_delete_an_existing_bastion_host
=== RUN   TestDeleteBastionHost/bastion_host_already_deleted
=== PAUSE TestDeleteBastionHost/bastion_host_already_deleted
=== RUN   TestDeleteBastionHost/bastion_host_deletion_fails
... skipping 5 lines ...
I1018 15:04:03.649829   12842 azurebastion.go:89]  "msg"="deleting bastion host"  "bastion"="my-bastionhost"
=== CONT  TestDeleteBastionHost/bastion_host_already_deleted
I1018 15:04:03.649984   12842 azurebastion.go:89]  "msg"="deleting bastion host"  "bastion"="my-bastionhost"
I1018 15:04:03.650012   12842 azurebastion.go:98]  "msg"="successfully deleted bastion host"  "bastion"="my-bastionhost"
    controller.go:269: missing call(s) to *mock_bastionhosts.Mockclient.Delete(expected a context.Context, but got <nil>, is equal to my-rg (string), is equal to my-bastionhost1 (string)) /home/prow/go/src/sigs.k8s.io/cluster-api-provider-azure/azure/services/bastionhosts/bastionhosts_test.go:331
    controller.go:269: aborting test due to missing call(s)
--- FAIL: TestDeleteBastionHost (0.00s)
    --- PASS: TestDeleteBastionHost/successfully_delete_an_existing_bastion_host (0.00s)
    --- PASS: TestDeleteBastionHost/bastion_host_deletion_fails (0.00s)
    --- FAIL: TestDeleteBastionHost/bastion_host_already_deleted (0.00s)
FAIL
coverage: 50.7% of statements
FAIL	sigs.k8s.io/cluster-api-provider-azure/azure/services/bastionhosts	0.097s
?   	sigs.k8s.io/cluster-api-provider-azure/azure/services/bastionhosts/mocks_bastionhosts	[no test files]
=== RUN   TestDeleteDisk
=== RUN   TestDeleteDisk/delete_the_disk
=== PAUSE TestDeleteDisk/delete_the_disk
=== RUN   TestDeleteDisk/disk_already_deleted
=== PAUSE TestDeleteDisk/disk_already_deleted
... skipping 255 lines ...
    managedclusters_test.go:86: Testing managedcluster provision state: Canceled
=== RUN   TestReconcile/managedcluster_in_terminal_provisioning_state
=== CONT  TestReconcile
    managedclusters_test.go:86: Testing managedcluster provision state: Succeeded
=== RUN   TestReconcile/managedcluster_in_terminal_provisioning_state#01
=== CONT  TestReconcile
    managedclusters_test.go:86: Testing managedcluster provision state: Failed
=== RUN   TestReconcile/managedcluster_in_terminal_provisioning_state#02
=== CONT  TestReconcile
    managedclusters_test.go:86: Testing managedcluster provision state: Deleting
=== RUN   TestReconcile/managedcluster_in_nonterminal_provisioning_state
=== CONT  TestReconcile
    managedclusters_test.go:86: Testing managedcluster provision state: InProgress
... skipping 500 lines ...
=== PAUSE TestGetExistingVMSS/get_existing_vmss
=== RUN   TestGetExistingVMSS/list_instances_fails
=== PAUSE TestGetExistingVMSS/list_instances_fails
=== CONT  TestGetExistingVMSS/scale_set_not_found
=== CONT  TestGetExistingVMSS/list_instances_fails
=== CONT  TestGetExistingVMSS/scale_set_not_found
    scalesets_test.go:215: failed to get existing vmss: #: Not found: StatusCode=404
=== CONT  TestGetExistingVMSS/get_existing_vmss
=== CONT  TestGetExistingVMSS/list_instances_fails
    scalesets_test.go:215: failed to list instances: #: Not found: StatusCode=404
--- PASS: TestGetExistingVMSS (0.00s)
    --- PASS: TestGetExistingVMSS/scale_set_not_found (0.00s)
    --- PASS: TestGetExistingVMSS/list_instances_fails (0.00s)
    --- PASS: TestGetExistingVMSS/get_existing_vmss (0.00s)
=== RUN   TestReconcileVMSS
=== RUN   TestReconcileVMSS/should_start_creating_a_vmss
... skipping 639 lines ...
I1018 15:04:20.718364   14562 vnetpeerings.go:95]  "msg"="deleting peering in vnets"  "and"="vnet2" "vnet1"="vnet1" "vnet2"=null
I1018 15:04:20.718378   14562 vnetpeerings.go:105]  "msg"="successfully deleted peering in vnet"  "peering"="vnet2-to-vnet1" "vnet"="vnet2"
I1018 15:04:20.718400   14562 vnetpeerings.go:95]  "msg"="deleting peering in vnets"  "and"="vnet2" "vnet1"="vnet1" "vnet3"=null
I1018 15:04:20.718399   14562 vnetpeerings.go:95]  "msg"="deleting peering in vnets"  "and"="vnet2" "vnet1"="vnet1" "vnet2"=null
I1018 15:04:20.718418   14562 vnetpeerings.go:105]  "msg"="successfully deleted peering in vnet"  "peering"="vnet1-to-vnet2" "vnet"="vnet1"

Expected error:	failed to delete peering vnet1-to-vnet3 in vnet vnet1 and resource group group1: #: Internal Server Error: StatusCode=500
I1018 15:04:20.718438   14562 vnetpeerings.go:95]  "msg"="deleting peering in vnets"  "and"="vnet2" "vnet1"=null

Actual error:	failed to delete peering vnet1-to-vnet3 in vnet vnet1 and resource group group1: #: Internal Server Error: StatusCode=500
I1018 15:04:20.718444   14562 vnetpeerings.go:105]  "msg"="successfully deleted peering in vnet"  "peering"="vnet1-to-vnet2" "vnet"="vnet1"
I1018 15:04:20.718460   14562 vnetpeerings.go:105]  "msg"="successfully deleted peering in vnet"  "peering"="vnet2-to-vnet1" "vnet"="vnet2"
=== CONT  TestDeleteVnetPeerings/delete_no_peerings
I1018 15:04:20.718465   14562 vnetpeerings.go:95]  "msg"="deleting peering in vnets"  "and"="vnet2" "vnet1"=null
I1018 15:04:20.718491   14562 vnetpeerings.go:105]  "msg"="successfully deleted peering in vnet"  "peering"="vnet2-to-vnet1" "vnet"="vnet2"
I1018 15:04:20.718514   14562 vnetpeerings.go:95]  "msg"="deleting peering in vnets"  "and"="vnet2" "vnet1"="vnet3" "vnet4"=null
... skipping 229 lines ...
•2021-10-18T15:04:39.426Z	DEBUG	events	Normal	{"object": {"kind":"AzureCluster","apiVersion":"infrastructure.cluster.x-k8s.io/v1beta1"}, "reason": "AzureClusterObjectNotFound", "message": "AzureCluster.infrastructure.cluster.x-k8s.io \"foo-lkf9fc24c5\" not found"}
••2021-10-18T15:04:42.436Z	DEBUG	events	Normal	{"object": {"kind":"AzureCluster","apiVersion":"infrastructure.cluster.x-k8s.io/v1beta1"}, "reason": "AzureClusterObjectNotFound", "message": "AzureCluster.infrastructure.cluster.x-k8s.io \"foo-wq9mtmq8jz\" not found"}
2021-10-18T15:04:42.464Z	DEBUG	events	Normal	{"object": {"kind":"AzureCluster","apiVersion":"infrastructure.cluster.x-k8s.io/v1beta1"}, "reason": "AzureClusterObjectNotFound", "message": "AzureCluster.infrastructure.cluster.x-k8s.io \"foo-wq9mtmq8jz\" not found"}
•

Ran 4 of 4 Specs in 15.492 seconds
SUCCESS! -- 4 Passed | 0 Failed | 0 Pending | 0 Skipped

You're using deprecated Ginkgo functionality:
=============================================
Ginkgo 2.0 is under active development and will introduce several new features, improvements, and a small handful of breaking changes.
A release candidate for 2.0 is now available and 2.0 should GA in Fall 2021.  Please give the RC a try and send us feedback!
  - To learn more, view the migration guide at https://github.com/onsi/ginkgo/blob/ver2/docs/MIGRATING_TO_V2.md
... skipping 373 lines ...
Random Seed: 1634569468
Will run 2 of 2 specs

••

Ran 2 of 2 Specs in 16.577 seconds
SUCCESS! -- 2 Passed | 0 Failed | 0 Pending | 0 Skipped

You're using deprecated Ginkgo functionality:
=============================================
Ginkgo 2.0 is under active development and will introduce several new features, improvements, and a small handful of breaking changes.
A release candidate for 2.0 is now available and 2.0 should GA in Fall 2021.  Please give the RC a try and send us feedback!
  - To learn more, view the migration guide at https://github.com/onsi/ginkgo/blob/ver2/docs/MIGRATING_TO_V2.md
... skipping 144 lines ...
PASS
coverage: 100.0% of statements
ok  	sigs.k8s.io/cluster-api-provider-azure/util/system	0.008s	coverage: 100.0% of statements
?   	sigs.k8s.io/cluster-api-provider-azure/util/tele	[no test files]
?   	sigs.k8s.io/cluster-api-provider-azure/util/webhook	[no test files]
?   	sigs.k8s.io/cluster-api-provider-azure/version	[no test files]
FAIL
make: *** [Makefile:167: test-cover] Error 1
go: downloading github.com/spf13/cobra v1.2.1
go: downloading golang.org/x/tools v0.1.5
+ EXIT_VALUE=2
+ set +o xtrace