Bug 1417645

Summary: [RFE] Containerized deployment of Cinder service
Product: Red Hat OpenStack Reporter: Sean Cohen <scohen>
Component: openstack-tripleo-heat-templatesAssignee: Jon Bernard <jobernar>
Status: CLOSED ERRATA QA Contact: Avi Avraham <aavraham>
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: aavraham, abishop, acanan, cschwede, dbecker, egafford, eharney, jjoyce, jschluet, mburns, morazi, pgrist, rhel-osp-director-maint, scohen, slinaber, tbarron, tvignaud
Target Milestone: gaKeywords: FutureFeature, TechPreview, Triaged
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-7.0.3-10.el7ost puppet-tripleo-7.4.3-7.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 21:06:26 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:
Bug Depends On:    
Bug Blocks: 1415556, 1442136, 1483692    

Description Sean Cohen 2017-01-30 13:52:37 UTC
Provide customers more stable, flexible, reliable and faster deployments with more reliable and flexible lifecycle management and possibility to rollback when something goes wrong.

Comment 3 Christian Schwede (cschwede) 2017-04-24 13:38:23 UTC
Changing to ON_DEV - work already in progress.

Comment 4 Paul Grist 2017-05-17 21:55:43 UTC
Add OS-brick gerrit, track all the cinder containerization patches here:

- cinder API
- iscsid
- multipathd
- cinder volume
- cinder scheduler
- cinder backup

Comment 11 Alan Bishop 2017-11-16 21:41:49 UTC
Moving back to ON_DEV as we've identified 3 patches that are required for the
feature to work. 

[1] and [2] are required for HA, are already on stable/pike, and just need to
be pulled down to osp-12.

[3] was recently posted to upstream master. This is why ON_DEV and not POST.

[1] https://review.openstack.org/518854
[2] https://review.openstack.org/518855
[3] https://review.openstack.org/520787

Comment 12 Alan Bishop 2017-11-17 15:26:55 UTC
(In reply to Alan Bishop from comment #11)
> Moving back to ON_DEV as we've identified 3 patches that are required for the
> feature to work. 
> 
> [1] and [2] are required for HA, are already on stable/pike, and just need to
> be pulled down to osp-12.
> 
> [3] was recently posted to upstream master. This is why ON_DEV and not POST.
> 
> [1] https://review.openstack.org/518854
> [2] https://review.openstack.org/518855
> [3] https://review.openstack.org/520787

[4] https://review.openstack.org/521102

(this is stable/pike version of [3])

Comment 14 Alan Bishop 2017-11-30 19:39:38 UTC
I was asked to summarize a few key points regarding this RFE.

- In a stock OSP-12 deployment, most services are containerized but cinder
  services are not. I do not believe OSP-12 supports a completely non-
  containerized deployment (everything on baremetal).
- You enable the containerized cinder feature by overriding a handful of
  TripleO Heat resources used to deploy the overcloud.
  - You do not control the feature by making post-deployment configuration
    changes.
  - It's best to use a fresh deployment, and not try to update an existing
    overcloud deployment.

You enable containerized cinder services by including the following lines in
an existing THT environment file, or by creating a new file and referencing it
in your overcloud deployment command:

resource_registry:
  OS::TripleO::Services::CinderApi: /usr/share/openstack-tripleo-heat-templates/docker/services/cinder-api.yaml
  OS::TripleO::Services::CinderScheduler: /usr/share/openstack-tripleo-heat-templates/docker/services/cinder-scheduler.yaml
  OS::TripleO::Services::CinderVolume: /usr/share/openstack-tripleo-heat-templates/docker/services/cinder-volume.yaml
  OS::TripleO::Services::Iscsid: /usr/share/openstack-tripleo-heat-templates/docker/services/iscsid.yaml

The next issue is ensuring the required containers are available for the
deployment. TripleO Pike deployments require you supply a file that specifies
the docker container image name and registry location for all containerized
services. Upstream documentation [1] describes how to create this file, and
the file is automatically generated by deployment tools like
TripleO Quickstart and Infrared. I do not know what the downstream (OSP)
documentation looks like, or how the information should be conveyed to
partners who are using this RFE to develop containerized versions of their
own cinder drivers.

[1] https://docs.openstack.org/tripleo-docs/latest/install/containers_deployment/overcloud.html

Comment 19 errata-xmlrpc 2017-12-13 21:06:26 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://access.redhat.com/errata/RHEA-2017:3462