Skip to content

Conversation

@joelddiaz
Copy link
Contributor

installer wants to start using VPC endpoints (openshift/installer#745), so the uninstaller should find and remove them (they are untaggable objects)

also, remove the code that would remove the individual routes from a route table (it's not needed to remove routes to be able to delete RouteTables)

needed to add these permissions to get the installer/uninstaller working:
ec2:DescribePrefixLists
ec2:DescribeVpcEndpoints
ec2:CreateVpcEndpoint
ec2:DeleteVpcEndpoints

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 3, 2018
@dgoodwin
Copy link
Contributor

dgoodwin commented Dec 4, 2018

@dak1n1 looks like some new perms for openshift/installer#444

logger.Infof("Deleted route %v from route table %v", *route.DestinationCidrBlock, *rt.RouteTableId)
}
return nil
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we keep this code even if it's been replaced in installer so that hiveutil remains able to uninstall clusters even created prior to this? Maybe just document why and keep it for a few months?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From what I've seen, removing individual routes from a route table is not needed to remove the route table. So it's really just uneccessary API calls to empty the route table before deleting the route table, when all we need is to delete the route table directly.

installer wants to start using VPC endpoints (openshift/installer#745), so the uninstaller should find and remove them (they are untaggable objects)

also, remove the code that would remove the individual routes from a route table (it's not needed to remove routes to be able to delete RouteTables)

needed to add these permissions to get the installer/uninstaller working:
ec2:DescribePrefixLists
ec2:DescribeVpcEndpoints
ec2:CreateVpcEndpoint
ec2:DeleteVpcEndpoints
@joelddiaz joelddiaz force-pushed the delete-vpc-endpoints branch from 63f6e5d to b7d7151 Compare December 4, 2018 14:34
@dgoodwin
Copy link
Contributor

dgoodwin commented Dec 5, 2018

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 5, 2018
@openshift-merge-robot openshift-merge-robot merged commit e68f4dc into openshift:master Dec 5, 2018
wking added a commit to wking/openshift-installer that referenced this pull request Dec 13, 2018
Pulling in openshift/hive@b7d71518 (remove VPC endpoints, 2018-12-03,
openshift/hive#122).

Generated with:

  $ sed -i s/2349f175d3e4fc6542dec79add881a59f2d7b1b8/802db5420da6a88f034fc2501081e2ab12e8463e/ Gopkg.toml
  $ dep ensure

using:

  $ dep version
  dep:
   version     : v0.5.0
   build date  :
   git hash    : 22125cf
   go version  : go1.10.3
   go compiler : gc
   platform    : linux/amd64
   features    : ImportDuringSolve=false
@joelddiaz joelddiaz deleted the delete-vpc-endpoints branch January 15, 2019 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants