cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3082
Views
5
Helpful
3
Replies

NSO package reload Error: missing namespace

Fantolino
Level 1
Level 1

I created a service using"ncs-make-package in whic the yang imports another one that I'm willing to use for common definition.  I placed this later file in the directory used for yang library (files such as ietf-inet-types.yang). The "make" is fine.

When I do the "reload packages" I get an error: "mising namespace"

cisco@ncs> request packages reload

>>> System upgrade is starting.
>>> Sessions in configure mode must exit to operational mode.
>>> No configuration changes can be performed until upgrade has completed.
>>> System upgrade has been cancelled.
Error: 'http://example.com/tim-sdn-common': Missing namespace (referenced by 'http://example.com/LF-testpy')
[error][2019-03-29 14:53:07

The namespace is defined in the imported file (i don't see any difference with repèsct to other correctly imported yang files, such as ietf-inet-types.yang).

Wich is my mistake?

 

1 Accepted Solution

Accepted Solutions

rogaglia
Cisco Employee
Cisco Employee

Hi,

 

Please edit your package-metadata.xml and add the dependency using the <required-package> tag.

 

See the example:

<ncs-package xmlns="http://tail-f.com/ns/ncs-packages">
<name>tailf-etsi-rel2-nfvo-ro-example</name>
<package-version>1.0.0</package-version>
<description>Tail-f etsi release 2 NFVO Resource Orchestration Example</description>
<ncs-min-version>4.3</ncs-min-version>

<required-package>
<name>tailf-etsi-rel2-nfvo-ro</name>
</required-package>

<required-package>
<name>tailf-etsi-rel2-nfvo-ro-os</name>
</required-package>

<required-package>
<name>tailf-etsi-rel2-nfvo-esc</name>
</required-package>

<required-package>
<name>tailf-etsi-rel2-nfvo</name>
</required-package>

<component>
<name>tailf_etsi_rel2_nfvo_ro_example</name>
<application>
<python-class-name>tailf_etsi_rel2_nfvo_ro_example_init.ResourceOrchestrationExample</python-class-name>
</application>
</component>
</ncs-package>

 

Roque

 

 

View solution in original post

3 Replies 3

joepak
Cisco Employee
Cisco Employee
Can you do a 'make clean all' on the relevant packages and reload again?

No effect: the  package reload fails with the same error

rogaglia
Cisco Employee
Cisco Employee

Hi,

 

Please edit your package-metadata.xml and add the dependency using the <required-package> tag.

 

See the example:

<ncs-package xmlns="http://tail-f.com/ns/ncs-packages">
<name>tailf-etsi-rel2-nfvo-ro-example</name>
<package-version>1.0.0</package-version>
<description>Tail-f etsi release 2 NFVO Resource Orchestration Example</description>
<ncs-min-version>4.3</ncs-min-version>

<required-package>
<name>tailf-etsi-rel2-nfvo-ro</name>
</required-package>

<required-package>
<name>tailf-etsi-rel2-nfvo-ro-os</name>
</required-package>

<required-package>
<name>tailf-etsi-rel2-nfvo-esc</name>
</required-package>

<required-package>
<name>tailf-etsi-rel2-nfvo</name>
</required-package>

<component>
<name>tailf_etsi_rel2_nfvo_ro_example</name>
<application>
<python-class-name>tailf_etsi_rel2_nfvo_ro_example_init.ResourceOrchestrationExample</python-class-name>
</application>
</component>
</ncs-package>

 

Roque

 

 

Polls
AI-powered tools for network troubleshooting are likely to be part of everyone’s workflow sooner or later. What is the single biggest challenge or concern you see with adopting these tools in your organization?