Credentials
SDNC API URL: HEAT http://sdnc:8282/apidoc/explorer/index.html, OOM: http://cluster_node_ip:30267/apidoc/explorer/index.html
credential: admin/Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
DGBuilder URL: http://{{sdnc_ip}}:3000/# with dguser/test123
MySQL:
ubuntu@onap-sdnc:~$ sudo docker exec -it sdnc_db_container bash bash-4.2# mysql -u sdnctl -p sdnctl Enter password: gamma
Overlay DG: GENERIC-RESOURCE-API(Module), dci-connects-network-topology-operation-activate(RPC)
Underlay DG: GENERIC-RESOURCE-API(Module), network-topology-operation-create
Log file for directed graph:
ubuntu@onap-sdnc:~$ sudo docker exec -it sdnc_controller_container bash root@d135452786ee:cd /var/log/onap/sdnc root@d135452786ee:tail -f karaf.log
Log file for ueb_listener:
root@ac761f8e8c33:/# cd /opt/app/ueb-listener/logs/
Disable Replica
root@sb00-rancher:~/oom# kubectl -n onap edit StatefulSet/dev-sdnc-sdnc spec: podManagementPolicy: Parallel replicas: 1 ... - name: SDNC_REPLICAS value: "1"
Steps to check DG
- http://{{cluster_ip}}:30203/# with dguser/test123
- Open menu from GUI top right corner, and choose Import→Clipboard
- Copy DG json file from gerrit sdnc/oam/platform-logic/generic-resource-api/src/main/json, e.g. GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.json
- In the DG graph, click on the left of DGSTART node to see more function on the DG, like validate XML, download XML, etc
- You can download XML and search for error message you see in sdnc_controller_container karaf log
DG Tutorial
Tutorial: vCPE Example : Using SLI-API for Prototyping
Tutorial: VoLTE Example: Adding REST Node
There is some update needed for the DG in the above tutorial for Dublin
- namespace change
- FileRecorder plugin path change
- RestapiCallNode path change
Here is the update DG for VoLTE Adding REST Node example
DB operation
mysql> show tables; mysql> show columns from SERVICE_MODEL; mysql> select name, service_uuid, invariant_uuid from SERVICE_MODEL; +------------------------+--------------------------------------+--------------------------------------+ | name | service_uuid | invariant_uuid | +------------------------+--------------------------------------+--------------------------------------+ | NULL | 0 | NULL | | vBNG_0202 | 00e50cbd-ef0f-4b28-821e-f2b583752dd3 | dbf9288d-18ef-4d28-82cb-29373028f367 | | BK-012317-UUID-Service | 0a92fd9c-baab-4c03-b4e2-827e2cb9bcc7 | 083b57cd-4b76-4924-a64c-610445528063 | | vEPC | 2c02b479-905f-4b6d-bd03-a2c8a8cdfae4 | 6dd6969c-b75c-4146-8a96-0cb9c0af19a7 | | VoLTE e2e Service | 96a01eb8-1538-40a6-a9ab-0f6bf8e0d877 | e9b5654e-6627-4590-9a54-a39b4d85955e | | vIMS | de3dc33a-799a-48fe-aef2-9a7e93631a4c | 970177ab-40d9-4ab7-9a9b-aa2d08c9ca91 | +------------------------+--------------------------------------+--------------------------------------+
mysql> select * from VF_MODEL where nf_role is not null; +--------------------------------------+------------+--------------------------------------+--------------------------------------+---------+-------------------------+-------------------------------------------------+------------------------+----------------------+--------------------------------------+---------------------+--------------------+-----------------------+-------------------------+----------------+ | customization_uuid | model_yaml | invariant_uuid | uuid | version | name | naming_policy | ecomp_generated_naming | avail_zone_max_count | nf_function | nf_code | nf_type | nf_role | vendor | vendor_version | +--------------------------------------+------------+--------------------------------------+--------------------------------------+---------+-------------------------+-------------------------------------------------+------------------------+----------------------+--------------------------------------+---------------------+--------------------+-----------------------+-------------------------+----------------+ | 232972fe-4ee2-4056-b23a-73c5052eb791 | null | af94e0b5-454c-4fd8-b62b-ef27632afd22 | 71b87384-8e60-4d0b-9ed0-757245996fc3 | 1.0 | VID-PCRF-05-15-17 | NULL | NULL | 1 | function_2 | code_1 | Type_1 | role_1 | null | null | | 53ed3b2b-4225-45da-bf21-ebb5abdc9000 | null | 15b244fa-a9e2-4f68-a978-05184d78b911 | 028c08dd-56c6-42e3-ae6d-84f98ca09f37 | 2.0 | 06e7a3b5-f81c-4f99-b33d | SDNC_Policy.Config_MS_ONAP_VFW_NAMING_TIMESTAMP | Y | 1 | ONAP-TRAFFIC-GEN | vpg | TRAFFIC-GEN | vPG | 8f64125f-125a-40b4-b882 | 1.0 |
Set karaf log level
root@dev-appc-appc-0:/opt/opendaylight/current/data/log# /opt/opendaylight/bin/client Logging in as karaf ________ ________ .__ .__ .__ __ \_____ \ ______ ____ ____ \______ \ _____ ___.__.| | |__| ____ | |___/ |_ / | \\____ \_/ __ \ / \ | | \\__ \< | || | | |/ ___\| | \ __\ / | \ |_> > ___/| | \| ` \/ __ \\___ || |_| / /_/ > Y \ | \_______ / __/ \___ >___| /_______ (____ / ____||____/__\___ /|___| /__| \/|__| \/ \/ \/ \/\/ /_____/ \/ Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight. opendaylight-user@root>log opendaylight-user@root>get Logger | Level ------------------------------------+------ ROOT | INFO org.apache.aries.spifly | WARN org.apache.karaf.jaas.modules.audit | INFO opendaylight-user@root>set DEBUG org.onap opendaylight-user@root>
List karaf features
Preconfiguration for VoLTE SDNC: ONAP VoLTE SDNC Integration Test.docx
5 Comments
Sangeeth G
Hi,
What is the username and password for the MySQL DB for SDNC.
when I provide as per the above mentioned it gives me below error
bash-4.2# mysql -u sdnctl -p sdnctl
Enter password:
ERROR 1045 (28000): Access denied for user 'sdnctl'@'localhost' (using password: YES)
bash-4.2#
Changjun Wang
You can find it in the file "/opt/sdnc/installation/src/main/yaml/docker-compose.yml" in the vm of "onap-sdnc".
services:
db:
image: mysql/mysql-server:5.6
container_name: sdnc_db_container
ports:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=openECOMP1.0
- MYSQL_ROOT_HOST=%
logging:
driver: "json-file"
options:
max-size: "30m"
max-file: "5"
bash-4.2# mysql -uroot -popenECOMP1.0
Sandeep Shah
Hi Yang Xu - thank you for this. wondering where I can see logs associated with individual DGs e.g. when RPCs are executed against them?
Yang Xu
All DGs log are put in karaf.log as shown in the wiki above. You can see rpc names in each log entry.
Gaurav Mittal
Hi,
Can someone help how to access the SDN-R Config Mgmt UI in browser.
When I try to access http://10.211.5.35:30202/odlux/index.html# it gives error as:
HTTP ERROR 401
Problem accessing /odlux/index.html. Reason: