Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redundant parameters #3288

Open
biswajit84 opened this issue May 3, 2024 · 9 comments
Open

Redundant parameters #3288

biswajit84 opened this issue May 3, 2024 · 9 comments
Labels
is:question Issue is actually a question.

Comments

@biswajit84
Copy link

biswajit84 commented May 3, 2024

Hi,
While executing sysrepocfg tls_truststore.xml -d running -m ietf-truestore, getting error "sysrepocfg error: Redundant parameters (tls_truststore.xml)"

Can you please help me what could be the root cause.Even though I have tried to execute make sr_clean in sysrepo,still the same issue.

Regards,
Biswajit

@michalvasko
Copy link
Collaborator

Just read sysrepocfg -h and you should know what to do. There are no parameters without an option supported.

@michalvasko michalvasko added the is:question Issue is actually a question. label May 3, 2024
@biswajit84
Copy link
Author

When I did install all the dependent packages including sysrepo, then the same error is not seen but after I executed
"make sr_clean" followed by the same command "sysrepocfg tls_truststore.xml -d running -m ietf-truestore" then same error is seen.
Also I am using the option those are supported in sysrepocfg .

Regards,
Biswajit

@michalvasko
Copy link
Collaborator

Also I am using the option those are supported in sysrepocfg .

If that is true, what sysrepo version are you using?

@biswajit84
Copy link
Author

./sysrepocfg --version
sysrepocfg - sysrepo configuration manipulation tool, compiled with libsysrepo v2.2.170 (SO v7.24.11)

@michalvasko
Copy link
Collaborator

I was trying to avoid it but it seems I have to tell you exactly where the issue is. Like I said, there are no non-option arguments supported by sysrepocfg meaning all parameters must be preceded by an option. Using the words from the help, you are missing the operation. In your case it was likely meant to be -I or -E. The whole command should then look like

sysrepocfg -I tls_truststore.xml -d running -m ietf-truststore

@biswajit84
Copy link
Author

biswajit84 commented May 6, 2024

Now I have executed the same as suggested .Now I am getting error like:

libyang[0]: No module with namespace "urn:ietf:params:xml:ns:yang:ietf-truststore" in the context. (line: 2)
libyang error: No module with namespace "urn:ietf:params:xml:ns:yang:ietf-truststore" in the context.
sysrepocfg error: Data parsing failed

My doubt is if -I option was missing then it should have given same error after the re install.But it didnt' give the error .
If you can really clarify both the doubts then it will really helpful.

@michalvasko
Copy link
Collaborator

It is assumed you have properly installed netopeer2 first using # make install, which includes installing required YANG modules into sysrepo. If they are installed, the command will succeed.

@biswajit84
Copy link
Author

biswajit84 commented May 6, 2024

The etf-truststore@2023-12-28.yang got installed in Install/share/yang/modules/libnetconf2/ while installing libnetconf2 not netopeer2.

Ideally whether all the yang files need to be stored in a single path or multiple paths is also ok . Because in my case:In install directory, libnetconf2,libyang,netopeer2 and sysrepo got created in share/yang/modules/

biswajit@blue-tit:~/netopeer2-evaluation/Install$ ls share/yang/modules/
libnetconf2  libyang  netopeer2  sysrepo

netopeer2 make install output

biswajit@blue-tit:~/netopeer2-evaluation/extract/netopeer2-2.2.19/build$ make install
[ 44%] Built target serverobj
[ 61%] Built target netopeer2-server
[100%] Built target netopeer2-cli
Install the project... 
-- Install configuration: "Debug"
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-ip@2018-02-22.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-yang-patch@2017-02-22.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-restconf@2017-01-26.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-netconf-monitoring@2010-10-04.yang 
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-network-instance@2019-01-21.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-subscribed-notifications@2019-09-09.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-netconf-acm@2018-02-14.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-datastores@2018-02-14.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-interfaces@2018-02-20.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/notifications@2008-07-14.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/nc-notifications@2008-07-14.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-yang-push@2019-09-09.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-netconf@2013-09-29.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-netconf-nmda@2019-01-07.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/yang/modules/netopeer2/ietf-yang-schema-mount@2019-01-14.yang
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/netopeer2/scripts
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/netopeer2/scripts/remove.sh
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/netopeer2/scripts/merge_config.sh
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/netopeer2/scripts/merge_hostkey.sh
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/netopeer2/scripts/setup.sh
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/netopeer2/scripts/common.sh
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/sbin/netopeer2-server
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/man/man8/netopeer2-server.8
-- Installing missing sysrepo modules (setup.sh)...
-- Generating a new RSA host key "genkey" if not already added (merge_hostkey.sh)...
-- Merging default server listen configuration if there is none (merge_config.sh)...
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/bin/netopeer2-cli
-- Up-to-date: /home/biswajit/netopeer2-evaluation/Install/share/man/man1/netopeer2-cli.1

@michalvasko
Copy link
Collaborator

Having the YANG modules copied whenever is irrelevant, they are installed into sysrepo here

-- Installing missing sysrepo modules (setup.sh)...

So after these steps you cannot get the error you posted before, ietf-truststore must be installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:question Issue is actually a question.
Projects
None yet
Development

No branches or pull requests

2 participants