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

Module installation kill sysrepo and now even (sysrepoctl -l) is not working #3236

Open
alex2024git opened this issue Jan 29, 2024 · 2 comments
Labels
is:bug Bug description. status:completed From the developer perspective, the issue was solved (bug fixed, question answered,...)

Comments

@alex2024git
Copy link

Hi,
I run into an issue during yang module install:

root@6487ebf5352e:/opt/dev# sysrepoctl -v3 -i /opt/dev/iana-if-type.yang --owner=root:root --permissions=644
[INF] Connection 20 created.
[INF] Module "iana-if-type" was installed.
[ERR] JSON DS file: Retrieving user "root:root" passwd entry failed (No such user).
[ERR] Callback "init" of plugin "JSON DS file" for module "iana-if-type" failed.
sysrepoctl error: Failed to install modules (Item not found)
[INF] No datastore changes to apply.
root@6487ebf5352e:/opt/dev# sysrepoctl -l
[ERR] Data model "iana-if-type@2013-07-04" not found in local searchdirs.
[ERR] Loading "iana-if-type" module failed. (/)
sysrepoctl error: Failed to connect (libyang error)
For more details you may try to increase the verbosity up to "-v3".
root@6487ebf5352e:/opt/dev# sysrepoctl -i iana-if-type.yang
[ERR] Data model "iana-if-type@2013-07-04" not found in local searchdirs.
[ERR] Loading "iana-if-type" module failed. (/)
sysrepoctl error: Failed to connect (libyang error)
For more details you may try to increase the verbosity up to "-v3".
root@6487ebf5352e:/opt/dev#

So now it all failed to work at all. Even if i run sysrepoctl -l - it fails.

@jktjkt
Copy link
Contributor

jktjkt commented Jan 30, 2024

This is your likely root cause:

[ERR] JSON DS file: Retrieving user "root:root" passwd entry failed (No such user).

Double-check that your OS image has properly configured mapping between UIDs and user names. As a first step, check /etc/passwd and /etc/group. If you're using plugins for glibc's NSS, check the nsswitch settings as well. As a test, try getent passwd root, getent passwd 0, getent group root and getent group 0.

@michalvasko
Copy link
Collaborator

This problem should be fixed and a failed installation should revert all the changes so that sysrepo continues to work. To install the module in your case, you need to separate owner and the group such as --owner root --group root.

@michalvasko michalvasko added is:bug Bug description. status:completed From the developer perspective, the issue was solved (bug fixed, question answered,...) labels Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:bug Bug description. status:completed From the developer perspective, the issue was solved (bug fixed, question answered,...)
Projects
None yet
Development

No branches or pull requests

3 participants