Comment 0 for bug 1391254

Revision history for this message
Jason Hobbs (jason-hobbs) wrote :

I have a simplestreams mirror I created using sstream-mirror on my MAAS server at /home/ubuntu/images/ephemeral-v2/daily. I want MAAS to use this as its boot source to import images from, so I try to point MAAS at it but get URL validation errors instead:

ubuntu@trusty-maas7:~$ maas local boot-sources create url=/home/ubuntu/images/ephemeral-v2/daily keyring_filename=/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
{"url": ["Enter a valid URL."]}
ubuntu@trusty-maas7:~$ maas local boot-sources create url=file://home/ubuntu/images/ephemeral-v2/daily keyring_filename=/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
{"url": ["Enter a valid URL."]}

To get this to work I need to host the mirror through a webserver like apache, but I shouldn't have to do that. sstream-mirror works fine with '/path/to/mirror' as its source for a mirror, and MAAS should be able to support that too.