Skip to content

Default ansible operator Travisfile doesn't work - jmespath error #2023

@geerlingguy

Description

@geerlingguy

Bug Report

What did you do?

  1. I created a new operator (using the operator-sdk cli command in the documentation).
  2. I pushed the generated code to a new GitHub repository.
  3. I waited for the Travis CI build to finish.

What did you expect to see?

I expected the default test would pass.

What did you see instead? Under which circumstances?

I received the error:

TASK [Wait 60s for reconciliation to run] **************************************
fatal: [localhost]: FAILED! => {"msg": "The conditional check ''Successful' in (cr | json_query('resources[].status.conditions[].reason'))' failed. The error was: You need to install \"jmespath\" prior to running json_query filter"}

Environment

  • operator-sdk version:
$ operator-sdk version
operator-sdk version: v0.10.0, commit: ff80b17737a6a0aade663e4827e8af3ab5a21170
  • go version:

N/A

  • Kubernetes version information:

N/A

  • Kubernetes cluster kind:

N/A

Possible Solution

The default .travis.yml file included with the Ansible operator scaffold should include jmespath in its dependency installation, e.g.:

install:
  - pip install docker molecule openshift jmespath

Currently it does not include jmespath.

Additional context

N/A

Metadata

Metadata

Labels

kind/bugCategorizes issue or PR as related to a bug.language/ansibleIssue is related to an Ansible operator project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions