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

[BUG] Replace Bintray Repository #2136

Closed
9 tasks done
plirglo opened this issue Mar 16, 2021 · 3 comments
Closed
9 tasks done

[BUG] Replace Bintray Repository #2136

plirglo opened this issue Mar 16, 2021 · 3 comments
Assignees
Labels
priority/critical Show-stopper! You better start it now type/bug
Milestone

Comments

@plirglo
Copy link
Contributor

plirglo commented Mar 16, 2021

Describe the bug
Bintray repository will be switched off on 1st May 2021:
https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/
We still use this repo in Epiphany configuration

Expected behavior

  • find and use replacement.
  • backport

Config files
https://github.com/epiphany-platform/epiphany/blob/develop/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/centos-7/download-requirements.sh
https://github.com/epiphany-platform/epiphany/blob/develop/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/redhat-7/download-requirements.sh
https://github.com/epiphany-platform/epiphany/blob/develop/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/ubuntu-18.04/add-repositories.sh

Environment
RHEL/CentOS/Ubuntu

epicli version: all versions

Additional context
alternatives to check:
https://stackshare.io/bintray/alternatives


DoD checklist

  • Changelog updated (if affected version was released)
  • COMPONENTS.md updated / doesn't need to be updated
  • Automated tests passed (QA pipelines)
    • apply
    • upgrade
  • Case covered by automated test (if possible)
  • Idempotency tested
  • Documentation updated / doesn't need to be updated
  • All conversations in PR resolved
@przemyslavic
Copy link
Collaborator

przemyslavic commented Mar 29, 2021

The repositories for RabbitMQ and Erlang have been changed from bintray to packagecloud and github.
epicli apply (dev) Ubuntu
epicli upgrade (from 0.6 to dev)
epicli upgrade (from 0.7 to dev)

epicli apply (dev) RHEL
RabbitMQ installation fails on RedHat:

2021-03-29T19:29:48.4285133Z[38;21m19:29:48 INFO cli.engine.ansible.AnsibleCommand - TASK [rabbitmq : Install packages] *********************************************
2021-03-29T19:29:49.2284349Z[31;21m19:29:49 ERROR cli.engine.ansible.AnsibleCommand - fatal: [ec2-xx-xx-xx-xx.eu-west-3.compute.amazonaws.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ custom_repository_url | default(local_repository_url, true) }}: http://{{ hostvars[groups.repository[0]].ansible_default_ipv4.address }}/epirepo: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_default_ipv4'\n\nThe error appears to be in '/shared/build/devofawsrhelcanal/ansible/roles/rabbitmq/tasks/install-packages-redhat.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Install packages\n  ^ here\n"}
2021-03-29T19:29:49.2749825Z[31;21m19:29:49 ERROR cli.engine.ansible.AnsibleCommand - fatal: [ec2-yy-yy-yy-yy.eu-west-3.compute.amazonaws.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ custom_repository_url | default(local_repository_url, true) }}: http://{{ hostvars[groups.repository[0]].ansible_default_ipv4.address }}/epirepo: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_default_ipv4'\n\nThe error appears to be in '/shared/build/devofawsrhelcanal/ansible/roles/rabbitmq/tasks/install-packages-redhat.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Install packages\n  ^ here\n"}

Apparently it is related to this change: aa04a79#diff-7f2176655230ef770101489ffa3732b2a5047ae05676fe584be0a760820a2669R6

@przemyslavic przemyslavic added priority/critical Show-stopper! You better start it now and removed priority/high Task with high priority labels Mar 30, 2021
@rpudlowski93
Copy link
Contributor

Fixed: #2169

@przemyslavic
Copy link
Collaborator

Fixed.
epicli apply: RHEL x AWS/Azure
epicli apply: Ubuntu x AWS/Azure

2021-03-30T13:01:57.2479356Z[38;21m13:01:57 INFO cli.engine.ansible.AnsibleCommand - PLAY [rabbitmq] ****************************************************************
2021-03-30T13:01:57.4937747Z[38;21m13:01:57 INFO cli.engine.ansible.AnsibleCommand -
2021-03-30T13:01:57.5003715Z[38;21m13:01:57 INFO cli.engine.ansible.AnsibleCommand - TASK [Gathering Facts] *********************************************************
2021-03-30T13:02:07.8307091Z[38;21m13:02:07 INFO cli.engine.ansible.AnsibleCommand - ok: [ec2-xx-xx-xx-xx.eu-west-3.compute.amazonaws.com]
2021-03-30T13:02:08.9474163Z[38;21m13:02:08 INFO cli.engine.ansible.AnsibleCommand - ok: [ec2-yy-yy-yy-yy.eu-west-3.compute.amazonaws.com]
2021-03-30T13:02:09.2754489Z[38;21m13:02:09 INFO cli.engine.ansible.AnsibleCommand -
2021-03-30T13:02:09.2755845Z[38;21m13:02:09 INFO cli.engine.ansible.AnsibleCommand - TASK [preflight_facts : Load preflight facts] **********************************
2021-03-30T13:02:10.6949735Z[38;21m13:02:10 INFO cli.engine.ansible.AnsibleCommand - ok: [ec2-yy-yy-yy-yy.eu-west-3.compute.amazonaws.com]
2021-03-30T13:02:10.7765100Z[38;21m13:02:10 INFO cli.engine.ansible.AnsibleCommand - ok: [ec2-xx-xx-xx-xx.eu-west-3.compute.amazonaws.com]
2021-03-30T13:02:10.9073524Z[38;21m13:02:10 INFO cli.engine.ansible.AnsibleCommand -
2021-03-30T13:02:10.9091333Z[38;21m13:02:10 INFO cli.engine.ansible.AnsibleCommand - TASK [rabbitmq : Set rabbitmq_master fact] *************************************
2021-03-30T13:02:11.8241990Z[38;21m13:02:11 INFO cli.engine.ansible.AnsibleCommand - ok: [ec2-yy-yy-yy-yy.eu-west-3.compute.amazonaws.com]
2021-03-30T13:02:11.9638351Z[38;21m13:02:11 INFO cli.engine.ansible.AnsibleCommand - ok: [ec2-xx-xx-xx-xx.eu-west-3.compute.amazonaws.com]
2021-03-30T13:02:12.0389565Z[38;21m13:02:12 INFO cli.engine.ansible.AnsibleCommand -
2021-03-30T13:02:12.0402242Z[38;21m13:02:12 INFO cli.engine.ansible.AnsibleCommand - TASK [rabbitmq : include_tasks] ************************************************
2021-03-30T13:02:12.9078240Z[38;21m13:02:12 INFO cli.engine.ansible.AnsibleCommand - included: /shared/build/devawsrhelflannel/ansible/roles/rabbitmq/tasks/install-packages-redhat.yml for ec2-yy-yy-yy-yy.eu-west-3.compute.amazonaws.com, ec2-xx-xx-xx-xx.eu-west-3.compute.amazonaws.com
2021-03-30T13:02:13.1029494Z[38;21m13:02:13 INFO cli.engine.ansible.AnsibleCommand -
2021-03-30T13:02:13.1069392Z[38;21m13:02:13 INFO cli.engine.ansible.AnsibleCommand - TASK [rabbitmq : Install packages] *********************************************
2021-03-30T13:02:27.4453683Z[38;21m13:02:27 INFO cli.engine.ansible.AnsibleCommand - changed: [ec2-xx-xx-xx-xx.eu-west-3.compute.amazonaws.com]
2021-03-30T13:02:27.4468789Z[38;21m13:02:27 INFO cli.engine.ansible.AnsibleCommand - changed: [ec2-yy-yy-yy-yy.eu-west-3.compute.amazonaws.com]

@mkyc mkyc closed this as completed Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/critical Show-stopper! You better start it now type/bug
Projects
None yet
Development

No branches or pull requests

4 participants