1 .. ============LICENSE_START==========================================
2 .. ===================================================================
3 .. Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
4 .. ===================================================================
5 .. Licensed under the Creative Commons License, Attribution 4.0 Intl. (the "License");
6 .. you may not use this documentation except in compliance with the License.
7 .. You may obtain a copy of the License at
9 .. https://creativecommons.org/licenses/by/4.0/
11 .. Unless required by applicable law or agreed to in writing, software
12 .. distributed under the License is distributed on an "AS IS" BASIS,
13 .. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 .. See the License for the specific language governing permissions and
15 .. limitations under the License.
16 .. ============LICENSE_END============================================
17 .. ECOMP is a trademark and service mark of AT&T Intellectual Property.
28 This guide describes the APPC API that allows you to manage and control the life cycle of controlled virtual network functions (VNFs).
33 This document is intended for an advanced technical audience, such as the engineers or architects who need to use this guide to develop an interfacing application. The guide assumes a knowledge of the Open Network Automation Platform (ONAP) components and features, and familiarity with JSON notation.
36 Life Cycle Management Commands
37 ==============================
39 APPC receives commands from external ONAP components, such as SO, Policy, DCAE, or the Portal, to manage the life cycle of virtual applications and their components.
41 A virtual application is composed of the following layers of network technology:
43 - Virtual Network Function (VNF)
44 - Virtual Network Function Component (VNFC)
45 - Virtual Machine (VM)
47 A Life Cycle Management (LCM) command may affect one or more of these layers.
49 An LCM command is sent as a request to the APPC using an HTTP POST request or in a message on a message bus (DMaaP). A request may result in either a single synchronous response or multiple asynchronous responses:
51 - An **asynchronous** command, which is sent as an authorized and valid request, results in at least two discrete response events:
52 - an accept response, to indicate that the request is accepted for processing
53 - a final response to indicate the status and outcome of the request processing
54 - An unauthorized or invalid request results in a single ERROR response.
56 - A **synchronous** command, such as Lock or Unlock, results in a single response that is either SUCCESS or ERROR.
58 **NOTE:** For both asynchronous or synchronous commands, the first response is always returned using the same transport that the initial action used. For example, if the action request was via the message bus (such as when it originates from Policy), then the response is also via the message bus. However, if the request was via a direct HTTP call, the response is similarly a synchronous HTTP response.
61 Message Bus and the LCM API Client Library
62 ------------------------------------------
64 The recommended approach for sending/receiving requests to APPC is via the message bus. To support this approach, an APPC client library is available and should be used. The client library aims to provide consumers of APPC capabilities with a strongly-typed Java interface and to encapsulate the actual interaction with APPC component via the message bus.
66 For more details, see the APPC Client Library Guide at:
68 :ref:`appc_client_library`
71 The client library supports both synchronous and asynchronous flows as follows.
76 - The APPC Client Library is called via an asynchronous API using a full command object, which is mapped to a JSON representation.
77 - The APPC client calls the message bus client and sends the JSON command to a configured topic.
78 - The APPC client pulls response messages from the configured topic.
79 - On receiving the response for the command, APPC client runs the relevant callback method of the consumer ResponseHandler.
84 - The APPC Client Library is called via a synchronous API using a full command object, which is mapped to a JSON representation.
85 - The APPC client calls the message bus client and sends the JSON command to a configured topic.
86 - The APPC client pulls response messages from the configured topic.
87 - On receiving the final response for the command, the APPC client returns the response object with a final status.
89 The client library adds the following wrapper around request and responses to the LCM API (described below)::
93 "cambria.partition" : "<TOPIC>",
94 "correlation-id" :"<CORRELATION_ID>",
95 "rpc-name" : "<RPC_NME>",
96 "type" : <MESSAGE_TYPE>
97 "body" : <RPC_SPECIFIC_BODY>
102 Table 1 Request / Response Message Fields
104 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
105 | **Field** | **Description** | **Required** |
106 +======================+================================================================================================================+=====================+
107 | version | Indicates the version of the message bus protocol with APPC. Version 2.0 should be used. | Yes |
108 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
109 | cambria. partition | Indicates the specific topic partition that the message is intended for. For example: | No |
111 | | - For incoming messages, this value should be ``APPC``. | |
113 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
114 | correlation- id | Correlation ID used for associating responses in APPC Client Library. | Yes |
115 | | Built as: ``<request-id>-<sub-request-id>`` | |
116 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
117 | rpc-name | The target Remote Processing Call (RPC) name which should match the LCM command name. For example:``configure``| Yes |
119 | | The convention for RPC names and the target URL is that multi-word command names should have a dash between | |
121 | | /restconf/operations/appc-provider-lcm:action-status | |
122 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
123 | type | Message type: request, response or error | Yes |
124 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
125 | body | Contains the input or output LCM command content, which is either the request or response | |
126 | | The body field format is identical to the equivalent HTTP Rest API command based on the specific RPC name. | Yes |
127 | | For example:: | |
131 | | "common-header" : {...} | |
132 | | "action" : "configure", | |
133 | | "action-identifiers" : {...}, | |
134 | | "payload": "..." | |
136 +----------------------+----------------------------------------------------------------------------------------------------------------+---------------------+
139 Generic Request Format
140 ----------------------
142 The LCM API general request format is applicable for both POST HTTP API and for the message body received via the message bus.
147 The LCM request comprises a common header and a section containing the details of the LCM action.
148 The LCM request conforms to the following structure::
152 "common-header": {"timestamp": "<TIMESTAMP>",
153 "api-ver": "<API_VERSION>",
154 "originator-id": "<SYSTEM_ID>",
155 "request-id": "<REQUEST_ID>",
156 "sub-request-id": "<SUBREQUEST_ID>",
158 "mode": "<EXCLUSIVE|NORMAL>",
159 "force": "<TRUE|FALSE>",
163 "action": "<COMMAND_ACTION>",
164 "action-identifiers": {
165 "vnf-id": "<VNF_ID>",
166 "vnfc-name": "<VNFC_NAME>",
167 "vserver-id": "VSERVER_ID"
169 ["payload": "<PAYLOAD>"]
174 Table 2 LCM Request Fields
176 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
177 | **Field** | **Description** | **Required?** |
178 +===========================+=============================================================================================================================================================================================================================================================================================================================================================================+=====================+
179 | input | The block that defines the details of the input to the command processing. Contains the common-header details. | Yes |
180 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
181 | common- header | The block that contains the generic details about a request. | Yes |
182 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
183 | timestamp | The time of the request, in ISO 8601 format, ZULU offset. For example: 2016-08-03T08:50:18.97Z. | Yes |
185 | | APPC will reject the request if timestamp is in the future (due to clock error), or timestamp is too old (compared to TTL flag) | |
186 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
187 | api-ver | Identifies the API version, in X.YY format, where X denotes the major version increased with each APPC release, and YY is the minor release version. | Yes |
189 | | 2.00 should be used for all LCM API requests | |
190 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
191 | originator-id | An identifier of the calling system limited to a length of 40 characters. | Yes |
193 | | It can be used for addressing purposes, such as to return an asynchronous response to the correct destination, in particular where there are multiple consumers of APPC APIs. | |
194 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
195 | request-id | The UUID for the request ID, limited to a length of 40 characters. The unique OSS/BSS identifier for the request ID that triggers the current LCM action. Multiple API calls can be made with the same request-id. | Yes |
197 | | The request-id is stored throughout the operations performed during a single request. | |
198 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
199 | sub-request-id | Uniquely identifies a specific LCM or control action, limited to a length of 40 characters. Persists throughout the life cycle of a single request. | No |
200 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
201 | flags | Generic flags that apply to all LCM actions: | No |
205 | | - "EXCLUSIVE" - reject requests on this VNF while another request is in progress, or | |
207 | | - "NORMAL" - allow requests (pending additional validations) on this VNF if there is another request is in progress. | |
210 | | - **TRUE** – forces APPC to process the request regardless of whether there is another request for the VNF or VM in progress. | |
211 | | - **FALSE** – default value. Will return an error if there is another action in progress on the same VNF or VM, unless the two actions are allowed in parallel based on a Request Management Model stored in APPC. The model allows some non-disruptive actions such as Lock, Unlock, CheckLock, and ActionStatus to be performed in conjunction with other actions. | |
214 | | - "TTL": <0....N> - The timeout value is used to determine if the request timeout has been exceeded (i.e., if the TTL value is less than the current time minus the timestamp, the request is rejected). The value is in seconds. | |
216 | | If no TTL value provided, the default/configurable TTL value is to be used. | |
217 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
218 | action | The action to be taken by APPC, for example: Test, Start | Yes |
220 | | These are case-sensitive; e.g.,”Restart” is correct; “restart” is incorrect. | |
222 | | ***NOTE:** The specific value for the action parameter is provided for each command. | |
223 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
224 | action-identifiers | A block containing the action arguments. These are used to specify the object upon which APPC LCM command is to operate. At least one action-identifier must be specified (note that vnf-id is mandatory). For actions that are at the VM level, the action-identifiers provided would be vnf-id and vserver-id. | Yes |
225 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
226 | service-instance-id | Identifies a specific service instance that the command refers to. When multiple APPC instances are used and applied to a subset of services, this will become significant. The field is mandatory when the vnf-id is empty. Currently not used. | No |
227 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
228 | vnf-id | Identifies the VNF instance to which this action is to be applied. Required for actions. | Yes |
229 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
230 | vnfc-name | Identifies the VNFC instance to which this action is to be applied. Required if the action applied to a specific VNFC. Currently not used. | No |
231 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
232 | vserver-id | Identifies a specific VM instance to which this action is to be applied. Required if the action applied to a specific VM. (Populate the vserver-id field with the UUID of the VM) | No |
233 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
234 | vf-module-id | Identifies a specific VF module to which this action is to be applied. Required if the action applied to a specific VF module. | No |
235 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
236 | payload | An action-specific open-format field. | No |
238 | | The payload can be any valid JSON string value. JSON escape characters need to be added when an inner JSON string is included within the payload, for example: | |
240 | | ``"{\" vnf-host-ip-address\": \"<VNF-HOST-IP-ADDRESS>\"}"`` | |
242 | | The payload is typically used to provide parametric data associated with the command, such as a list of configuration parameters. | |
244 | | Note that not all LCM commands need have a payload. | |
246 | | ***NOTE:** See discussion below on the use of payloads for self-service actions. | |
247 +---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
249 Request Processing and Validation Logic
250 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
252 When a new request is received, APPC applies the following validation logic. For any failure, the request is rejected and an error (300 range) is returned.
254 1. If the request has timeout (i.e., the difference between current
255 time and the request timestamp value is greater than TTL value in
256 request), a timeout error is returned.
258 2. If the request is a duplicate of an existing request in progress
259 (same request-id, sub-request-id, originator-id), a duplicate error
262 3. If there is a Lock on the vnf-id, reject any new action if it is not
263 associated with the locking request-id, a lockout error is returned.
265 4. If the Force flag = Y, then allow the new action regardless of
266 whether there is an action in progress.
268 5. If the Mode flag = Exclusive on a request in progress, any new
269 request is rejected until the request in progress is completed.
271 6. If request is received and there are one or more requests in
272 progress, then the new request is evaluated to determine if there is
273 any overlap in scope with the existing requests (for example, a new
274 VNF level request would overlap with another request in progress).
276 a. If there is no overlap between the new request and requests in
277 progress, the new request is accepted.
279 b. If there is overlap, then only special cases are allowed in
280 parallel (for example, Audit and HealthCheck are allowed).
283 Generic Response Format
284 -----------------------
287 This section describes the generic response format.
289 The response format is applicable for both POST HTTP API and for the message body received via the message bus.
295 The LCM response comprises a common header and a section containing the payload and action details.
297 The LCM response conforms to the following structure::
302 "api-ver": "<API_VERSION>",
305 "force": "<TRUE|FALSE>",
306 "mode": "<EXCLUSIVE|NORMAL>"
308 "originator-id": "<SYSTEM_ID>",
309 "request-id": "<REQUEST_ID>",
310 "sub-request-id": "<SUBREQUEST_ID>",
311 "timestamp": "2016-08-08T23:09:00.11Z",
313 "payload": "<PAYLOAD>",
316 "code": <RESULT_CODE>,
317 "message": "<RESULT_MESSAGE>"
323 Table 3 LCM Response Fields
325 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
326 | **Field** | **Description** | **Required?** |
327 +======================+===========================================================================================================================================================================================================================+=====================+
328 | output | The block that defines the details of the output of the command processing. Contains the ``common-header`` details. | Yes |
329 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
330 | common- header | The block that contains the generic details about a request. | Yes |
331 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
332 | api-ver | Identifies the API version, in X.YY format, where X denotes the major version increased with each APPC release, and YY is the minor release version. | Yes |
334 | | - 2.00 should be used for all LCM API requests | |
335 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
336 | originator-id | An identifier of the calling system limited to a length of 40 characters. | Yes |
338 | | It can be used for addressing purposes, such as to return an asynchronous response to the correct destination, in particular where there are multiple consumers of APPC APIs. | |
339 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
340 | request-id | The UUID for the request ID, limited to a length of 40 characters. The unique OSS/BSS identifier for the request ID that triggers the current LCM action. Multiple API calls can be made with the same request- id. | Yes |
342 | | The request-id is stored throughout the operations performed during a single request. | |
343 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
344 | sub-request-id | Uniquely identifies a specific LCM or control action, limited to a length of 40 characters. Persists throughout the life cycle of a single request. | No |
345 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
346 | timestamp | The time of the request, in ISO 8601 format, ZULU offset. For example: ``2016-08-03T08:50:18.97Z``. | Yes |
347 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
348 | status | The status describes the outcome of the command processing. Contains a ``code`` and a ``message`` providing success or failure details. | Yes |
350 | | ***NOTE:** See* status *for code values.* | |
351 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
352 | payload | An open-format field. | No |
354 | | The payload can be any valid JSON string value. JSON escape characters need to be added when an inner JSON string is included within the payload, for example: ``"{\\"upload\_config\_id\\": \\"<value\\"}"``. | |
356 | | The payload is typically used to provide parametric data associated with the response to the command. | |
358 | | Note that not all LCM commands need have a payload. | |
360 | | ***NOTE:** The specific value(s) for the response payload, where relevant, is provided for in each* command *description.* | |
361 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
362 | [Field name] | Additional fields can be provided in the response, if needed, by specific commands. | No |
363 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
364 | code | A unique pre-defined value that identifies the exact nature of the success or failure status. | No |
365 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
366 | message | The description of the success or failure status. | No |
367 +----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+
373 The status code is returned in the response message as the ``code`` parameter, and the description as the message parameter.
375 The different responses are categorized as follows:
379 Request is valid and accepted for processing.
383 Request invalid or incomplete.
387 Request rejected during processing due to invalid data, such as an
392 Request is valid and completes successfully.
396 The request processing resulted in failure.
398 A FAILURE response is always returned asynchronously via the message
403 The request processing resulted in partial success where at least
404 one step in a longer process completed successfully.
406 A PARTIAL SUCCESS response is always returned asynchronously via the
411 The request processing resulted in partial failure.
413 A PARTIAL FAILURE response is always returned asynchronously via the
416 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
417 | **Category** | **Code** | **Message / Description** |
418 +=======================+================+======================================================================================================================================+
419 | ACCEPTED | 100 | ACCEPTED - Request accepted |
420 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
421 | ERROR | 200 | UNEXPECTED ERROR - ${detailedErrorMsg} |
422 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
423 | REJECT | 300 | REJECTED - ${detailedErrorMsg} |
424 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
425 | | 301 | INVALID INPUT PARAMETER -${detailedErrorMsg} |
426 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
427 | | 302 | MISSING MANDATORY PARAMETER - Parameter ${paramName} is missing |
428 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
429 | | 303 | REQUEST PARSING FAILED - ${detailedErrorMsg} |
430 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
431 | | 304 | NO TRANSITION DEFINED - No Transition Defined for ${actionName} action and ${currentState} state |
432 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
433 | | 305 | ACTION NOT SUPPORTED - ${actionName} action is not supported |
434 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
435 | | 306 | VNF NOT FOUND - VNF with ID ${vnfId} was not found |
436 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
437 | | 307 | DG WORKFLOW NOT FOUND - No DG workflow found for the combination of ${dgModule} module ${dgName} name and ${dgVersion} version |
438 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
439 | | 308 | WORKFLOW NOT FOUND - No workflow found for VNF type |
441 | | | ${vnfTypeVersion} and ${actionName} action |
442 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
443 | | 309 | UNSTABLE VNF - VNF ${vnfId} is not stable to accept the command |
444 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
445 | | 310 | LOCKING FAILURE -${detailedErrorMsg} |
446 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
447 | | 311 | EXPIREDREQUEST. The request processing time exceeded the maximum available time |
448 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
449 | | 312 | DUPLICATEREQUEST. The request already exists |
450 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
451 | | 313 | MISSING VNF DATA IN A&AI - ${attributeName} not found for VNF ID = |
454 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
455 | | 315 | MULTIPLE REQUESTS USING SEARCH CRITERIA: ${parameters} |
456 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
457 | | 316 | POLICY VALIDATION FAILURE - Request rejected as per the request validation policy |
458 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
459 | SUCCESS | 400 | The request was processed successfully |
460 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
461 | FAILURE | 401 | DG FAILURE - ${ detailedErrorMsg } |
462 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
463 | | 402 | NO TRANSITION DEFINED - No Transition Defined for ${ actionName} action and ${currentState} state |
464 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
465 | | 403 | UPDATE\_AAI\_FAILURE - failed to update AAI. ${errorMsg} |
466 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
467 | | 404 | EXPIRED REQUEST FAILURE - failed during processing because TTL expired |
468 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
469 | | 405 | UNEXPECTED FAILURE - ${detailedErrorMsg} |
470 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
471 | | 406 | UNSTABLE VNF FAILURE - VNF ${vnfId} is not stable to accept the command |
472 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
473 | | 450 | REQUEST NOT SUPPORTED |
474 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
475 | PARTIAL SUCCESS | 500 | PARTIAL SUCCESS |
476 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
477 | PARTIAL FAILURE | 501 - | PARTIAL FAILURE |
479 +-----------------------+----------------+--------------------------------------------------------------------------------------------------------------------------------------+
482 Malformed Message Response
483 --------------------------
485 A malformed message is an invalid request based on the LCM API YANG scheme specification. APPC rejects malformed requests as implemented by ODL infrastructure level.
487 **Response Format for Malformed Requests**::
493 "error-type": "protocol",
494 "error-tag": "malformed-message",
495 "error-message": "<ERROR-MESSAGE>",
496 "error-info": "<ERROR-INFO>"
503 **Example Response**::
509 "error-type": "protocol",
510 "error-tag": "malformed-message",
511 "error-message": "Error parsing input: Invalid value 'Stopp' for
512 enum type. Allowed values are: [Sync, Audit, Stop, Terminate]",
513 "error-info": "java.lang.IllegalArgumentException: Invalid value
514 'Stopp' for enum type. Allowed values are: [Sync, Audit, Stop,
526 Defines the level at which the LCM command operates for the current release of APPC and the VNF types which are supported for each command.
529 Commands, or actions, can be performed at one or more of the following scope levels:
532 +-----------------+----------------------------------------------------------------------------------------+
533 | **VNF** | Commands can be applied at the level of a specific VNF instance using the vnf-id. |
534 +-----------------+----------------------------------------------------------------------------------------+
535 | **VF-Module** | Commands can be applied at the level of a specific VF-Module using the vf-module-id. |
536 +-----------------+----------------------------------------------------------------------------------------+
537 | **VNFC** | Commands can be applied at the level of a specific VNFC instance using a vnfc-name. |
538 +-----------------+----------------------------------------------------------------------------------------+
539 | **VM** | Commands can be applied at the level of a specific VM instance using a vserver-id. |
540 +-----------------+----------------------------------------------------------------------------------------+
543 **VNF/VM Types Supported**
545 Commands, or actions, may be currently supported on all VNF types or a limited set of VNF types. Note that the intent is to support all actions on all VNF types which have been successfully onboarded in a self-service mode.
547 - **Any** Currently supported on any vnf-type.
549 - **Any (requires self-service onboarding)** Currently supported on any vnf-type which has been onboarded using the APPC self-service onboarding process. See further discussion on self-service onboarding below.
552 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
553 | **Command** | **VNF** | **VF-Module** | **VNFC** | **VM** | **VNF/VM Types Supported** |
554 +========================+===========+==================+================+==========+============================================================+
555 | ActionStatus | Yes | | | | Any |
556 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
557 | AttachVolume | | | | Yes | Any (uses OpenStack command) |
558 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
559 | Audit | Yes | | | | Any (requires self-service onboarding) |
560 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
561 | CheckLock | Yes | | | | Any |
562 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
563 | Configure | Yes | | | | Any (requires self-service onboarding) |
564 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
565 | ConfigBackup | Yes | | | | Chef and Ansible only (requires self-service onboarding) |
566 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
567 | ConfigModify | Yes | | | | Any (requires self-service onboarding) |
568 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
569 | ConfigRestore | Yes | | | | Chef and Ansible only (requires self-service onboarding) |
570 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
571 | ConfigScaleOut | Yes | | | | Any (requires self-service onboarding) |
572 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
573 | DetachVolume | | | | Yes | Any (uses OpenStack command) |
574 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
575 | DistributeTraffic | Yes | | Yes | Yes | Chef and Ansible only (requires self-service onboarding) |
576 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
577 | Evacuate | | | | Yes | Any (uses OpenStack command) |
578 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
579 | HealthCheck | Yes | | | | Any (requires self-service onboarding) |
580 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
581 | Lock | Yes | | | | Any |
582 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
583 | Migrate | | | | Yes | Any (uses OpenStack command) |
584 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
585 | QuiesceTraffic | Yes | | | | Chef and Ansible only (requires self-service onboarding) |
586 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
587 | Reboot | | | | Yes | Any (uses OpenStack command) |
588 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
589 | Rebuild | | | | Yes | Any (uses OpenStack command) |
590 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
591 | Restart | | | | Yes | Any (uses OpenStack command) |
592 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
593 | ResumeTraffic | Yes | | | | Chef and Ansible only (requires self-service onboarding) |
594 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
595 | Snapshot | | | | Yes | Any (uses OpenStack command) |
596 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
597 | Start | | | | Yes | Any (uses OpenStack command) |
598 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
599 | StartApplication | Yes | | | | Chef and Ansible only (requires self-service onboarding) |
600 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
601 | Stop | | | | Yes | Any (uses OpenStack command) |
602 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
603 | StopApplication | Yes | | | | Chef and Ansible only (requires self-service onboarding) |
604 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
605 | Sync | Yes | | | | Any (requires self-service onboarding) |
606 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
607 | Unlock | Yes | | | | Any |
608 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
609 | UpgradeBackout | Yes | | | | Chef and Ansible only (requires self-service onboarding) |
610 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
611 | UpgradeBackup | Yes | | | | Chef and Ansible only (requires self-service onboarding) |
612 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
613 | UpgradePostCheck | Yes | | | | Chef and Ansible only (requires self-service onboarding) |
614 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
615 | UpgradePreCheck | Yes | | | | Chef and Ansible only (requires self-service onboarding) |
616 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
617 | UpgradeSoftware | Yes | | | | Chef and Ansible only (requires self-service onboarding) |
618 +------------------------+-----------+------------------+----------------+----------+------------------------------------------------------------+
622 Self-Service VNF Onboarding
623 ---------------------------
625 The APPC architecture is designed for VNF self-service onboarding (i.e., a VNF owner or vendor through the use of tools can enable a new VNF to support the LCM API actions that are designate as self-service). The VNF must support one or more of the following interface protocols:
627 - Netconf with uploadable Yang model (requires a Netconf server running
630 - Chef (requires a Chef client running on the VNF)
632 - Ansible (does not require any changes to the VNF software)
634 The self-service onboarding process is done using an APPC Design GUI (also referred to as CDT) which interacts with an APPC instance which is dedicated to self-service onboarding. The steps in the onboarding process using the APPC Design GUI are:
636 - Define the VNF capabilities (set of actions that the VNF can
639 - Create a template and parameter definitions for actions which use the
640 Netconf, Chef, or Ansible protocols. The template is an xml or JSON
641 block which defines the “payload” which is included in the request
642 that is downloaded the VNF (if Netconf) or Chef/Ansible server.
644 - Test actions which have templates/parameter definitions.
646 - Upload the VNF definition, template, and parameter definition
647 artifacts to SDC which distributes them to all APPC instances in the
648 same environment (e.g., production).
650 For more details, see the APPC CDT Onboarding User Guide.
657 The LCM commands that are valid for the current release.
662 The ActionStatus command returns that state of any action request that has been previously submitted to an APPC instance for a specified VNF. This enables the client to know the status of a previous request and helps them decide if they should reissue a request.
664 +--------------------------+----------------------------------------------------------+
665 | **Target URL** | /restconf /operations/ appc-provider-lcm:action-status |
666 +--------------------------+----------------------------------------------------------+
667 | **Action** | ActionStatus |
668 +--------------------------+----------------------------------------------------------+
669 | **Action-Identifiers** | vnf-id |
670 +--------------------------+----------------------------------------------------------+
671 | **Payload Parameters** | See below |
672 +--------------------------+----------------------------------------------------------+
673 | **Revision History** | New in Beijing |
674 +--------------------------+----------------------------------------------------------+
678 +-----------------------------+------------------------------------------------------------+--------------------+-------------------------------------+
679 | **Payload Parameter** | **Description** | **Required** | **Example** |
680 +=============================+============================================================+====================+=====================================+
681 | request-id | Request id from the previously submitted request | Yes | "request-id": "123456789" |
682 +-----------------------------+------------------------------------------------------------+--------------------+-------------------------------------+
683 | sub-request ID | Sub-Request id from the previously submitted request | optional | "sub-request-id": "123456789" |
684 +-----------------------------+------------------------------------------------------------+--------------------+-------------------------------------+
685 | originator-id | Originator id from the previously submitted request | optional | "originator-id": "123456789" |
686 +-----------------------------+------------------------------------------------------------+--------------------+-------------------------------------+
689 ActionStatus Response:
690 ^^^^^^^^^^^^^^^^^^^^^^
692 A successful response contains a payload with the following:
694 +-----------------------------+-----------------------------------------------------------------------+--------------------+------------------------------+
695 | **Payload Parameter** | **Description** | **Required** | **Example** |
696 +=============================+=======================================================================+====================+==============================+
697 | status-reason | Contains more details about status | No | |
698 +-----------------------------+-----------------------------------------------------------------------+--------------------+------------------------------+
699 | status | IN_PROGRESS – The request has been accepted and is in progress | No | "status": "SUCCESSFUL" |
701 | | SUCCESSFUL – The request returned success message | | |
703 | | FAILED – The request failed and returned an error message | | |
705 | | ABORTED – the request aborted | | |
707 | | NOT_FOUND – The request is not found | | |
708 +-----------------------------+-----------------------------------------------------------------------+--------------------+------------------------------+
710 If the ActionStatus request was rejected or could not be processed, it returns a valid error code or error message (but no payload).Example below:
712 ``"message": "MULTIPLE REQUESTS FOUND - using search criteria:
713 request- id=c09ac7d1-de62-0016-2000-e63701125559 AND
714 vnf-id=ctsf0007v", "code": 315``
719 The AttachVolume command attaches a cinder volume to a VM via an Openstack command.
721 Cinder is a Block Storage service for OpenStack. It's designed to present storage resources to end users that can be consumed by the OpenStack Compute Project (Nova). The short description of Cinder is that it virtualizes the management of block storage devices and provides end users with a self service API to request and consume those resources without requiring any knowledge of where their storage is actually deployed or on what type of device.
723 NOTE: The command implementation is based on Openstack
724 functionality. For further details, see
725 http://developer.openstack.org/api-ref/compute/.
727 +--------------------------+----------------------------------------------------------+
728 | **Target URL** | /restconf/operations/appc-provider-lcm:attach-volume |
729 +--------------------------+----------------------------------------------------------+
730 | **Action** | AttachVolume |
731 +--------------------------+----------------------------------------------------------+
732 | **Action-Identifiers** | vnf-id, vserver-id |
733 +--------------------------+----------------------------------------------------------+
734 | **Payload Parameters** | See table |
735 +--------------------------+----------------------------------------------------------+
736 | **Revision History** | New in Beijing |
737 +--------------------------+----------------------------------------------------------+
741 +-----------------------------+------------------------------------------------------+--------------------+---------------------------------------------------------------------------------------------------------------------------+
742 | **Payload Parameter** | **Description** | **Required** | **Example** |
743 +=============================+======================================================+====================+===========================================================================================================================+
744 | volumeId | The UUID of the volume to attach. | Yes | "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803", |
745 +-----------------------------+------------------------------------------------------+--------------------+---------------------------------------------------------------------------------------------------------------------------+
746 | device | The device identifier | Yes | "device": "/dev/vdb" |
747 +-----------------------------+------------------------------------------------------+--------------------+---------------------------------------------------------------------------------------------------------------------------+
748 | vm-id | TThe self- link URL of the VM. | Yes | "vm-id": http://135.25.246.162:8774/v2/64af07e991424b8e9e54eca27d5c0d48/servers/b074cd1b-8d53-412e-a102-351cc51ac10a" |
749 +-----------------------------+------------------------------------------------------+--------------------+---------------------------------------------------------------------------------------------------------------------------+
750 | Identity-url | The identity URL used to access the resource | Yes | "identity-url": "http://135.25.246.162:5000/v2.0" |
751 +-----------------------------+------------------------------------------------------+--------------------+---------------------------------------------------------------------------------------------------------------------------+
753 AttachVolume Response:
754 ^^^^^^^^^^^^^^^^^^^^^^
756 Success: A successful AttachVolume returns a success status code 400.
758 Failure: A failed AttachVolume returns a failure code 401 and the failure message. Failure messages can include:
769 The Audit command compares the configuration of the VNF associated with the current request against the most recent configuration that is stored in APPC's configuration database.
771 A successful Audit means that the current VNF configuration matches the latest APPC stored configuration.
773 A failed Audit indicates that the configurations do not match.
775 This command can be applied to any VNF type. The only restriction is that the VNF has been onboarded in self-service mode (which requires that the VNF supports a request to return the running configuration).
777 The Audit action does not require any payload parameters.
779 **NOTE:** Audit does not return a payload containing details of the comparison, only the Success/Failure status.
782 +------------------------------+------------------------------------------------------+
783 | **Target URL** | /restconf/operations/appc-provider-lcm:audit |
784 +------------------------------+------------------------------------------------------+
785 | **Action** | Audit |
786 +------------------------------+------------------------------------------------------+
787 | **Action-Identifiers** | vnf-id |
788 +------------------------------+------------------------------------------------------+
789 | **Payload Parameters** | See below |
790 +------------------------------+------------------------------------------------------+
791 | **Revision History** | Unchanged in this release. |
792 +------------------------------+------------------------------------------------------+
796 +----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+----------------------------------+
797 | **Parameter** | **Description** | **Required?** | **Example** |
798 +======================+===========================================================================================================================================================+=====================+==================================+
799 | publish-config | \* If the publish\-config field is set to Y in the payload, then always send the running configuration from the VNF using the message bus | Yes | "publish-config": "<Y\|N>" |
801 | | \* If the publish\-config field is set to N in the payload, then: | | |
803 | | - If the result of the audit is ‘match’ (latest APPC config and the running config match), do not send the running configuration | | |
805 | | - If the result of the audit is ‘no match’, then send the running configuration | | |
806 +----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+----------------------------------+
811 The audit response returns an indication of success or failure of the audit. If a new configuration is uploaded to the APPC database, the payload contains the ‘upload\_config\_id’ and values for any records created. In addition, the configuration is sent to the bus which may be received by an external configuration storage system.
817 The CheckLock command returns true if the specified VNF is locked; otherwise, false is returned.
819 A CheckLock command is deemed successful if the processing completes without error, whether the VNF is locked or not. The command returns only a single response with a final status.
821 Note that APPC locks the target VNF during any VNF command processing, so a VNF can have a locked status even if no Lock command has been explicitly called.
823 The CheckLock command returns a specific response structure that extends the default LCM response.
825 The CheckLock action does not require any payload parameters.
827 +------------------------------+--------------------------------------------------------+
828 | **Target URL** | /restconf/operations/appc-provider-lcm:checklock |
829 +------------------------------+--------------------------------------------------------+
830 | **Action** | CheckLock |
831 +------------------------------+--------------------------------------------------------+
832 | **Action-Identifiers** | vnf-id |
833 +------------------------------+--------------------------------------------------------+
834 | **Payload Parameters** | None |
835 +------------------------------+--------------------------------------------------------+
836 | **Revision History** | Unchanged in this release. |
837 +------------------------------+--------------------------------------------------------+
842 The CheckLock command returns a customized version of the LCM
846 +---------------------+---------------------------------------------------------------------------------------+--------------------+---------------------------------+
847 | **Parameter** | **Description** | **Required** | **?Example** |
848 +=====================+=======================================================================================+====================+=================================+
849 | locked | "TRUE"\|"FALSE" - returns TRUE if the specified VNF is locked, otherwise FALSE. | No | "locked": "<TRUE\|FALSE>" |
850 +---------------------+---------------------------------------------------------------------------------------+--------------------+---------------------------------+
858 "code": <RESULT_CODE>, "message": "<RESULT_MESSAGE>"
861 "api-ver": "<API_VERSION>",
862 "request-id": "<ECOMP\_REQUEST_ID>", "originator-id":
864 "sub-request-id": "<ECOMP_SUBREQUEST_ID>", "timestamp":
865 "2016-08-08T23:09:00.11Z",
867 "ttl": <TTL_VALUE>, "force": "<TRUE|FALSE>",
868 "mode": "<EXCLUSIVE|NORMAL>"
871 "locked": "<TRUE|FALSE>"
878 Configure a VNF or a VNFC on the VNF after instantiation.
880 A set of configuration parameter values specified in the configuration template is included in the request. Other configuration parameter values may be obtained from an external system.
882 A successful Configure request returns a success response.
884 A failed Configure action returns a failure response and the specific failure messages in the response block.
886 +------------------------------+--------------------------------------------------------+
887 | **Target URL** | /restconf/operations/appc-provider-lcm:configure |
888 +------------------------------+--------------------------------------------------------+
889 | **Action** | Configure |
890 +------------------------------+--------------------------------------------------------+
891 | **Action-Identifiers** | vnf-id |
892 +------------------------------+--------------------------------------------------------+
893 | **Payload Parameters** | See below |
894 +------------------------------+--------------------------------------------------------+
895 | **Revision History** | Unchanged in this release. |
896 +------------------------------+--------------------------------------------------------+
900 +---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
901 | **Payload Parameter** | **Description** | **Required?** | **Example** |
903 +=================================+================================================================================================================================================================================================================+=====================+=================================================================+
904 | request-parameters | vnf-host-ip-address: optional if Netconf or other direct interface to the VNF. If not provided, APPC will look for the host-ip-address in the A&AI VNF oam ipv4 address field. | No | |
906 | | vnfc-type: must be included if template is vnfc specific | | "{ \\"request-parameters |
908 | | | | \\"vnf-host-ip-address\\": |
909 | | | | \\”value\\”, |
910 | | | | \\”vnfc-type\\”: \\”value\\”’ |
921 +---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+ |
922 | configuration-parameters | A set of instance specific configuration parameters should be specified. If provided, APPC replaces variables in the configuration template with the values supplied. | No | \\"configuration- parameters\\": {\\"<CONFIG- PARAMS>\\"} |
923 +---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
929 The Configure response returns an indication of success or failure of the request.
931 **Success:** A successful Configure returns a success status code 400.
932 **Failure:** A failed Configure returns a failure code 401 and the failure message.
934 If successful, the return payload contains the ‘upload_config_id’ and values for any records created in the APPC DB. In addition, the configuration is sent to the ONAP Data Router bus which may be received by an external configuration storage system.
936 If APPC in unable to update A&AI with the VNFC records, a 501 intermediate error message returned prior to the final 400 or 401 success message.
941 Modifies the configuration on a VNF or VNFC in service.
943 This command is executed either directly on the VNF (such as for Netconf) or using an Ansible playbook or Chef cookbook.
947 +--------------------------+--------------------------------------------------------+
948 | **Target URL** | /restconf/operations/appc-provider-lcm:config-modify |
949 +--------------------------+--------------------------------------------------------+
950 | **Action** | ConfigModify |
951 +--------------------------+--------------------------------------------------------+
952 | **Action-Identifiers** | vnf-id |
953 +--------------------------+--------------------------------------------------------+
954 | **Payload Parameters** | request-parameters, configuration-parameters |
955 +--------------------------+--------------------------------------------------------+
956 | **Revision History** | Unchanged in this release. |
957 +--------------------------+--------------------------------------------------------+
959 Request Payload Parameters:
961 +-------------------------+----------------------------------------+-----------------+-------------------------------------------------------+
962 | **Payload Parameter** | **Description** | **Required?** | **Example** |
963 +=========================+========================================+=================+=======================================================+
964 | request-parameters | vnf-host-ip-address: optional if | No | "payload": |
965 | | Netconf or other direct interface | | "{\\"request-parameters \\": |
966 | | to the VNF. If not provided, it is | | {\\"vnf-host-ip-address\\": \\”value\\", |
967 | | obtained from A&AI | | \\”vnfc-type\\”: \\”value\\” |
970 | | vnfc-type: must be included if template| | |
971 | | is vnfc specific | | |
972 | | | | \\"configuration- parameters\\": {\\"name1\\": |
973 | | | | \\”value1\\”,\\"name2\\": |
974 | | | | \\”value2\\” |
977 +-------------------------+----------------------------------------+-----------------+ |
978 | configuration- | A set of instance specific | No | |
979 | parameters | configuration parameters should | | |
980 | | be specified. | | |
981 +-------------------------+----------------------------------------+-----------------+-------------------------------------------------------+
991 "timestamp": "2017-10-25T11:10:04.244Z",
993 "originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced200",
994 "request-id": "664be3d2-6c12-4f4b-a3e7-c349acced200",
995 "sub-request-id": "1",
1001 "action": "ConfigModify",
1002 "action-identifiers": {
1003 "vnf-id": "<VNF_ID>"
1005 "payload": "{ \"config-url\":\"5f517fd4-bf3d-43bc-8147-1b61776d7ded\",
1006 \"config-json\": \"{\"pg-streams\":{
1007 \"pg-stream\": [{ \"id\":\"fw_udp1\", \"is-enabled\": \"true\" },
1008 {\"id\": \"fw_udp2\", \"is-enabled\":\"true\" },
1009 { \"id\": \"fw_udp3\",\"is-enabled\": \"true\" },
1010 { \"id\":\"fw_udp4\", \"is-enabled\": \"true\" },
1011 {\"id\": \"fw_udp5\", \"is-enabled\":\"true\" }]}}"
1017 ConfigModify Response
1018 ^^^^^^^^^^^^^^^^^^^^^
1020 **Success:** A successful ConfigModify returns a success status code 400.
1022 If successful, the return payload contains the ‘upload_config_id’ and values associated with the configuration stored in the APPC DB. In addition, the configuration is sent to the message bus which may be received by an external configuration storage system.
1024 **Failure:** A failed ConfigModify returns a failure code 401 and the failure message.
1029 Stores the current VNF configuration on a local file system (not in APPC). This is limited to Ansible and Chef. There can only be one stored configuration (if there is a previously saved configuration, it is replaced with the current VNF configuration).
1031 A successful ConfigBackup request returns a success response.
1033 A failed ConfigBackup action returns a failure response code and the specific failure message in the response block.
1035 +------------------------------+-----------------------------------------------------------+
1036 | **Target URL** | /restconf/operations/appc-provider-lcm:config-backup |
1037 +------------------------------+-----------------------------------------------------------+
1038 | **Action** | ConfigBackup |
1039 +------------------------------+-----------------------------------------------------------+
1040 | **Action-Identifiers** | Vnf-id |
1041 +------------------------------+-----------------------------------------------------------+
1042 | **Payload Parameters** | See below |
1043 +------------------------------+-----------------------------------------------------------+
1044 | **Revision History** | Unchanged in this release. |
1045 +------------------------------+-----------------------------------------------------------+
1049 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-------------------------------------------------------------------+
1050 | **Payload Parameter** | **Description** | **Required?** | **Example** |
1051 +=================================+====================================================================================================================================================================================+=====================+===================================================================+
1052 | request-parameters | Not used. This request is limited to Ansible and Chef only. | No | "payload": \\"configuration-parameters\\": {\\"<CONFIG-PARAMS>\\"}|
1058 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+ |
1059 | configuration-parameters | A set of instance specific configuration parameters should be specified, as required by the Chef cookbook or Ansible playbook. | No | |
1060 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-------------------------------------------------------------------+
1062 ConfigBackup Response
1063 ^^^^^^^^^^^^^^^^^^^^^
1065 The ConfigBackup response returns an indication of success or failure of the request.
1067 **Success:** A successful ConfigBackup returns a success status code 400.
1068 **Failure:** A failed ConfigBackup returns a failure code 401 and the failure message.
1074 Applies a previously saved configuration to the active VNF configuration. This is limited to Ansible and Chef. There can only be one stored configuration.
1076 A successful ConfigRestore request returns a success response.
1078 A failed ConfigRestore action returns a failure response code and the specific failure message in the response block.
1080 +------------------------------+------------------------------------------------------------------------------------------+
1081 | **Target URL** | /restconf/operations/appc-provider-lcm:config-restore |
1082 +------------------------------+------------------------------------------------------------------------------------------+
1083 | **Action** | ConfigRestore |
1084 +------------------------------+------------------------------------------------------------------------------------------+
1085 | **Action-Identifiers** | Vnf-id |
1086 +------------------------------+------------------------------------------------------------------------------------------+
1087 | **Payload Parameters** | See below |
1088 +------------------------------+------------------------------------------------------------------------------------------+
1089 | **Revision History** | Unchanged in this release. |
1090 +------------------------------+------------------------------------------------------------------------------------------+
1094 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1095 | **Parameter** | **Description** | **Required?** | **Example** |
1096 +=================================+====================================================================================================================================================================================+=====================+=================================================================+
1097 | request-parameters | Not used. This request is limited to Ansible and Chef only. | No | "payload": |
1098 | | | | \\"configuration-parameters\\": {\\"<CONFIG- PARAMS>\\"} |
1099 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+ |
1100 | configuration-parameters | A set of instance specific configuration parameters should be specified, as required by the Chef cookbook or Ansible playbook. | No | |
1101 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1103 ConfigRestore Response
1104 ^^^^^^^^^^^^^^^^^^^^^^
1106 **Success:** A successful ConfigRestore returns a success status code 400.
1108 If successful, the return payload contains the ‘upload_config_id’ and values associated with the configuration stored in the APPC DB. In addition, the configuration is sent to the ONAP Data Router bus which may be received by an external configuration storage system.
1110 **Failure:** A failed ConfigRestore returns a failure code 401 and the failure message.
1117 The ConfigScaleOut command is used to apply any actions on a VNF as part of a ScaleOut flow. Actions could include updating the VNF configuration or running a set of other tasks.
1119 The ConfigScaleOut action can have multiple APPC templates associated with it. APPC retrieves the VfModuleModelName from A&AI (model.model-vers.model-name), which is used as the unique identifier to select the correct APPC template.
1120 APPC creates or updates VNFC records in A&AI for the newly instantiated VM’s. The orchestration-status of the VNFC’s is set to CONFIGURED.
1122 This action is supported via the Netconf (limited to configuration changes), Chef, and Ansible protocols.
1126 +------------------------------+------------------------------------------------------------------------------------------+
1127 | **Target URL** | /restconf /operations/appc-provider-lcm:config-scale-out |
1128 +------------------------------+------------------------------------------------------------------------------------------+
1129 | **Action** | ConfigScaleOut |
1130 +------------------------------+------------------------------------------------------------------------------------------+
1131 | **Action-Identifiers** | Vnf-id |
1132 +------------------------------+------------------------------------------------------------------------------------------+
1133 | **Payload Parameters** | See below |
1134 +------------------------------+------------------------------------------------------------------------------------------+
1135 | **Revision History** | New in Beijing |
1136 +------------------------------+------------------------------------------------------------------------------------------+
1140 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------------+
1141 | **Payload Parameter** | **Description** | **Required?** | **Example** |
1142 +=================================+==================================================================================================================================================================+=====================+=============================================+
1143 | request-parameters | vnf-host-ip-address: optional if Netconf or other direct interface to the VNF. If not provided, the vnf-host-ip-address will be obtained from A&AI. | No | "payload": |
1144 | +------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+ "{\\"request-parameters \\": |
1145 | | vf-module-id: used to determine the A&AI VM inventory associated with ConfigScaleOut. | Yes | { |
1146 | +------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+ \\"vnf-host-ip-address\\": |
1147 | | controller-template-id: optional. This is a unique identifier that will identify the template associated with the ConfigScaleOut. | | \\”value\\”, |
1148 | | Will be needed if A&AI does not contain the template identifier. | No | \\”vf-module-id\\”: \\”value\\”, |
1149 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+ \\”controller-template-id\\”: |
1150 | configuration-parameters | A set of instance specific configuration parameters should be specified. If provided, APP-C replaces variables in the configuration template with the | No | \\”value\\” |
1151 | | values supplied. | | } |
1153 | | | | \\"configuration-parameters\\": |
1154 | | | | {\\"<CONFIG- PARAMS>\\"} |
1156 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------------+
1158 ConfigScaleOut Response
1159 ^^^^^^^^^^^^^^^^^^^^^^^
1163 - A successful ConfigScaleOut returns a success status code 400 when completed.
1167 - A failed ConfigScaleOut returns a failure code 401 and the failure message.
1168 - If the ConfigScaleOut is successfully performed on the VNF but there is a failure to update A&AI inventory, an intermediate failure message with failure code 501 is returned prior to the final 400 success message.
1174 The DetachVolume command detaches a cinder volume from a VM via an Openstack command.
1176 Cinder is a Block Storage service for OpenStack. It's designed to present storage resources to end users that can be consumed by the OpenStack Compute Project (Nova). The short description of Cinder is that it virtualizes the management of block storage devices and provides end users with a self-service API to request and consume those resources without requiring any knowledge of where their storage is actually deployed or on what type of device.
1178 NOTE: The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1180 +--------------------------+----------------------------------------------------------+
1181 | **Target URL** | /restconf/operations/appc-provider-lcm:detach-volume |
1182 +--------------------------+----------------------------------------------------------+
1183 | **Action** | DetachVolume |
1184 +--------------------------+----------------------------------------------------------+
1185 | **Action-Identifiers** | vnf-id, vserver-id |
1186 +--------------------------+----------------------------------------------------------+
1187 | **Payload Parameters** | See table |
1188 +--------------------------+----------------------------------------------------------+
1189 | **Revision History** | New in Beijing |
1190 +--------------------------+----------------------------------------------------------+
1192 Request Payload Parameters:
1194 +-----------------------------+----------------------------------------------------------------+--------------------+--------------------------------------------------------------------------------------------------------------------------------+
1195 | **Payload Parameter** | **Description** | **Required** | **Example** |
1196 +=============================+================================================================+====================+================================================================================================================================+
1197 | volumeId | The UUID of the volume to detach. | Yes | "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803" |
1198 +-----------------------------+----------------------------------------------------------------+--------------------+--------------------------------------------------------------------------------------------------------------------------------+
1199 | vm-id | The self- link URL of the VM. | Yes | "vm-id": http://135.25.246.162:8774/v2/64af07e991424b8e9e54eca27d5c0d48/servers/b074cd1b-8d53-412e-a102-351cc51ac10a" |
1200 +-----------------------------+----------------------------------------------------------------+--------------------+--------------------------------------------------------------------------------------------------------------------------------+
1201 | Identity-url | The identity URL used to access the resource | Yes | "identity-url": "http://135.25.246.162:5000/v2.0" |
1202 +-----------------------------+----------------------------------------------------------------+--------------------+--------------------------------------------------------------------------------------------------------------------------------+
1204 DetachVolume Response:
1205 ^^^^^^^^^^^^^^^^^^^^^^
1207 **Success:** A successful DetachVolume returns a success status code 400.
1209 **Failure:** A failed DetachVolume returns a failure code 401 and the failure message. Failure messages can include:
1220 The Distribute Traffic LCM action is used to distribute traffic across different instances of VNF, VNFC or VM.
1221 The entity for which Distribute Traffic LCM action is being invoked is called an anchor point that is responsible for final
1222 realization of request. Parameters present in configuration file specify where and how traffic should be distributed,
1223 including: traffic destination points like VNFs, VNFCs or VMs; distribution weights; rollback strategy.
1224 Format of configuration file is specific to each VNF type.
1226 This command is executed using an Ansible playbook or Chef cookbook.
1230 +--------------------------+--------------------------------------------------------------+
1231 | **Target URL** | /restconf/operations/appc-provider-lcm:distribute-traffic |
1232 +--------------------------+--------------------------------------------------------------+
1233 | **Action** | DistributeTraffic |
1234 +--------------------------+--------------------------------------------------------------+
1235 | **Action-identifiers** | vnf-id, vserver-id, vnfc-name |
1236 +--------------------------+--------------------------------------------------------------+
1237 | **Payload Parameters** | See below |
1238 +--------------------------+--------------------------------------------------------------+
1239 | **Revision History** | New in Casablanca |
1240 +--------------------------+--------------------------------------------------------------+
1242 Request Payload Parameters:
1244 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------------------------------------------+
1245 | **Parameter** | **Description** | **Required?** | **Example** |
1246 +=================================+==================================================================================================================================================================+=====================+===========================================================================+
1247 | configuration-parameters | A set of instance specific configuration parameters should be specified. If provided, APP-C replaces variables in the configuration template with the | No | "payload": |
1248 | | values supplied. The parameters are associated with request template defined with CDT | | "{\\"configuration-parameters\\":{ |
1249 | | | | \\"config_file_name\\":\\"/opt/onap/ccsdk/Playbooks/dt/config\\", |
1250 | | | | \\"playbook\\":\\"ansible_vfw_distributetraffic@0.00.yml\\", |
1251 | | | | \\"node_list\\":\\"[vpkg-1]\\" |
1254 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------------------------------------------+
1256 Exemplary CDT template for Ansible protocol::
1259 "PlaybookName": ${playbook},
1260 "NodeList": ${node_list},
1262 "ConfigFileName": "${config_file_name}"
1267 EnvParameters includes protocol specific parameters, here with name of configuration file having additional parameters for Ansible playbook or Chef cookbook.
1268 Distribute Traffic config file can have such parameters like traffic destinations, distribution weights or rollback strategy.
1270 DistributeTraffic Response
1271 ^^^^^^^^^^^^^^^^^^^^^^^^^^
1273 The response does not include any payload parameters.
1275 **Success:** A successful distribute returns a success status code 400 after all traffic has been distributed.
1277 **Failure:** A failed distribute returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
1282 Evacuates a specified VM from its current host to another. After a successful evacuate, a rebuild VM is performed if a snapshot is available (and the VM boots from a snapshot).
1284 The host on which the VM resides needs to be down.
1286 If the target host is not specified in the request, it will be selected by relying on internal rules to evacuate. The Evacuate action will fail if the specified target host is not UP/ENABLED.
1288 After Evacuate, the rebuild VM can be disabled by setting the optional `rebuild-vm` parameter to false.
1290 A successful Evacuate action returns a success response. A failed Evacuate action returns a failure.
1292 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1294 +------------------------------+-------------------------------------------------------------------------+
1295 | **Target URL** | /restconf/operations/appc-provider-lcm:evacuate |
1296 +------------------------------+-------------------------------------------------------------------------+
1297 | **Action** | Evacuate |
1298 +------------------------------+-------------------------------------------------------------------------+
1299 | **Action-identifiers** | Vnf-id, vserver-id |
1300 +------------------------------+-------------------------------------------------------------------------+
1301 | **Payload Parameters** | vm-id, identity-url, tenant-id, rebuild-vm, targethost-id |
1302 +------------------------------+-------------------------------------------------------------------------+
1303 | **Revision History** | Unchanged in this release. |
1304 +------------------------------+-------------------------------------------------------------------------+
1308 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
1309 | **Parameter** | **Description** | **Required?** | **Example** |
1310 +======================+==================================================================================================================================================================================+=====================+=======================================+
1311 | vm-id | The unique identifier (UUID) of the resource. For backwards- compatibility, this can be the self-link URL of the VM. | Yes | "payload": |
1312 | | | | "{\\"vm-id\\": \\"<VM-ID> |
1314 | | | | \\"identity-url\\": |
1315 | | | | \\"<IDENTITY-URL>\\", |
1316 | | | | \\"tenant-id\\": \\"<TENANT-ID> |
1318 | | | | \\"rebuild-vm\\": \\"false\\", |
1319 | | | | \\"targethost-id\\": |
1320 | | | | \\"nodeblade7\\"}" |
1321 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+ |
1322 | identity-url | The identity URL used to access the resource | Yes | |
1323 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+ |
1324 | tenant-id | The id of the provider tenant that owns the resource | Yes | |
1325 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+ |
1326 | rebuild- vm | A boolean flag indicating if a Rebuild is to be performed after an Evacuate. The default action is to do a Rebuild. It can be switched off by setting the flag to "false". | No | |
1327 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+ |
1328 | targethost- id | A target hostname indicating the host the VM is evacuated to. By default, the cloud determines the target host. | No | |
1329 +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+---------------------------------------+
1333 **Success:** A successful Evacuate returns a success status code 400.
1334 **Failure:** A failed Evacuate returns a failure code 401 and the failure message.
1341 This command runs a VNF health check and returns the result.
1343 The VNF level HealthCheck is a check over the entire scope of the VNF. The VNF must be 100% healthy, ready to take requests and provide services, with all VNF required capabilities ready to provide services and with all active and standby resources fully ready with no open MINOR, MAJOR or CRITICAL alarms.
1346 +------------------------------+-----------------------------------------------------------+
1347 | **Target URL** | /restconf/operations/appc-provider-lcm:health-check |
1348 +------------------------------+-----------------------------------------------------------+
1349 | **Action** | HealthCheck |
1350 +------------------------------+-----------------------------------------------------------+
1351 | **Action-Identifiers** | Vnf-id |
1352 +------------------------------+-----------------------------------------------------------+
1353 | **Payload Parameters** | See below |
1354 +------------------------------+-----------------------------------------------------------+
1355 | **Revision History** | Unchanged in this release |
1356 +------------------------------+-----------------------------------------------------------+
1359 Request Payload Parameters:
1361 +---------------------+-----------------------------------+---------------------+-------------------------------------+
1362 | **Parameter** | **Description** | **Required?** | **Example** |
1363 +=====================+===================================+=====================+=====================================+
1364 | request-parameters | host-ip-address - | No | "payload": |
1365 | | Required only if REST | | "{\\"request-parameters \\": |
1366 | | service. This is the ip | | "{\\"host-ip-address\\": |
1367 | | address associated with the | | \\"10.222.22.2\\" }" |
1368 | | VM running the REST | | |
1370 +---------------------+-----------------------------------+---------------------+-------------------------------------+
1373 HealthCheck Response
1374 ^^^^^^^^^^^^^^^^^^^^
1376 **Success:** The HealthCheck returns a 400 success message if the test completes. A JSON payload is returned indicating state (healthy, unhealthy), scope identifier, time-stamp and one or more blocks containing info and fault information.
1381 "identifier": "scope represented",
1383 "time": "01-01-1000:0000"
1388 "identifier": "scope represented",
1389 "state": "unhealthy",
1391 "info": "System threshold exceeded details",
1395 "cpuThreshold": 0.45
1398 "time": "01-01-1000:0000"
1401 **Failure:** If the VNF is unable to run the HealthCheck. APP-C returns the error code 401 and the http error message.
1407 Use the Lock command to ensure exclusive access during a series of critical LCM commands.
1409 The Lock action will return a successful result if the VNF is not already locked or if it was locked with the same request-id, otherwise the action returns a response with a reject status code.
1411 Lock is a command intended for APPC and does not execute an actual VNF command. Instead, lock will ensure that ONAP is granted exclusive access to the VNF.
1413 When a VNF is locked, any subsequent sequential commands with same request-id will be accepted. Commands associated with other request-ids will be rejected.
1415 APPC locks the target VNF during any VNF command processing. If a lock action is then requested on that VNF, it will be rejected because the VNF was already locked, even though no actual lock command was explicitly invoked.
1417 The lock automatically clears after 900 seconds (15 minutes). This 900 second value can be adjusted in the properties file
1419 +------------------------------+---------------------------------------------------+
1420 | **Target URL** | /restconf/operations/appc-provider-lcm:lock |
1421 +------------------------------+---------------------------------------------------+
1422 | **Action** | Lock |
1423 +------------------------------+---------------------------------------------------+
1424 | **Action-Identifier** | Vnf-id |
1425 +------------------------------+---------------------------------------------------+
1426 | **Payload Parameters** | None |
1427 +------------------------------+---------------------------------------------------+
1428 | **Revision History** | Unchanged in this release. |
1429 +------------------------------+---------------------------------------------------+
1434 The Lock returns a 400 Success response if the Lock is successfully applied.
1436 The Lock returns a 401 Failure response with the failure message if the Lock is not successful.
1442 Migrates a running target VM from its current host to another.
1444 A destination node will be selected by relying on internal rules to migrate. Migrate calls a command in order to perform the operation.
1446 Migrate suspends the guest virtual machine, and moves an image of the guest virtual machine's disk to the destination host physical machine. The guest virtual machine is then resumed on the destination host physical machine and the disk storage that it used on the source host physical machine is freed.
1448 The migrate action will leave the VM in the same Openstack state the VM had been in prior to the migrate action. If a VM was stopped before migration, a separate VM-level restart command would be needed to restart the VM after migration.
1451 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1454 +--------------------------------+-----------------------------------------------------------------------------------------------+
1455 | **Input Block** | api-ver should be set to 2.00 for current version of Migrate |
1456 +--------------------------------+-----------------------------------------------------------------------------------------------+
1457 | **Target URL** | /restconf/operations/appc-provider-lcm:migrate |
1458 +--------------------------------+-----------------------------------------------------------------------------------------------+
1459 | **Action** | Migrate |
1460 +--------------------------------+-----------------------------------------------------------------------------------------------+
1461 | **Action-Identifiers** | Vnf-id, vserver-id |
1462 +--------------------------------+-----------------------------------------------------------------------------------------------+
1463 | **Payload Parameters** | vm-id, identity-url, tenant-id |
1464 +--------------------------------+-----------------------------------------------------------------------------------------------+
1465 | **Revision History** | Unchanged in this release. |
1466 +--------------------------------+-----------------------------------------------------------------------------------------------+
1470 +---------------------+-------------------------------------------------------------------------+---------------------+-----------------------------------------------+
1471 | **Parameter** | **Description** | **Required?** | **Example** |
1472 +=====================+=========================================================================+=====================+===============================================+
1473 | vm-id | The unique identifier (UUID) of | Yes | |
1474 | | the resource. For backwards- compatibility, this can be the self- | | |
1475 | | link URL of the VM. | | "payload": |
1476 | | | | "{\\"vm-id\\": \\"<VM-ID>\\", |
1477 | | | | \\"identity-url\\": |
1478 | | | | \\"<IDENTITY-URL>\\", |
1479 +---------------------+-------------------------------------------------------------------------+---------------------+ \\"tenant-id\\": \\"<TENANT-ID>\\"}" |
1480 | identity- url | The identity url used to access the resource | Yes | |
1482 +---------------------+-------------------------------------------------------------------------+---------------------+ |
1483 | tenant-id | The id of the provider tenant that owns the resource | Yes | |
1484 +---------------------+-------------------------------------------------------------------------+---------------------+-----------------------------------------------+
1490 **Success:** A successful Migrate returns a success status code 400.
1492 **Failure:** A failed Migrate returns a failure code 401 and the failure message.
1498 The QuiesceTraffic LCM action gracefully stops the traffic on the VNF (i.e., no service interruption for traffic in progress). All application processes are assumed to be running but no traffic is being processed.
1500 This command is executed using an Ansible playbook or Chef cookbook.
1504 +--------------------------+----------------------------------------------------------+
1505 | **Target URL** | /restconf/operations/appc-provider-lcm:quiesce-traffic |
1506 +--------------------------+----------------------------------------------------------+
1507 | **Action** | QuiesceTraffic |
1508 +--------------------------+----------------------------------------------------------+
1509 | **Action-identifiers** | vnf-id |
1510 +--------------------------+----------------------------------------------------------+
1511 | **Payload Parameters** | operations-timeout |
1512 +--------------------------+----------------------------------------------------------+
1513 | **Revision History** | New in Beijing |
1514 +--------------------------+----------------------------------------------------------+
1516 Request Payload Parameters:
1518 +-----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+------------------------------------------------+
1519 | **Parameter** | **Description** | **Required?** | **Example** |
1520 +=======================+======================================================================================================================================================================================================+=====================+================================================+
1521 | operations-timeout | This is the maximum time in seconds that the command will run before APPC returns a timeout error. If the APPC template has a lower timeout value, the APPC template timeout value is applied. | Yes | "payload": |
1522 | | | | "{\\"operations-timeout\\": \\"3600\\"}” |
1523 +-----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+------------------------------------------------+
1525 QuiesceTraffic Response
1526 ^^^^^^^^^^^^^^^^^^^^^^^
1528 The response does not include any payload parameters.
1530 **Success:** A successful quiesce returns a success status code 400 after all traffic has been quiesced.
1532 If a quiesce command is executed and the traffic has been previously quiesced, it should return a success status.
1534 **Failure:** A failed quiesce returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
1536 A specific error message is returned if there is a timeout error.
1541 The Reboot is used to reboot a VM.
1544 There are two types supported: HARD and SOFT. A SOFT reboot attempts a graceful shutdown and restart of the server. A HARD reboot attempts a forced shutdown and restart of the server. The HARD reboot corresponds to the power cycles of the server.
1546 **NOTE:** The command implementation is based on OpenStack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1548 +------------------------------+-----------------------------------------------------------------------------------------------+
1549 | **Input Block** | api-ver should be set to 2.00 for current version of Reboot |
1550 +------------------------------+-----------------------------------------------------------------------------------------------+
1551 | **Target URL** | /restconf/operations/appc-provider-lcm:reboot |
1552 +------------------------------+-----------------------------------------------------------------------------------------------+
1553 | **Action** | Reboot |
1554 +------------------------------+-----------------------------------------------------------------------------------------------+
1555 | **Action-identifiers** | Vnf-id, vserver-id |
1556 +------------------------------+-----------------------------------------------------------------------------------------------+
1557 | **Payload Parameters** | See table below |
1558 +------------------------------+-----------------------------------------------------------------------------------------------+
1559 | **Revision History** | New in R3 release. |
1560 +------------------------------+-----------------------------------------------------------------------------------------------+
1564 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
1565 | **Parameter** | **Description** | **Required?** | **Example** |
1566 +=================+===============================================+=================+=========================================+
1567 | type | The type of reboot. Values are | No | |
1568 | | HARD and SOFT. If not | | |
1569 | | specified, SOFT reboot is | | "payload": |
1570 | | performed. | | "{\\"type\\": \\"HARD\\", |
1571 | | | | \\"vm-id\\": \\"<VM-ID>\\", |
1572 | | | | \\"identity-url\\": |
1573 | | | | \\"<IDENTITY-URL>\\" |
1575 +-----------------+-----------------------------------------------+-----------------+ |
1576 | vm-id | The unique identifier (UUID) of | Yes | |
1577 | | the resource. For backwards- | | |
1578 | | compatibility, this can be the self- | | |
1579 | | link URL of the VM. | | |
1584 +-----------------+-----------------------------------------------+-----------------+ |
1585 | identity-url | The identity url used to access the | Yes | |
1587 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
1592 **Success:** A successful Rebuild returns a success status code 400.
1594 **Failure:** A failed Rebuild returns a failure code 401 and the failure message.
1599 Recreates a target VM instance to a known, stable state.
1601 Rebuild calls an OpenStack command immediately and therefore does not expect any prerequisite operations to be performed, such as shutting off a VM.
1603 Rebuild VM uses the snapshot provided by the snapshot-id (if provided). If not provided, the latest snapshot is used. If there are no snapshots, it uses the (original) Glance image.
1605 APPC rejects a rebuild request if it determines the VM boots from a Cinder Volume
1608 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1611 +------------------------------+-----------------------------------------------------------------------------------------------+
1612 | **Input Block** | api-ver should be set to 2.00 for current version of Rebuild |
1613 +------------------------------+-----------------------------------------------------------------------------------------------+
1614 | **Target URL** | /restconf/operations/appc-provider-lcm:rebuild |
1615 +------------------------------+-----------------------------------------------------------------------------------------------+
1616 | **Action** | Rebuild |
1617 +------------------------------+-----------------------------------------------------------------------------------------------+
1618 | **Action-identifiers** | Vnf-id, vserver-id |
1619 +------------------------------+-----------------------------------------------------------------------------------------------+
1620 | **Payload Parameters** | See table below |
1621 +------------------------------+-----------------------------------------------------------------------------------------------+
1622 | **Revision History** | Unchanged in this release. |
1623 +------------------------------+-----------------------------------------------------------------------------------------------+
1628 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
1629 | **Parameter** | **Description** | **Required?** | **Example** |
1630 +=================+===============================================+=================+=========================================+
1631 | vm-id | The unique identifier (UUID) of | Yes | |
1632 | | the resource. For backwards- | | |
1633 | | compatibility, this can be the self- | | "payload": |
1634 | | link URL of the VM. | | "{\\"vm-id\\": \\"<VM-ID> |
1636 | | | | \\"identity-url\\": |
1637 | | | | \\"<IDENTITY-URL>\\", |
1638 | | | | \\"tenant-id\\": \\"<TENANT- ID>\\"}" |
1639 +-----------------+-----------------------------------------------+-----------------+ \\"snapshot-id\\": \\"<SNAPSHOT- ID>\\" |
1640 | identity- url | The identity url used to access the | Yes | }" |
1642 +-----------------+-----------------------------------------------+-----------------+ |
1643 | tenant-id | The id of the provider tenant that owns | Yes | |
1644 | | the resource. | | |
1645 +-----------------+-----------------------------------------------+-----------------+ |
1646 | snapshot-id | The snapshot-id of a previously saved image. | No | |
1647 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
1652 **Success:** A successful Rebuild returns a success status code 400.
1654 **Failure:** A failed Rebuild returns a failure code 401 and the failure message.
1659 Use the Restart command to restart a VM.
1661 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1662 | **Input Block** | api-ver should be set to 2.00 for current version of Restart |
1663 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1664 | **Target URL** | /restconf/operations/appc-provider-lcm:restart |
1665 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1666 | **Action** | Restart |
1667 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1668 | **Action-identifiers** | vnf-id and vserver-id are required |
1669 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1670 | **Payload Parameters** | See table below |
1671 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1672 | **Revision History** | Unchanged in this release |
1673 +------------------------------+-----------------------------------------------------------------------------------------------------------------+
1675 Payload Parameters for **VM Restart**
1677 +---------------------+-------------------------------------------------------------------------+---------------------+------------------------------------+
1678 | **Parameter** | **Description** | **Required?** | **Example** |
1679 +=====================+=========================================================================+=====================+====================================+
1680 | vm-id | The unique identifier (UUID) of | Yes | |
1681 | | the resource. For backwards- compatibility, this can be the self- | | |
1682 | | link URL of the VM | | "payload": |
1683 | | | | "{\\"vm-id\\": \\"<VM-ID>\\", |
1684 | | | | \\"identity-url\\": |
1685 +---------------------+-------------------------------------------------------------------------+---------------------+ \\"<IDENTITY-URL>\\", |
1686 | identity- url | The identity url used to access the resource | No | \\"tenant-id\\": \\"<TENANT- |
1688 +---------------------+-------------------------------------------------------------------------+---------------------+ |
1689 | tenant-id | The id of the provider tenant that owns the resource | No | |
1690 +---------------------+-------------------------------------------------------------------------+---------------------+------------------------------------+
1695 The ResumeTraffic LCM action resumes processing traffic on a VNF that has been previously quiesced.
1697 This command is executed using an Ansible playbook or Chef cookbook.
1699 Request Structure: The payload does not have any parameters.
1701 +--------------------------+---------------------------------------------------------+
1702 | **Target URL** | /restconf/operations/appc-provider-lcm:resume-traffic |
1703 +--------------------------+---------------------------------------------------------+
1704 | **Action** | ResumeTraffic |
1705 +--------------------------+---------------------------------------------------------+
1706 | **Action-identifiers** | vnf-id |
1707 +--------------------------+---------------------------------------------------------+
1708 | **Payload Parameters** | |
1709 +--------------------------+---------------------------------------------------------+
1710 | **Revision History** | New in Beijing |
1711 +--------------------------+---------------------------------------------------------+
1713 ResumeTraffic Response
1714 ^^^^^^^^^^^^^^^^^^^^^^
1716 **Success:** A successful ResumeTraffic returns a success status code 400 after traffic has been resumed.
1718 If a ResumeTraffic command is executed and the traffic is currently being processed, it should return a success status
1720 **Failure:** A failed ResumeTraffic returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
1726 Creates a snapshot of a VM.
1728 The Snapshot command returns a customized response containing a reference to the newly created snapshot instance if the action is successful.
1730 This command can be applied to a VM in any VNF type. The only restriction is that the particular VNF should be built based on the generic heat stack.
1732 Note: Snapshot is not reliable unless the VM is in a stopped, paused, or quiesced (no traffic being processed) status. It is up to the caller to ensure that the VM is in one of these states.
1734 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1736 +------------------------------+-----------------------------------------------------------------------------------------------------+
1737 | **Target URL** | /restconf/operations/appc-provider-lcm:snapshot |
1738 +------------------------------+-----------------------------------------------------------------------------------------------------+
1739 | **Action** | Snapshot |
1740 +------------------------------+-----------------------------------------------------------------------------------------------------+
1741 | **Action-identifiers** | vnf-id, vserver-id |
1742 +------------------------------+-----------------------------------------------------------------------------------------------------+
1743 | **Payload Parameters** | vm-id, identity-url, tenant-id |
1744 +------------------------------+-----------------------------------------------------------------------------------------------------+
1745 | **Revision History** | Unchanged in this release. |
1746 +------------------------------+-----------------------------------------------------------------------------------------------------+
1750 +---------------------+-------------------------------------------------------------------------+---------------------+----------------------------------------+
1751 | **Parameter** | **Description** | **Required?** | **Example** |
1752 +=====================+=========================================================================+=====================+========================================+
1753 | vm-id | The self-link URL of the VM | Yes | |
1754 | | | | "payload": |
1755 | | | | "{\\"vm-id\\": \\"<VM-ID>\\", |
1756 | | | | \\"identity-url\\": |
1757 | | | | \\"<IDENTITY-URL>\\", |
1758 | | | | \\"tenant-id\\":\\"<TENANT-ID>\\"}"|
1759 +---------------------+-------------------------------------------------------------------------+---------------------+ |
1760 | identity- url | The identity url used to access the resource | No | |
1762 +---------------------+-------------------------------------------------------------------------+---------------------+ |
1763 | tenant-id | The id of the provider tenant that owns the resource | No | |
1764 +---------------------+-------------------------------------------------------------------------+---------------------+----------------------------------------+
1769 The Snapshot command returns an extended version of the LCM response.
1771 The Snapshot response conforms to the standard response format.
1777 Use the Start command to start a VM that is stopped.
1779 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1781 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1782 | **Target URL** | /restconf/operations/appc-provider-lcm:start |
1783 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1784 | **Action** | Start |
1785 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1786 | **Action-identifiers** | vnf-id and vserver-id are required |
1787 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1788 | **Payload Parameters** | See table below |
1789 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1790 | **Revision History** | Unchanged in this release |
1791 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1795 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
1796 | **Parameter** | **Description** | **Required?** | **Example** |
1797 +=================+===============================================+=================+=========================================+
1798 | vm-id | The unique identifier (UUID) of | Yes | |
1799 | | the resource. For backwards- | | "payload": |
1800 | | compatibility, this can be the self- | | "{\\"vm-id\\": \\"<VM-ID> |
1801 | | link URL of the VM. | | \\", |
1802 | | | | \\"identity-url\\": |
1803 | | | | \\"<IDENTITY-URL>\\", |
1804 | | | | \\"tenant-id\\": \\"<TENANT- ID>\\"}" |
1805 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
1806 | identity- url | The identity url used to access the | No | |
1808 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
1809 | tenant-id | The id of the provider tenant that owns | No | |
1810 | | the resource | | |
1811 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
1817 Starts the VNF application, if needed, after a VM is instantiated/configured or after VM start or restart. Supported using Chef cookbook or Ansible playbook only.
1819 A successful StartApplication request returns a success response.
1821 A failed StartApplication action returns a failure response code and the specific failure message in the response block.
1823 +------------------------------+---------------------------------------------------------------+
1824 | **Target URL** | /restconf/operations/appc-provider-lcm:start-application |
1825 +------------------------------+---------------------------------------------------------------+
1826 | **Action** | StartApplication |
1827 +------------------------------+---------------------------------------------------------------+
1828 | **Action-Identifiers** | Vnf-id |
1829 +------------------------------+---------------------------------------------------------------+
1830 | **Payload Parameters** | See table below |
1831 +------------------------------+---------------------------------------------------------------+
1832 | **Revision History** | Unchanged in this release. |
1833 +------------------------------+---------------------------------------------------------------+
1837 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1838 | **Payload Parameter** | **Description** | **Required?** | **Example** |
1839 +=================================+====================================================================================================================================================================================+=====================+=================================================================+
1840 | | | | "payload": |
1841 | configuration- parameters | A set of instance specific configuration parameters should be specified, as required by the Chef cookbook or Ansible playbook. | No | "{\\"configuration- parameters\\": {\\"<CONFIG- PARAMS>\\"} |
1842 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1844 StartApplication Response
1845 ^^^^^^^^^^^^^^^^^^^^^^^^^
1847 The StartApplication response returns an indication of success or failure of the request.
1852 Use the Stop command to stop a VM that was running.
1854 **NOTE:** The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.
1856 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1857 | **Target URL** | /restconf/operations/appc-provider-lcm:stop |
1858 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1859 | **Action** | Stop |
1860 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1861 | **Action-identifiers** | vnf-id and vserver-id are required. |
1862 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1863 | **Payload Parameters** | See table below |
1864 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1865 | **Revision History** | Unchanged in this release |
1866 +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
1870 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
1871 | **Parameter** | **Description** | **Required?** | **Example** |
1872 +=================+===============================================+=================+=========================================+
1873 | vm-id | The unique identifier (UUID) of | Yes | |
1874 | | the resource. For backwards- | | "payload": |
1875 | | compatibility, this can be the self- | | "{\\"vm-id\\": \\"<VM-ID> |
1876 | | link URL of the VM. | | \\", |
1877 | | | | \\"identity-url\\": |
1878 | | | | \\"<IDENTITY-URL>\\", |
1879 | | | | \\"tenant-id\\": \\"<TENANT- ID>\\"}" |
1880 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
1881 | identity- url | The identity url used to access the | No | |
1883 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
1884 | tenant-id | The id of the provider tenant that owns | No | |
1885 | | the resource | | |
1886 +-----------------+-----------------------------------------------+-----------------+-----------------------------------------+
1892 Stops the VNF application gracefully (not lost traffic), if needed, prior to a Stop command. Supported using Chef cookbook or Ansible playbook only.
1894 A successful StopApplication request returns a success response.
1896 A failed StopApplication action returns a failure response code and the specific failure message in the response block.
1898 +------------------------------+--------------------------------------------------------------+
1899 | **Target URL** | /restconf/operations/appc-provider-lcm:stop-application |
1900 +------------------------------+--------------------------------------------------------------+
1901 | **Action** | StopApplication |
1902 +------------------------------+--------------------------------------------------------------+
1903 | **Action-Identifiers** | Vnf-id |
1904 +------------------------------+--------------------------------------------------------------+
1905 | **Payload Parameters** | See table below |
1906 +------------------------------+--------------------------------------------------------------+
1907 | **Revision History** | Unchanged in this release |
1908 +------------------------------+--------------------------------------------------------------+
1912 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1913 | **Payload Parameter** | **Description** | **Required?** | **Example** |
1914 +=================================+====================================================================================================================================================================================+=====================+=================================================================+
1915 | configuration- parameters | A set of instance specific configuration parameters should be specified, as required by the Chef cookbook or Ansible playbook. | No | "payload": |
1916 | | | | \\"configuration- parameters\\": {\\"<CONFIG- PARAMS>\\"} |
1917 +---------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------+-----------------------------------------------------------------+
1920 StopApplication Response
1921 ^^^^^^^^^^^^^^^^^^^^^^^^
1923 The StopApplication response returns an indication of success or failure of the request.
1928 The Sync action updates the current configuration in the APPC store with the running configuration from the device.
1930 A successful Sync returns a success status.
1932 A failed Sync returns a failure response status and failure messages in the response payload block.
1934 This command can be applied to any VNF type. The only restriction is that the VNF has been onboarded in self-service mode (which requires that the VNF supports a request to return the running configuration).
1936 +------------------------------+---------------------------------------------------+
1937 | **Target URL** | /restconf/operations/appc-provider-lcm:sync |
1938 +------------------------------+---------------------------------------------------+
1939 | **Action** | Sync |
1940 +------------------------------+---------------------------------------------------+
1941 | **Action-identifiers** | Vnf-id |
1942 +------------------------------+---------------------------------------------------+
1943 | **Payload Parameters** | None |
1944 +------------------------------+---------------------------------------------------+
1945 | **Revision History** | Unchanged in this release. |
1946 +------------------------------+---------------------------------------------------+
1951 Run the Unlock command to release the lock on a VNF and allow other clients to perform LCM commands on that VNF.
1953 Unlock is a command intended for APPC and does not execute an actual VNF command. Instead, unlock will release the VNF from the exclusive access held by the specific request-id allowing other requests for the VNF to be accepted.
1955 The Unlock command will result in success if the VNF successfully unlocked or if it was already unlocked, otherwise commands will be rejected.
1957 The Unlock command will only return success if the VNF was locked with same request-id.
1959 The Unlock command returns only one final response with the status of the request processing.
1961 Note: APPC locks the target VNF during any command processing. If an Unlock action is then requested on that VNF with a different request-id, it will be rejected because the VNF is already locked for another process, even though no actual lock command was explicitly invoked.
1963 +------------------------------+-----------------------------------------------------+
1964 | **Target URL** | /restconf/operations/appc-provider-lcm:unlock |
1965 +------------------------------+-----------------------------------------------------+
1966 | **Action** | Unlock |
1967 +------------------------------+-----------------------------------------------------+
1968 | **Action-identifiers** | Vnf-id |
1969 +------------------------------+-----------------------------------------------------+
1970 | **Payload Parameters** | see table below |
1971 +------------------------------+-----------------------------------------------------+
1972 | **Revision History** | Unchanged in this release. |
1973 +------------------------------+-----------------------------------------------------+
1977 +---------------------------------+-------------------------------------------------------------------------+---------------------+----------------------------------+
1978 | **Payload Parameter** | **Description** | **Required?** | **Example** |
1979 +=================================+=========================================================================+=====================+==================================+
1980 | request-id | Request id from the previously submitted request | Yes | "request-id": "123456789" |
1981 +---------------------------------+-------------------------------------------------------------------------+---------------------+----------------------------------+
1987 The UpgradeBackout LCM action does a backout after an UpgradeSoftware is completed (either successfully or unsuccessfully).
1989 This command is executed using an Ansible playbook or Chef cookbook.
1991 Request Structure: The request payload includes an upgrade identifier.
1993 +--------------------------+----------------------------------------------------------+
1994 | **Target URL** | /restconf/operations/appc-provider-lcm:upgrade-backout |
1995 +--------------------------+----------------------------------------------------------+
1996 | **Action** | UpgradeBackout |
1997 +--------------------------+----------------------------------------------------------+
1998 | **Action-identifiers** | vnf-id |
1999 +--------------------------+----------------------------------------------------------+
2000 | **Payload Parameters** | existing-software-version, new-software-version |
2001 +--------------------------+----------------------------------------------------------+
2002 | **Revision History** | New in Beijing |
2003 +--------------------------+----------------------------------------------------------+
2005 Request Payload Parameters:
2007 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2008 | **Parameter** | **Description** | **Required?** | **Example** |
2009 +=======================+=====================================+=====================+===============================================================================================+
2010 | existing-software- | The existing software version | Yes | "payload": |
2011 | version | prior to the upgrade | | "{\\"existing-software-version\\": \\"3.1\\", "{\\"new-software-version\\": \\"3.2\\"}” |
2012 +-----------------------+-------------------------------------+---------------------+ |
2013 | new-software- | The new software | Yes | |
2014 | version | version after the | | |
2016 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2018 UpgradeBackout Response
2019 ^^^^^^^^^^^^^^^^^^^^^^^
2021 **Success:** A successful backout returns a success status code 400.
2023 **Failure:** A failed backout returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
2028 The UpgradeBackup LCM action does a full backup of the VNF data prior to an upgrade. The backup is done on the Ansible or Chef server in a location that is specified in the playbook or cookbook. If there is an existing backup, it is overwritten by the new backup.
2030 This command is executed using an Ansible playbook or Chef cookbook.
2032 Request Structure: The payload does not have any parameters required.
2034 +--------------------------+---------------------------------------------------------+
2035 | **Target URL** | /restconf/operations/appc-provider-lcm:upgrade-backup |
2036 +--------------------------+---------------------------------------------------------+
2037 | **Action** | UpgradeBackup |
2038 +--------------------------+---------------------------------------------------------+
2039 | **Action-identifiers** | vnf-id |
2040 +--------------------------+---------------------------------------------------------+
2041 | **Payload Parameters** | existing-software-version, new-software-version |
2042 +--------------------------+---------------------------------------------------------+
2043 | **Revision History** | New in Beijing. |
2044 +--------------------------+---------------------------------------------------------+
2046 Request Payload Parameters:
2048 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2049 | **Parameter** | **Description** | **Required?** | **Example** |
2050 +=======================+=====================================+=====================+===============================================================================================+
2051 | existing-software- | The existing software version | Yes | "payload": |
2052 | version | prior to the upgrade | | "{\\"existing-software-version\\": \\"3.1\\", "{\\"new-software-version\\": \\"3.2\\"}” |
2053 +-----------------------+-------------------------------------+---------------------+ |
2054 | new-software- | The new software | Yes | |
2055 | version | version after the | | |
2056 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2058 UpgradeBackup Response
2059 ^^^^^^^^^^^^^^^^^^^^^^
2061 **Success:** A successful backup returns a success status code 400.
2063 **Failure:** A failed backup returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
2068 The UpgradePostCheck LCM action checks that the VNF upgrade has been successful completed and all processes are running properly.
2070 This command is executed using an Ansible playbook or Chef cookbook.
2074 +--------------------------+-------------------------------------------------------------+
2075 | **Target URL** | /restconf/operations/appc-provider-lcm:upgrade-post-check |
2076 +--------------------------+-------------------------------------------------------------+
2077 | **Action** | UpgradePostCheck |
2078 +--------------------------+-------------------------------------------------------------+
2079 | **Action-identifiers** | vnf-id |
2080 +--------------------------+-------------------------------------------------------------+
2081 | **Payload Parameters** | existing-software-version, new-software-version |
2082 +--------------------------+-------------------------------------------------------------+
2083 | **Revision History** | New in Beijing |
2084 +--------------------------+-------------------------------------------------------------+
2086 Request Payload Parameters:
2088 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2089 | **Parameter** | **Description** | **Required?** | **Example** |
2090 +=======================+=====================================+=====================+===============================================================================================+
2091 | existing- software- | The existing software version | Yes | "payload": |
2092 | version | prior to the upgrade | | "{\\"existing-software-version\\": \\"3.1\\", "{\\"new-software-version\\": \\"3.2\\"}” |
2093 +-----------------------+-------------------------------------+---------------------+ |
2094 | new-software- | The new software | Yes | |
2095 | version | version after the | | |
2096 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2098 UpgradePostCheck Response
2099 ^^^^^^^^^^^^^^^^^^^^^^^^^
2101 **Success:** If the UpgradePostCheck run successfully, it returns a success status code 400. The response payload contains the results of the check (Completed or Failed).
2103 Response Payload Parameters:
2105 +---------------+-----------------------------+-------------+------------------------------------------------------------------------------+
2106 | **Parameter** | **Description** |**Required?**| **Example** |
2107 +===============+=============================+=============+==============================================================================+
2108 | Upgrade- | Returns the status | Yes | |
2109 | Status | of the upgradw | | "payload": |
2110 | | post-check. Indicates | | "{\\"upgrade-status\\": \\"Completed\\"}” |
2111 | | Completed or Failed | | "payload": "{\\"upgrade-status\\": |
2112 | | | | \\"Failed\\",\\"message\\": \\"Version 3.2 is not running properly\\" }” |
2113 +---------------+-----------------------------+-------------+ |
2114 | Message | If Not Available, | | |
2115 | | message contains | | |
2116 | | explanation. | | |
2117 +---------------+-----------------------------+-------------+------------------------------------------------------------------------------+
2119 **Failure:** If the UpgradePostCheck could not be run, it returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
2124 The UpgradePreCheck LCM action checks that the VNF has the correct software version needed for a software upgrade. This command can be executed on a running VNF (i.e. processing traffic).
2126 This command is executed using an Ansible playbook or Chef cookbook.
2130 +--------------------------+------------------------------------------------------------+
2131 | **Target URL** | /restconf/operations/appc-provider-lcm:upgrade-pre-check |
2132 +--------------------------+------------------------------------------------------------+
2133 | **Action** | UpgradePreCheck |
2134 +--------------------------+------------------------------------------------------------+
2135 | **Action-identifiers** | vnf-id |
2136 +--------------------------+------------------------------------------------------------+
2137 | **Payload Parameters** | existing-software-version, new-software-version |
2138 +--------------------------+------------------------------------------------------------+
2139 | **Revision History** | New in Beijing |
2140 +--------------------------+------------------------------------------------------------+
2142 Request Payload Parameters:
2144 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2145 | **Parameter** | **Description** | **Required?** | **Example** |
2146 +=======================+=====================================+=====================+===============================================================================================+
2147 | existing-software- | The existing software version | Yes | "payload": |
2148 | version | prior to the upgrade | | "{\\"existing-software-version\\": \\"3.1\\", "{\\"new-software-version\\": \\"3.2\\"}” |
2149 +-----------------------+-------------------------------------+---------------------+ |
2150 | new-software- | The new software | Yes | |
2151 | version | version after the | | |
2153 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2155 UpgradePreCheck Response
2156 ^^^^^^^^^^^^^^^^^^^^^^^^
2158 **Success:** If the UpgradePreCheck runs successfully, it returns a success status code 400. The response payload contains the results of the check (Available or Not Available for upgrade).
2160 Response Payload Parameters:
2162 +-----------------+---------------------------+---------------------+----------------------------------------------------------------------------------------------------------------------------------+
2163 | **Parameter** | **Description** | **Required?** | **Example** |
2164 +=================+===========================+=====================+==================================================================================================================================+
2165 | upgrade-status | Returns the status | Yes | |
2166 | | of the upgrade pre- | | "payload": |
2167 | | check. Indicates | | "{\\"upgrade-status\\": \\"Available\\"}” |
2168 | | Available or Not | | |
2169 | | Available | | "payload": |
2170 | | | | "{\\"upgrade-status\\": \\"Not Available\\",\\"message\\": \\"Current software version 2.9 cannot be upgraded to 3.1\\" }” |
2171 +-----------------+---------------------------+---------------------+ |
2172 | message | If Not Available, | | |
2173 | | message contains | | |
2174 | | explanation. | | |
2175 +-----------------+---------------------------+---------------------+----------------------------------------------------------------------------------------------------------------------------------+
2177 **Failure:** If an UpgradePreCheck fails to run, it returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.
2182 The UpgradeSoftware LCM action upgrades the target VNF to a new version. It is expected that the VNF is in a quiesced status (not processing traffic).
2184 This command is executed using an Ansible playbook or Chef cookbook.
2186 Request Structure: The request payload includes the new-software-version.
2188 +--------------------------+-----------------------------------------------------------+
2189 | **Target URL** | /restconf/operations/appc-provider-lcm:upgrade-software |
2190 +--------------------------+-----------------------------------------------------------+
2191 | **Action** | UpgradeSoftware |
2192 +--------------------------+-----------------------------------------------------------+
2193 | **Action-identifiers** | vnf-id |
2194 +--------------------------+-----------------------------------------------------------+
2195 | **Payload Parameters** | existing-software-version, new-software-version |
2196 +--------------------------+-----------------------------------------------------------+
2197 | **Revision History** | New in Beijing |
2198 +--------------------------+-----------------------------------------------------------+
2200 Request Payload Parameters:
2202 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2203 | **Parameter** | **Description** | **Required?** | **Example** |
2204 +=======================+=====================================+=====================+===============================================================================================+
2205 | existing- software- | The existing software version | Yes | "payload": |
2206 | version | prior to the upgrade | | "{\\"existing-software-version\\": \\"3.1\\", "{\\"new-software-version\\": \\"3.2\\"}” |
2207 +-----------------------+-------------------------------------+---------------------+ |
2208 | new-software | The new software | Yes | |
2209 | version | version after the | | |
2211 +-----------------------+-------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+
2213 UpgradeSoftware Response
2214 ^^^^^^^^^^^^^^^^^^^^^^^^
2216 **Success:** A successful upgrade returns a success status code 400.
2218 If an UpgradeSoftware command is executed and the software has been previously upgraded to this version, it should return a success status.
2220 **Failure:** A failed upgrade returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block. A failure does not assume that the software upgrade has been rolled back.
2222 Notes regarding the Upgrade commands
2223 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2224 Ansible playbooks / Chef cookbooks:
2226 - All Ansible playbooks/cookbooks for the Upgrade commands will be
2227 stored in the same directory on the server. The directory name will
2230 {existing-software-version_new-software-version}.
2232 The path to the directory is the same for all upgrades (for example: vnf-type/softwareupgrade).
2234 - The playbooks for upgrades should use a standard naming convention
2235 (for example: SoftwareUpgrade_{existing-software-version_new-software-version}).
2237 APPC template: The APPC templates for the Upgrade commands can be common across upgrades for the vnf-type if the path and filenames are standardized.
2239 - The template will contain the directory path/playbook name which
2240 would be parameterized.
2242 {vnf-type}/UpgradeSoftware/${existing_software_version}_${new-software-version}/
2243 SoftwareUpgrade_{existing-software-version_new-software-version}.