[Bug 1509404] [NEW] snappy build does not allow abstract sockets with 'listen-stream'

Jamie Strandboge jamie at ubuntu.com
Fri Oct 23 15:27:49 UTC 2015


Public bug reported:

systemd socket activation
(http://www.freedesktop.org/software/systemd/man/systemd.socket.html)
was added to the service yaml some time ago. ListenStream= in the
systemd unit supports both file-based sockets (start with '/') and
abstract sockets (start with '@'). However, snappy build doesn't
recognize '@' as a valid character.

$ cat ./meta/package.yaml
name: foo
version: 1.3
vendor: Some One <some.one at example.com>
icon: meta/hello.png
services:
 - name: bar
   start: bin/bar
   description: bar service
   socket: true
   listen-stream: '@foo_bar'

$ snappy build .
services description field 'ListenStream' contains illegal '@foo_bar' (legal: '^[A-Za-z0-9/. _#:-]*$')

Couple of things here:
 a) the error message should say 'listen-stream', not 'ListenStream' because we want to reference the packaging yaml declaration, not the underlying systemd implementation
 b) '@' should be allowed in this regex. Based on the existing error regex, I suggest it be changed to: '^[/@][A-Za-z0-9/. _#:-]+$'

** Affects: snappy (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to snappy in Ubuntu.
https://bugs.launchpad.net/bugs/1509404

Title:
  snappy build does not allow abstract sockets with 'listen-stream'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snappy/+bug/1509404/+subscriptions



More information about the Ubuntu-server-bugs mailing list