<commit_before>os-services
=============

To deploy openstack on a single node or a cluster of nodes pre-configured by genesis::

    >export DEPLOY_CEPH=yes
    >export DEPLOY_OPSMGR=yes
    >export DEPLOY_HARDENING=yes
    >nohup ./scripts/bootstrap-cluster.sh &
    >nohup ./scripts/create-cluster.sh &

If the environment variables are omitted or set to "no", then the associated
components are not installed.


To deploy openstack on multiple nodes that are not pre-configured by genesis::

    >bootstrap-cluster.sh [ -i <controllernode1,...> -s <storagenode1,...> -c <computenode1,...> ]
    >create-cluster.sh [ -i <controllernode1,...> -s <storagenode1,...> -c <computenode1,...> ]


Debugging hints::

    > Use nohup to generate a log file.  You can logout and it will continue running

    > nohup ./scripts/create-cluster.sh &
    > tail -f nohup.out

    > grep -e "^Failed" -e "^Rebuild" -e "^ValueError" nohup.out<commit_msg>Update README to remove nohup reference<commit_after>os-services
=============

To deploy openstack on a single node or a cluster of nodes pre-configured by genesis::

    >export DEPLOY_CEPH=yes
    >export DEPLOY_OPSMGR=yes
    >export DEPLOY_HARDENING=yes
    >./scripts/bootstrap-cluster.sh
    >./scripts/create-cluster.sh

If the environment variables are omitted or set to "no", then the associated
components are not installed, however if the genesis inventory file exists at
/var/oprc/inventory.yml then DEPLOY_CEPH and DEPLOY_OPSMGR default to "yes".


To deploy openstack on multiple nodes that are not pre-configured by genesis::

    >bootstrap-cluster.sh [ -i <controllernode1,...> -s <storagenode1,...> -c <computenode1,...> ]
    >create-cluster.sh [ -i <controllernode1,...> -s <storagenode1,...> -c <computenode1,...> ]


Debugging hints
---------------

Use the 'screen' command to run the scripts in.  The screen can then be
detached and it will continue running::

    > screen
    > ./scripts/create-cluster.sh 2>&1 | tee /tmp/create-cluster.out

In another terminal you can examine the output or grep for errors::
    > tail -f /tmp/create-cluster.out
    > grep -e "^Failed" -e "^Rebuild" -ie "fatal:" /tmp/create-cluster.out

.. warning::  It is not recommended to use the 'nohup' command.  It is known to
  cause errors while deploying.
{'fraction_non_alphanumeric': 0.12939643942683457, 'fraction_numerical': 0.0060790273556231, 'mean_word_length': 3.298507462686567, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1482368', 'n_tokens_mistral': 778, 'n_tokens_neox': 722, 'n_words': 254}