Update error in install-rdo.rst and update default port

Nova placement use port 8778, to avoid confusion, Update
senlin default port from  8778 to 8777. And update
spelling mistakes in install-rdo.rst

Change-Id: I342b1badf3910ea07ea64523cdb8a19a8a0ccb06
This commit is contained in:
“miaoyuliang” 2020-03-24 15:02:57 +08:00 committed by XueFeng Liu
parent aca5b42d81
commit 1bace4641d
27 changed files with 33 additions and 33 deletions

View File

@ -7,7 +7,7 @@
] ]
}, },
"channel": { "channel": {
"alarm_url": "http://node1:8778/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=2&count=1" "alarm_url": "http://node1:8777/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=2&count=1"
}, },
"cluster_id": "ae63a10b-4a90-452c-aef1-113a0b255ee3", "cluster_id": "ae63a10b-4a90-452c-aef1-113a0b255ee3",
"created_at": "2015-06-27T05:09:43", "created_at": "2015-06-27T05:09:43",

View File

@ -7,7 +7,7 @@
] ]
}, },
"channel": { "channel": {
"alarm_url": "http://node1:8778/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=2&count=1" "alarm_url": "http://node1:8777/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=2&count=1"
}, },
"cluster_id": "ae63a10b-4a90-452c-aef1-113a0b255ee3", "cluster_id": "ae63a10b-4a90-452c-aef1-113a0b255ee3",
"created_at": "2015-06-27T05:09:43", "created_at": "2015-06-27T05:09:43",

View File

@ -7,7 +7,7 @@
] ]
}, },
"channel": { "channel": {
"alarm_url": "http://node1:8778/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=2&count=2" "alarm_url": "http://node1:8777/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=2&count=2"
}, },
"cluster_id": "ae63a10b-4a90-452c-aef1-113a0b255ee3", "cluster_id": "ae63a10b-4a90-452c-aef1-113a0b255ee3",
"created_at": "2015-06-27T05:09:43", "created_at": "2015-06-27T05:09:43",

View File

@ -8,7 +8,7 @@
] ]
}, },
"channel": { "channel": {
"alarm_url": "http://node1:8778/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=2&count=1" "alarm_url": "http://node1:8777/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=2&count=1"
}, },
"cluster_id": "ae63a10b-4a90-452c-aef1-113a0b255ee3", "cluster_id": "ae63a10b-4a90-452c-aef1-113a0b255ee3",
"created_at": "2015-06-27T05:09:43", "created_at": "2015-06-27T05:09:43",

View File

@ -2,7 +2,7 @@
Require all granted Require all granted
</Directory> </Directory>
<VirtualHost *:8778> <VirtualHost *:8777>
WSGIDaemonProcess senlin-api processes=%APIWORKERS% threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV% WSGIDaemonProcess senlin-api processes=%APIWORKERS% threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup senlin-api WSGIProcessGroup senlin-api
WSGIScriptAlias / %SENLIN_BIN_DIR%/senlin-wsgi-api WSGIScriptAlias / %SENLIN_BIN_DIR%/senlin-wsgi-api

View File

@ -70,7 +70,7 @@ Replace ``Senlin_DBPASS`` with a suitable password.
:: ::
$openstack user create --project services --password-prompt senlin $openstack user create --project service --password-prompt senlin
User Password: User Password:
Repeat User Password: Repeat User Password:
+-----------+----------------------------------+ +-----------+----------------------------------+
@ -86,7 +86,7 @@ Replace ``Senlin_DBPASS`` with a suitable password.
:: ::
$ openstack role add --project services --user senlin admin $ openstack role add --project service --user senlin admin
.. note:: .. note::
@ -125,7 +125,7 @@ Replace ``Senlin_DBPASS`` with a suitable password.
| service_id | 9130295921b04601a81f95c417b9f113 | | service_id | 9130295921b04601a81f95c417b9f113 |
| service_name | senlin | | service_name | senlin |
| service_type | clustering | | service_type | clustering |
| url | http://controller:8778 | | url | http://controller:8777 |
+--------------+----------------------------------+ +--------------+----------------------------------+
$ openstack endpoint create senlin --region RegionOne \ $ openstack endpoint create senlin --region RegionOne \
@ -141,7 +141,7 @@ Replace ``Senlin_DBPASS`` with a suitable password.
| service_id | 9130295921b04601a81f95c417b9f113 | | service_id | 9130295921b04601a81f95c417b9f113 |
| service_name | senlin | | service_name | senlin |
| service_type | clustering | | service_type | clustering |
| url | http://controller:8778 | | url | http://controller:8777 |
+--------------+----------------------------------+ +--------------+----------------------------------+
$ openstack endpoint create senlin --region RegionOne \ $ openstack endpoint create senlin --region RegionOne \
@ -157,7 +157,7 @@ Replace ``Senlin_DBPASS`` with a suitable password.
| service_id | 9130295921b04601a81f95c417b9f113 | | service_id | 9130295921b04601a81f95c417b9f113 |
| service_name | senlin | | service_name | senlin |
| service_type | clustering | | service_type | clustering |
| url | http://controller:8778 | | url | http://controller:8777 |
+--------------+----------------------------------+ +--------------+----------------------------------+
Install and configure components Install and configure components

View File

@ -145,7 +145,7 @@ by two nodes every time it is triggered:
| | "trust_id": "432f81d339444cac959bab2fd9ba92fa" | | | "trust_id": "432f81d339444cac959bab2fd9ba92fa" |
| | } | | | } |
| channel | { | | channel | { |
| | "alarm_url": "http://node1:8778/v1/webhooks/ba...5a/trigger?V=2&count=2 | | | "alarm_url": "http://node1:8777/v1/webhooks/ba...5a/trigger?V=2&count=2 |
| | } | | | } |
| cluster_id | b75d25e7-e84d-4742-abf7-d8a3001e25a9 | | cluster_id | b75d25e7-e84d-4742-abf7-d8a3001e25a9 |
| created_at | 2016-08-01T02:17:14Z | | created_at | 2016-08-01T02:17:14Z |
@ -191,7 +191,7 @@ triggering. For convenience, we export that value to an environment variable:
.. code-block:: console .. code-block:: console
$ export ALRM_URL01="http://node1:8778/v1/webhooks/ba...5a/trigger?V=2&count=2" $ export ALRM_URL01="http://node1:8777/v1/webhooks/ba...5a/trigger?V=2&count=2"
Similar to the example above, you can create other receivers for different Similar to the example above, you can create other receivers for different
kinds of cluster operations or the same cluster operation with different kinds of cluster operations or the same cluster operation with different

View File

@ -48,7 +48,7 @@ The output from the command will be something like this:
| | "trust_id": "1bc958f5780b4ad38fb6583701a9f39b" | | | "trust_id": "1bc958f5780b4ad38fb6583701a9f39b" |
| | } | | | } |
| channel | { | | channel | { |
| | "alarm_url": "http://node1:8778/v1/webhooks/5dacde18-.../trigger?V=2" | | | "alarm_url": "http://node1:8777/v1/webhooks/5dacde18-.../trigger?V=2" |
| | } | | | } |
| cluster_id | 7fb3d988-3bc1-4539-bd5d-3f72e8d6e0c7 | | cluster_id | 7fb3d988-3bc1-4539-bd5d-3f72e8d6e0c7 |
| created_at | 2016-05-23T01:36:39 | | created_at | 2016-05-23T01:36:39 |
@ -79,7 +79,7 @@ action using tools like ``curl``.
.. code-block:: console .. code-block:: console
$ curl -X POST http://node1:8778/v1/webhooks/5dacde18-661e-4db4-b7a8-f2a6e3466f98/trigger?V=2 $ curl -X POST http://node1:8777/v1/webhooks/5dacde18-661e-4db4-b7a8-f2a6e3466f98/trigger?V=2
After a while, you can check that the cluster has been shrunk by 1 node. After a while, you can check that the cluster has been shrunk by 1 node.

View File

@ -107,7 +107,7 @@ using the option :option:`--type`, for example:
| | "trust_id": "2e76547947954e6ea62b61a658ffb8e5" | | | "trust_id": "2e76547947954e6ea62b61a658ffb8e5" |
| | } | | | } |
| channel | { | | channel | { |
| | "alarm_url": "http://10.20.10.17:8778/v1/webhooks/...." | | | "alarm_url": "http://10.20.10.17:8777/v1/webhooks/...." |
| | } | | | } |
| cluster_id | 9f1883a7-6837-4fe4-b621-6ec6ba6c3668 | | cluster_id | 9f1883a7-6837-4fe4-b621-6ec6ba6c3668 |
| created_at | 2018-02-24T09:23:48Z | | created_at | 2018-02-24T09:23:48Z |

View File

@ -19,7 +19,7 @@ API_OPTS = [
cfg.IPOpt('bind_host', default='0.0.0.0', cfg.IPOpt('bind_host', default='0.0.0.0',
help=_('Address to bind the server. Useful when ' help=_('Address to bind the server. Useful when '
'selecting a particular network interface.')), 'selecting a particular network interface.')),
cfg.PortOpt('bind_port', default=8778, cfg.PortOpt('bind_port', default=8777,
help=_('The port on which the server will listen.')), help=_('The port on which the server will listen.')),
cfg.IntOpt('backlog', default=4096, cfg.IntOpt('backlog', default=4096,
help=_("Number of backlog requests " help=_("Number of backlog requests "

View File

@ -23,7 +23,7 @@ RECEIVER_OPTS = [
help=_('The address for notifying and triggering receivers. ' help=_('The address for notifying and triggering receivers. '
'It is useful for case Senlin API service is running ' 'It is useful for case Senlin API service is running '
'behind a proxy.')), 'behind a proxy.')),
cfg.PortOpt('port', default=8778, deprecated_group='webhook', cfg.PortOpt('port', default=8777, deprecated_group='webhook',
help=_('The port for notifying and triggering receivers. ' help=_('The port for notifying and triggering receivers. '
'It is useful for case Senlin API service is running ' 'It is useful for case Senlin API service is running '
'behind a proxy.')), 'behind a proxy.')),

View File

@ -41,7 +41,7 @@ class VersionControllerTest(base.SenlinTestCase):
environ = { environ = {
'REQUEST_METHOD': 'GET', 'REQUEST_METHOD': 'GET',
'SERVER_NAME': 'host', 'SERVER_NAME': 'host',
'SERVER_PORT': 8778, 'SERVER_PORT': 8777,
'SCRIPT_NAME': '/', 'SCRIPT_NAME': '/',
'PATH_INFO': '/', 'PATH_INFO': '/',
'wsgi.url_scheme': 'http', 'wsgi.url_scheme': 'http',

View File

@ -36,7 +36,7 @@ class ActionControllerTest(shared.ControllerTest, base.SenlinTestCase):
# Create WSGI controller instance # Create WSGI controller instance
class DummyConfig(object): class DummyConfig(object):
bind_port = 8778 bind_port = 8777
cfgopts = DummyConfig() cfgopts = DummyConfig()
self.controller = actions.ActionController(options=cfgopts) self.controller = actions.ActionController(options=cfgopts)

View File

@ -33,7 +33,7 @@ class ClusterPolicyControllerTest(shared.ControllerTest, base.SenlinTestCase):
# Create WSGI controller instance # Create WSGI controller instance
class DummyConfig(object): class DummyConfig(object):
bind_port = 8778 bind_port = 8777
cfgopts = DummyConfig() cfgopts = DummyConfig()
self.controller = cp_mod.ClusterPolicyController(options=cfgopts) self.controller = cp_mod.ClusterPolicyController(options=cfgopts)

View File

@ -37,7 +37,7 @@ class ClusterControllerTest(shared.ControllerTest, base.SenlinTestCase):
super(ClusterControllerTest, self).setUp() super(ClusterControllerTest, self).setUp()
class DummyConfig(object): class DummyConfig(object):
bind_port = 8778 bind_port = 8777
cfgopts = DummyConfig() cfgopts = DummyConfig()
self.controller = clusters.ClusterController(options=cfgopts) self.controller = clusters.ClusterController(options=cfgopts)

View File

@ -33,7 +33,7 @@ class EventControllerTest(shared.ControllerTest, base.SenlinTestCase):
# Create WSGI controller instance # Create WSGI controller instance
class DummyConfig(object): class DummyConfig(object):
bind_port = 8778 bind_port = 8777
cfgopts = DummyConfig() cfgopts = DummyConfig()
self.controller = events.EventController(options=cfgopts) self.controller = events.EventController(options=cfgopts)

View File

@ -34,7 +34,7 @@ class NodeControllerTest(shared.ControllerTest, base.SenlinTestCase):
super(NodeControllerTest, self).setUp() super(NodeControllerTest, self).setUp()
class DummyConfig(object): class DummyConfig(object):
bind_port = 8778 bind_port = 8777
cfgopts = DummyConfig() cfgopts = DummyConfig()
self.controller = nodes.NodeController(options=cfgopts) self.controller = nodes.NodeController(options=cfgopts)

View File

@ -34,7 +34,7 @@ class PolicyControllerTest(shared.ControllerTest, base.SenlinTestCase):
super(PolicyControllerTest, self).setUp() super(PolicyControllerTest, self).setUp()
class DummyConfig(object): class DummyConfig(object):
bind_port = 8778 bind_port = 8777
cfgopts = DummyConfig() cfgopts = DummyConfig()
self.controller = policies.PolicyController(options=cfgopts) self.controller = policies.PolicyController(options=cfgopts)

View File

@ -30,7 +30,7 @@ class PolicyTypeControllerTest(shared.ControllerTest, base.SenlinTestCase):
super(PolicyTypeControllerTest, self).setUp() super(PolicyTypeControllerTest, self).setUp()
class DummyConfig(object): class DummyConfig(object):
bind_port = 8778 bind_port = 8777
cfgopts = DummyConfig() cfgopts = DummyConfig()
self.controller = policy_types.PolicyTypeController(options=cfgopts) self.controller = policy_types.PolicyTypeController(options=cfgopts)

View File

@ -30,7 +30,7 @@ class ProfileTypeControllerTest(shared.ControllerTest, base.SenlinTestCase):
super(ProfileTypeControllerTest, self).setUp() super(ProfileTypeControllerTest, self).setUp()
class DummyConfig(object): class DummyConfig(object):
bind_port = 8778 bind_port = 8777
cfgopts = DummyConfig() cfgopts = DummyConfig()
self.controller = profile_types.ProfileTypeController(options=cfgopts) self.controller = profile_types.ProfileTypeController(options=cfgopts)

View File

@ -33,7 +33,7 @@ class ProfileControllerTest(shared.ControllerTest, base.SenlinTestCase):
super(ProfileControllerTest, self).setUp() super(ProfileControllerTest, self).setUp()
class DummyConfig(object): class DummyConfig(object):
bind_port = 8778 bind_port = 8777
cfgopts = DummyConfig() cfgopts = DummyConfig()
self.controller = profiles.ProfileController(options=cfgopts) self.controller = profiles.ProfileController(options=cfgopts)

View File

@ -32,7 +32,7 @@ class ReceiverControllerTest(shared.ControllerTest, base.SenlinTestCase):
super(ReceiverControllerTest, self).setUp() super(ReceiverControllerTest, self).setUp()
class DummyConfig(object): class DummyConfig(object):
bind_port = 8778 bind_port = 8777
cfgopts = DummyConfig() cfgopts = DummyConfig()
self.controller = receivers.ReceiverController(options=cfgopts) self.controller = receivers.ReceiverController(options=cfgopts)

View File

@ -44,7 +44,7 @@ class ServicesControllerTest(shared.ControllerTest, base.SenlinTestCase):
# Create WSGI controller instance # Create WSGI controller instance
class DummyConfig(object): class DummyConfig(object):
bind_port = 8778 bind_port = 8777
cfgopts = DummyConfig() cfgopts = DummyConfig()
self.controller = services.ServiceController(options=cfgopts) self.controller = services.ServiceController(options=cfgopts)

View File

@ -32,7 +32,7 @@ class WebhookControllerBaseTest(shared.ControllerTest, base.SenlinTestCase):
super(WebhookControllerBaseTest, self).setUp() super(WebhookControllerBaseTest, self).setUp()
class DummyConfig(object): class DummyConfig(object):
bind_port = 8778 bind_port = 8777
cfgopts = DummyConfig() cfgopts = DummyConfig()
self.controller = webhooks.WebhookController(options=cfgopts) self.controller = webhooks.WebhookController(options=cfgopts)

View File

@ -115,7 +115,7 @@ class TestMessage(base.SenlinTestCase):
message = mmod.Message('message', None, None, id=UUID) message = mmod.Message('message', None, None, id=UUID)
res = message._generate_subscriber_url() res = message._generate_subscriber_url()
expected = 'trust+http://test-host:8778/v1/receivers/%s/notify' % UUID expected = 'trust+http://test-host:8777/v1/receivers/%s/notify' % UUID
self.assertEqual(expected, res) self.assertEqual(expected, res)
def test_to_dict(self): def test_to_dict(self):

View File

@ -68,7 +68,7 @@ class TestWebhook(base.SenlinTestCase):
channel = webhook.initialize_channel(self.context) channel = webhook.initialize_channel(self.context)
expected = { expected = {
'alarm_url': ('http://test-host:8778/v1/webhooks/%s/trigger' 'alarm_url': ('http://test-host:8777/v1/webhooks/%s/trigger'
'?V=2' % UUID1) '?V=2' % UUID1)
} }
self.assertEqual(expected, channel) self.assertEqual(expected, channel)

View File

@ -18,7 +18,7 @@ if [ $# -ne 2 ]; then
exit -1 exit -1
fi fi
PORT=8778 PORT=8777
HOST=$1 # Put your host IP here HOST=$1 # Put your host IP here
SVC_PASSWD=$2 SVC_PASSWD=$2
OS_REGION_NAME=${OS_REGION_NAME:-RegionOne} OS_REGION_NAME=${OS_REGION_NAME:-RegionOne}