Juju agent status remains "Allocating" and is not starting on MAAS 2.0 when --storage option is used
Hi, I am trying to deploy a charm on MAAS 2.0 and making use of Juju Storage feature, so when I deploy my charm as shown below: juju deploy ibm-spectrum-scale --storage disks=maas, the machine gets started and status on MAAS is "deployed" but the juju agent does not start. The agent message is "agent initializing" and nothing happens after that. The same charm gets deployed if I dont give the --storage parameter during deploy time or use --storage disks=loop. This issue is seen only when i deploy the charm with --storage disks=maas. I have tried deploying the charm on AWS environment with --storage disks=ebs, there it works fine and no issues are seen. In the juju logs I see the below messages: to agent config as ["192.168.100.101:17070" "192.168.122.101:17070"] 2016-11-08 17:47:59 ERROR juju.worker.dependency engine.go:539 "metric-collect" manifold worker returned unexpected error: failed to read charm from: /var/lib/juju/agents/unit-ibm-spectrum-scale-manager2-2/charm: stat /var/lib/juju/agents/unit-ibm-spectrum-scale-manager2-2/charm: no such file or directory 2016-11-08 17:47:59 INFO juju.worker.leadership tracker.go:184 ibm-spectrum-scale-manager2/2 will renew ibm-spectrum-scale-manager2 leadership at 2016-11-08 17:48:29.13919966 + UTC 2016-11-08 17:47:59 INFO juju.worker.meterstatus connected.go:112 skipped "meter-status-changed" hook (missing) 2016-11-08 17:47:59 INFO worker.uniter.jujuc tools.go:20 ensure jujuc symlinks in /var/lib/juju/tools/unit-ibm-spectrum-scale-manager2-2 2016-11-08 17:47:59 INFO worker.uniter.jujuc tools.go:40 was a symlink, now looking at /var/lib/juju/tools/2.0.1-xenial-amd64 2016-11-08 17:47:59 INFO juju.worker.uniter uniter.go:159 unit "ibm-spectrum-scale-manager2/2" started 2016-11-08 17:47:59 INFO juju.worker.uniter uniter.go:168 resuming charm install 2016-11-08 17:47:59 INFO juju.worker.uniter.charm bundles.go:77 downloading local:xenial/ibm-spectrum-scale-manager2-3 from API server 2016-11-08 17:47:59 INFO juju.downloader download.go:111 downloading from local:xenial/ibm-spectrum-scale-manager2-3 2016-11-08 17:47:59 INFO juju.downloader download.go:94 download complete ("local:xenial/ibm-spectrum-scale-manager2-3") 2016-11-08 17:47:59 INFO juju.downloader download.go:174 download verified ("local:xenial/ibm-spectrum-scale-manager2-3") I compared the logs of the charm that I deployed on AWS and MAAS. In AWS also when I deploy the charm, same messages are logged, the only difference is that there its resuming the correct unit ie ibm-spectrum-scale-manager2-2, but in case of MAAS, it resumes for unit ibm-spectrum-scale-manager2-3 which does not exist. Can anyone please help me in resolving this issue, I need to test my charm deployment on MAAS making use of juju storage, but unable to do so due to the above noted behavior. Thanks and Regards, Shilpa Kaul -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: Regarding juju Storage - using MAAS as cloud provider
Hi, I have configured a MAAS cluster and have block device 'sdb' attached to one of the nodes which I am using to deploy my charm as shown below: After this I created a storage pool called maastest with attribute tag as 'sdb' and deployed my charm. In the MAAS controller console I see that the node status is "Failed Deployment" and I see the below error in the UI for the node on which I am trying to deploy the charm making use of MAAS storage: Installing for i386-pc platform. grub-install : error: unable to identify a filesystem in hostdisk//dev/sdb; safety check cant be performed failed to install grub! Command: ['install-grub', 'tmp/tmpqwTtyG/target', '/dev/sdb]' MAAS version is 1.9.4 and Ubuntu version : 14.04 I am new to MAAS and not sure why the above error is coming, can someone please help me in resolving this error. Thanks and Regards, Shilpa Kaul From: Matt Bruzek <matthew.bru...@canonical.com> To: Shilpa Kaul/India/IBM@IBMIN, Juju email list <juju@lists.ubuntu.com>, maas-de...@lists.ubuntu.com Cc: Kevin Monroe <kevin.mon...@canonical.com>, Suchitra Venugopal1/India/IBM@IBMIN, Andrew Wilkins <andrew.wilk...@canonical.com>, Antonio Rosales <antonio.rosa...@canonical.com>, Marco Ceppi <marco.ce...@canonical.com>, Randall Ross <randall.r...@canonical.com> Date: 10/19/2016 09:24 PM Subject:Re: Regarding juju Storage - using MAAS as cloud provider Shilpa, There are some documentation about creating storage on MAAS here: https://maas.ubuntu.com/docs/storage.html Using this document you should be able to create block devices in MAAS that you can later use in Juju. The Juju storage documentation can be found here: https://jujucharms.com/docs/stable/charms-storage As an example, once you have your MAAS storage created and tagged, you could create a storage pool in Juju like this: juju create-storage-pool mypool maas tags= And then you could add a storage constraint to deploy your charm like this: juju deploy --storage disks=mypool,1G I have not tried MAAS storage with Juju so you may need some additional commands. If anyone else has examples of combining MAAS storage with Juju please reply here to let us know. Thanks! - Matt Bruzek <matthew.bru...@canonical.com> On Tue, Oct 18, 2016 at 11:29 AM, Shilpa Kaul <shilk...@in.ibm.com> wrote: Hi Matt/Kevin, We have a charm called as Spectrum Scale (previously called as gpfs) which is making use of Juju Storage feature. I have tested this on AWS, making use of ebs as storage option. When I deploy the charm say "juju deploy ibm-spectrum-scale-manager --storage disks=ebs,1G", I am able to get block storage disks. My charm uses this disk and then creates a file sytem on top of that. I am able to test this on AWS, but now we have got a scenario where we have to deploy the charm on physical servers or VM's. We have configured MAAS for VM's and are able to deploy a sample charm as well using MAAS as cloud provider, but I am not sure how to make use of juju storage options incase of MAAS. Can you please provide us with any contact who can help us in making use of storage option with MAAS as cloud provider. Thanks and Regards, Shilpa Kaul -- 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
Thanks Tycho, I was able to install the nfs-kernel-server on the LXD container. I ran the steps for setting the default lxc profile and making the container as privileged on the host machine. After this I deployed my charm and it worked fine. Thanks and Regards, Shilpa Kaul From: Tycho Andersen <tycho.ander...@canonical.com> To: John Meinel <j...@arbash-meinel.com>, Shilpa Kaul/India/IBM@IBMIN, juju@lists.ubuntu.com Date: 06/22/2016 08:01 PM Subject:Re: Fwd: nfs kernel server installation failed in lxd container 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" <shilk...@in.ibm.com> > Date: Jun 20, 2016 19:32 > Subject: nfs kernel server installation failed in lxd container > To: <juju@lists.ubuntu.com> > 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
nfs kernel server installation failed in lxd container
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 nfsd mount -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, 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
Regarding Juju Support for IBM SoftLayer
Hi Team, I have a requirement where I need to deploy a charm on IBM SoftLayer Cloud. Can we give IBM SoftLayer as a cloud provider in Juju similar to AWS , local or OpenStack ? Thanks and Regards, Shilpa Kaul -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Query regarding Turbo Lamp Bundle deployment on Power8 LXC containers
Hi Team, I tried deploying the Turbo Lamp bundle on our Power8 local containers(without Power KVM and Mellanox drivers setup) from Charm Store using Juju GUI. The LAMP stack as a whole is working but the install hook of Mellanox subordinate charm failed for MariaDB due to below error: 2015-11-23 10:05:57 INFO install Hit http://ports.ubuntu.com trusty/main Translation-en 2015-11-23 10:05:57 INFO install Hit http://ports.ubuntu.com trusty/universe Translation-en 2015-11-23 10:05:59 INFO install W: Failed to fetch http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu/dists/trusty/InRelease Unable to find expected entry 'main/binary-ppc64el/Packages' in Release file (Wrong sources.list entry or malformed file) 2015-11-23 10:05:59 INFO install 2015-11-23 10:05:59 INFO install E: Some index files failed to download. They have been ignored, or old ones used instead. 2015-11-23 10:05:59 ERROR juju.worker.uniter.operation runhook.go:107 hook "install" failed: exit status 100 The Mellanox subordinate charm did not error out for Zend Server Unit and we could see the following information in the juju logs as shown below: 2015-11-23 10:43:14 INFO config-changed Attempting to perform Firmware update... 2015-11-23 10:43:14 INFO config-changed -E- No devices found or specified 2015-11-23 10:43:14 INFO config-changed Log File: /tmp/OFED.15582.logs/fw_update.log 2015-11-23 10:43:14 INFO config-changed Failed to update Firmware. 2015-11-23 10:43:14 INFO config-changed See /tmp/OFED.15582.logs/fw_update.log 2015-11-23 10:43:14 INFO config-changed To load the new driver, run: 2015-11-23 10:43:14 INFO config-changed /etc/init.d/openibd restart 2015-11-23 10:43:14 INFO config-changed Configuring /etc/security/limits.conf. 2015-11-23 10:43:14 INFO config-changed Installation passed successfully 2015-11-23 10:43:14 INFO config-changed ++ lspci -d 15b3: 2015-11-23 10:43:14 INFO config-changed ++ wc -l 2015-11-23 10:43:14 INFO config-changed + MELLANOX_CARDS_NUM=0 2015-11-23 10:43:14 INFO config-changed + '[' 0 = 0 ']' 2015-11-23 10:43:14 INFO config-changed + echo 'There is no Mellanox card on this device. OFED is installed but will not run' 2015-11-23 10:43:14 INFO config-changed There is no Mellanox card on this device. OFED is installed but will not run 2015-11-23 10:43:14 INFO config-changed + exit 0 I was able to open the Zend Server URL and deploy sample applications like Magento as well. Can someone please help in identifying the cause for Mellanox charm failure for MariaDB? Thanks and Regards, Shilpa Kaul IBM India Pvt. Ltd Seat # EGLC 6F B067, C-Block, Embassy Golf Link, Intermediate Ring Road, Bangalore Email : shilk...@in.ibm.com Mobile : 9900054908 -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Query - Charm not showing up in the review queue
Hi Team, I have pushed my charm for IBM WebSphere® Extreme Scale product to the charm store 2 days back but it is not showing up in the review queue( http://review.juju.solutions/) yet. I have followed the steps in charm store submission policy ( https://jujucharms.com/docs/stable/authors-charm-store#submitting). I have pushed my code to trunk branch, created a bug, attached the branch to the bug report, and subscribed to the charmers team Here are the links: https://code.launchpad.net/~ibmcharmers/charms/trusty/ibmwxs/trunk https://bugs.launchpad.net/ibmcharms/+bug/1470017 Can you please help us figure out why the charm is not showing up in the review queue yet. Thanks and Regards, Shilpa Kaul -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Handling user manual intervention in juju
Hi Team, Can you please help me in finding a solution for a scenario where product configuration or installation involves manual intervention and product does not support silent method for that step.How can this be handled in a charm. For example , consider a scenario where a product is installed and configured using ./install command. The command takes care of all install and configuration but it stops at Accept license step. The user has to either enter 1 for accepting license or 2 for not accepting license. Till now I have not got any equivalent command line option to (ie waiting for license to be accepted) accept the license by default so that install process does not stop for any manual user intervention. How can charm handle such type of scenarios , any insights on this please. Thanks and Regards, Shilpa Kaul -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: Handling user manual intervention in juju
Thanks Marco, I am adding the accept-license configuration parameter to my config.yaml already , the product installer was waiting at accept license (User has to type 1 for acceptance).I will try the yes command in my charm to avoid the manual intervention. Thanks and Regards, Shilpa Kaul IBM India Pvt. Ltd Seat # EGLC 6F B067, C-Block, Embassy Golf Link, Intermediate Ring Road, Bangalore Email : shilk...@in.ibm.com Mobile : 9900054908 From: Marco Ceppi ma...@ondina.co To: Shilpa Kaul/India/IBM@IBMIN, David Cheney david.che...@canonical.com Cc: juju juju@lists.ubuntu.com Date: 06/22/2015 04:50 PM Subject:Re: Handling user manual intervention in juju There are other charms that have this issue. One thing to take note is you should /never/ really accept license without telling the user what's going on. Other authors have solved this in a more simple fashion. They've added a configuration option on the charm, accept-license which is a boolean which defaults to False. The description of the configuration option outlines where to read the license in full. Then, in your config-changed hook don't proceed with the install script until the user flips accept-license configuration option. You can usually get around the prompting of the install script with the `yes` command. If the script expects you to just type y then you can do `yes | ./install` if it needs a full yes or another phrase you can change that using the yes command `yes yes | ./install` as an example. Thanks, Marco Ceppi On Mon, Jun 22, 2015 at 5:55 AM Shilpa Kaul shilk...@in.ibm.com wrote: Thanks David, I will try to explore expect(1) and see how I can use it in my code , my product is not java Thanks and Regards, Shilpa Kaul IBM India Pvt. Ltd Seat # EGLC 6F B067, C-Block, Embassy Golf Link, Intermediate Ring Road, Bangalore Email : shilk...@in.ibm.com Mobile : 9900054908 From:David Cheney david.che...@canonical.com To:Shilpa Kaul/India/IBM@IBMIN Cc:juju juju@lists.ubuntu.com, Suchitra Venugopal1/India/IBM@IBMIN Date:06/22/2015 03:18 PM Subject:Re: Handling user manual intervention in juju You could try expect(1). Is the product java by any chance ? On Mon, Jun 22, 2015 at 7:44 PM, Shilpa Kaul shilk...@in.ibm.com wrote: Hi Team, Can you please help me in finding a solution for a scenario where product configuration or installation involves manual intervention and product does not support silent method for that step.How can this be handled in a charm. For example , consider a scenario where a product is installed and configured using ./install command. The command takes care of all install and configuration but it stops at Accept license step. The user has to either enter 1 for accepting license or 2 for not accepting license. Till now I have not got any equivalent command line option to (ie waiting for license to be accepted) accept the license by default so that install process does not stop for any manual user intervention. How can charm handle such type of scenarios , any insights on this please. 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 -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju