AAP 2.5 Installer fails with error 'Incorrect type. Expected pk value, received str.'

Solution Verified - Updated -

Issue

  • When trying to run the Installer for Ansible Automation Platform 2.5, the installer fails at the following error:

    TASK [ansible.containerized_installer.automationgateway : Update automation platform gateway service clusters] ******************************************************************
    failed: [serverA.example.com] (item={'name': 'gateway', 'service_type': 'gateway'}) => {"ansible_loop_var": "item", "changed": false, "item": {"name": "gateway", "service_type": "gateway"}, "msg": "c{'service_type': ['Incorrect type. Expected pk value, received str.']}"}
    failed: [serverB.example.com] (item={'name': 'controller', 'service_type': 'controller'}) => {"ansible_loop_var": "item", "changed": false, "item": {"name": "controller", "service_type": "controller"}, "msg": "c{'service_type': ['Incorrect type. Expected pk value, received str.']}"}
    failed: [serverC.example.com] (item={'name': 'hub', 'service_type': 'hub'}) => {"ansible_loop_var": "item", "changed": false, "item": {"name": "hub", "service_type": "hub"}, "msg": "c{'service_type': ['Incorrect type. Expected pk value, received str.']}"}
    failed: [serverD.example.com] (item={'name': 'eda', 'service_type': 'eda'}) => {"ansible_loop_var": "item", "changed": false, "item": {"name": "eda", "service_type": "eda"}, "msg": "c{'service_type': ['Incorrect type. Expected pk value, received str.']}"}
    

Environment

  • Red Hat Ansible Automation Platform 2.5 RPM Install
  • Red Hat Ansible Automation Platform 2.5 Containerized Install

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content