Not able to ping juju container IP from the remote machine

2016-01-27 Thread Saranabasava 110
HI,
 I had a client charm deployed locally on a machine and server is 
running on VMWare, which was installed in remote machine. I am not able to 
connect my client to server but i can able to ping Server IP from the 
container but not able to ping container IP from a remote machine. Is 
there any steps to be followed in charm before connecting to Server.


Thanks
Sharan

-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Leadership layer released

2016-01-27 Thread Stuart Bishop
Hi.

I've put up my Leadership layer on http://interfaces.juju.solutions/.
This work was broken out from my PostgreSQL charm refactorings and
will also be used by the Cassandra charm when I get onto that. It is
obviously small and focused on leadership; I had been considering
consolidating a number of similar parts into a swiss army knife
'hookenv' layer, but decided that smaller bricks are more in the
spirit of layered charms and avoids most feature creep.

# Leadership Layer for Juju Charms

The Leadership layer is for charm-tools and 'charm build', making it
easier for layered charms to deal with Juju leadership.

This layer will initialize charms.reactive states, allowing you to
write handlers that will be activated by these states. It allows you
to completely avoid writing leader-elected and leader-settings-changed
hooks. As a simple example, these two handlers are all that is required
to make the leader unit generate a password if it is not already set,
and have the shared password stored in a file on all units:

```python
from reactive.leadership import leader_get, leader_set
from charmhelpers.core.host import pwgen


@when('leadership.is_leader')
@when_not('leadership.set.admin_password')
def generate_secret():
leader_set(admin_password=pwgen())


@when('leadership.changed.admin_password')
def store_secret():
write_file('/etc/foopass', leader_get('admin_password'))
```


## States

The following states are set appropriately on startup, before any @hook
decorated methods are invoked:

* `leadership.is_leader`

  This state is set when the unit is the leader. The unit will remain
  the leader for the remainder of the hook, but may not be leader in
  future hooks.

* `leadership.set.{varname}`

  This state is set for each leadership setting (ie. the
  `leadership.set.foo` state will be set if the leader has set
  the foo leadership setting to any value). It will remain
  set for the remainder of the hook, unless the unit is the leader
  and calls `reactive.leadership.leader_set()` and resets the value
  to None.

* `leadership.changed.{varname}`

  This state is set for each leadership setting that has changed
  since the last hook. It will remain set for the remainder of the
  hook. It will not be set in the next hook, unless the leader has
  changed the leadership setting yet again.


## Methods

The `reactive.leadership` module exposes the `leader_set()` and
`leader_get()` methods, which match the methods found in the
`charmhelpers.core.hookenv` module. `reactive.leadership.leader_set()`
should be used instead of the charmhelpers function to ensure that
the reactive state is updated when the leadership settings are. If you
do not do this, then you risk handlers waiting on these states to not
be run on the leader (because when the leader changes settings, it
triggers leader-settings-changed hooks on the follower units but
no hooks on itself).


## Support

This layer is maintained on Launchpad by
Stuart Bishop (stuart.bis...@canonical.com).

Code is available using git at git+ssh://git.launchpad.net/leadership-layer.

Bug reports can be made at https://bugs.launchpad.net/leadership-layer.

Queries and comments can be made on the Juju mailing list, Juju IRC
channels, or at https://answers.launchpad.net/leadership-layer.


-- 
Stuart Bishop 

-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Mesos / Marathon with Juju

2016-01-27 Thread John Weldon
I'm interested in using Juju for deployment of a cassandra cluster, and
some microservices, and a front end website; all on a mesos/marathon
cluster.

Can anyone provide me information if that's feasible today, and what I'd
need to know to get started?

Thank you!

John Weldon
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


A Quick Request For Juju Charmer Summit Presenters

2016-01-27 Thread James Donner
Hey everyone,

I’ll be filming the talks at the upcoming Juju Charmer Summit so we can
create a bank of amazing content. In order to make this content useful to
our developer audience, I’m making sure that the material presented
on-screen is given more attention to quality.

If you’re presenting, here’s how we can make this happen

   - *Slide only presentations- *If you’re presenting with just slides,
   just make sure to email me your deck after the summit via a Google Docs
   link. I’ll take the rest from there.
   - *Screencapture-* If you’re demonstrating a solution on-screen (whether
   it’s code or visual), please record your screen so I can cut between the
   speaker and what’s onscreen. Giving the audience a clear view of what’s
   going on is important if we want to drive usage, guidance, and ultimately
   adoption. I’ll have an external hard drive on-site we can drop this footage
   on, or you can email it over after the summit. I would recommend using
   Kazam (available in the software centre) or whatever tools can do the job.

I’ll be on-site to help with any technical inquiries. Otherwise, feel free
to contact me prior to the event. Looking forward to making this summit a
great one!

-James
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Openstack neutron/qdhcp/qrouter

2016-01-27 Thread ed bond
Hello,

There has been a couple times that I have had a power outage. The 
percona cluster fails and I have to start one node up in recovery before 
bringing the rest up. However to make sure routing and dhcp comes back up, i’ve 
had to uninstall neutron-gateway and reinstall it several times for it to get 
“fixed”

Anyone know of a command to force the neutron-gateway to recreate 
everything/restart instead of me having to juju remove/add unit?

- Ed
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju