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

[AWS] huge error logs were printed in install log

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • 4.12
    • None
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      More than 50,000 lines debug messages were printed in install log, the log size is too big (~50 MB):
      
      level=error msg=2023-02-14T09:09:06.102Z [DEBUG] provider.terraform-provider-aws: Calling provider defined Type Validate: tf_attribute_path=endpoints[Value({"accessanalyzer":<null>,"account":<null>,"acm":<null>,"acmpca":<null>,"alexaforbusiness":<null>,"amg":<null>,"amp":<null>,"amplify":<null>,"amplifybackend":<null>,"amplifyuibuilder":<null>,"apigateway":<null>,"apigatewaymanagementapi":<null>,"apigatewayv2":<null>,"appautoscaling":<null>,"appconfig":<null>,"appconfigdata":<null>,"appflow":<null>,"appintegrations":<null>,"appintegrationsservice":<null>,"applicationautoscaling":<null>,"applicationcostprofiler":<null>,"applicationdiscovery":<null>,"applicationdiscoveryservice": <--HIDDEN-->

      Version-Release number of selected component (if applicable):

      4.12.3-multi

      How reproducible:

      occasionally

      Steps to Reproduce:

      1. provide an x86_64 instance type, but setting architecture arm64
      2. create cluster
      3.
      

      Actual results:

      More than 50,000 lines error logs were printed
      
      level=info msg=Credentials loaded from the "default" profile in file "/var/run/secrets/ci.openshift.io/cluster-profile/.awscred"
      level=info msg=Creating infrastructure resources...
      level=error msg=2023-02-14T09:08:59.592Z [DEBUG] Adding temp file log sink: /tmp/terraform-log1626034308
      level=error msg=2023-02-14T09:08:59.592Z [INFO]  Terraform version: 1.0.11
      level=error msg=2023-02-14T09:08:59.592Z [INFO]  Go runtime version: go1.19.4
      
      <HIDDEN>
      
      level=error msg=2023-02-14T09:09:06.102Z [DEBUG] provider.terraform-provider-aws: Calling provider defined Type Validate: tf_attribute_path=endpoints[Value({"accessanalyzer":<null>,"account":<null>,"acm":<null>,"acmpca":<null>,"alexaforbusiness":<null>,"amg":<null>,"amp":<null>,"amplify":<null>,"amplifybackend":<null>,"amplifyuibuilder":<null>,"apigateway":<null>,"apigatewaymanagementapi":<null>,"apigatewayv2":<null>,"appautoscaling":<null>,"appconfig":<null>,"appconfigdata":<null>,"appflow":<null>,"appintegrations":<null>,"appintegrationsservice":<null>,"applicationautoscaling":<null>,"applicationcostprofiler":<null>,"applicationdiscovery":<null>,"applicationdiscoveryservice": 
      
      ^^~ 50,000 similar messages
      
      <HIDDEN>
      
      evel=error msg=2023-02-14T09:13:16.817Z [DEBUG] provider.terraform-provider-aws: <ListResourceRecordSetsResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/"><ResourceRecordSets><ResourceRecordSet><Name>api.ci-op-9hm3flqk-22615.qe.devcluster.openshift.com.</Name><Type>A</Type><AliasTarget><HostedZoneId>Z26RNL4JYFTOTI</HostedZoneId><DNSName>ci-op-9hm3flqk-22615-l9fbp-ext-b3ca84384d1b1a80.elb.us-east-1.amazonaws.com.</DNSName><EvaluateTargetHealth>false</EvaluateTargetHealth></AliasTarget></ResourceRecordSet></ResourceRecordSets><IsTruncated>true</IsTruncated><NextRecordName>api.ci-op-9i6vnz9h-d663e.qe.devcluster.openshift.com.</NextRecordName><NextRecordType>A</NextRecordType><MaxItems>1</MaxItems></ListResourceRecordSetsResponse>
      level=error
      level=error msg=Error: creating EC2 Instance: InvalidParameterValue: The architecture 'x86_64' of the specified instance type does not match the architecture 'arm64' of the specified AMI. Specify an instance type and an AMI that have matching architectures, and try again. You can use 'describe-instance-types' or 'describe-images' to discover the architecture of the instance type or AMI.
      level=error msg=  status code: 400, request id: f64d834d-4c91-46a9-aae1-ca4e2d7dd760
      level=error
      level=error msg=  with module.masters.aws_instance.master[0],
      level=error msg=  on master/main.tf line 129, in resource "aws_instance" "master":
      level=error msg= 129: resource "aws_instance" "master" {
      level=error
      
      

      Expected results:

      The log contents are reasonable and file size is acceptable.

      Additional info:

       

              rdossant Rafael Fonseca dos Santos
              yunjiang-1 Yunfei Jiang
              Yunfei Jiang Yunfei Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: