← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1699768] Re: "snap set" causes snapd crash

 

I have just tested on xenial and the fix never made it there:

# apt-cache policy snapd
snapd:
  Installed: 2.26.10
  Candidate: 2.26.10
  Version table:
 *** 2.26.10 500
        500 http://prodstack-zone-2.clouds.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.0.2 500
        500 http://prodstack-zone-2.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

Since xenial is our current LTS release could we get this bugfix
backported?

** Also affects: snapd (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: snapd (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: snapd (Ubuntu Xenial)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1699768

Title:
  "snap set" causes snapd crash

Status in snapd:
  Fix Released
Status in snapd package in Ubuntu:
  New
Status in snapd source package in Xenial:
  New

Bug description:
  I am using kube-apiserver snap and I can get it to crash snapd with
  "snap set" commands.

  I am using charms to do initial deployment but high level overview of what's happening is:
  * charm deploys kube-apiserver, uses "snap set" to set arguments
  * I run "snap set kube-apiserver runtime-config=batch/v2alpha1=true"
  * I run this command to remove runtime-config: "snap set kube-apiserver runtime-config=null"
  * finally run command similar to this:
  snap set kube-apiserver client-ca-file=/root/cdk/ca.crt etcd-cafile=/root/cdk/etcd/client-ca.pem basic-auth-file=/root/cdk/basic_auth.csv min-request-timeout=300 insecure-bind-address=127.0.0.1 v=4 kubelet-certificate-authority=/root/cdk/ca.crt service-account-key-file=/root/cdk/serviceaccount.key token-auth-file=/root/cdk/known_tokens.csv etcd-certfile=/root/cdk/etcd/client-cert.pem service-cluster-ip-range=x.x.x.x/24 etcd-servers=https://y.y.y.1:2379,https://y.y.y.2:2379 insecure-port=8080 storage-backend=etcd2 admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota,DefaultTolerationSeconds etcd-keyfile=/root/cdk/etcd/client-key.pem logtostderr=true tls-private-key-file=/root/cdk/server.key kubelet-client-key=/root/cdk/client.key tls-cert-file=/root/cdk/server.crt kubelet-client-certificate=/root/cdk/client.crt allow-privileged=false

  Result is:
  error: cannot perform the following tasks:
  - Run configure hook of "kube-apiserver" snap (run hook "configure": error: cannot communicate with server: Post http://localhost/v2/snapctl: EOF)

  And the following in /var/log/messages:

  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 138.131µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 199.096µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 143.459µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 131.424µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 137.524µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 139.962µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 178.135µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 135.064µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 136.563µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 137.546µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 108.035µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 183.633µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 115.527µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: daemon.go:176: DEBUG: @ POST /v2/snapctl 138.04µs 200
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: 2017/06/22 11:43:50 http: panic serving @: runtime error: invalid memory address or nil pointer dereference
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: goroutine 1502 [running]:
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: net/http.(*conn).serve.func1(0xc82085cd00)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/usr/lib/go-1.6/src/net/http/server.go:1389 +0xc3
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: panic(0x56120bd30f40, 0xc82000a090)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/usr/lib/go-1.6/src/runtime/panic.go:443 +0x4ed
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: github.com/snapcore/snapd/overlord/configstate/config.getFromPristine(0xc82000b920, 0xe, 0xc8202c1bd0, 0x1, 0x1, 0x0, 0xc82033b5c0, 0x56120bbc6c60, 0xc8202c1bb0, 0x0, ...)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/build/snapd-V80_Ox/snapd-2.25/_build/src/github.com/snapcore/snapd/overlord/configstate/config/transaction.go:149 +0x23a
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: github.com/snapcore/snapd/overlord/configstate/config.(*Transaction).Get(0xc8205523c0, 0xc82000b920, 0xe, 0xc8202c16b0, 0xe, 0x56120bbc6c60, 0xc8202c1bb0, 0x0, 0x0)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/build/snapd-V80_Ox/snapd-2.25/_build/src/github.com/snapcore/snapd/overlord/configstate/config/transaction.go:125 +0x2cc
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: github.com/snapcore/snapd/overlord/hookstate/ctlcmd.(*getCommand).getConfigSetting.func1(0xc8202c16b0, 0xe, 0x0, 0x0, 0xc820810cc0, 0x0, 0x0)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/build/snapd-V80_Ox/snapd-2.25/_build/src/github.com/snapcore/snapd/overlord/hookstate/ctlcmd/get.go:178 +0xf9
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: github.com/snapcore/snapd/overlord/hookstate/ctlcmd.(*getCommand).printValues(0xc820944900, 0xc8203df140, 0x0, 0x0)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/build/snapd-V80_Ox/snapd-2.25/_build/src/github.com/snapcore/snapd/overlord/hookstate/ctlcmd/get.go:94 +0x10a
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: github.com/snapcore/snapd/overlord/hookstate/ctlcmd.(*getCommand).getConfigSetting(0xc820944900, 0xc820304070, 0x0, 0x0)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/build/snapd-V80_Ox/snapd-2.25/_build/src/github.com/snapcore/snapd/overlord/hookstate/ctlcmd/get.go:189 +0xb8
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: github.com/snapcore/snapd/overlord/hookstate/ctlcmd.(*getCommand).Execute(0xc820944900, 0xc820810b70, 0x0, 0x3, 0x0, 0x0)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/build/snapd-V80_Ox/snapd-2.25/_build/src/github.com/snapcore/snapd/overlord/hookstate/ctlcmd/get.go:164 +0x742
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc82051ad20, 0xc8201ce700, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/build/snapd-V80_Ox/snapd-2.25/_build/src/github.com/snapcore/snapd/vendor/github.com/jessevdk/go-flags/parser.go:301 +0xa12
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: github.com/snapcore/snapd/overlord/hookstate/ctlcmd.Run(0xc820304070, 0xc8201ce700, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/build/snapd-V80_Ox/snapd-2.25/_build/src/github.com/snapcore/snapd/overlord/hookstate/ctlcmd/ctlcmd.go:113 +0x4d1
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: github.com/snapcore/snapd/daemon.runSnapctl(0x56120c192be0, 0xc82085a700, 0x0, 0x0, 0x0)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/build/snapd-V80_Ox/snapd-2.25/_build/src/github.com/snapcore/snapd/daemon/api.go:2210 +0x349
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: github.com/snapcore/snapd/daemon.(*Command).ServeHTTP(0x56120c192be0, 0x7f897b945638, 0xc8204f1ee0, 0xc82085a700)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/build/snapd-V80_Ox/snapd-2.25/_build/src/github.com/snapcore/snapd/daemon/daemon.go:144 +0x33c
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: github.com/snapcore/snapd/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc820237810, 0x7f897b945638, 0xc8204f1ee0, 0xc82085a700)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/build/snapd-V80_Ox/snapd-2.25/_build/src/github.com/snapcore/snapd/vendor/github.com/gorilla/mux/mux.go:100 +0x2a0
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: github.com/snapcore/snapd/daemon.logit.func1(0x7f897b945600, 0xc820855ad0, 0xc82085a700)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/build/snapd-V80_Ox/snapd-2.25/_build/src/github.com/snapcore/snapd/daemon/daemon.go:172 +0x10b
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: net/http.HandlerFunc.ServeHTTP(0xc820310500, 0x7f897b945600, 0xc820855ad0, 0xc82085a700)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/usr/lib/go-1.6/src/net/http/server.go:1618 +0x3c
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: net/http.serverHandler.ServeHTTP(0xc8202d4a00, 0x7f897b945600, 0xc820855ad0, 0xc82085a700)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/usr/lib/go-1.6/src/net/http/server.go:2081 +0x1a0
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: net/http.(*conn).serve(0xc82085cd00)
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/usr/lib/go-1.6/src/net/http/server.go:1472 +0xf30
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: created by net/http.(*Server).Serve
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 snapd[9363]: #011/usr/lib/go-1.6/src/net/http/server.go:2137 +0x450
  Jun 22 11:43:50 juju-bed7e0-juju2-is-kubernetes-169-5 /usr/lib/snapd/snapd[9363]: task.go:303: DEBUG: 2017-06-22T11:43:50Z ERROR run hook "configure": error: cannot communicate with server: Post http://localhost/v2/snapctl: EOF

  # snap --version
  snap    2.25
  snapd   2.25
  series  16
  ubuntu  16.04
  kernel  4.4.0-81-generic
  # snap list
  Name                     Version  Rev   Developer  Notes
  cdk-addons               1.6.2    21    canonical  -
  core                     16-2     1689  canonical  -
  kube-apiserver           1.6.2    27    canonical  -
  kube-controller-manager  1.6.2    18    canonical  -
  kube-scheduler           1.6.2    27    canonical  -
  kubectl                  1.6.2    27    canonical  classic

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1699768/+subscriptions