Regarding juju Storage - using MAAS as cloud provider

Shilpa Kaul shilkaul at in.ibm.com
Wed Oct 19 19:20:13 UTC 2016


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.bruzek at canonical.com>
To:     Shilpa Kaul/India/IBM at IBMIN, Juju email list 
<juju at lists.ubuntu.com>, maas-devel at lists.ubuntu.com
Cc:     Kevin Monroe <kevin.monroe at canonical.com>, Suchitra 
Venugopal1/India/IBM at IBMIN, Andrew Wilkins <andrew.wilkins at canonical.com>, 
Antonio Rosales <antonio.rosales at canonical.com>, Marco Ceppi 
<marco.ceppi at canonical.com>, Randall Ross <randall.ross at 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=<maas-tag>

And then you could add a storage constraint to deploy your charm like 
this:

juju deploy <charm> --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.bruzek at canonical.com>

On Tue, Oct 18, 2016 at 11:29 AM, Shilpa Kaul <shilkaul at 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





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20161020/883e99f5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 9958 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/juju/attachments/20161020/883e99f5/attachment.gif>


More information about the Juju mailing list