Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with test suite lemon and orange #709

Closed
ktenzer opened this issue Jan 27, 2022 · 4 comments
Closed

Issue with test suite lemon and orange #709

ktenzer opened this issue Jan 27, 2022 · 4 comments

Comments

@ktenzer
Copy link
Contributor

ktenzer commented Jan 27, 2022

I am running the test suite locally. Kiwi test succeeds but lemon and orange fail.

Error encountered

TASK [operator_index : Set versions and versions_bt] **********************************************************************************
task path: /playbooks/upstream/roles/operator_index/tasks/op_index.yml:80
fatal: [localhost]: FAILED! => 
  msg: |-
    The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'latest'
  
    The error appears to be in '/playbooks/upstream/roles/operator_index/tasks/op_index.yml': line 80, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.
  
    The offending line appears to be:
  
  
    - name: "Set versions and versions_bt"
      ^ here

Additional details
In the set versions task it is trying to access index that maps ocp version to operator version and looking for latest tag which doesn't exist hence the dict object not found error.

Steps to reproduce:

$ cd community-operators-prod
$ OPP_AUTO_PACKAGEMANIFEST_CLUSTER_VERSION_LABEL=1 OPP_PRODUCTION_TYPE=ocp \
bash <(curl -sL https://raw.githubusercontent.com/redhat-openshift-ecosystem/community-operators-pipeline/ci/latest/ci/scripts/opp.sh) \
lemon \
operators/kiali/1.9.1
@ktenzer
Copy link
Contributor Author

ktenzer commented Jan 27, 2022

In order to submit an operator do all tests need to pass or just kiwi?

@mvalarh
Copy link
Contributor

mvalarh commented Jan 28, 2022

All tests needs to pass. Let me check for error

@mvalarh
Copy link
Contributor

mvalarh commented Jan 28, 2022

For ocp you will have to define ocp version in lemon or orange name;

  • lemon_v4.8-db
  • orange_v4.8-db
    Can you try this?

@ktenzer
Copy link
Contributor Author

ktenzer commented Jan 28, 2022

Ok that works, closing issue, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants