-
Notifications
You must be signed in to change notification settings - Fork 4
code changes to use single nfp.ini file #582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: mitaka_21st_march_base
Are you sure you want to change the base?
Changes from all commits
d820fb9
363dfda
c5cf652
ae4d4a2
69d57f1
01627a7
df36220
a8e1439
f7a7ea5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| [DEFAULT] | ||
| [CONFIGURATOR] | ||
| policy_file=/etc/policy.json | ||
| debug=False | ||
| rabbit_password=guest | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| from oslo_config import cfg as oslo_config | ||
|
|
||
| nfp_configurator_opts = [ | ||
| oslo_config.StrOpt('policy_file', | ||
| default='/etc/policy.json', | ||
| help='use credentials file path'), | ||
| oslo_config.StrOpt('rabbit_password', | ||
| default='guest', | ||
| help='RabbitMq server login password'), | ||
| oslo_config.StrOpt('rabbit_userid', | ||
| default='guest', | ||
| help='RabbiMq server User ID'), | ||
| oslo_config.StrOpt('rabbit_hosts', | ||
| default='127.0.0.1', | ||
| help='RabbitMq server IP address for multi node setup'), | ||
| oslo_config.IntOpt('rabbit_port', | ||
| default=5672, | ||
| help='RabbitMq server port number'), | ||
| oslo_config.FloatOpt('kombu_reconnect_delay', | ||
| default=1.0, help='Kombu reconnection delay'), | ||
| oslo_config.StrOpt('rabbit_host', | ||
| default='<openstack controller ip address>', | ||
| help='RabbitMq server IP address for single node setup'), | ||
| oslo_config.StrOpt('control_exchange', | ||
| default='openstack', | ||
| help='RabbitMq control exchange name'), | ||
| oslo_config.BoolOpt('rabbit_use_ssl', | ||
| default=False, help='RabbitMq SSL mode True/False'), | ||
| oslo_config.StrOpt('rabbit_virtual_host', | ||
| default='/', help='RabbitMq virtual host path'), | ||
| oslo_config.IntOpt('reportstate_interval', | ||
| default=10, help='Report stats interval'), | ||
| oslo_config.IntOpt('periodic_interval', | ||
| default=2, help='periodic interval'), | ||
| oslo_config.StrOpt('log_forward_ip_address', | ||
| default='', help='log collector host IP address'), | ||
| oslo_config.IntOpt('log_forward_port', | ||
| default=514, help='log collector port number'), | ||
| oslo_config.StrOpt('log_level', | ||
| default='debug', help='log level'), | ||
| ] | ||
|
|
||
| oslo_config.CONF.register_opts(nfp_configurator_opts, "configurator") | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| [ORCHESTRATOR] | ||
| # Number of worker process to be spawned. | ||
| workers=1 | ||
| # Path to NFP modules in . format | ||
| # NFP core framework will load all .py files | ||
| # from this path as nfp modules | ||
| nfp_modules_path=gbpservice.nfp.orchestrator.modules | ||
| # To invoke OTC Apis | ||
| # It could be rpc/REST. | ||
| # rpc - where fip access unavaiable for OTC NFP controller | ||
| # REST - where fip access is available for OTC NFP controller | ||
| backend=rpc | ||
|
|
||
| [PROXY_AGENT] | ||
| # Number of worker process to be spawned. | ||
| workers=1 | ||
| # Path to NFP modules in . format | ||
| # NFP core framework will load all .py files | ||
| # from this path as nfp modules | ||
| nfp_modules_path=gbpservice.nfp.proxy_agent.modules | ||
| # To invoke OTC Apis | ||
| # Proxy agent will always use unix_rest backend to | ||
| # communicate with proxy component inside namespace | ||
| backend=unix_rest | ||
|
|
||
| [PROXY] | ||
| # Path unix server should bind to | ||
| unix_bind_path= /var/run/uds_socket | ||
| # Max number of client connections | ||
| max_connections=10 | ||
| # Num of worker threads to handle connections | ||
| worker_threads=100 | ||
| # Timeout for 'connect' operation | ||
| connect_max_wait_timeout=120 | ||
| # Max time an idle channel is allowed to be open | ||
| idle_max_wait_timeout=120 | ||
| # Min time to wait on channel to declare its idle. | ||
| idle_min_wait_timeout=0.1 | ||
| #NFP controllers ip address and port | ||
| nfp_controller_ip=172.16.0.3 | ||
| nfp_controller_port=8070 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you test devstack/lib/nfp change the sed line above has space after = and also has . There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ignore this comment. I am convinced with the sed line. It should work. |
||
|
|
||
| [CONFIG_ORCHESTRATOR] | ||
| # Number of worker process to be spawned. | ||
| workers=1 | ||
| # Path to NFP modules in . format | ||
| # NFP core framework will load all .py files | ||
| # from this path as nfp modules | ||
| nfp_modules_path=gbpservice.contrib.nfp.config_orchestrator.modules | ||
| # To invoke OTC Apis | ||
| # Proxy agent will always use unix_rest backend to | ||
| # communicate with proxy component inside namespace | ||
| backend=rpc | ||
|
|
||
| # Section describing params for backend=rpc | ||
| [RPC] | ||
| # Topic to send OTC request rpc on. | ||
| topic=nfp-proxy-agent-topic | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| from oslo_config import cfg as oslo_config | ||
|
|
||
| es_openstack_opts = [ | ||
| oslo_config.StrOpt('auth_host', | ||
| default='localhost', | ||
| help='Openstack controller IP Address'), | ||
| oslo_config.StrOpt('admin_user', | ||
| help='Admin user name to create service VMs'), | ||
| oslo_config.StrOpt('admin_password', | ||
| help='Admin password to create service VMs'), | ||
| oslo_config.StrOpt('admin_tenant_name', | ||
| help='Admin tenant name to create service VMs'), | ||
| oslo_config.StrOpt('admin_tenant_id', | ||
| help='Admin tenant ID to create service VMs'), | ||
| oslo_config.StrOpt('auth_protocol', | ||
| default='http', help='Auth protocol used.'), | ||
| oslo_config.IntOpt('auth_port', | ||
| default='5000', help='Auth protocol used.'), | ||
| oslo_config.IntOpt('bind_port', | ||
| default='9696', help='Auth protocol used.'), | ||
| oslo_config.StrOpt('auth_version', | ||
| default='v2.0', help='Auth protocol used.'), | ||
| oslo_config.StrOpt('auth_uri', | ||
| default='', help='Auth URI.'), | ||
| ] | ||
|
|
||
| oslo_config.CONF.register_opts(es_openstack_opts, "keystone_authtoken") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't hardcode. Leave it empty.