Bug 1372651 - [RFE] Allow disabling Sahara in OSP 9 deployments
Summary: [RFE] Allow disabling Sahara in OSP 9 deployments
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 9.0 (Mitaka)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 10.0 (Newton)
Assignee: Jiri Stransky
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-02 09:46 UTC by Ramon Acedo
Modified: 2016-09-12 16:01 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-12 16:01:57 UTC
Target Upstream Version:
scohen: needinfo+


Attachments (Terms of Use)

Description Ramon Acedo 2016-09-02 09:46:44 UTC
Sahara will always be installed by default with OSP 9. Operators should be able to choose wether to enable Sahara and possibly leave it disabled by default.

Implementing a parameter like ControllerEnableSahara would be ideal and simple enough to add a conditional to /usr/share/openstack-tripleo-heat-templates/puppet/manifests/overcloud_controller_pacemaker.pp in the Sahara section.

As a workaround, to disable it I had to do the following:

1. Disable it in haproxy using controllerExtraConfig:

parameter_defaults:
 controllerExtraConfig:
  tripleo::loadbalancer::sahara: false

2. Remove the pcs resources via script in NodeExtraConfigPost. Note I couldn't find any way via puppet and extraconfig to do this. Something like this in a script run from NodeExtraConfigPost will do:

            #!/bin/sh
            if [[ `hostname` = *"controller"* ]]
            then
              pcs resource delete openstack-sahara-api
              pcs resource delete openstack-sahara-engine
            fi

3. Remove the endpoint manually: I can't find any way to disable this other than modifying /usr/lib/python2.7/site-packages/tripleoclient/constants.py and removing 'sahara' from SERVICE_LIST. It doesn't look like there's a clean way to patch /usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py to achieve this. With the current implementation it seems it's all or nothing.


Note You need to log in before you can comment on or make changes to this bug.