Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-6116

[Assets generation] Failed to "oc apply" generated asset templates

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Blocker Blocker
    • MTA 8.0.0
    • MTA 8.0.0
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      Description of problem:

      Failed to "oc apply" yaml files generated by Konveyor

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

      mta-operator-bundle-container-8.0.0-61

      How reproducible:

      100%

      Steps to Reproduce:

      1. Create an app instance for hello-spring-cloud deployed on Cloud Foundry - fill in source platform and asset repository details
      2. Create an archetype and use the "CloudFoundry-Openshift" generator as a target profile
      3. Associate the hello-spring-cloud application with the archetype
      4. Retrieve configurations
      5. Generate assets -> Render asset templates
      6. Login to an OpenShift cluster -> run "oc apply" on the assets generated by Konveyor/MTA

      Actual results:

      $ oc apply -f '*.yaml'
      serviceaccount/hello-spring-cloud created
      error parsing deployment.yaml: error converting YAML to JSON: yaml: line 32: did not find expected ',' or ']'
      Error from server (BadRequest): error when creating "service.yaml": Service in version "v1" cannot be handled as a Service: json: cannot unmarshal object into Go struct field ServiceSpec.spec.selector of type string
      

              rromanni@redhat.com Ramon Roman Nissen
              mguetta1 Maayan Hadasi
              Maayan Hadasi Maayan Hadasi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: