FWIW, I think this *could* work, but it may be that we just haven't coded it up. Just as *juju deploy mysql -n 4* will use existing clean machines in the model where appropriate, deploying a bundle should as well (presuming the existing machines match constraints etc as usual).
On Tue, Jan 3, 2017 at 9:08 AM Rick Harding <rick.hard...@canonical.com> wrote: > Hi Vance, you can deploy a bundle that uses existing machines in the model > with the juju-deployer [1] tool. > > The built in juju deploy method is the first stage in a generic tool and > does not allow pointing at existing machines because it means the bundles > are not sharable and that you need your model in a specific state before > you can use the bundle. Since Juju doesn't allow you to rename machines it > means that you have to keep the bundle in sync with the model. > > 1: https://pypi.python.org/pypi/juju-deployer/ > > On Thu, Dec 29, 2016 at 9:09 AM Vance Morris <vmor...@us.ibm.com> wrote: > > > Hi all, > > Is it possible to use a bundle.yaml in conjunction with manually added > machines? > > $ juju version > 2.0.2-xenial-s390x > > $ juju status > << snip >> > Machine State DNS Inst id Series AZ > 0 started REDACTED manual:REDACTED xenial > 1 started REDACTED manual:REDACTED xenial > 2 started REDACTED manual:REDACTED xenial > << snip >> > > When I go to deploy a bundle that defines machines 0, 1, and 2 and > describes deployment of services to these machines, the charms are > deployed, but no units are created. > > ERROR cannot deploy bundle: cannot create machine for holding aodh, > ceilometer, ceph-mon, ceph-osd, cinder, glance, keystone, mongodb, mysql, > neutron-api, neutron-gateway, nova-cloud-controller, nova-compute, > openstack-dashboard, rabbitmq-server, swift-proxy and swift-storage-z1 > units: cannot add a new machine: use "juju add-machine ssh:[user@]<host>" > to provision machines > > If I manually deploy charms to the manually added machines, it's happy to > oblige. > > > VANCE MORRIS > ------------------------------ > Phone: 1-720-349-9450 <(720)%20349-9450> > E-mail: vmor...@us.ibm.com > [image: IBM] > <https://www.linkedin.com/pub/vance-morris/a/44a/b2> > <https://plus.google.com/+VanceMorris/about> > <https://twitter.com/ivancemorris> > 1177 S Belt Line Rd > Coppell, TX 75019-4642 > United States > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju >
-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju