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

Debug Instance Changes #112

Open
rvalle opened this issue Sep 9, 2022 · 8 comments
Open

Debug Instance Changes #112

rvalle opened this issue Sep 9, 2022 · 8 comments

Comments

@rvalle
Copy link
Collaborator

rvalle commented Sep 9, 2022

I don't believe my playbook is attempting any changes on some instances: yet I get this message on some:

[WARNING]: Changes won't be applied to running instances. Use force=true to allow the instance XXX to be stopped/started.

Is there any way I can debug which changes is Ansible trying to apply?

@resmo
Copy link
Member

resmo commented Sep 9, 2022

have you tried --diff?

@resmo
Copy link
Member

resmo commented Sep 9, 2022

@rvalle
Copy link
Collaborator Author

rvalle commented Sep 23, 2022

well... this is what happened.

I modified instances by hand....
When I got the warnings I modified the playbooks to match the UI changes, as I did not want to restart the instances, but the warning would persist in subsequent runts.

Now the warnings just vanished.

It feels like there is some kind of state kept somewhere.

I will try to watch closely next time this use case takes place.

@rvalle rvalle closed this as completed Sep 23, 2022
@resmo
Copy link
Member

resmo commented Sep 23, 2022

did you use the dynamic inventory?

@rvalle
Copy link
Collaborator Author

rvalle commented Sep 23, 2022

Yes, I have dynamic inventory. The Plugin:

plugin: ngine_io.cloudstack.instance

how would this affect the issue?

somewhere there seems to be some state, or mark that the instance has changed, or pending changes to apply or something.

@resmo
Copy link
Member

resmo commented Sep 23, 2022

so, the only thing that can cache is the inventory, even though I think we don't implemented it https://github.com/ngine-io/ansible-collection-cloudstack/blob/master/plugins/inventory/instance.py#L246
you could check the output with with ansible-inventory

@resmo
Copy link
Member

resmo commented Sep 23, 2022

then there is facts caching but that should not be involved.

@rvalle
Copy link
Collaborator Author

rvalle commented Sep 23, 2022

Ok, I will review a bit more. Once I had troubles with fact caching.... but not sure what about. :)

@rvalle rvalle reopened this Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants