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

Event: Add command to read and list events #59

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Conversation

SchoolGuy
Copy link
Member

Fixes #57

This also updates the client to version 0.5.4.

Example outputs:

./cobbler --config .cobbler.yaml event list
                                                                                  ID |                              Name | Task State | Time (last transitioned) | Read by Who 
2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80 | Create bootable bootloader images |   complete |      2024-10-29 09:40:39 | [] 
                             2024-10-29_103248_Sync_a9a067f2343641ae8af13fbfc5977e5a |                              Sync |   complete |      2024-10-29 10:32:48 | [
./cobbler --config .cobbler.yaml event status --event-id="2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80"
complete
./cobbler --config .cobbler.yaml event log --event-id="2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80"
[2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80] 2024-10-29 09:40:39,886 - INFO | start_task(mkloaders); event_id(2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80)
[2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80] 2024-10-29 09:40:39,900 - INFO | syslinux version 4 detected! Skip making symlink of "ldlinux.c32" file!
[2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80] 2024-10-29 09:40:39,901 - INFO | GRUB2 modules directory for arch "aarch64" did no exist. Skipping GRUB2 creation
[2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80] 2024-10-29 09:40:39,901 - INFO | GRUB2 modules directory for arch "arm" did no exist. Skipping GRUB2 creation
[2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80] 2024-10-29 09:40:39,947 - INFO | Successfully built bootloader for arch "arm64-efi"!
[2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80] 2024-10-29 09:40:39,947 - INFO | GRUB2 modules directory for arch "i386-efi" did no exist. Skipping GRUB2 creation
[2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80] 2024-10-29 09:40:40,217 - INFO | Successfully built bootloader for arch "i386-pc-pxe"!
[2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80] 2024-10-29 09:40:40,217 - INFO | GRUB2 modules directory for arch "i686" did no exist. Skipping GRUB2 creation
[2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80] 2024-10-29 09:40:40,217 - INFO | GRUB2 modules directory for arch "IA64" did no exist. Skipping GRUB2 creation
[2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80] 2024-10-29 09:40:40,217 - INFO | GRUB2 modules directory for arch "powerpc-ieee1275" did no exist. Skipping GRUB2 creation
[2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80] 2024-10-29 09:40:40,262 - INFO | Successfully built bootloader for arch "x86_64-efi"!
[2024-10-29_094039_Create bootable bootloader images_a6eb18843eae4502a82d1f14bd2a8a80] 2024-10-29 09:40:40,262 - INFO | ### TASK COMPLETE ###

@SchoolGuy SchoolGuy added this to the V0.0.1 milestone Oct 29, 2024
@SchoolGuy SchoolGuy requested a review from a team October 29, 2024 10:35
cmd/event.go Outdated Show resolved Hide resolved
@SchoolGuy
Copy link
Member Author

GitHub CI is having issues at the moment according to their status Website. As the CI passed previously and the changed code isn't covered by tests, I will just merge anyway.

@SchoolGuy SchoolGuy merged commit 8db5411 into main Oct 30, 2024
12 checks passed
@SchoolGuy SchoolGuy deleted the feature/logs-command branch October 30, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add dedicated logs subcommand
2 participants