On Thu, May 11, 2017 at 10:27 PM fengxia <fx...@lenovo.com> wrote: > Andrew, > > I tried stock Juju on Ubuntu 16.04, but having the same error: > > ERROR cannot obtain provisioning script > ERROR getting instance config: finding tools: no matching tools available > (not found) > > Here are the steps: > > 1. juju bootstrap lxd lxd-test > > 2. juju add-machine ssh:username@ip --series centos7 > > I have also tried setting default-series when bootstrap, same error. > > I checked streams.canonical.com, there is centos agent listed under > /tools. I also manually tried setting version to 2.0.1, for example, and > got the same error. > Hi Feng,
Sorry for the late response. You may be hitting https://bugs.launchpad.net/juju/+bug/1495978. There are several fixes for CentOS related to LXD that were released in Juju 2.1. Please try updating to a newer version. FWIW, I've just successfully started a centos7 series machine on AWS using Juju 2.2-beta4, but earlier versions should work there as well. Cheers, Andrew > Best, > > Feng > On 05/10/2017 03:44 AM, Andrew Wilkins wrote: > > On Wed, May 10, 2017 at 3:08 PM fengxia <fx...@lenovo.com> wrote: > >> I have followed dev instruction and can build Juju binaries for Ubuntu. >> The dev machine is also Ubuntu. >> >> $ go install -v github.com/juju/juju/… >> >> Using the same binaries will not however bootstrap with "--config >> default-series=centos", nor "add-machine --series centos". Both failed at >> "no tools founds". >> >> How to build an agent for centos? >> > For a start, you should use "centos7", not "centos". "juju add-machine > --series=centos" *should* give you an immediate error indicating that > that's not a valid series, and ideally inform you of the closest match(es); > I'll file a bug to get that fixed. > > Do you need to build from source? If you're using a released version of > Juju, then the agents are available on streams.canonical.com. > > For dev builds, we don't have a nice, supported solution. The supported > solution is to create agent tarballs and generate simplestreams metadata. I > wrote a plugin a while ago that you can use to build and upload agent > tarballs to the controller directly, but you shouldn't use it in production > systems: > > $ go get github.com/axw/juju-tools > $ juju tools build 2.2-beta4.1-centos7-amd64 > building: juju-2.2-beta4.1-centos7-amd64.tgz > $ juju tools upload -m controller juju-2.2-beta4.1-centos7-amd64.tgz > uploading "juju-2.2-beta4.1-centos7-amd64.tgz" > $ juju add-machine --series=centos7 > > Cheers, > Andrew > >> -- >> Feng xia >> Engineer >> Lenovo USA >> >> Phone: 5088011794 <%28508%29%20801-1794>fx...@lenovo.com >> >> Lenovo.com >> Twitter | Facebook | Instagram | Blogs | Forums >> >> -- >> Juju mailing list >> Juju@lists.ubuntu.com >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/juju >> > > -- > Feng xia > Engineer > Lenovo USA > > Phone: 5088011794 <(508)%20801-1794>fx...@lenovo.com > > Lenovo.com > Twitter | Facebook | Instagram | Blogs | Forums > >
-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju