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

checkin removes unrelated hosts from inventory #339

Open
lpramuk opened this issue Dec 5, 2024 · 0 comments
Open

checkin removes unrelated hosts from inventory #339

lpramuk opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lpramuk
Copy link
Contributor

lpramuk commented Dec 5, 2024

$ broker --version
                          Broker 0.6.2                           
┏━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃                  ┃ Location                                   ┃
┡━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Broker Directory │ /home/lpramuk/.broker                      │
│ Settings File    │ /home/lpramuk/.broker/broker_settings.yaml │
│ Inventory File   │ /home/lpramuk/.broker/inventory.yaml       │
│ Log File         │ /home/lpramuk/.broker/logs/broker.log      │
└──────────────────┴────────────────────────────────────────────┘
$ broker inventory
                                                      Host Inventory
┏━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓
┃ Id ┃ Host     ┃ VM                                              ┃ Provider     ┃ Action           ┃ OS              ┃
┡━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩
│ 0  │ Unknown  │ lpramuk-AAP-MR1204                              │ AnsibleTower │ Unknown          │ Unknown Unknown │
│ 1  │ Unknown  │ lpramuk-AAP-MR1209                              │ AnsibleTower │ Unknown          │ Unknown Unknown │
│ 2  │ host-XXX │ lpramuk-sat-capsule-6.16.0-9.0-rhel9.4-5b542721 │ AnsibleTower │ deploy-capsule   │ RedHat 9.4      │
│ 3  │ host-XXX │ lpramuk-sat-jenkins-6.16.0-9.0-rhel9.4-677e7b06 │ AnsibleTower │ deploy-satellite │ RedHat 9.4      │
└────┴──────────┴─────────────────────────────────────────────────┴──────────────┴──────────────────┴─────────────────┘
$ broker checkin 0
[INFO 241205 12:12:51] Using token authentication
[INFO 241205 12:12:53] Checking in lpramuk-AAP-MR1204
[INFO 241205 12:12:54] Using tower inventory: osp-rhos01-satellite-users
[INFO 241205 12:12:56] Waiting for job: 
    API: https://infra-ansible-tower-01/api/v2/workflow_jobs/4103257/
    UI: https://infra-ansible-tower-01/#/jobs/workflow/4103257/output
$ broker inventory
                                                      Host Inventory
┏━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Id ┃ Host     ┃ VM                                              ┃ Provider     ┃ Action           ┃ OS         ┃
┡━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ 0  │ host-XXX │ lpramuk-sat-capsule-6.16.0-9.0-rhel9.4-5b542721 │ AnsibleTower │ deploy-capsule   │ RedHat 9.4 │
│ 1  │ host-XXX │ lpramuk-sat-jenkins-6.16.0-9.0-rhel9.4-677e7b06 │ AnsibleTower │ deploy-satellite │ RedHat 9.4 │
└────┴──────────┴─────────────────────────────────────────────────┴──────────────┴──────────────────┴────────────┘

This reproducer shows losing extra single host but I have also experienced situations of losing multiple hosts

I have copied inventory.yaml before and after that grim checkin.
How I could share them ?

@lpramuk lpramuk added the bug Something isn't working label Dec 5, 2024
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

1 participant