Jump to: navigation, search

Configuring BDS for on-premise deployment

After the Configuration prerequisites are met, you can configure the Billing Data Server (BDS) for on-premise deployment. The following steps outline the configuration process for deploying BDS on-premise:

  1. Create or put the tenant template in the ./cloudbilling-prem.local/templates/ folder. Use this format to name the template:
    tenant_<short_tenant_name>.tpl, that is, tenant_acme.tpl.
  2. Use the bundled ./cloudbilling-prem.local/etc/gvars.py file for the initial configuration. See Global variables for parameter descriptions. Launch BDS in configuration mode by running the ./cloudbilling-prem.sh config file and wait for the interactive prompt to appear.
  3. Create encryption keys.
    ---code---
    [vagrant@22175551cb8b brs]$ python /usr/lib/python2.7/site-packages/keyczar/keyczart.py create --location=/vagrant/etc/crypto --purpose=crypt --name="BRS keyset"
    [vagrant@22175551cb8b brs]$ python /usr/lib/python2.7/site-packages/keyczar/keyczart.py addkey --location=/vagrant/etc/crypto --status=primary
    [vagrant@22175551cb8b brs]$ ls /vagrant/etc/crypto 1 meta
    ---code---
  4. Encode the required passwords with the generated key.
    ---code---
    [vagrant@796cd88209be brs]$ pwd
    /vagrant/brs
    [vagrant@796cd88209be brs]$
    brsctl.py encrypt
    utils.py:__zk_lock_get: Connected to Zookeeper at 127.0.0.1:2181
    Password:
    AM1agMm0Thl9KOCUP1qlTqufDy1SwQaHF-Ne-lGr9FhZQoBZ0hD0iBuDZrzFzQcONQSNvQvrJZn1
    ---code---
  5. For the first deployment, import the configuration templates. You must exit the configuration mode and launch reset.
    Warning
    This will reset the configuration to match the configuration that is in the templates, including the current ETL timestamps.
    ---code---
    [genesys@vcd-cat-u004 prem-demo]$ ./cloudbilling-prem.sh reset
    ---code---
  6. Check the output for any errors below the line “Main run, should not produce any errors below this message”.
    Important
    If you haven’t yet imported the tenant template, you’ll see the following error: “Cannot read file /vagrant/templates/tenant_*.tpl”.
  7. Import the configuration templates.
    ---code---
    $ /vagrant/bin/reset.sh
    ---code---
  8. Launch the configuration mode again by using the ./cloudbilling-prem.sh config file, and then verify that the templates are loaded.
    ---code---
    $ ./brsctl.py dataset -l
    $ ./brsctl.py metric -l
    $ ./brsctl.py location -l
    $ ./brsctl.py tenant -l
    ---code---

The detailed steps for configuring BDS are described in the subsequent sections:

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on June 27, 2018, at 12:06.