Cannot install curtin requirement without raised privileges

Bug #1691072 reported by Joseph Borg
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Undecided
Unassigned
curtin
Confirmed
Low
Unassigned

Bug Description

The curtin requirement has to be installed with raised privileges (thus cannot be confined to a virtual environment).

See:

    running install_data
    creating /usr/share/doc/curtin
    error: could not create '/usr/share/doc/curtin': Permission denied

This has to be installed globally to develop MaaS.

Revision history for this message
Joseph Borg (joeborg) wrote :

I've created this branch, removing the data_files that are placed in restricted places.

Revision history for this message
Joseph Borg (joeborg) wrote :
Changed in maas:
status: New → Invalid
Revision history for this message
Ryan Harper (raharper) wrote :

Is this a python venv setup? How do I produce the error you're seeing ?

Looking at the branch, we may find another way for the docs to be installed, however, the helpers are scripts used during curtin installations which cannot be dropped from setup; they're needed for curtin to function. The python code of curtin is separated into different packages, but after we've run the setup.py.

curtin (/usr/bin/curtin)
curtin-common (helper scripts)
python3-curtin (all of the python code)

Changed in curtin:
status: New → Incomplete
Revision history for this message
Joseph Borg (joeborg) wrote :

Hey Ryan,

Yes, within a venv, all you need to do is try and pip install the curtin requirement from the requirements.txt:

$ pip install bzr+lp:curtin#egg=curtin

It's fails when the setup.py tries to move files into /usr (which I removed in my branch). Perhaps this is a bug for curtin rather than maas?

Scott Moser (smoser)
Changed in curtin:
status: Incomplete → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.