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-177 wsgi_website role manage pip/setuptools with explicit versions
Go to the next issue (open or closed)
Go to the next open issue
There are no more issues in that direction.
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Bug report
  • Category
    General
  • Targetted for
    6.0.0
  • Status
    Closed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    2 hours
  • Time spent
    1 hour
    Click here to see time logged against this issue
Issue details
  • Resolution
    RESOLVED
  • Reproducability
    Always
  • Severity
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description

While setting-up the Python virtual environment, the wsgi_website role will try to install specific versions of pip and setuptools, which will cause playbook runs not to be idempotent in situations where roles depending on it are trying to install specific versions of those two packages explicitly.

Instead of doing something like this, it would be better if the role would not explicitly install pip/setuptools, since those two packages seem to be kept up-to-date automatically during the creation of virtual environment itself.

The following should be done:

  1. Update the wsgi_website role.

    1. Do not enforce specific versions of setuptools/pip when creating the new virtual environment.
  2. Update the role reference documentation (if relevant).

  3. Update the usage instructions (if relevant).

  4. Update release notes.

Steps to reproduce this issue

Reproduction steps:

  1. Set-up a new role that depends on the wsgi_website role for basic set-up.

  2. Make the new role install specific versions of pip and setuptools.

  3. Run the playbook that applies the role on a server twice in a row.

Expected results:

  1. The second playbook run has been idempotent.

Actual results:

  1. The second playbook run has not beeen idempotent.
Todos (0 / 0)
There are no comments