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-235 Fix erros due to unwriteable __pycache__ directory in the pip requirements upgrade checks virtual environment (backport to 8.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
    8.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 (1)
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
    Critical
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description

The common role sets up a dedicated Python virtual environment which is used for running the pip requriements upgrade checks.

If the initial set-up of this environment fails (for example due to incorrect package pins), the subsequent runs will fail as well due to inability of virtual environment's dedicated user to write into the __pycache__ directory.

This happens because of incorrect user checking the status of the virtual environment (root), thus creating the directory with wrong ownership.

The following should be done:

  • Update the common role.
    • Make sure that any commands run within the context of Python interpreter belonging to the Python pip requirements upgrade checks is run using the pipreqcheck account.
  • Update role reference documentation.
  • Update usage instructions.
  • Update release notes.
Steps to reproduce this issue

Reproduction steps:

  1. Run the common role against a server. Fail this initial run by specifying unresolvable pin in the pip_check_requirements parameter.

  2. Fix the package pins in the pip_check_requirements, and reapply the role against the server.

Expected results:

  1. Step (2) succeeds.

Actual results:

  1. Step (2) fails with error message indicating that the __pycache__ directory is not writeable.
Todos (0 / 0)
There are no comments