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

In kura 5.3.1 I have duplicate keystores #4863

Open
MurtadhaS opened this issue Sep 21, 2023 · 10 comments
Open

In kura 5.3.1 I have duplicate keystores #4863

MurtadhaS opened this issue Sep 21, 2023 · 10 comments
Assignees

Comments

@MurtadhaS
Copy link

MurtadhaS commented Sep 21, 2023

Describe the bug
in kura security tab there are multiple duplicates of the same keystore name.
this causes rest service to not work properly and to return 503 error.

To Reproduce
Steps to reproduce the behavior:

  1. stop OSGI kura core bundle and start it again.
  2. go to security tab -> keystore configuration in kura GUI

or

deploying my own configuration via kapua (that basically just injects wire graph).

Expected behavior
Only one instance of each keystore.

Screenshots
image

Target Environment (please complete the following information):
Linux

@salvatore-coppola
Copy link
Contributor

Hi @MurtadhaS, how do you stop the Kura core bundles ? Via Web Console or osgi shell ?

@MurtadhaS
Copy link
Author

osgi shell.

@salvatore-coppola
Copy link
Contributor

salvatore-coppola commented Oct 4, 2023

osgi shell.

Do you mean the gogo shell available on the 5002 port ? Are you running a docker instace or a installation on some devices ?

Thanks

@MurtadhaS
Copy link
Author

yes the equinox shell by telnetting it.
I tried it on both actual device and docker.

@salvatore-coppola
Copy link
Contributor

Ok @MurtadhaS i was able to reproduce the bug, I'll give updates asap.

@salvatore-coppola
Copy link
Contributor

@MurtadhaS as far as i understood the problem is only an entry duplication on webui, it doesn't affect the components.
Restarting Kura solve the problem as a temporary solution.

@MurtadhaS
Copy link
Author

the api doesn't work when this bug happens.
I mean /services/assets for example will return 503 as I recall.

@marcellorinaldo
Copy link
Contributor

Hi @MurtadhaS, the problem seems related to the fact that there is a misalignment between what is present in the ConfigurationAdmin and what is tracked by the ConfigurationService after a component removal. Please refer to PR #4937 for details.

We won't merge the PR during this Kura 5.4 release since we do not have time to investigate the implications of this change and we think it is not common for users to stop and restart the kura.core bundle.

Feel free to properly test the PR and report any findings.

Best,
Marcello

@MurtadhaS
Copy link
Author

ok, thanks.

Copy link
Contributor

github-actions bot commented Jan 8, 2024

This issue is stale because it has been open for 60 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants