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

Machine agent install seems to look for db-agent path #71

Closed
pk-z1 opened this issue May 12, 2021 · 9 comments
Closed

Machine agent install seems to look for db-agent path #71

pk-z1 opened this issue May 12, 2021 · 9 comments
Labels
bug Something isn't working

Comments

@pk-z1
Copy link

pk-z1 commented May 12, 2021

Hello - I'm trying to install the machine agent on linux, but it appears to look for the db-agent path. Am I missing something here?

#ansible-playbook -i hosts-linux machine.yaml

.
.
.

TASK [appdynamics.agents.logger : Copy the log4j file down to update it localy] *************************************************************************
fatal: [10.0.110.37]: FAILED! => {"changed": false, "msg": "file not found: /opt/appdynamics/db-agent/conf/logging/log4j.xml"}

@jpadmin
Copy link

jpadmin commented May 15, 2021

You won't face that issue if you try to run the automation using latest version ansible

@iogbole
Copy link
Collaborator

iogbole commented May 22, 2021

FYI @v-zhuravlev

@v-zhuravlev
Copy link
Collaborator

hi @pk-z1 , thanks for reporting. It Would be great if you can provide more info in order to replicate this issue:
ansible version
appdynamics-ansible collection version
machine.yaml contents if it is custom playbook
any machine agent related variables you may set elsewhere( in inventory, vars file etc)

@jpadmin , do you mean ansible version or collection version?

@v-zhuravlev
Copy link
Collaborator

v-zhuravlev commented May 26, 2021

Can confirm this error for ansible 2.9, here is the new test for it
https://github.com/Appdynamics/appdynamics-ansible/runs/2679542023?check_suite_focus=true#step:7:738

@v-zhuravlev
Copy link
Collaborator

as a workaround, please upgrade to 2.10 + or remove agent_log_level: debug from vars or change to info

@v-zhuravlev v-zhuravlev added the bug Something isn't working label May 26, 2021
@pk-z1
Copy link
Author

pk-z1 commented May 27, 2021

Thanks @v-zhuravlev - I also validated that agent_log_level: "info" works as well.

@jpadmin
Copy link

jpadmin commented May 30, 2021

@v-zhuravlev , I can confirm that the automation works perfectly using latest ansible software with python3 as the interpreter

v-zhuravlev added a commit that referenced this issue May 31, 2021
Add tests for ansible 2.9 and fix for #71
@v-zhuravlev
Copy link
Collaborator

Found what was the issue in 2.9. Fixed in #72 . Will be available in the next release.

@v-zhuravlev
Copy link
Collaborator

available in 21.6.0

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

No branches or pull requests

4 participants