Re: Errors building custom ubuntu-core images

2016-10-14 Thread John Lenton
On 14 October 2016 at 13:07, Sergio Schvezov
 wrote:
> I hope you meant snapd/ubuntu-image here :-)

d'oh, yes.

-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Errors building custom ubuntu-core images

2016-10-14 Thread Luke Williams
Its working this morning. I am using the edge channel and everything is
working like it should now.

Thanks!

On Fri, Oct 14, 2016 at 5:08 AM, Oliver Grawert  wrote:

> hi,
> On Fr, 2016-10-14 at 09:07 -0300, Sergio Schvezov wrote:
> >
> > El 14/10/16 a las 05:14, John Lenton escribió:
> > >
> > > On 14 October 2016 at 01:32, Luke Williams  > > .com> wrote:
> > > >
> > > > I’m getting http 500 errors when I try anything other than the
> > > > stable
> > > > channel….
> > > those 500s come from the CDN; can you retry? (snapcraft should
> > > retry
> > > 500s on download; we'll get to that at some point...)
> >
> > I hope you meant snapd/ubuntu-image here :-)
> >
> > There might be work here for snapcraft involving pushing files
> > though,
> > but this is totally orthogonal to building images ;-)
> >
> you mean ubuntu-image will not eventually become a snapcraft plugin ?
>
> :)
>
> ciao
> oli
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>


-- 
Thanks,


Luke Williams - Technical Partner Manager, Network Switches and Ubuntu-Core
luke.willi...@canonical.com
www.canonical.com || www.ubuntu.com
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Errors building custom ubuntu-core images

2016-10-14 Thread Oliver Grawert
hi,
On Fr, 2016-10-14 at 09:07 -0300, Sergio Schvezov wrote:
> 
> El 14/10/16 a las 05:14, John Lenton escribió:
> > 
> > On 14 October 2016 at 01:32, Luke Williams  > .com> wrote:
> > > 
> > > I’m getting http 500 errors when I try anything other than the
> > > stable
> > > channel….
> > those 500s come from the CDN; can you retry? (snapcraft should
> > retry
> > 500s on download; we'll get to that at some point...)
> 
> I hope you meant snapd/ubuntu-image here :-)
> 
> There might be work here for snapcraft involving pushing files
> though, 
> but this is totally orthogonal to building images ;-)
> 
you mean ubuntu-image will not eventually become a snapcraft plugin ? 

:)

ciao
oli

signature.asc
Description: This is a digitally signed message part
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Errors building custom ubuntu-core images

2016-10-14 Thread Sergio Schvezov



El 14/10/16 a las 05:14, John Lenton escribió:

On 14 October 2016 at 01:32, Luke Williams  wrote:

I’m getting http 500 errors when I try anything other than the stable
channel….

those 500s come from the CDN; can you retry? (snapcraft should retry
500s on download; we'll get to that at some point...)


I hope you meant snapd/ubuntu-image here :-)

There might be work here for snapcraft involving pushing files though, 
but this is totally orthogonal to building images ;-)


--
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Errors building custom ubuntu-core images

2016-10-14 Thread John Lenton
On 14 October 2016 at 01:32, Luke Williams  wrote:
> I’m getting http 500 errors when I try anything other than the stable
> channel….

those 500s come from the CDN; can you retry? (snapcraft should retry
500s on download; we'll get to that at some point...)

-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Errors building custom ubuntu-core images

2016-10-13 Thread Luke Williams
Hmm….

I’m getting http 500 errors when I try anything other than the stable channel….

wililupy@xenial-build:~/temp$ sudo /snap/bin/ubuntu-image -c edge -o 
onl-snappy.img --extra-snaps onl-kernel_3.18.25_amd64.snap pc.model 
error: received an unexpected http response code (500) when trying to download 
https://068ed04f23.site.internapcdn.net/download-snap/UqFziVZDHLSyO3TqSWgNBoAdHbLI4dAH_9.snap?t=2016-10-15T00:30:14Z&h=06855316c6c93f4548f3a54513bd82ed66f018ee
COMMAND FAILED: snap prepare-image --channel=edge 
--extra-snaps=onl-kernel_3.18.25_amd64.snap pc.model 
/tmp/tmpvm_5sw_c/unpackuncaught exception in state machine step: [1] 
prepare_image
Traceback (most recent call last):
  File 
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/state.py", 
line 68, in __next__
step()
  File 
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/builder.py",
 line 139, in prepare_image
self.args.channel, self.args.extra_snaps)
  File 
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/helpers.py",
 line 130, in snap
run(cmd, stdout=None, stderr=None)
  File 
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/helpers.py",
 line 114, in run
proc.check_returncode()
  File "/snap/ubuntu-image/20/usr/lib/python3.5/subprocess.py", line 659, in 
check_returncode
self.stderr)
subprocess.CalledProcessError: Command '['snap', 'prepare-image', 
'--channel=edge', '--extra-snaps=onl-kernel_3.18.25_amd64.snap', 'pc.model', 
'/tmp/tmpvm_5sw_c/unpack']' returned non-zero exit status 1
Crash in state machine
Traceback (most recent call last):
  File 
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/__main__.py",
 line 117, in main
list(state_machine)
  File 
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/state.py", 
line 68, in __next__
step()
  File 
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/builder.py",
 line 139, in prepare_image
self.args.channel, self.args.extra_snaps)
  File 
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/helpers.py",
 line 130, in snap
run(cmd, stdout=None, stderr=None)
  File 
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/helpers.py",
 line 114, in run
proc.check_returncode()
  File "/snap/ubuntu-image/20/usr/lib/python3.5/subprocess.py", line 659, in 
check_returncode
self.stderr)
subprocess.CalledProcessError: Command '['snap', 'prepare-image', 
'--channel=edge', '--extra-snaps=onl-kernel_3.18.25_amd64.snap', 'pc.model', 
'/tmp/tmpvm_5sw_c/unpack']' returned non-zero exit status 1

Thanks,

Luke Williams - Technical Partner Manager, Network Switches/Ubuntu-Core
email: luke.willi...@canonical.com 
http://www.canonical.com/  | http://www.ubuntu.com 






> On Oct 13, 2016, at 5:24 PM, Manik Taneja  wrote:
> 
> +mvo
> 
> luke,
> fyi, i can build pc image just fine with-
> 
> 
> 
> i think your issue might be something else. perhaps, mvo can help.
> 
> /manik
> 
> On Thu, Oct 13, 2016 at 4:08 PM, Luke Williams  > wrote:
> Hello,
> 
> I am trying to build a custom ubuntu-core image with a custom kernel. Below 
> is my assertion:
> 
> {
> 
>   "type": "model",
> 
>   "authority-id": "",
> 
>   "brand-id": "",
> 
>   "series": "16",
> 
>   "model": "pc",
> 
>   "architecture": "amd64",
> 
>   "gadget": "pc",
> 
>   "kernel": "onl-kernel_3.18.25_amd64.snap",
> 
>   "timestamp": "2016-10-13T22:26:50+00:00"
> 
> }
> 
> 
> I the sign the assertion and have a valid assertion model, but when I try to 
> build, I get the following error:
> 
> 
> $ sudo /snap/bin/ubuntu-image -c stable -o onl-snappy.img --extra-snaps 
> onl-kernel_3.18.25_amd64.snap pc.model
> 
> Fetching core
> 
> Copying "onl-kernel_3.18.25_amd64.snap" (onl-kernel)
> 
> Fetching pc
> 
> onl-kernel already prepared, skipping
> 
> uncaught exception in state machine step: [2] load_gadget_yaml
> 
> Traceback (most recent call last):
> 
>   File 
> "/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/state.py",
>  line 68, in __next__
> 
> step()
> 
>   File 
> "/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/builder.py",
>  line 145, in load_gadget_yaml
> 
> with open(yaml_file, 'r', encoding='utf-8') as fp:
> 
> FileNotFoundError: [Errno 2] No such file or directory: 
> '/tmp/tmpfmnriroe/unpack/gadget/meta/gadget.yaml'
> 
> Crash in state machine
> 
> Traceback (most recent call last):
> 
>   File 
> "/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/__main__.py",
>  line 117, in main
> 
> list(state_machine)
> 
>   File 
> "/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/state.py",
>  line 68, in __next__
> 
> step()
> 
>   File 
> "/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/builder.py",
>  line 145, in lo

Re: Errors building custom ubuntu-core images

2016-10-13 Thread Steve Langasek
Hi Luke,

On Thu, Oct 13, 2016 at 04:08:59PM -0700, Luke Williams wrote:
> Hello,

> I am trying to build a custom ubuntu-core image with a custom kernel.



> I the sign the assertion and have a valid assertion model, but when I try
> to build, I get the following error:

> $ sudo /snap/bin/ubuntu-image -c stable -o onl-snappy.img --extra-snaps
> onl-kernel_3.18.25_amd64.snap pc.model

> FileNotFoundError: [Errno 2] No such file or directory:
> '/tmp/tmpfmnriroe/unpack/gadget/meta/gadget.yaml'

This error is because the new gadget snaps that are compatible with
ubuntu-image have not yet been promoted to the stable channel; at the
moment, you must use -c edge instead to get the right version.

I don't know if there is anything blocking their promotion to the stable
channel at this point.  Michael, Oliver, can you comment?

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
slanga...@ubuntu.com vor...@debian.org


signature.asc
Description: PGP signature
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Errors building custom ubuntu-core images

2016-10-13 Thread Luke Williams
Hello,

I am trying to build a custom ubuntu-core image with a custom kernel. Below
is my assertion:

{

  "type": "model",

  "authority-id": "",

  "brand-id": "",

  "series": "16",

  "model": "pc",

  "architecture": "amd64",

  "gadget": "pc",

  "kernel": "onl-kernel_3.18.25_amd64.snap",

  "timestamp": "2016-10-13T22:26:50+00:00"

}

I the sign the assertion and have a valid assertion model, but when I try
to build, I get the following error:


$ sudo /snap/bin/ubuntu-image -c stable -o onl-snappy.img --extra-snaps
onl-kernel_3.18.25_amd64.snap pc.model

Fetching core

Copying "onl-kernel_3.18.25_amd64.snap" (onl-kernel)

Fetching pc

onl-kernel already prepared, skipping

uncaught exception in state machine step: [2] load_gadget_yaml

Traceback (most recent call last):

  File
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/state.py",
line 68, in __next__

step()

  File
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/builder.py",
line 145, in load_gadget_yaml

with open(yaml_file, 'r', encoding='utf-8') as fp:

FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/tmpfmnriroe/unpack/gadget/meta/gadget.yaml'

Crash in state machine

Traceback (most recent call last):

  File
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/__main__.py",
line 117, in main

list(state_machine)

  File
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/state.py",
line 68, in __next__

step()

  File
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/builder.py",
line 145, in load_gadget_yaml

with open(yaml_file, 'r', encoding='utf-8') as fp:

FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/tmpfmnriroe/unpack/gadget/meta/gadget.yaml'
It almost looks like the gadget snap is no longer called pc, but I cannot
find in any past threads or documentation what it was changed to.

Any help would be greatly appreciated.

-- 
Thanks,


Luke Williams - Technical Partner Manager, Network Switches and Ubuntu-Core
luke.willi...@canonical.com
www.canonical.com || www.ubuntu.com
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft