Skip to content

Conversation

@patrickdillon
Copy link
Contributor

@patrickdillon patrickdillon commented Jul 15, 2021

Adds Terraform configuration to build Azure Stack clusters. Successfully creates all infrastructure, but cluster bootstrapping depends on further upstream changes.

Currently marked as WIP because:

  • Need to revendor for OpenShift fork of Terraform Provider. That can happen now that this has been tested succesfully
  • Align Terraform configuration with new staged approach. We can begin this work now, but we may want to push that into a separate PR to allow parallel work.

This should unblock CI work in openshift/release#18796

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 15, 2021
@openshift-ci openshift-ci bot requested review from fabianofranz and jhixson74 July 15, 2021 17:28
@patrickdillon
Copy link
Contributor Author

cc @rna-afk

@patrickdillon patrickdillon changed the title [WIP] Azure Stack IPI Support Azure Stack IPI Support Jul 15, 2021
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 15, 2021
@patrickdillon
Copy link
Contributor Author

I have removed WIP from this. I would like to merge this soon to enable parallel work and we'll bring the multistages into a separate PR.

@patrickdillon
Copy link
Contributor Author

Depends on #5032
Dependency is loose but #5032 looks very close to merge.
@rna-afk this was a pretty big rebase. hopefully it doesn't make your downstream changes too complicated. ash TF configs are in 8ccaee584bcbb99f7ef72444fc03705123899ff1

@patrickdillon
Copy link
Contributor Author

I need to run another test to make sure bootstrap destroy works (which it did before switching to stages).

This is ready for review but I'm going to put a /hold until we get #5032 in or at least for today.
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 19, 2021
@patrickdillon patrickdillon force-pushed the azurestack-ipi branch 5 times, most recently from 5297dcd to 81b466b Compare July 19, 2021 18:58
Copy link
Contributor

@rna-afk rna-afk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Matthew had 3 resources in his IPI work which had to be added to the terraform provider. The azurestack_image is added but the 2 others are missing. I can add those to the IPI work later or we could add them here if you like.

name = "ignition"
resource_group_name = var.resource_group_name
storage_account_name = var.storage_account.name
container_access_type = "blob"
Copy link
Contributor

@rna-afk rna-afk Jul 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matthew had a comment that suggested setting container_access_type to "private" if the azurestack_storage_account_sas resource was available in terraform provider. I added this to the provider.

resource_group_name = data.azurestack_resource_group.main.name
network_security_group_name = azurestack_network_security_group.cluster.name
description = local.description
}
Copy link
Contributor

@rna-afk rna-afk Jul 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matthew's work also included the azurestack_subnet_network_security_group_association which I added to the terraform provider.

@rna-afk
Copy link
Contributor

rna-afk commented Jul 21, 2021

/test e2e-azure

@rna-afk
Copy link
Contributor

rna-afk commented Jul 21, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 21, 2021
@patrickdillon
Copy link
Contributor Author

/hold cancel
Azure PR is in merge pool.

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 22, 2021
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 22, 2021
@patrickdillon
Copy link
Contributor Author

/hold

still waiting on #5032

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 22, 2021
@patrickdillon
Copy link
Contributor Author

Still in the same state. I'm probably just being impatient.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 23, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jhixson74, patrickdillon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [jhixson74,patrickdillon]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

staebler and others added 7 commits July 23, 2021 18:03
Include the azurestack provider in the plugins that
terraform knows.
Add the terraform files for provisioning a cluster in
Azure Stack.

Update Azure Stack TF to stages
Uses Azure Stack as the Terraform Provider for the Azure Stack platform.
Follows the same stages as Azure, but uses the Azure Stack provider.
Uses SAS resource introduced in our provider fork to make bootstrap
ignition private.
These tags mark DNS records as owned by the cluster, allowing them to be
deleted.
Vendors the OpenShift fork of the Azure Stack Terraform provider and
azure sdk.
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 23, 2021
@rna-afk
Copy link
Contributor

rna-afk commented Jul 23, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 23, 2021
@patrickdillon
Copy link
Contributor Author

/lgtm
Rebased conflict

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 23, 2021

@patrickdillon: you cannot LGTM your own PR.

Details

In response to this:

/lgtm
Rebased conflict

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@patrickdillon
Copy link
Contributor Author

/skip

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

7 similar comments
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 24, 2021

@patrickdillon: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-openstack-kuryr 6fbadd4 link /test e2e-openstack-kuryr
ci/prow/e2e-ovirt 6fbadd4 link /test e2e-ovirt
ci/prow/e2e-crc 6fbadd4 link /test e2e-crc
ci/prow/e2e-libvirt 6fbadd4 link /test e2e-libvirt
ci/prow/e2e-aws-workers-rhel7 6fbadd4 link /test e2e-aws-workers-rhel7
ci/prow/e2e-aws-single-node 6fbadd4 link /test e2e-aws-single-node
ci/prow/e2e-metal-single-node-live-iso 6fbadd4 link /test e2e-metal-single-node-live-iso

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit d88f1d2 into openshift:master Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants