Unit number is increasing in latest juju version.

2015-11-13 Thread Sunitha Radharapu
Hi, We have found in juju 1.25.0.1 version that each time service gets deployed unit number is increased like below. "service-name/1, service-name/2, service-name/n.." Earlier juju versions everytime we would deploy unit number would be same as "service-name/0". Due to this change our

Re: Unit number is increasing in latest juju version.

2015-11-13 Thread Matthew Williams
Hi Sunitha, I believe you can do the following: unit_manager_0 = self.d.sentry["ibm-mobilefirst-server"][0] Does that resolve the problem? Many thanks Matty On Fri, Nov 13, 2015 at 9:50 AM, Sunitha Radharapu wrote: > Hi, > > We have found in juju *1.25.0.1* version

Re: Unit number is increasing in latest juju version.

2015-11-13 Thread Mark Shuttleworth
OK. So I suspect the tests were written to reuse the environment because bootstrapping takes time. The good news is, we'll shortly get instant environment creation, so a clean environment will be cheap and fast. :) Mark On 13/11/15 10:02, Matthew Williams wrote: > Hi Mark, Sunitha, > > My

Re: Unit number is increasing in latest juju version.

2015-11-13 Thread Matthew Williams
...@ubuntu.com> > Cc: Sunitha Radharapu/India/IBM@IBMIN, Juju email list < > juju@lists.ubuntu.com> > Date: 13-11-2015 20:32 > Subject: Re: Unit number is increasing in latest juju version. > -- > > > > Hi Mark, Sunitha, > > My ap

Re: Unit number is increasing in latest juju version.

2015-11-13 Thread José Antonio Rey
This is something I raised with Marco, Matt and Chuck while in the Charmers Summit. There are several mixed opinions with regards to this, some say it's logical because each unit in an environment is unique, however it's not how Juju used to behave, hence breaking most of the tests in the store,

Re: Unit number is increasing in latest juju version.

2015-11-13 Thread Simon Davy
On 13 November 2015 at 15:02, Matthew Williams wrote: > Hi Mark, Sunitha, > > My apologies, I should have included the explanation in the original email. > > This was a change to address a long standing bug: > https://bugs.launchpad.net/juju-core/+bug/1174610 Ah -

Re: Unit number is increasing in latest juju version.

2015-11-13 Thread Matthew Williams
Hi Mark, Sunitha, My apologies, I should have included the explanation in the original email. This was a change to address a long standing bug: https://bugs.launchpad.net/juju-core/+bug/1174610 There's a discussion in the bug report, but the summary is that in most cases it's desirable to have

Re: Unit number is increasing in latest juju version.

2015-11-13 Thread Sunitha Radharapu
. From: Matthew Williams <matthew.willi...@canonical.com> To: Mark Shuttleworth <m...@ubuntu.com> Cc: Sunitha Radharapu/India/IBM@IBMIN, Juju email list <juju@lists.ubuntu.com> Date: 13-11-2015 20:32 Subject: Re: Unit number is increasing in latest j

Re: Unit number is increasing in latest juju version.

2015-11-13 Thread Marco Ceppi
ies, I should have included the]Matthew >> Williams ---13-11-2015 20:32:45---Hi Mark, Sunitha, My apologies, I should >> have included the explanation in the original email. >> >> From: Matthew Williams <matthew.willi...@canonical.com> >&