Hello Kanagaraj,

I see this error from log.

2019-08-02 10:50:07 ERROR OnapCommandUtils:322 - Ignores invalid schema 
file:/opt/oclip/open-cli-schema/service-instance-list-schema-dublin.yaml
org.onap.cli.fw.error.OnapCommandInvalidSchema: 0xb001::Invalid command schema 
service-instance-list-schema-dublin.yaml, mapping values are not allowed here
in 'reader', line 588, column 26:
        <!-- blob contrib key: blob_contributors:v21:ba71b0a2 ...
                             ^
        at 
org.onap.cli.fw.utils.OnapCommandDiscoveryUtils.loadYaml(OnapCommandDiscoveryUtils.java:543)
        at 
org.onap.cli.fw.utils.OnapCommandDiscoveryUtils.discoverSchemas(OnapCommandDiscoveryUtils.java:320)
        at 
org.onap.cli.fw.utils.OnapCommandDiscoveryUtils.discoverOrLoadSchemas(OnapCommandDiscoveryUtils.java:108)
        at 
org.onap.cli.fw.registrar.OnapCommandRegistrar.autoDiscoverSchemas(OnapCommandRegistrar.java:289)
        at 
org.onap.cli.fw.registrar.OnapCommandRegistrar.getRegistrar(OnapCommandRegistrar.java:156)
        at org.onap.cli.main.OnapCli.handleCommand(OnapCli.java:468)
        at org.onap.cli.main.OnapCli.handle(OnapCli.java:649)
        at org.onap.cli.main.OnapCli.main(OnapCli.java:751)

Thanks & Regards,

Vamshi Krishna | Tech Mahindra
Sharda Centre, Off Karve Road, Erandwane, Pune 411 004, INDIA
Mobile: +91 9848639561, ext : 3492
Email Id - [email protected]<mailto:[email protected]>

[cid:[email protected]]<http://www.techmahindra.com/>



From: Vamshi Namilikonda
Sent: Thursday, August 1, 2019 7:55 PM
To: Kanagaraj Manickam <[email protected]>; 
[email protected]; [email protected]; Huang, Haibin 
<[email protected]>; Ukponmwan, Itohan <[email protected]>
Cc: Ying, Ruoyu <[email protected]>
Subject: RE: [onap-discuss][cli] Command service-instance-list is not available 
for product version onap-dublin

Thanks Kanagaraj for your patience.

I did the steps mentioned


1)      oclip schema-list --product onap-dublin --service aai - 
service-instance-list was not listed

2)      So, copied service-instance-list-schema-dublin.yaml file into 
$OPEN_CLI_HOME/open-cli-schema.

3)      Later ran oclip schema-refresh - it gave result, but I don't see 
service-instance-list was loaded.

I'm I missing something, or need to restart cli something not sure. Please guide


oclip schema-list --product onap-dublin --service aai

+----------------------------+----------+--------------+----------+------+
|command                     |service   |ocs-version   |enabled   |rpc   |
+----------------------------+----------+--------------+----------+------+
|vnfm-list                   |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|vnfm-delete                 |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|vnfm-create                 |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|vnfm-show                   |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|vim-create                  |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|vim-list                    |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|ems-show                    |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|ems-create                  |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|sdnc-create                 |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|sdnc-delete                 |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|customer-show               |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|customer-delete             |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|service-type-delete         |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|service-type-list           |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|service-type-create         |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|subscription-delete         |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|complex-list                |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|tenant-delete               |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|subscription-cloud-delete   |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|subscription-create         |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|cloud-list                  |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|subscription-list           |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|vim-delete                  |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|ems-list                    |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|ems-delete                  |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|sdnc-list                   |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|customer-list               |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|customer-create             |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|owning-entity-list          |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|subscription-cloud-add      |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|cloud-create                |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|cloud-delete                |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|cloud-flavor-list           |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|complex-update              |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|complex-associate           |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|complex-delete              |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|complex-create              |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|tenant-create               |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+
|tenant-list                 |aai       |1.0           |true      |      |
+----------------------------+----------+--------------+----------+------+




Thanks & Regards,

Vamshi Krishna | Tech Mahindra
Sharda Centre, Off Karve Road, Erandwane, Pune 411 004, INDIA
Mobile: +91 9848639561, ext : 3492
Email Id - [email protected]<mailto:[email protected]>

[cid:[email protected]]<http://www.techmahindra.com/>



From: Kanagaraj Manickam 
<[email protected]<mailto:[email protected]>>
Sent: Thursday, August 1, 2019 6:23 PM
To: Vamshi Namilikonda 
<[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>; Huang, Haibin 
<[email protected]<mailto:[email protected]>>; Ukponmwan, Itohan 
<[email protected]<mailto:[email protected]>>
Cc: Ying, Ruoyu <[email protected]<mailto:[email protected]>>
Subject: RE: [onap-discuss][cli] Command service-instance-list is not available 
for product version onap-dublin

Seems you have preset the OPEN_CLI_PRODUCT_IN_USE to onap-dublin.
Set this to open-cli and try.
And  pls refer the CLI user guide for more details

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: Vamshi Namilikonda [mailto:[email protected]]
Sent: 01 August 2019 18:15
To: Kanagaraj Manickam 
<[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>; Huang, Haibin 
<[email protected]<mailto:[email protected]>>; Ukponmwan, Itohan 
<[email protected]<mailto:[email protected]>>
Cc: Ying, Ruoyu <[email protected]<mailto:[email protected]>>
Subject: RE: [onap-discuss][cli] Command service-instance-list is not available 
for product version onap-dublin

Hello Kanagaraj,

Thank you. I've tried the steps suggested. The command is still not available, 
also schema-list and schema-refresh as well.

root@dev-cli-cli-7d8b9f7454-tq7t5:/opt/oclip# oclip schema-list -product 
onap-dublin -service aai
0x6003::Command schema-list is not available for product version onap-dublin
root@dev-cli-cli-7d8b9f7454-tq7t5:/opt/oclip#
root@dev-cli-cli-7d8b9f7454-tq7t5:/opt/oclip# cd open-cli-schema
root@dev-cli-cli-7d8b9f7454-tq7t5:/opt/oclip/open-cli-schema# ls -ltr
total 84
-rw-r--r-- 1 root root 82866 Aug  1 12:22 
service-instance-list-schema-dublin.yaml
root@dev-cli-cli-7d8b9f7454-tq7t5:/opt/oclip/open-cli-schema#

root@dev-cli-cli-7d8b9f7454-tq7t5:/opt/oclip/open-cli-schema# oclip 
service-instance-list -u AAI -p AAI -m 
https://10.211.1.20:30233<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2F10.211.1.20%3A30233&data=02%7C01%7CVN00480215%40TechMahindra.com%7C7dd91b48fe2247ba9c1f08d7167f293e%7Cedf442f5b9944c86a131b42b03a16c95%7C0%7C0%7C637002607732600477&sdata=o8pDGvnd8BQhmeSNgGbkNrfCXd33ENn13DCoLGh9sf8%3D&reserved=0>
0x6003::Command service-instance-list is not available for product version 
onap-dublin

root@dev-cli-cli-7d8b9f7454-tq7t5:/opt/oclip/open-cli-schema# oclip 
schema-refresh
0x6003::Command schema-refresh is not available for product version onap-dublin
root@dev-cli-cli-7d8b9f7454-tq7t5:/opt/oclip/open-cli-schema#

the working command for sample:
root@dev-cli-cli-7d8b9f7454-tq7t5:/opt/oclip/open-cli-schema# oclip 
get-resource-module-name -u cs0008 -p demo123456! -m 
http://10.211.1.20:30205<https://ind01.safelinks.protection.outlook.com/?url=http%3A%2F%2F10.211.1.20%3A30205&data=02%7C01%7CVN00480215%40TechMahindra.com%7C7dd91b48fe2247ba9c1f08d7167f293e%7Cedf442f5b9944c86a131b42b03a16c95%7C0%7C0%7C637002607732600477&sdata=taqonXbCputSE4YOYyuiJmyCaXoIhMe%2FKNnCLPyfVXI%3D&reserved=0>
 | grep vfw-hpa1
|vfw-hpa13           |VfwHpa13              |
|vfw-hpa11           |VfwHpa11              |
|vfw-hpa10           |VfwHpa10              |
|vfw-hpa14           |VfwHpa14              |
|vfw-hpa12           |VfwHpa12              |
|vfw-hpa1            |VfwHpa1               |


root@dev-cli-cli-7d8b9f7454-tq7t5:/opt/oclip# printenv | grep oclip
OPEN_CLI_HOME=/opt/oclip
PWD=/opt/oclip
OCLIP_GRPC_SERVER=http://oclip_ocs_grpc:50051
OLDPWD=/opt/oclip/conf

Thanks & Regards,

Vamshi Krishna | Tech Mahindra
Sharda Centre, Off Karve Road, Erandwane, Pune 411 004, INDIA
Mobile: +91 9848639561, ext : 3492
Email Id - [email protected]<mailto:[email protected]>

[cid:[email protected]]<http://www.techmahindra.com/>



From: Kanagaraj Manickam 
<[email protected]<mailto:[email protected]>>
Sent: Thursday, August 1, 2019 5:38 PM
To: Vamshi Namilikonda 
<[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>; Huang, Haibin 
<[email protected]<mailto:[email protected]>>; Ukponmwan, Itohan 
<[email protected]<mailto:[email protected]>>
Cc: Ying, Ruoyu <[email protected]<mailto:[email protected]>>
Subject: RE: [onap-discuss][cli] Command service-instance-list is not available 
for product version onap-dublin

Can you run following command to check if this command available:
                oclip schema-list -product onap-dublin -service aai

NOTE: this command is available from AAI.

If you are not finding service-instance-list command listed , then add the YAML 
from 
https://github.com/onap/cli/blob/master/products/onap-dublin/features/aai/src/main/resources/open-cli-schema/so-components/service-instance-list-schema-dublin.yaml<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fonap%2Fcli%2Fblob%2Fmaster%2Fproducts%2Fonap-dublin%2Ffeatures%2Faai%2Fsrc%2Fmain%2Fresources%2Fopen-cli-schema%2Fso-components%2Fservice-instance-list-schema-dublin.yaml&data=02%7C01%7CVN00480215%40TechMahindra.com%7C7dd91b48fe2247ba9c1f08d7167f293e%7Cedf442f5b9944c86a131b42b03a16c95%7C0%7C0%7C637002607732610472&sdata=GCxKGE%2ByNirKh%2BJtYx0U%2Ba4TDLUqn9AjGNKBafi8tjA%3D&reserved=0>
 into $OPEN_CLI_HOME/open-cli-schema.

And you will get this new command on-the-fly with zero down time !

If auto-discovery is disabled in the OCLIP-> open-cli.properties, then run 
following command to re-discover the new command manually
                Oclip schema-refresh

Hope this would help you. If you face any issue, let me know.

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: Vamshi Namilikonda [mailto:[email protected]]
Sent: 01 August 2019 16:18
To: [email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>; Huang, Haibin 
<[email protected]<mailto:[email protected]>>; Ukponmwan, Itohan 
<[email protected]<mailto:[email protected]>>
Cc: Ying, Ruoyu <[email protected]<mailto:[email protected]>>; Kanagaraj 
Manickam <[email protected]<mailto:[email protected]>>
Subject: [onap-discuss][cli] Command service-instance-list is not available for 
product version onap-dublin

Hello CLI team,

When I tried automation script from the following location for vFW automation, 
the script executed seamlessly till command "oclip service-instance-list". 
Later it fails with following errors (from open-cli.log). Kindly please suggest.

https://github.com/onap/integration/blob/master/test/hpa_automation/heat/hpa_automation.py<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fonap%2Fintegration%2Fblob%2Fmaster%2Ftest%2Fhpa_automation%2Fheat%2Fhpa_automation.py&data=02%7C01%7CVN00480215%40TechMahindra.com%7C7dd91b48fe2247ba9c1f08d7167f293e%7Cedf442f5b9944c86a131b42b03a16c95%7C0%7C0%7C637002607732610472&sdata=H3MJNEefYN5yu61ScpgJ8fz%2BLAfe2EG%2Bh6uHoRtxJ9E%3D&reserved=0>


root@dev-cli-cli-7d8b9f7454-tq7t5:/opt/oclip/logs# oclip -v
CLI version       : 3.0.0 [20190515T051012Z]
Available products: [open-cli, onap-dublin, sample-helloworld]
Enabled product   : onap-dublin

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>'


2019-08-01 09:21:21 ERROR OnapCli:166 - 0x6003::Command service-instance-list 
is not available for product version onap-dublin
org.onap.cli.fw.error.OnapCommandNotFound: 0x6003::Command 
service-instance-list is not available for product version onap-dublin
        at 
org.onap.cli.fw.registrar.OnapCommandRegistrar.get(OnapCommandRegistrar.java:255)
        at 
org.onap.cli.fw.registrar.OnapCommandRegistrar.get(OnapCommandRegistrar.java:238)
        at org.onap.cli.main.OnapCli.handleCommand(OnapCli.java:468)
        at org.onap.cli.main.OnapCli.handleInteractive(OnapCli.java:440)
        at org.onap.cli.main.OnapCli.handle(OnapCli.java:645)
        at org.onap.cli.main.OnapCli.main(OnapCli.java:751)





Thanks & Regards,

Vamshi Krishna | Tech Mahindra
Sharda Centre, Off Karve Road, Erandwane, Pune 411 004, INDIA
Mobile: +91 9848639561, ext : 3492
Email Id - [email protected]<mailto:[email protected]>

[cid:[email protected]]<http://www.techmahindra.com/>



============================================================================================================================
 Disclaimer: This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html<https://ind01.safelinks.protection.outlook.com/?url=http%3A%2F%2Ftim.techmahindra.com%2Ftim%2Fdisclaimer.html&data=02%7C01%7CVN00480215%40TechMahindra.com%7C7dd91b48fe2247ba9c1f08d7167f293e%7Cedf442f5b9944c86a131b42b03a16c95%7C0%7C0%7C637002607732620465&sdata=qmBVCR7Tp8mJA5ccdi9gj%2BGxLiLPnO6IJ3FmdbZgK%2FY%3D&reserved=0>
 internally within TechMahindra. 
============================================================================================================================

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#18406): https://lists.onap.org/g/onap-discuss/message/18406
Mute This Topic: https://lists.onap.org/mt/32677459/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to