Commit Graph

154 Commits

Author SHA1 Message Date
Chin-Ya Huang 2f54eb6b49 build: upgrade base image to 15.6
longhorn/longhorn-8976

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2024-07-16 09:43:03 +01:00
Jack Yu d3b4eeec43 feat: make phaseCollectPrometheusBundle optional
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-07-15 14:11:44 +08:00
Jack Yu 70b06021fc feat: add prometheus alerts in support bundle
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-07-15 14:11:44 +08:00
Jack Yu 25308ba737 bump: golang to v1.22
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-07-14 09:08:17 +08:00
Eric Weber 93db8a733c Log underlying error when YAML generation fails
support-bundle-kit 99

Signed-off-by: Eric Weber <eric.weber@suse.com>
2024-07-11 11:25:33 +08:00
Vicente Cheng 366d8236d1 collector: improve the log time format
- Now we can get more accurate timestamp

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
2024-06-20 17:38:54 +08:00
Vicente Cheng 1224f6968b harvester-collector: move supportconfig to scc folder instead logs
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
2024-06-18 11:47:15 +08:00
Vicente Cheng 6aa7109067 build: bump buildx v0.14.1
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
2024-06-18 11:47:15 +08:00
Jack Yu 31fc52de06 logs: reviese message
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-05-23 13:31:44 +08:00
Jack Yu c8b7107347 refactor: add some comments
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-05-23 13:31:44 +08:00
Jack Yu c15aa86333 feat: add node timeout
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-05-23 13:31:44 +08:00
Gaurav Mehta 5281830e17 log error details when error is encountered during bundle collection 2024-05-22 10:41:33 +08:00
Gaurav Mehta 5f66ca8d79 fixed timestamps and broken logging 2024-04-29 15:12:21 +08:00
Jack Yu f2110584c2
ci: remove useless build args (#112)
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-04-25 11:01:09 +08:00
Jack Yu 46b72a97d3 bump: golang to v1.21 and remove harvester dependency
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-04-23 10:13:28 +08:00
Jack Yu 1a9b8ab7b8
ci: simplify the script/package to speed up local development (#110)
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-04-22 20:45:13 -05:00
Jack Yu 8a2158dcfd ci: fix arm64
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-04-16 14:22:00 +08:00
Jack Yu b0c02cbf40
ci: use vault to read secret (#106)
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-04-12 02:46:26 -05:00
Jack Yu 9565f6512b
ci: fix arm64 (#105)
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-04-09 21:54:14 -05:00
Jack Yu 2893ddb7ad
ci: add github action (#102)
Signed-off-by: Jack Yu <jack.yu@suse.com>
Co-authored-by: Kiefer Chang <1691518+bk201@users.noreply.github.com>
2024-04-08 17:01:22 +08:00
Kiefer Chang 901398c07a Add a simple progress report 2024-03-20 16:28:08 +08:00
Gaurav Mehta abc028b49b fix missing vendoring changes
drop need for cloning k8s.io/kubernetes and vendor it in project. Also fix up null creationTimestamp issue

drop need for cloning k8s.io/kubernetes and vendor it in project. Also fix up null creationTimestamp issue
2024-03-19 15:18:22 +08:00
Kiefer Chang f73f72d439 harvester-collector: reduce supportconfig features
By default supportconfig collects too many system infos and
this might exceed the support bundle manager timeout. Reduce
the features to minimum features and some selected ones.

Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
2024-03-12 10:41:29 +08:00
Gaurav Mehta f7a9866654 updated to k8s v1.27.11
fix wait.Poll deprecation

skip PSP's as they are dropped in v1.25
2024-03-07 18:06:45 +08:00
Jack Yu a242356283 fix: support bundle daemonset condition
Signed-off-by: Jack Yu <jack.yu@suse.com>
2024-01-02 13:56:27 +08:00
Jack Yu 4c92b3e490 docs: add the reason why uses readlink
Signed-off-by: Jack Yu <jack.yu@suse.com>
2023-12-20 22:21:28 -06:00
Jack Yu 3e2cbff988 feat: add ctr image list
Signed-off-by: Jack Yu <jack.yu@suse.com>
2023-12-20 22:21:28 -06:00
Jack Yu 3aa45abc82 fix: manifest typo
Signed-off-by: Jack Yu <jack.yu@suse.com>
2023-12-12 09:06:10 +08:00
Kiefer Chang e8c5083534 Remove S390x build
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
2023-12-06 17:59:57 +08:00
PoAn Yang 2b2551f538 feat: bump SLE to 15.5
Signed-off-by: PoAn Yang <poan.yang@suse.com>
2023-12-06 10:23:55 +08:00
Kiefer Chang d8e9522ddd Bump golangci-lint
Fix OOM issue.

Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
2023-11-21 08:35:52 +08:00
Gaurav Mehta a02fe2e22e hack vendor deps to fix up timestamps and logs
(cherry picked from commit abd420ee07)
2023-11-21 08:35:52 +08:00
Kiefer Chang fe4605c456 Bump go v1.20 and deps
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
2023-11-21 08:35:52 +08:00
Chin-Ya Huang c518027c19 fix(collector-longhorn): k3s cluster missing kubelet log
ref: longhorn-7121

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2023-11-17 08:50:03 +08:00
YuJack bb02d7d972 feat: fetch metadata from env and remove useless code 2023-11-15 19:36:21 -06:00
YuJack 2d2e2466c0 feat: add new condition to understand selector logic 2023-10-24 22:07:27 -05:00
YuJack 545cd93b76 feat: harvester collect container log 2023-10-24 22:07:27 -05:00
Jian Wang 70a903f7e1 Fix SBK to eliminate empty YAML file
Signed-off-by: Jian Wang <w13915984028@gmail.com>
2023-09-27 19:09:00 +08:00
Chin-Ya Huang 5dd578f21c feat(collector-longhorn): /var/log/messages syslog
Different Linux distributions use different syslog
daemons, which store log messages in different
locations.

The common locations are /var/log/syslog and
/var/log/messages.

ref: Longhorn-6544

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2023-08-22 12:12:47 +08:00
Chin-Ya Huang f897f290f0 fix(collector-longhorn): shebang
Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2023-08-22 12:12:47 +08:00
Vicente Cheng e23c13db1b simulator: correct the kubectl logs behavior
- we should respect the previous flag if we
      already save the previous logs on support-bundle

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
2023-08-16 16:39:34 +08:00
Vicente Cheng f9af281e37 manager: should generate previous log if pods restarted
- We should generate previous logs if pods restarted.
      That would help to investigate issues with more information.

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
2023-08-16 16:39:34 +08:00
Gaurav Mehta 671bfebe1d define a separate filter method for cluster scoped objects 2023-08-12 16:40:11 +08:00
Gaurav Mehta 3699616ad3 collect harvester settings and supportconfig 2023-08-12 16:40:11 +08:00
Gaurav Mehta e59a2b5779 move default operation to create resource in apply objects 2023-07-28 09:29:16 +08:00
Gaurav Mehta f65b77f945 add a map to cache gvk lookups 2023-07-28 09:29:16 +08:00
Chin-Ya Huang 73ba77d4ff fix: download timed out
ref: Longhorn-6256

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2023-07-11 21:00:21 +08:00
Chin-Ya Huang d5bb2ba66d fix(agent): completed without expected nodes
Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2023-04-18 17:22:48 +08:00
Chin-Ya Huang ef90a2c886 style: capitalize first word in log messages
Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2023-04-14 15:38:50 +08:00
Chin-Ya Huang eb3b13d4ec chore: cleanup imports
Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
2023-04-14 15:38:50 +08:00