awk shipped in the core snap does not know --sandbox

Bug #1680088 reported by Sergey Borovkov on 2017-04-05
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
High
Unassigned

Bug Description

When trying to modify rpi-config using REST API following error gets triggered.
>>> r = session.get('http+unix://%2Frun%2Fsnapd.socket/v2/changes/50'); r.text
'{"type":"sync","status-code":200,"status":"OK","result":{"id":"50","kind":"configure-snap","summary":"Change configuration of \\"core\\" snap","status":"Error","tasks":[{"id":"135","kind":"run-hook","summary":"Run configure hook of \\"core\\" snap","status":"Error","log":["2017-04-05T12:50:02Z ERROR run hook \\"configure\\": awk: not an option: --sandbox"],"progress":{"label":"","done":1,"total":1},"spawn-time":"2017-04-05T12:50:01.752141739Z","ready-time":"2017-04-05T12:50:02.953066325Z"}],"ready":true,"err":"cannot perform the following tasks:\\n- Run configure hook of \\"core\\" snap (run hook \\"configure\\": awk: not an option: --sandbox)","spawn-time":"2017-04-05T12:50:01.752253041Z","ready-time":"2017-04-05T12:50:02.953071898Z"}}'

When trying to do it using snap command:

root@localhost:/home/pi# sudo snap set core pi-config.disable-overscan=true
error: cannot perform the following tasks:
- Run configure hook of "core" snap (run hook "configure": awk: not an option: --sandbox)

Oliver Grawert (ogra) wrote :

we need to make sure the actual gawk is used in the core snap, the shipped mawk does not support --sandbox

Michael Vogt (mvo) wrote :

Alternatively we can go to python3: https://github.com/snapcore/core/pull/24 which also will fix this. Still confused why this happend :/

Oliver Grawert (ogra) wrote :

indeed, my comment was meant independent from the py3 move, people might expect awk on the OS to work like any other awk on any other ubuntu ... (specifically since it is one of the commands we give unrestricted access to for every snap)

Oliver Grawert (ogra) wrote :

ubuntu-core-meta (1.7.11) xenial; urgency=medium

  * seed gawk on all arches (LP: #1680088)

 -- Oliver Grawert <email address hidden> Thu, 06 Apr 2017 16:39:28 +0200

summary: - Can't change Pi-config values using snap set command or via REST API
+ awk shipped in the core snap does not know --sandbox
Changed in snappy:
status: New → Fix Committed
importance: Undecided → Medium
importance: Medium → High
Kyle Nitzsche (knitzsche) wrote :

Which core release will this be in? (I see ubuntu-core-meta 1.7.11 package in the ppa [1]), but I don't see how to know the version of core that will contain it.)

[2] https://launchpad.net/~snappy-dev/+archive/ubuntu/image

Oliver Grawert (ogra) wrote :

depends which one will be released, hard to tell a version number in advance.
it is now in the edge core snap and will be in the next stable release of the core snap.

Kyle Nitzsche (knitzsche) wrote :

Another way to ask the question: is there a deb build manifest for core builds and if so where? For example I don't see one here: http://cdimage.ubuntu.com/ubuntu-core/16/candidate/pending/

Michael Vogt (mvo) wrote :

This is now in the beta core snap and should enter candidate this week.

Kyle Nitzsche (knitzsche) wrote :

thanks guys

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers