Re: Need information for connecting to mariadb from remote machine

2016-06-22 Thread Tim Van Steenburgh
Have you tried including the db name when connecting, e.g.:

mysql -h db_host -u db_user -p db_pass -D `relation-get database`

Pretty sure you only get perms to the database created for you when you
join the relation.

On Mon, Jun 20, 2016 at 5:51 AM, Rajith P Venkata 
wrote:

> Hi
>
> I am connecting to mariadb from remote machine , I am executing this
> commands from bash
>
> @when 'relation_name.available'
> function mariadb_install_check(){
> db_host=`relation-get host`
> db_user=`relation-get user`
> db_pass=`relation-get password`
> mysql -h db_host -u db_user -p db_pass
> }
>
>
> while connecting to my sql : I am getting error: ERROR 1045 (28000):
> Access denied for user
>
> please let me know what grant permission I can provide from mariadb to
> default user of remote machine.
>
> remote machine user I am getting: ietohvoibaitaik
>
>
>
>
> Rajith
>
> IBM AIX Certified, OCPCertified
> 
>
> Cell- 9901966577
> Email: rajith...@in.ibm.com
>
>
>
> From:Rajith P Venkata/India/IBM
> To:Daniel Bartholomew , juju <
> juju@lists.ubuntu.com>
> Date:14-06-16 11:31 PM
> Subject:Need information  for performing housekeeping tasks on
> mariadb from a remote machine
> --
>
>
> Hi,
>
> I have deployed mariadb in unit 1 and want to perform following tasks from
> RTM charm which is in unit 2
>
> rm -f /var/lib/mysql/ib_logfile*
> service mysql stop
> rm -f /var/lib/mysql/ibdata*
>
> Please let me know how I can perform this housekeeping tasks.
>
>
> Rajith
>
> IBM AIX Certified, OCPCertified
> 
>
> Cell- 9901966577
> Email: rajith...@in.ibm.com
>
>
>
>
> --
> 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: Fwd: nfs kernel server installation failed in lxd container

2016-06-22 Thread Tycho Andersen
Hi Shilpa,

[apologies, I wasn't subscribed to this list, so I can't reply to the
original message]

On Wed, Jun 22, 2016 at 05:49:35PM +0400, John Meinel wrote:
> -- Forwarded message --
> From: "Shilpa Kaul" 
> Date: Jun 20, 2016 19:32
> Subject: nfs kernel server installation failed in lxd container
> To: 
> Cc:
>
> Hi,
> 
> I am using NFS for file sharing in my charm. To install nfs-kernel-server
> on LXC container(Juju 1.25), I had done the below steps on my host machine :
> *apt-get install nfs-common*
> 
> *modprobe nfsdmount -t nfsd nfsd /proc/fs/nfsd*
> Then edit /etc/apparmor.d/lxc/lxc-default and added the following lines to
> it and restart the apparmor
> 
> *mount fstype=nfs,*
> *mount fstype=nfs4,*
> *mount fstype=nfsd,*
> *mount fstype=rpc_pipefs,*

LXD doesn't use the `lxc-default` profile, but generates a separate
profile for each container for security reasons. IIRC juju uses the
default profile for LXD, so you could do something like:

lxc profile set default raw.apparmor "mount fstype=nfs,
mount fstype=nfs4,
mount fstype=nfsd,
mount fstype=rpc_pipefs,"

You'll also need to make sure the container is privileged, as
unprivileged mounting of nfs is not supported by the kernel right now:

lxc profile set default security.privileged true

Tycho

> By doing this and further steps of installing nfs server and nfs client, I
> was able to share files between the LXC containers.
> 
> Now when I run the same charm on Juju 2.0(LXD containers), my charm fails
> as the nfs-kernel-server installation fails. In the logs I see the below
> messages
> 
> 
> 
> 
> *A dependency job for nfs-server.service failed. See 'journalctl -xe' for
> details.invoke-rc.d: initscript nfs-kernel-server, action "start"
> failed.dpkg: error processing package nfs-kernel-server
> (--configure): subprocess installed post-installation script returned error
> exit status 1 *
> 
> On doing journalctl -xe, I see lots of *"Operation not permitted*" messages
> and *"Failed to mount NFSD configuration filesystem"*error messages.
> 
> Can anyone please help me in resolving the above issue and configuring NFS
> Server on LXD containers.
> 
> 
> Thanks and Regards,
> Shilpa Kaul
> 
> 
> --
> 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: Charm push crashes when uploading big charms

2016-06-22 Thread Stuart Bishop
On 21 June 2016 at 02:40, Jay Wren  wrote:
> Thanks for the further testing.
>
> Now I'm questioning how in the world I was able to see the same error.
>
> I will continue my testing to attempt to reproduce the error.
>
> Also, the Apache Timeout 300 should behave exactly as Mark said. I'm still
> trying to find what is causing this failure.

The error from the bug report originates from Squid, which is probably
buffering the upload. The timeout might happen between Squid and
Apache if it takes to long to upload and there is no keep-alive
mechanism in place.

-- 
Stuart Bishop 

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