From: Benjamin Diaz Date: Fri, 26 Apr 2019 19:35:32 +0000 (-0300) Subject: Improves README X-Git-Tag: v6.0.0~7 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=4009bf3f8d15219181e824f8cdbe091e487a8b55;p=osm%2FPOL.git Improves README Change-Id: I378ef316d15e5a2d0f943cfb93e92127d80cd82e Signed-off-by: Benjamin Diaz --- diff --git a/README.rst b/README.rst index 89b0322..efcefda 100644 --- a/README.rst +++ b/README.rst @@ -1,13 +1,95 @@ -Install ------------------------- - :: +.. + Copyright 2018 Whitestack, LLC + ************************************************************* - git clone https://osm.etsi.org/gerrit/osm/POL.git - pip install ./POL + This file is part of OSM policy management module + All Rights Reserved to Whitestack, LLC -Run ------------------------- - :: + Licensed under the Apache License, Version 2.0 (the "License"); you may + not use this file except in compliance with the License. You may obtain + a copy of the License at - osm-policy-agent + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + License for the specific language governing permissions and limitations + under the License. + For those usages not covered by the Apache License, Version 2.0 please + contact: bdiaz@whitestack.com or glavado@whitestack.com + +OSM POL Module +**************** + +POL is a policy management module for OSM. +It configures and handles autoscaling policies and vnf defined alarms. + +Components +********** + +POL module has the following components: + +* POL Alarming Service: Handles VNF alarms. +* POL Autoscaling Service: Handles autoscaling policy configuration, alarms creation and executing scaling actions through LCM. +* POL Agent: Listens message bus and calls action in corresponding service. + +Configuration +************* + +Configuration is handled by the file [pol.yaml] (osm_pol/core/pol.yaml). You can pass a personalized configuration file +through the `--config-file` flag. + +Example: + + osm-policy-agent --config-file your-config.yaml + +Configuration variables can also be overridden through environment variables by following the convention: +OSMPOL_
_= + +Example: + + OSMPOL_GLOBAL_LOGLEVEL=DEBUG + +Development +*********** + +The following is a reference for making changes to the code and testing them in a running OSM deployment. + +:: + + git clone https://osm.etsi.org/gerrit/osm/POL.git + cd POL + # Make your changes here + # Build the image + docker build -t opensourcemano/pol:develop -f docker/Dockerfile . + # Deploy that image in a running OSM deployment + docker service update --force --image opensourcemano/pol:develop osm_pol + # Change a specific env variable + docker service update --force --env-add VARIABLE_NAME=new_value osm_pol + # View logs + docker logs $(docker ps -qf name=osm_pol.1) + + +Developers +********** + +* Benjamín Díaz , Whitestack, Argentina + +Maintainers +*********** + +* Benjamín Díaz, Whitestack, Argentina + +Contributions +************* + +For information on how to contribute to OSM POL module, please get in touch with +the developer or the maintainer. + +Any new code must follow the development guidelines detailed in the Dev Guidelines +in the OSM Wiki and pass all tests. + +Dev Guidelines can be found at: + + [https://osm.etsi.org/wikipub/index.php/Workflow_with_OSM_tools] diff --git a/setup.py b/setup.py index 8b3996d..fc11bf0 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ setup( name=_name, version_command=_version_command, description=_description, - long_description=open('README.rst').read(), + long_description=open('README.rst', encoding='utf-8').read(), author=_author, author_email=_author_email, maintainer=_maintainer,