Registers a new service instance.
Note: The euserv-register-service command replaces the deprecated
euca_conf --register-* (except --register-nodes) and
euca-register-* commands.
Syntax
euserv-register-service -t TYPE -h IP [--port PORT] [-z ZONE] [-U URL]
[--region USER@REGION] [-I KEY_ID] [-S KEY]
[--security-token TOKEN] [--debug] [--debugger] [--version]
[--help] SVCINSTANCE
Positional Arguments
| Argument |
Description |
| SVCINSTANCE |
The name of the new service instance to register. |
Options
| Option |
Description |
Required |
| -t, --type
type |
The new service instance's type. |
Yes |
| -h, --host
IP |
The host on which the new instance of the service runs. |
Yes |
| --port
port |
The port on which the new instance of the service runs (default for
cluster: 8774, otherwise: 8773). |
No |
| -z, --availability-zone
zone |
The availability zone in which to register the new service instance. This
is required only for services of certain types. |
Conditional |
Common Options
| Option |
Description |
| --show-empty-fields |
Show empty fields as "(nil)". |
| --region user@region |
Region and/or user name to search when looking up config file data. Only valid for EC2
endpoints. |
| -U,--url url |
URL of the cloud service to connect to. For administrative commands, this should be <ip_address>:8773/services/Empyrean. |
| -I,--access-key-id key_id |
User's access key ID. |
| -S,--secret-key secret_key |
User's secret key. |
| --security-token token |
User's security token. |
| --debug |
Prints what the command sends to the server
and what it receives from the server. Use when
you're trying to debug Euca2ools. |
| --debugger |
Enable interactive debugger on error. |
| -h,--help |
Display the manual page for the
command. |
| --version |
Display the version of this tool. |
Output
No output is given when it succeeds.
Example
To register the ufs service named "user-api-5":
euserv-register-service -t user-api -h 10.0.0.15 user-api-5
Note: A prerequisite for this command is to have the credentials in the shell you are running the register command. For example:
eval `clcadmin-assume-system-credentials`