Bug 1368218

Summary: [RFE] Permit usage of multiple and raw disks as Swift backend
Product: Red Hat OpenStack Reporter: Giulio Fidente <gfidente>
Component: openstack-tripleo-heat-templatesAssignee: Giulio Fidente <gfidente>
Status: CLOSED ERRATA QA Contact: Mike Abrams <mabrams>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: cschwede, djuran, dnavale, egafford, gfidente, jjoyce, mabrams, mburns, mcornea, morazi, pblanc, pgrist, rhel-osp-director-maint, slinaber
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-5.0.0-1.2.el7ost Doc Type: Enhancement
Doc Text:
With this update, you can now configure Object Storage service (swift) with additional raw disks by deploying the overcloud with an additional environment file, for example: parameter_defaults: ExtraConfig: SwiftRawDisks: sdb: byte_size: 2048 mnt_base_dir: /src/sdb sdc: byte_size: 2048 As a result, the Object Storage service is not limited by the local node `root` filesystem.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-14 15:52:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Giulio Fidente 2016-08-18 17:39:27 UTC
Description of problem:

it should be possible to provide a list of additional(raw) disks to be used as Swift backends

Comment 4 Giulio Fidente 2016-10-10 09:02:03 UTC
To specify multiple raw disks to be used as Swift backends, deploy using an additional environment file:

parameter_defaults:
  ExtraConfig:
    SwiftRawDisks:
      sdb: {}
      sdc: {}

It is also possible to customize the byte_size and mount point to use for each disk, for example:

parameter_defaults:
  ExtraConfig:
    SwiftRawDisks:
      sdb:
        byte_size: 2048
        mnt_base_dir: /src/sdb
      sdc:
        byte_size: 2048

It is also possible to provide node-specific disk maps with node-specific hiera, as described in [1]

1. http://tripleo.org/advanced_deployment/node_specific_hieradata.html

Comment 6 Christian Schwede (cschwede) 2016-10-17 09:10:55 UTC
This didn't work for me as expected - I opened a bug upstream and proposed a fix:

https://bugs.launchpad.net/tripleo/+bug/1634051
https://review.openstack.org/387278

Comment 7 Giulio Fidente 2016-10-17 09:40:46 UTC
Thanks Christian, the fix you posted looks good to me, thanks!

I think best thing to do would be to move the BZ back in ON_DEV and link to your submission from it as well.

Comment 9 Steve Linabery 2016-10-24 18:24:31 UTC
The fix cschwede proposed has failed upstream CI on HA. https://review.openstack.org/387278

Comment 11 Christian Schwede (cschwede) 2016-11-02 13:09:43 UTC
Patches merged on master and stable/newton, moving to POST.

Comment 12 Christian Schwede (cschwede) 2016-11-02 13:11:17 UTC
Moving to MODIFIED; included in latest build from yesterday evening.

Comment 14 Christian Schwede (cschwede) 2016-11-08 09:54:00 UTC
*** Bug 1276691 has been marked as a duplicate of this bug. ***

Comment 22 Christian Schwede (cschwede) 2016-11-30 07:39:36 UTC
*** Bug 1320185 has been marked as a duplicate of this bug. ***

Comment 24 errata-xmlrpc 2016-12-14 15:52:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-2948.html