Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-7240

OpenStackDataPlaneService Play field expects a Playbook not a Play

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • Moderate

      Description:

      When creating a custom OpenStackDataPlaneService and leveraging the `Play` field. The field validation tries to validate for an Ansible playbook rather than a Play.

      A play is a Dictionary as per:
      https://github.com/ansible/ansible/blob/10f9b8e6554e024e3561170153b8e7fde5e7e4fb/test/units/playbook/test_play.py#L48

      Reproducer:

      Doesn't work with a Play:
      https://github.com/openstack-k8s-operators/dataplane-operator/pull/871#discussion_r1610829807

      Does work with a Playbook:
      https://github.com/openstack-k8s-operators/dataplane-operator/pull/871#discussion_r1610831535

      Expected behavior:

      The validation should validate a Play instead of a Playbook and accept valid Plays.

            rhn-support-bshephar Brendan Shephard
            rhn-support-bshephar Brendan Shephard
            rhos-dfg-df
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: