Bug 1493243
| Summary: | Custom block storage backend configuration contains several bugs for OSP 8 | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Andreas Karis <akaris> |
| Component: | documentation | Assignee: | RHOS Documentation Team <rhos-docs> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | RHOS Documentation Team <rhos-docs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.0 (Liberty) | CC: | jjoyce, scohen, srevivo, tshefi |
| Target Milestone: | --- | ||
| Target Release: | 10.0 (Newton) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-27 12:59:49 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: | |||
Please refer to the following to see how the DeployIdentifier needs to be used:
~~~
heat_template_version: 2014-10-16
description: >
Run Puppet extra configuration to set new MOTD
parameters:
servers:
type: json
# This is provided via parameter_defaults from tripleoclient
# it changes to a new timestamp every update, so we can use it to
# trigger the deployment to run even though it and the config are
# otherwise unchanged
DeployIdentifier:
type: string
resources:
AdditionalNfsConfig:
type: OS::Heat::SoftwareConfig
properties:
config: {get_file: cinder-nfs.pp}
group: puppet
options:
enable_hiera: True
enable_facter: False
AdditionalNfsDeployments:
type: OS::Heat::SoftwareDeployments
properties:
servers: {get_param: servers}
config: {get_resource: AdditionalNfsConfig}
actions: ['CREATE','UPDATE']
input_values:
deploy_identifier: {get_param: DeployIdentifier}
CinderRestartConfig:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: |
#!/bin/sh
if [[ $(systemctl is-active openstack-cinder-volume) == 'active' ]];then
sudo systemctl restart openstack-cinder-volume
fi
CinderRestartDeployment:
type: OS::Heat::SoftwareDeployments
depends_on: AdditionalNfsDeployments
properties:
servers: {get_param: servers}
config: {get_resource: CinderRestartConfig}
actions: ['CREATE','UPDATE']
input_values:
deploy_identifier: {get_param: DeployIdentifier}
~~~
A new guide to Deploying a Custom Block Storage Back End in a Red Hat OpenStack Platform Overcloud was delivered in OSP 10: https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/10/html-single/custom_block_storage_back_end_deployment_guide/index Closing current release Sean |
Description of problem: Hi, Custom block storage backend configuration contains several bugs for OSP 8 Note that the documentation contains a bug: This is incorrect: ~~~ CinderRestartConfig: type: OS::Heat::SoftwareConfig properties: config: | (...) ~~~ Is missing: "group: script" should be: ~~~ CinderRestartConfig: type: OS::Heat::SoftwareConfig properties: group: script config: | (...) ~~~ This is the minimum to fix the doc. Now, these changes will only be applied once, we need to add a DeployIdentifier to make this work all of the time.