Skip to content

Ansible role for interacting with the scheduler (https://github.com/redhat-gpe/AgnosticS ) from anarchy babylon governor

License

Notifications You must be signed in to change notification settings

redhat-cop/babylon_agnostics

Repository files navigation

babylon_agnostics

This roles allows you to communicate with the AgnosticS scheduler. It is to be used in Babylon Anarchy.

This role does the following:

  1. call the scheduler

  2. Look for a corresponding secret in the provided namespace (default is gpte)

  3. load that secret

  4. inject it back into dynamic_job_vars

Input

For input variables, please refer to defaults/main.yaml.

The credentials to access the API can be loaded via an OpenShift secret in your OCP Babylon cluster and the special var agnostics_mgr_access. For example, if you created a secret agnostics-api-mgr-access in the agnostics namespace, you can inject it into the agnostics_mgr_access this way:

using agnosticv-operator:
__meta__:
  secrets:
    - name: agnostics-api-mgr-access
      namespace: agnostics
      var: agnostics_mgr_access
using Anarchy Governor directly:
spec:
  varSecrets:
    - name: agnostics-api-mgr-access
      namespace: agnostics
      var: agnostics_mgr_access

The following output variables will be set using set_fact module.

Variable name example Purpose

agnostics_placement_cloud

openstack-orange

The name of the cloud