Majic Projects
Majic Ansible Roles
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png Majic Ansible Roles / Closed Bug report MAR-187 Repository cache update fails when unreachable/deprecated Prosody repository is still configured (backport to 7.0)
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Bug report
  • Category
    General
  • Targetted for
    7.0.1
  • Status
    Closed
  • Progress
  • Priority
    Must fix before next release
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    1 hour
  • Time spent
    No time spent
    Click here to see time logged against this issue
Issue details
  • Resolution
    RESOLVED
  • Reproducability
    Always
  • Severity
    Low
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description

When the xmpp_server role is applied against a server, the role will take care of configuring the backports repository, as well as removing the deprecated Prosody project's repository.

The backports repository configuration triggers immediate cache update. However, due to ordering (refresh happens before deprecated repository configuration is removed), if the deprecated repository is unreachable, the cache update fails.

It is necessary to change the ordering of tasks in order to ensure that the deprecation happens prior to any other configuration steps.

The following should be done:

  • Update the xmpp_server role.
    • Make sure to drop the deprecated repository prior to cache update.
    • Introduce additional task that drops the deprecated repository file (in addition to apt_repository module invocation). This should be done in order to ensure the file is really absent (in case the deprecated repository URL got changed in some way).
  • Update the release notes.
Steps to reproduce this issue

Reproduction steps:

  1. Set-up server using the xmpp_server from an older Majic Ansible Roles Release (<7.0.0).

  2. Make sure that the URL used for the Prosody project's repository is unreachable (add a couple of characters to URL etc).

  3. Apply Majic Ansible Roles from the current (affected) release.

Expected results:

  1. Step (3) succeeds without errors.

Actual results:

  1. Step (3) fails with:
TASK [xmpp_server : Update apt cache if backports repository configuration changed (for immediate use)]
fatal: [fidel.test.majic.rs]: FAILED! => changed=false 
  msg: 'Failed to update apt cache: '
Todos (0 / 0)
There are no comments