How to build juju for centOS
fengxia
fxia1 at lenovo.com
Thu May 11 14:26:01 UTC 2017
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 at 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.
Best,
Feng
On 05/10/2017 03:44 AM, Andrew Wilkins wrote:
> On Wed, May 10, 2017 at 3:08 PM fengxia <fxia1 at lenovo.com
> <mailto:fxia1 at 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/ <http://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
> <http://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 <http://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 <tel:%28508%29%20801-1794>
> fxia1 at lenovo.com <mailto:fxia1 at lenovo.com>
>
> Lenovo.com
> Twitter | Facebook | Instagram | Blogs | Forums
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com <mailto:Juju at lists.ubuntu.com>
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
--
Feng xia
Engineer
Lenovo USA
Phone: 5088011794
fxia1 at lenovo.com
Lenovo.com
Twitter | Facebook | Instagram | Blogs | Forums
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20170511/4e3443fc/attachment.html>
More information about the Juju
mailing list