@@ -17,7 +17,6 @@ import (
17
17
"github.com/platform9/pf9ctl/pkg/objects"
18
18
"github.com/platform9/pf9ctl/pkg/pmk"
19
19
"github.com/platform9/pf9ctl/pkg/qbert"
20
- "github.com/platform9/pf9ctl/pkg/supportBundle"
21
20
"github.com/platform9/pf9ctl/pkg/util"
22
21
"github.com/spf13/cobra"
23
22
"go.uber.org/zap"
@@ -328,11 +327,6 @@ func bootstrapCmdRun(cmd *cobra.Command, args []string) {
328
327
329
328
result , err := pmk .CheckNode (* cfg , c , auth , bootConfig )
330
329
if err != nil {
331
- // Uploads pf9cli log bundle if checknode fails
332
- errbundle := supportBundle .SupportBundleUpload (* cfg , c , isRemote )
333
- if errbundle != nil {
334
- zap .S ().Debugf ("Unable to upload supportbundle to s3 bucket %s" , errbundle .Error ())
335
- }
336
330
zap .S ().Fatalf ("Unable to perform pre-requisite checks on this node: %s" , err .Error ())
337
331
}
338
332
@@ -360,13 +354,6 @@ func bootstrapCmdRun(cmd *cobra.Command, args []string) {
360
354
361
355
zap .S ().Debug ("========== Running prep-node as a part of bootstrap ==========" )
362
356
if err := pmk .PrepNode (* cfg , c , auth ); err != nil {
363
-
364
- // Uploads pf9cli log bundle if prepnode failed to get prepared
365
- errbundle := supportBundle .SupportBundleUpload (* cfg , c , isRemote )
366
- if errbundle != nil {
367
- zap .S ().Debugf ("Unable to upload supportbundle to s3 bucket %s" , errbundle .Error ())
368
- }
369
-
370
357
zap .S ().Debugf ("Unable to prep node: %s\n " , err .Error ())
371
358
zap .S ().Fatalf ("\n Failed to prepare node. %s. See %s or use --verbose for logs\n " , err .Error (), log .GetLogLocation (util .Pf9Log ))
372
359
}
@@ -436,13 +423,6 @@ func bootstrapCmdRun(cmd *cobra.Command, args []string) {
436
423
}
437
424
438
425
if err := pmk .Bootstrap (* cfg , c , payload , auth , bootConfig ); err != nil {
439
-
440
- // Uploads pf9cli log bundle if bootstrap command fails
441
- errbundle := supportBundle .SupportBundleUpload (* cfg , c , isRemote )
442
- if errbundle != nil {
443
- zap .S ().Debugf ("Unable to upload supportbundle to s3 bucket %s" , errbundle .Error ())
444
- }
445
-
446
426
zap .S ().Debugf ("Unable to bootstrap node: %s\n " , err .Error ())
447
427
zap .S ().Fatalf ("Failed to bootstrap node. %s. See %s or use --verbose for logs\n " , err .Error (), log .GetLogLocation (util .Pf9Log ))
448
428
}
0 commit comments