Hi Rajendra, Can you please use the sdc port 8081 instead of 8080 for the failed one.
Regards Kanagaraj Manickam Senior System Architect P&S ONAP Huawei Technologies India Pvt. Ltd. Survey No. 37, Next to EPIP Area, Kundalahalli, Whitefield Bengaluru-560066, Karnataka Tel: + 91-80-49160700 ext 72410 Mob: 9945602938 [Company_logo] ________________________________ This e-mail and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! From: [email protected] [mailto:[email protected]] On Behalf Of Rajendra Prasad Mishra Sent: 15 October 2018 21:21 To: [email protected] Subject: [onap-discuss] ONAP cli commands failing Hi, I am trying to use the latest version of onap cli, however I find that certain commands are failing. The same stuff works fine from the ONAP GUI. Below is a log of things I tried and things that failed. On the below link I saw that cli did work in a certain version. https://onap.readthedocs.io/en/beijing/submodules/cli.git/docs/user_guide_end_to_end_onap_cli_commands.html#create-vsp Would like to know what version should I use. I am trying to on-board VNF's using the onap command line. Currently I am using Beijing release. Here is CLI version. --------------------------------------------------------------------------------- aarna@beijing01:~$ kubectl exec -it -n onap dev-cli-84c8786c9f-29626 -- onap -v CLI version : 2.0.2 [20180524T053620Z] Available products: [open-cli, onap-beijing, onap-amsterdam, sample-helloworld] Enabled product : onap-beijing To enable a product, use one of following methods: 1. In scripting mode, set environment variable OPEN_CLI_PRODUCT_IN_USE 2. In interactive mode, use the directive 'use <product>' ----------------------------------------------------------------------------------- Here is the one that fails for me. I switched on debugging to get more details. -------------------------------------------------------------------------------------------- aarna@beijing01:~$ kubectl exec -it -n onap dev-cli-84c8786c9f-29626 -- onap vlm-list -u cs0008 -p demo123456! -m http://10.42.243.102:8080 -d 404::0x6001::Command vlm-list failed to execute, URL: http://10.42.243.102:8080/onboarding-api/v1.0/vendor-license-models Method: get Request Queries: {} Request Body: Request Headers: {Authorization=Basic Y3MwMDA4OmRlbW8xMjM0NTYh, X-FromAppId=ONAP CLI, Accept=application/json, USER_ID=cs0008, X-TransactionId=req-ac1c0543-9ef3-43b8-963f-f2aaf102a21c, Content-Type=application/json} Request Cookies: {} binaryData=false Context={} HTTP Status: 404 Response Body: Response Headers: {Cache-Control=must-revalidate,no-cache,no-store, Server=Jetty(9.3.23.v20180228), Content-Length=0} Response Cookies: {Authorization=Basic Y3MwMDA4OmRlbW8xMjM0NTYh, X-FromAppId=ONAP CLI, USER_ID=cs0008, X-TransactionId=req-ac1c0543-9ef3-43b8-963f-f2aaf102a21c} command terminated with exit code 1 ------------------------------------------------------------------- The command that worked for me. ----------------------------------------------------------------------------------- aarna@beijing01:~$ kubectl exec -it -n onap dev-cli-84c8786c9f-29626 -- onap vf-model-list -u cs0008 -p demo123456! -m http://10.42.243.102:8080 +--------------------------------------+--------------------------------------+--------------------------------------+--------------------------+----------+------------+ |uuid |uniqueid |invariant-uuid |name |version |status | +--------------------------------------+--------------------------------------+--------------------------------------+--------------------------+----------+------------+ |b0fada99-e63b-4a48-8c09-298e331d92ad |edacd2d3-ee72-4eac-8c5a-4ef6551ae811 |bc6c9e53-f6b7-48ab-8c32-79effd577260 |57d9c701-7b4c-47a8-8532 |1.0 |CERTIFIED | +--------------------------------------+--------------------------------------+--------------------------------------+--------------------------+----------+------------+ |bb35f646-2ab8-47f9-b510-b118f1a40c8f |edee3d68-6212-4d16-b5e3-2fd6e809fc5a |d3873209-6dae-4842-8a4a-c8eca016aee4 |3eb7423f-6d71-4893-88cc |1.0 |CERTIFIED | +--------------------------------------+--------------------------------------+--------------------------------------+--------------------------+----------+------------+ |2dfe113f-42a8-463d-8c10-1b48ae4a24bc |a0d777c0-7cb5-4207-a52a-5d3e66705679 |1c124dae-0f5f-486d-9dc2-2d35db97855e |e3caa814-d7ec-48aa-a450 |1.0 |CERTIFIED | +--------------------------------------+--------------------------------------+--------------------------------------+--------------------------+----------+------------+ |54695001-d872-40fb-8285-ae73f45015fb |846ad891-b022-4dfa-bfca-f45d5f13ddf3 |812a7583-a546-4ca0-8c84-b79688db6c51 |0de17b6a-531b-4f11-b135 |1.0 |CERTIFIED | +--------------------------------------+--------------------------------------+--------------------------------------+--------------------------+----------+------------+ |bd238e0f-f974-4d4b-a691-46c3f04196c4 |44e20ccc-7c86-4596-b715-df66c6efdb01 |db99a625-9545-498d-b59f-c52d62c65f39 |a59a9e01-10e3-43b1-8be2 |1.0 |CERTIFIED | +--------------------------------------+--------------------------------------+--------------------------------------+--------------------------+----------+------------+ |6b955095-7222-4a0f-972f-cf1c3f0da353 |bd3aae1f-363e-4678-9c15-e6c6492ddc08 |3ba8b23e-b1e5-4802-aebb-7d46b19b7044 |07341a19-da45-4c8d-8846 |1.0 |CERTIFIED | +--------------------------------------+--------------------------------------+--------------------------------------+--------------------------+----------+------------+ |bc9d209d-6437-4bc6-b17b-28369b5d86de |c656cda3-224b-4feb-8aca-91c0482e510d |5b750db1-9b9e-460d-83e3-172b18087d92 |c61a24fd-671d-47d9-b57c |1.0 |CERTIFIED | +--------------------------------------+--------------------------------------+--------------------------------------+--------------------------+----------+------------+ |ef09e424-26e7-4d04-9f42-4369e456dcf6 |3e31d784-8fe7-491d-8b31-331ecf73ba07 |e9bd2741-c4da-4ce0-ae08-3274d0159bda |f5639bae-c167-45e2-aa76 |1.0 |CERTIFIED | +--------------------------------------+--------------------------------------+--------------------------------------+--------------------------+----------+------------+ regards, -Rajendra -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13167): https://lists.onap.org/g/onap-discuss/message/13167 Mute This Topic: https://lists.onap.org/mt/27330766/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
