installer: Openshift-install is reporting wrongly that we don't have the necessary permission
Version
$ openshift-install version
openshift-install 4.4.14
built from commit 88d06658198ec1eb3c8c8dc56d851b3ff4e3021f
release image quay.io/openshift-release-dev/ocp-release@sha256:83ac468a022d681475f3016858de4bc917c2ea214bee395f8f4210f4784aafd7
Platform:
AWS
IPI
What happened?
We are installing openshift on a private cluster (publish: Internal and all private subnets). We believe that we have all the required AWS permission as documented by Red Hat. But when executed openshift-install create cluster, we got this message:
WARNING Action not allowed with tested creds action=“ec2:DescribeVpcClassicLinkDnsSupport” WARNING Tested creds not able to perform all requested actions FATAL failed to fetch Cluster: failed to fetch dependency of “Cluster”: failed to generate asset “Platform Permissions Check”: validate AWS credentials: current credentials insufficient for performing cluster installation
However, the AWS credentials that we are using definitely has this permission: Here is a snippet of the AWS cli command to get all our policy (aws iam get-policy-version …)
{
{
"Sid": "ec2Actions",
"Effect": "Allow",
"Action": [
"ec2:TerminateInstances",
"ec2:RunInstances",
"ec2:RevokeSecurityGroupIngress",
"ec2:RevokeSecurityGroupEgress",
"ec2:PassRole",
"ec2:ModifyNetworkInterfaceAttribute",
"ec2:ModifyInstanceAttribute",
"ec2:GetConsole",
"ec2:DescribeVpcs",
"ec2:DescribeVpcEndpoints",
"ec2:DescribeVpcClassicLinkDnsSupport",
"ec2:DescribeVpcClassicLink",
"ec2:DescribeVpcAttribute",
"ec2:DescribeVolumes",
"ec2:DescribeTags",
"ec2:DescribeSubnets",
"ec2:DescribeSecurityGroups",
"ec2:DescribeRouteTables",
"ec2:DescribeRegions",
"ec2:DescribePrefixLists",
"ec2:DescribeNetworkInterfaces",
"ec2:DescribeNetworkAcls",
"ec2:DescribeNatGateways",
"ec2:DescribeKeyPairs",
"ec2:DescribeInternetGateways",
"ec2:DescribeInstances",
"ec2:DescribeInstanceCreditSpecifications",
"ec2:DescribeInstanceAttribute",
"ec2:DescribeImages",
"ec2:DescribeDhcpOptions",
"ec2:DescribeAvailabilityZones",
"ec2:DescribeAddresses",
"ec2:DescribeAccountAttributes",
"ec2:CreateVolume",
"ec2:CreateTags",
"ec2:CreateSecurityGroup",
"ec2:CreateNetworkInterface",
"ec2:CopyImage",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:AuthorizeSecurityGroupEgress",
"ec2:AttachNetworkInterface",
"ec2:AssociateAddress",
"ec2:AllocateAddress"
],
"Resource": "*"
},
See the troubleshooting documentation for ideas about what information to collect.
For example, if the installer fails to create resources, attach the relevant portions of your .openshift_install.log.
What you expected to happen?
We expect the installation to proceed and finish successfully.
How to reproduce it (as minimally and precisely as possible)?
Use the openshift version we are using, deploy it on a private cluster that is on an existing VPC. There is no need for a public hosted zone, i.e., the base domain is in a private hosted zone.
$ your-commands-here
Anything else we need to know?
Enter text here.
References
- enter text here.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (5 by maintainers)
@danscarf FYI, you should be able to bypass the permissions checking that is returning those (presumably) incorrect simulation results by setting
credentialsMode: Mintat the top level of theinstall-config.yamlfile before launching he OpenShift installer.