Re: How to add openstack cloud to juju 2.1.2-xenial

2017-04-11 Thread John Meinel
It sounds like the docs are out of date. The key should be
"agent-metadata-url" 'tools' was a much older name.

John
=:->


On Wed, Apr 12, 2017 at 7:32 AM, Daniel Bidwell  wrote:

> This gets me down to:
>
> juju bootstrap acauits acauits-controller --config tools-metadata-url=h
> ttp://10.20.9.139:80/swift/v1
>
> where it gives me:
>
> WARNING unknown config field "tools-metadata-url"
> Creating Juju controller "acauits-controller" on acauits/RegionOne
> ERROR failed to bootstrap model: no image metadata found
>
> I am running juju 2.1.2-xenial-amd64
>
> On Tue, 2017-04-11 at 22:26 -0400, Heather Lanigan wrote:
> > Here is a link on generating the image metadata: https://jujucharms.c
> > om/docs/stable/howto-privatecloud
> >
> > -Heather
> >
> > > On Apr 11, 2017, at 10:20 PM, Daniel Bidwell 
> > > wrote:
> > >
> > > I am making progress.  My openstack cloud has been added now.
> > >
> > > When I do "juju bootstrap acauits"  it comes back with:
> > >
> > > Creating Juju controller "acauits-RegionOne" on acauits/RegionOne
> > > ERROR failed to bootstrap model: no image metadata found
> > >
> > > How do I get/generate image metadata?
> > >
> > > I tried "juju metadata generate-tools", but "juju metadata
> > > generate-
> > > image" complains that the controller isn't ready yet.
> > >
> > > On Tue, 2017-04-11 at 13:27 -0500, Matthew Helmke wrote:
> > > > I have an OpenStack deployment. In my novarc file, I have this
> > > > line:
> > > > export OS_AUTH_URL=http://FAKEURLFORTHISEMAIL.com:5000/v2.0
> > > >
> > > > Look for a similar line in your novarc.
> > > >
> > > > On Tue, Apr 11, 2017 at 1:22 PM, Daniel Bidwell  > > > com>
> > > > wrote:
> > > > > juju add-cloud asks:
> > > > >
> > > > > Enter the API endpoint url for the cloud:
> > > > > https://openstack.example.com:35574/v3.0/
> > > > >
> > > > > What openstack service is it asking for?  Is it asking for the
> > > > > dashboard, nova, or what?
> > > > >
> > > > > If I have only one region now, do I give it the same url for
> > > > > both
> > > > > the
> > > > > cloud and region?
> > > > >
> > > > > My cloud is up and I can create vm's with the dashboard.  I
> > > > > just
> > > > > want
> > > > > to tie it to juju now.
> > > > >
> > > > > Thanks.
> > > > >
> > > > > On Tue, 2017-04-11 at 06:28 -0500, Matthew Helmke wrote:
> > > > > > The Juju documentation includes a page dedicated to your
> > > > > > task.
> > > > > Here
> > > > > > is the link: https://jujucharms.com/docs/stable/help-openstac
> > > > > > k.
> > > > > >
> > > > > > The tl;dr for your specific question is that if you want to
> > > > > > use
> > > > > the
> > > > > > authentication from your existing OpenStack cloud, then
> > > > > > during
> > > > > `juju
> > > > > > add-cloud` you choose the `userpass` auth type and enter the
> > > > > > URL
> > > > > for
> > > > > > the API. This is typically found in your existing novarc
> > > > > > file.
> > > > > Follow
> > > > > > that by running `juju autoload-credentials` and you will be
> > > > > > all
> > > > > set.
> > > > > >
> > > > > > On Mon, Apr 10, 2017 at 4:11 PM, Daniel Bidwell  > > > > > ail.
> > > > > com>
> > > > > > wrote:
> > > > > > > I need to add openstack as a cloud to juju 2.1.2-xenial.  I
> > > > > don't
> > > > > > > seem
> > > > > > > to find the right howto.  What authentication method do I
> > > > > > > use?
> > > > > And
> > > > > > > where do I get the authentication string?  User name and
> > > > > password
> > > > > > > for
> > > > > > > dashboard user?
> > > > > > > --
> > > > > > > Daniel Bidwell 
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Juju mailing list
> > > > > > > Juju@lists.ubuntu.com
> > > > > > > Modify settings or unsubscribe at: https://lists.ubuntu.com
> > > > > > > /mai
> > > > > lman
> > > > > > > /listinfo/juju
> > > > > > >
> > > > > > --
> > > > > > Matthew Helmke
> > > > > > Documentation
> > > > > > Canonical
> > > > > --
> > > > > Daniel Bidwell 
> > > > >
> > > > >
> > > > --
> > > > Matthew Helmke
> > > > Documentation
> > > > Canonical
> > > --
> > > Daniel Bidwell 
> > >
> > >
> > > --
> > > Juju mailing list
> > > Juju@lists.ubuntu.com
> > > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman
> > > /listinfo/juju
> --
> Daniel Bidwell 
>
>
> --
> 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


Re: How to add openstack cloud to juju 2.1.2-xenial

2017-04-11 Thread Daniel Bidwell
This gets me down to:

juju bootstrap acauits acauits-controller --config tools-metadata-url=h
ttp://10.20.9.139:80/swift/v1

where it gives me:

WARNING unknown config field "tools-metadata-url"
Creating Juju controller "acauits-controller" on acauits/RegionOne
ERROR failed to bootstrap model: no image metadata found

I am running juju 2.1.2-xenial-amd64

On Tue, 2017-04-11 at 22:26 -0400, Heather Lanigan wrote:
> Here is a link on generating the image metadata: https://jujucharms.c
> om/docs/stable/howto-privatecloud
> 
> -Heather
> 
> > On Apr 11, 2017, at 10:20 PM, Daniel Bidwell 
> > wrote:
> > 
> > I am making progress.  My openstack cloud has been added now.
> > 
> > When I do "juju bootstrap acauits"  it comes back with:
> > 
> > Creating Juju controller "acauits-RegionOne" on acauits/RegionOne
> > ERROR failed to bootstrap model: no image metadata found
> > 
> > How do I get/generate image metadata?
> > 
> > I tried "juju metadata generate-tools", but "juju metadata
> > generate-
> > image" complains that the controller isn't ready yet.
> > 
> > On Tue, 2017-04-11 at 13:27 -0500, Matthew Helmke wrote:
> > > I have an OpenStack deployment. In my novarc file, I have this
> > > line:
> > > export OS_AUTH_URL=http://FAKEURLFORTHISEMAIL.com:5000/v2.0
> > > 
> > > Look for a similar line in your novarc.
> > > 
> > > On Tue, Apr 11, 2017 at 1:22 PM, Daniel Bidwell  > > com>
> > > wrote:
> > > > juju add-cloud asks:
> > > > 
> > > > Enter the API endpoint url for the cloud:
> > > > https://openstack.example.com:35574/v3.0/
> > > > 
> > > > What openstack service is it asking for?  Is it asking for the
> > > > dashboard, nova, or what?
> > > > 
> > > > If I have only one region now, do I give it the same url for
> > > > both
> > > > the
> > > > cloud and region?
> > > > 
> > > > My cloud is up and I can create vm's with the dashboard.  I
> > > > just
> > > > want
> > > > to tie it to juju now.
> > > > 
> > > > Thanks.
> > > > 
> > > > On Tue, 2017-04-11 at 06:28 -0500, Matthew Helmke wrote:
> > > > > The Juju documentation includes a page dedicated to your
> > > > > task.
> > > > Here
> > > > > is the link: https://jujucharms.com/docs/stable/help-openstac
> > > > > k.
> > > > > 
> > > > > The tl;dr for your specific question is that if you want to
> > > > > use
> > > > the
> > > > > authentication from your existing OpenStack cloud, then
> > > > > during
> > > > `juju
> > > > > add-cloud` you choose the `userpass` auth type and enter the
> > > > > URL
> > > > for
> > > > > the API. This is typically found in your existing novarc
> > > > > file.
> > > > Follow
> > > > > that by running `juju autoload-credentials` and you will be
> > > > > all
> > > > set.
> > > > > 
> > > > > On Mon, Apr 10, 2017 at 4:11 PM, Daniel Bidwell  > > > > ail.
> > > > com>
> > > > > wrote:
> > > > > > I need to add openstack as a cloud to juju 2.1.2-xenial.  I
> > > > don't
> > > > > > seem
> > > > > > to find the right howto.  What authentication method do I
> > > > > > use? 
> > > > And
> > > > > > where do I get the authentication string?  User name and
> > > > password
> > > > > > for
> > > > > > dashboard user?
> > > > > > --
> > > > > > Daniel Bidwell 
> > > > > > 
> > > > > > 
> > > > > > --
> > > > > > Juju mailing list
> > > > > > Juju@lists.ubuntu.com
> > > > > > Modify settings or unsubscribe at: https://lists.ubuntu.com
> > > > > > /mai
> > > > lman
> > > > > > /listinfo/juju
> > > > > > 
> > > > > -- 
> > > > > Matthew Helmke
> > > > > Documentation
> > > > > Canonical
> > > > --
> > > > Daniel Bidwell 
> > > > 
> > > > 
> > > -- 
> > > Matthew Helmke
> > > Documentation
> > > Canonical
> > -- 
> > Daniel Bidwell 
> > 
> > 
> > -- 
> > Juju mailing list
> > Juju@lists.ubuntu.com
> > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman
> > /listinfo/juju
-- 
Daniel Bidwell 


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


Re: How to add openstack cloud to juju 2.1.2-xenial

2017-04-11 Thread Heather Lanigan
Here is a link on generating the image metadata: 
https://jujucharms.com/docs/stable/howto-privatecloud 


-Heather

> On Apr 11, 2017, at 10:20 PM, Daniel Bidwell  wrote:
> 
> I am making progress.  My openstack cloud has been added now.
> 
> When I do "juju bootstrap acauits"  it comes back with:
> 
> Creating Juju controller "acauits-RegionOne" on acauits/RegionOne
> ERROR failed to bootstrap model: no image metadata found
> 
> How do I get/generate image metadata?
> 
> I tried "juju metadata generate-tools", but "juju metadata generate-
> image" complains that the controller isn't ready yet.
> 
> On Tue, 2017-04-11 at 13:27 -0500, Matthew Helmke wrote:
>> I have an OpenStack deployment. In my novarc file, I have this line:
>> export OS_AUTH_URL=http://FAKEURLFORTHISEMAIL.com:5000/v2.0
>> 
>> Look for a similar line in your novarc.
>> 
>> On Tue, Apr 11, 2017 at 1:22 PM, Daniel Bidwell 
>> wrote:
>>> juju add-cloud asks:
>>> 
>>> Enter the API endpoint url for the cloud:
>>> https://openstack.example.com:35574/v3.0/
>>> 
>>> What openstack service is it asking for?  Is it asking for the
>>> dashboard, nova, or what?
>>> 
>>> If I have only one region now, do I give it the same url for both
>>> the
>>> cloud and region?
>>> 
>>> My cloud is up and I can create vm's with the dashboard.  I just
>>> want
>>> to tie it to juju now.
>>> 
>>> Thanks.
>>> 
>>> On Tue, 2017-04-11 at 06:28 -0500, Matthew Helmke wrote:
 The Juju documentation includes a page dedicated to your task.
>>> Here
 is the link: https://jujucharms.com/docs/stable/help-openstack.
 
 The tl;dr for your specific question is that if you want to use
>>> the
 authentication from your existing OpenStack cloud, then during
>>> `juju
 add-cloud` you choose the `userpass` auth type and enter the URL
>>> for
 the API. This is typically found in your existing novarc file.
>>> Follow
 that by running `juju autoload-credentials` and you will be all
>>> set.
 
 On Mon, Apr 10, 2017 at 4:11 PM, Daniel Bidwell >> com>
 wrote:
> I need to add openstack as a cloud to juju 2.1.2-xenial.  I
>>> don't
> seem
> to find the right howto.  What authentication method do I use? 
>>> And
> where do I get the authentication string?  User name and
>>> password
> for
> dashboard user?
> --
> Daniel Bidwell 
> 
> 
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mai
>>> lman
> /listinfo/juju
> 
 
 
 -- 
 Matthew Helmke
 Documentation
 Canonical
>>> --
>>> Daniel Bidwell 
>>> 
>>> 
>> 
>> 
>> -- 
>> Matthew Helmke
>> Documentation
>> Canonical
> -- 
> Daniel Bidwell >
> 
> 
> -- 
> 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


Re: How to add openstack cloud to juju 2.1.2-xenial

2017-04-11 Thread Daniel Bidwell
I am making progress.  My openstack cloud has been added now.

When I do "juju bootstrap acauits"  it comes back with:

Creating Juju controller "acauits-RegionOne" on acauits/RegionOne
ERROR failed to bootstrap model: no image metadata found

How do I get/generate image metadata?

I tried "juju metadata generate-tools", but "juju metadata generate-
image" complains that the controller isn't ready yet.

On Tue, 2017-04-11 at 13:27 -0500, Matthew Helmke wrote:
> I have an OpenStack deployment. In my novarc file, I have this line:
> export OS_AUTH_URL=http://FAKEURLFORTHISEMAIL.com:5000/v2.0
> 
> Look for a similar line in your novarc.
> 
> On Tue, Apr 11, 2017 at 1:22 PM, Daniel Bidwell 
> wrote:
> > juju add-cloud asks:
> > 
> > Enter the API endpoint url for the cloud:
> > https://openstack.example.com:35574/v3.0/
> > 
> > What openstack service is it asking for?  Is it asking for the
> > dashboard, nova, or what?
> > 
> > If I have only one region now, do I give it the same url for both
> > the
> > cloud and region?
> > 
> > My cloud is up and I can create vm's with the dashboard.  I just
> > want
> > to tie it to juju now.
> > 
> > Thanks.
> > 
> > On Tue, 2017-04-11 at 06:28 -0500, Matthew Helmke wrote:
> > > The Juju documentation includes a page dedicated to your task.
> > Here
> > > is the link: https://jujucharms.com/docs/stable/help-openstack.
> > >
> > > The tl;dr for your specific question is that if you want to use
> > the
> > > authentication from your existing OpenStack cloud, then during
> > `juju
> > > add-cloud` you choose the `userpass` auth type and enter the URL
> > for
> > > the API. This is typically found in your existing novarc file.
> > Follow
> > > that by running `juju autoload-credentials` and you will be all
> > set.
> > >
> > > On Mon, Apr 10, 2017 at 4:11 PM, Daniel Bidwell  > com>
> > > wrote:
> > > > I need to add openstack as a cloud to juju 2.1.2-xenial.  I
> > don't
> > > > seem
> > > > to find the right howto.  What authentication method do I use? 
> > And
> > > > where do I get the authentication string?  User name and
> > password
> > > > for
> > > > dashboard user?
> > > > --
> > > > Daniel Bidwell 
> > > >
> > > >
> > > > --
> > > > Juju mailing list
> > > > Juju@lists.ubuntu.com
> > > > Modify settings or unsubscribe at: https://lists.ubuntu.com/mai
> > lman
> > > > /listinfo/juju
> > > >
> > >
> > >
> > > -- 
> > > Matthew Helmke
> > > Documentation
> > > Canonical
> > --
> > Daniel Bidwell 
> > 
> > 
> 
> 
> -- 
> Matthew Helmke
> Documentation
> Canonical
-- 
Daniel Bidwell 


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


Re: How to add openstack cloud to juju 2.1.2-xenial

2017-04-11 Thread Matthew Helmke
I have an OpenStack deployment. In my novarc file, I have this line:
export OS_AUTH_URL=http://FAKEURLFORTHISEMAIL.com:5000/v2.0

Look for a similar line in your novarc.

On Tue, Apr 11, 2017 at 1:22 PM, Daniel Bidwell  wrote:

> juju add-cloud asks:
>
> Enter the API endpoint url for the cloud:
> https://openstack.example.com:35574/v3.0/
>
> What openstack service is it asking for?  Is it asking for the
> dashboard, nova, or what?
>
> If I have only one region now, do I give it the same url for both the
> cloud and region?
>
> My cloud is up and I can create vm's with the dashboard.  I just want
> to tie it to juju now.
>
> Thanks.
>
> On Tue, 2017-04-11 at 06:28 -0500, Matthew Helmke wrote:
> > The Juju documentation includes a page dedicated to your task. Here
> > is the link: https://jujucharms.com/docs/stable/help-openstack.
> >
> > The tl;dr for your specific question is that if you want to use the
> > authentication from your existing OpenStack cloud, then during `juju
> > add-cloud` you choose the `userpass` auth type and enter the URL for
> > the API. This is typically found in your existing novarc file. Follow
> > that by running `juju autoload-credentials` and you will be all set.
> >
> > On Mon, Apr 10, 2017 at 4:11 PM, Daniel Bidwell 
> > wrote:
> > > I need to add openstack as a cloud to juju 2.1.2-xenial.  I don't
> > > seem
> > > to find the right howto.  What authentication method do I use?  And
> > > where do I get the authentication string?  User name and password
> > > for
> > > dashboard user?
> > > --
> > > Daniel Bidwell 
> > >
> > >
> > > --
> > > Juju mailing list
> > > Juju@lists.ubuntu.com
> > > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman
> > > /listinfo/juju
> > >
> >
> >
> > --
> > Matthew Helmke
> > Documentation
> > Canonical
> --
> Daniel Bidwell 
>
>


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


Re: How to add openstack cloud to juju 2.1.2-xenial

2017-04-11 Thread Daniel Bidwell
juju add-cloud asks:

Enter the API endpoint url for the cloud:
https://openstack.example.com:35574/v3.0/

What openstack service is it asking for?  Is it asking for the
dashboard, nova, or what?

If I have only one region now, do I give it the same url for both the
cloud and region?

My cloud is up and I can create vm's with the dashboard.  I just want
to tie it to juju now.

Thanks.

On Tue, 2017-04-11 at 06:28 -0500, Matthew Helmke wrote:
> The Juju documentation includes a page dedicated to your task. Here
> is the link: https://jujucharms.com/docs/stable/help-openstack.
> 
> The tl;dr for your specific question is that if you want to use the
> authentication from your existing OpenStack cloud, then during `juju
> add-cloud` you choose the `userpass` auth type and enter the URL for
> the API. This is typically found in your existing novarc file. Follow
> that by running `juju autoload-credentials` and you will be all set.
> 
> On Mon, Apr 10, 2017 at 4:11 PM, Daniel Bidwell 
> wrote:
> > I need to add openstack as a cloud to juju 2.1.2-xenial.  I don't
> > seem
> > to find the right howto.  What authentication method do I use?  And
> > where do I get the authentication string?  User name and password
> > for
> > dashboard user?
> > --
> > Daniel Bidwell 
> > 
> > 
> > --
> > Juju mailing list
> > Juju@lists.ubuntu.com
> > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman
> > /listinfo/juju
> > 
> 
> 
> -- 
> Matthew Helmke
> Documentation
> Canonical
-- 
Daniel Bidwell 


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


charms.reactive bi-weekly catchup

2017-04-11 Thread Stuart Bishop
Hi.

Alex Kavanagh,  Merlijn Sebrechts, Tim Van Steenburgh and myself met
for the regular charms.reactive development discussions.

As some of us are again finding time for actual coding work, we
discussed some smaller fully backwards compatible tasks to move
forward with.

We identified the work on deprecating interface layers and allowing
them to be declared in standard layers as one task that can be
immediately worked on. I plan to tackle this unless others beat me to
it. I believe this  only requires work in charm-tools' 'charm build',
and related charms.reactive documentation.

Another task is migrating the leadership layer into the base layer or
charms.reactive core, per previous discussions. As the existing
implementation is ok and not complex, I'm leaving this for anyone who
wants to dip their toe into the code base.

A simple job is documenting how layers should declare their license
information. It seems a convention of LICENSE.layername or similar
will work fine here and this just needs to be documented.

Renaming states to flags should wait until we have a clearer idea of
any necessary API changes. The rename gives us the opportunity to
change the API while keeping the old API unchanged for backwards
compatibility. Backwards compatibility was a bit of a theme, with Alex
mentioning feedback he has received from charmers already having too
much legacy code needing rewrites and not needing more.

I will discuss my pull request on making the relations base class
pluggable with Cory. This should allow us to start exploring flag
implementations without the pain of using a charms.reactive fork. This
would be an experimental feature rather than one actively supported
and documented.

A lengthy discussion was had on the triggers proposal (
https://github.com/juju-solutions/charms.reactive/issues/97 ). Some of
my assumptions about this were false, as the proposal is actually for
a mechanism to allow state/flag changes to be made after every handler
(rather than 'preflight' code, run before the main reactive loop is
started). Merlijn will work on compelling use cases to convince us on
why this new feature would be a benefit.

We should try to articulate any pain points with the current
charms.reactive framework and bring them to the table. Not everyone is
using charms.reactive the same way, and maybe there are issues people
are having that need to be tackled.

The group will be meeting again in another two weeks.

Discussions welcome here or in github issues at
https://github.com/juju-solutions/charms.reactive/issues :-)


-- 
Stuart Bishop 

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


Re: How to add openstack cloud to juju 2.1.2-xenial

2017-04-11 Thread Matthew Helmke
The Juju documentation includes a page dedicated to your task. Here is the
link: https://jujucharms.com/docs/stable/help-openstack.

The tl;dr for your specific question is that if you want to use the
authentication from your existing OpenStack cloud, then during `juju
add-cloud` you choose the `userpass` auth type and enter the URL for the
API. This is typically found in your existing novarc file. Follow that by
running `juju autoload-credentials` and you will be all set.

On Mon, Apr 10, 2017 at 4:11 PM, Daniel Bidwell  wrote:

> I need to add openstack as a cloud to juju 2.1.2-xenial.  I don't seem
> to find the right howto.  What authentication method do I use?  And
> where do I get the authentication string?  User name and password for
> dashboard user?
> --
> Daniel Bidwell 
>
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju
>



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


Openstack load balancer question

2017-04-11 Thread ed bond
Hello all,

Here is my juju 2 environment file: https://paste.ubuntu.com/24359766/ 


Anyone have an idea on how to get the load balancer as a service 
running with `cloud:xenial-newton` ? I enabled it in openstack-dashboard. I 
can’t find the configuration anywhere else. The VPN as a service shows up the 
LB does not.

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


Re: Postgresql WAL-E Support

2017-04-11 Thread Stuart Bishop
On 11 April 2017 at 08:22, James Beedy  wrote:
> Hello,
>
> Just wondering what the extent of the WAL-E support for the postgresql charm
> is, and what is the lifecycle here (if any)?
>
> 1) What can I expect to happen if I configure the wal-e options in the
> postgresql charm?

It should start shipping WAL files and making regular filesystem level backups.

> 2) Does WAL-E (if configured) automatically start sending my wal files to
> s3, or is there a place where I must intervene with some manual ops to get
> the process started?

It should. However, S3 is still marked as experimental as I've only
been testing with Swift. It also might need the bucket to be created
(if so, file a bug as the charm should do this automatically). If you
are able to help shake out any kinks here, that would be great and I
can remove the experimental warnings. Watching the bucket contents is
probably the easiest way to confirm it is working. If you run 'SELECT
pg_switch_xlog();' at a psql prompt, you should shortly see a new wal
file appear. This is simpler than watching the main postgresql log or
/var/lib/postgresql/9.x/main/pg_xlog/.

> 3) Can I just set the wal-e configs and expect my database to base backup,
> and have wal files start pushing to s3 automatically?

Yes.

> 4) It seems WAL-E needs to have AWS_REGION set. Can we get support for this
> config through the postgresql charm?

Yes, certainly. Its a minor update, which I've just pushed out to cs:postgresql

I've got a branch nearly done which adds point-in-time recovery
actions (using WAL-E), and a few helpers like list-backups. This
should allow you to easily make use of the backups and wal archive,
for recovering deployments or cloning them.

I'm currently experiencing failures with the wal-e snap inside lxd
containers (the investigation is ongoing).

-- 
Stuart Bishop 

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