test_snappy_version fails on artful

Bug #1690880 reported by Joshua Powers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned
cloud-init
Fix Released
Medium
Unassigned

Bug Description

Steps to reproduce:

$ lxc launch ubuntu-daily:artful a
$ lxc exec a bash
# snap --version
snap snapctl
root@a:~# snap --version
snap 2.26.1+17.10
snapd unavailable
series -

As stated below it appears that snapd was not running. Upon inspection the service was not running and could not be started manually. systemctl output: https://paste.ubuntu.com/24583118/

cloud-init integration tests reported a failure in artful as of May 15, 2017:

======================================================================
FAIL: test_snappy_version (tests.cloud_tests.testcases.get_suite.<locals>.tmp)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/jenkins/slaves/torkoal/workspace/cloud-init-integration-a/cloud-init/tests/cloud_tests/testcases/modules/snappy.py", line 16, in test_snappy_version
    self.assertIn('ubuntu ', out)
AssertionError: 'ubuntu ' not found in 'snap 2.26.1+17.10\nsnapd unavailable\nseries -\n'

This test runs the 'snap --verison' command and gets the output. Then verifies the following are contained in the output:

self.assertIn('snap ', out)
self.assertIn('snapd ', out)
self.assertIn('series ', out)
self.assertIn('ubuntu ', out)

Output on Zesty LXD using ubuntu-daily image:
snap 2.24.1+17.04
snapd 2.24.1+17.04
series 16
ubuntu 17.04
kernel 4.10.0-20-generic

Output on Artful LXD using ubuntu-daily image:
snap 2.26.1+17.10
snapd unavailable
series -

Related branches

Revision history for this message
Adam Conrad (adconrad) wrote :

Works fine here:

(base)adconrad@nosferatu:~$ snap --version
snap 2.26.1+17.10
snapd 2.26.1+17.10
series 16
ubuntu 17.10
kernel 4.10.0-21-lowlatency

Revision history for this message
Joshua Powers (powersj) wrote :

@adconrad - what platform did you run that on? both the test and my output came from a LXD container using the ubuntu-daily image.

Revision history for this message
Adam Conrad (adconrad) wrote :

That as just on my laptop, running up to date artful. Sounds like the snapd service isn't running in your container?

Revision history for this message
Joshua Powers (powersj) wrote :

You are correct the service is not running:
https://paste.ubuntu.com/24583118/

Revision history for this message
Joshua Powers (powersj) wrote :

Steps to reproduce:

$ lxc launch ubuntu-daily:artful a
$ lxc exec a bash
# snap --version
snap snapctl
root@a:~# snap --version
snap 2.26.1+17.10
snapd unavailable
series -

description: updated
Joshua Powers (powersj)
Changed in cloud-init:
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → Joshua Powers (powersj)
Joshua Powers (powersj)
Changed in cloud-init:
status: In Progress → Fix Committed
assignee: Joshua Powers (powersj) → nobody
Revision history for this message
Scott Moser (smoser) wrote :

Marking this as fix-released.
It probalby should have been an ubuntu bug, but I've just checked with an lxc container

root@a1:~# snap --version
snap 2.27.6+17.10
snapd 2.27.6+17.10
series 16
ubuntu 17.10
kernel 4.13.0-11-generic
root@a1:~# cat /etc/cloud/build.info
build_name: server
serial: 20170919

Changed in cloud-init:
status: Fix Committed → Fix Released
Changed in snappy:
status: New → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
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.