Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-4007

AWS Install Failures: Error: reading EC2 EIP, couldn't find resource

    • Low
    • None
    • False
    • Hide

      None

      Show
      None

      Fair number of hits lately:

      https://search.ci.openshift.org/?search=reading+EC2+EIP.*couldn%27t+find+resource&maxAge=168h&context=1&type=bug%2Bissue%2Bjunit&name=&excludeName=&maxMatches=5&maxBytes=20971520&groupBy=job

      Example: https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-openshift-release-master-nightly-4.13-e2e-aws-sdn/1595035159592177664

      level=error msg=Error: reading EC2 EIP (eipalloc-0e0dfa18d77003cff): couldn't find resource
      level=error
      level=error msg= with module.vpc.aws_eip.nat_eip[1],
      level=error msg= on vpc/vpc-public.tf line 68, in resource "aws_eip" "nat_eip":
      level=error msg= 68: resource "aws_eip" "nat_eip" {
      level=error
      level=error msg=failed to fetch Cluster: failed to generate asset "Cluster": failure applying terraform for "cluster" stage: failed to create cluster: failed to apply Terraform: exit status 1
      level=error
      level=error msg=Error: reading EC2 EIP (eipalloc-0e0dfa18d77003cff): couldn't find resource
      level=error
      level=error msg= with module.vpc.aws_eip.nat_eip[1],
      level=error msg= on vpc/vpc-public.tf line 68, in resource "aws_eip" "nat_eip":
      level=error msg= 68: resource "aws_eip" "nat_eip" {

            [OCPBUGS-4007] AWS Install Failures: Error: reading EC2 EIP, couldn't find resource

            This bug is being closed because it has not had any activity in the past 3 months. While it may represent a valid problem, leaving such bugs open provides a false indication that they will be addressed. Please reopen the bug if you have additional context that would help us better understand what needs to be done.

            Chris Alfonso added a comment - This bug is being closed because it has not had any activity in the past 3 months. While it may represent a valid problem, leaving such bugs open provides a false indication that they will be addressed. Please reopen the bug if you have additional context that would help us better understand what needs to be done.

            Seems related to OCPBUGS-891 even though it's in a different resource (nat_eip vs nat_gw). The cause for the problem seems to be the same: the resource is used before it's created

            time="2022-11-22T12:48:06Z" level=debug msg="module.vpc.aws_eip.nat_eip[0]: Creating..." time="2022-11-22T12:48:06Z" level=debug msg="module.vpc.aws_eip.nat_eip[1]: Creating..."
            time="2022-11-22T12:48:07Z" level=debug msg="module.vpc.aws_eip.nat_eip[0]: Creation complete after 0s [id=eipalloc-0236f2eae5aaeeba1]"
            time="2022-11-22T12:51:48Z" level=error msg="Error: reading EC2 EIP (eipalloc-0e0dfa18d77003cff): couldn't find resource"
            

             

             

             

            Rafael Fonseca dos Santos added a comment - Seems related to OCPBUGS-891 even though it's in a different resource (nat_eip vs nat_gw). The cause for the problem seems to be the same: the resource is used before it's created time= "2022-11-22T12:48:06Z" level=debug msg= "module.vpc.aws_eip.nat_eip[0]: Creating..." time= "2022-11-22T12:48:06Z" level=debug msg= "module.vpc.aws_eip.nat_eip[1]: Creating..." time= "2022-11-22T12:48:07Z" level=debug msg= "module.vpc.aws_eip.nat_eip[0]: Creation complete after 0s [id=eipalloc-0236f2eae5aaeeba1]" time= "2022-11-22T12:51:48Z" level=error msg= "Error: reading EC2 EIP (eipalloc-0e0dfa18d77003cff): couldn't find resource"      

            Only appearing for 4.12+, possible regression and thus release blocker.

            Devan Goodwin added a comment - Only appearing for 4.12+, possible regression and thus release blocker.

              Unassigned Unassigned
              rhn-engineering-dgoodwin Devan Goodwin
              Yunfei Jiang Yunfei Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: