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

[Bug] - Config Server: Agent Mapping is not applied when no config file exists #1530

Open
MariusBrill opened this issue Nov 2, 2022 · 2 comments
Assignees
Labels
area/config-server bug Something isn't working

Comments

@MariusBrill
Copy link
Member

Describe the bug
When there are no files in the working directory of the config server, the default mapping does not work for inspectIT Agents.

Expected behavior
The default mapping should be usable when no custom files are in the file system.

@danipaniii
Copy link
Contributor

I tried to reproduce the bug in 3 different ways:

  1. Way:
    Deleting all the config files in the config view filetree (the ocelot default config cannot be deleted, so this was the only directory left there).
    With this method I could not reproduce the bug.

  2. Way:
    Deleting all the agent mappings in the agent mapping view. This resulted the agent not having any mapping at all and throw an error.
    It sounds reasonable, that when there is no agent mapping, no agent mapping can be found, so I believe that this way is the intended way how things should work.

  3. Way:
    Deleting the working_directory folder in the inspectit-ocelot folder.
    The working_directory got created again after restarting the config server and the agent could find the default mapping.
    Also with this method I could not reproduce the bug.

@MariusBrill
Copy link
Member Author

MariusBrill commented Nov 15, 2022

In regard to 2. : I think we should discuss if having no Agent Mappings at all is even a valid state for the configuration server, as the server does not really fulfil its use case-without Agent Mappings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config-server bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants