Skip to content

--writable option for execute/run not working in spython #138

@JayjeetAtGithub

Description

@JayjeetAtGithub

Expected Behavior

I have a sandbox debian/ built from debian.sif.

>>> from spython.main import Client as c
>>> c.execute('debian', 'touch /file', writable=True, sudo=True)
{'message': "touch: cannot touch '/file': Read-only file system\n", 'return_code': 1}

but on doing the same natively from terminal,

sudo singularity exec --writable debian touch /file

it works and the file gets created.

Actual Behavior

>>> c.execute('debian', 'touch /file', writable=True, sudo=True)

This step should work perfectly same like when done natively.

Steps to Reproduce

sudo singularity build --sandbox debian/ docker://debian:buster-slim

Then do the above mentioned steps.

Context

  • Operating System: Ubuntu 16.04
  • singularity version: 3.2.0
  • spython version: 0.0.71
  • python version: 3.7

Failure Logs

{'message': "touch: cannot touch '/file': Read-only file system\n", 'return_code': 1}

[14]+  Stopped                 python

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions