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

deactivating a non-existent node leaves inconsistent state #4008

Open
traylenator opened this issue Oct 2, 2024 · 0 comments
Open

deactivating a non-existent node leaves inconsistent state #4008

traylenator opened this issue Oct 2, 2024 · 0 comments

Comments

@traylenator
Copy link

Describe the Bug

Deactivating a not existing node .e.g

puppet node deactivate notexisting.example.ch

Create an entry in the nodes table:

/pdb/query/v4/nodes/notexisting.example.ch                                                                                                
{                                                                                                                                                                                           
  "deactivated" : "2024-10-02T12:57:22.565Z",                                                                                                                                               
  "latest_report_hash" : null,
  "facts_environment" : null,
  "cached_catalog_status" : null,

however the entry never appears in the inventory.

i.e

inventory[certname] { node_state = "inactive" }

never contains the node notexisting.example.ch.

Expected Behavior

It seems inconsistent that you can have a node that is nor present in the inventory.

Environment

  • Version PuppetDB 8.7

Additional Context

As highlighted on slack:

It is likely not showing up in inventory because all three of fact, catalog, and report are null.

@traylenator traylenator changed the title deactivating a non-existent node leave inconsistent state deactivating a non-existent node leaves inconsistent state Oct 2, 2024
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

1 participant