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

updated postgres app with new security setting #2276

Merged
merged 3 commits into from
Aug 23, 2023
Merged

Conversation

mabhi
Copy link
Contributor

@mabhi mabhi commented Aug 21, 2023

Change Overview

Installing Postgres app with version higher than 12.6.0 are failing due to timeout. Essentially the BackupData kanister function is failing.

This PR fixes the timeout issue that arises due to the security context attributes that denies any operation, happening since the updated helm chart version > 12.6.0

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • fixes #issue-number

Test Plan

Successfully ran integration tests for PostgreSQL application

abhijeet@abhijit-mukherjee ~/Documents/mydev/veeam/kanister (updated-postgres-app)$ ./build/integration-test.sh ^PostgreSQL$
Running integration tests:
~/Documents/mydev/veeam/kanister/pkg/testing ~/Documents/mydev/veeam/kanister
=== RUN   Test
{"File":"pkg/testing/integration_test.go","Function":"github.com/kanisterio/kanister/pkg/testing.(*IntegrationSuite).TestRun","Line":196,"app":"postgres","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Running e2e integration test.","testName":"PostgreSQL.TestRun","time":"2023-08-22T12:20:05.383031409+05:30"}
{"File":"pkg/app/postgresql.go","Function":"github.com/kanisterio/kanister/pkg/app.(*PostgresDB).Install","Line":82,"app":"postgres","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Installing helm chart.","namespace":"postgres-test","release":"postgres-qsdsh","time":"2023-08-22T12:20:05.404023021+05:30"}
{"File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Added blueprint postgres-bp-wpkh8","time":"2023-08-22T12:21:13.969904603+05:30"}
{"File":"pkg/app/postgresql.go","Function":"github.com/kanisterio/kanister/pkg/app.(*PostgresDB).Ping","Line":139,"app":"postgres","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Connected to database.","time":"2023-08-22T12:21:14.085405063+05:30"}
{"File":"pkg/app/postgresql.go","Function":"github.com/kanisterio/kanister/pkg/app.PostgresDB.Reset","Line":180,"app":"postgres","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Database reset successful!","time":"2023-08-22T12:21:14.1808327+05:30"}
{"File":"pkg/app/postgresql.go","Function":"github.com/kanisterio/kanister/pkg/app.PostgresDB.Insert","Line":149,"app":"postgres","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Inserted a row in test db.","time":"2023-08-22T12:21:14.54339544+05:30"}
{"File":"pkg/app/postgresql.go","Function":"github.com/kanisterio/kanister/pkg/app.PostgresDB.Insert","Line":149,"app":"postgres","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Inserted a row in test db.","time":"2023-08-22T12:21:14.652802392+05:30"}
{"File":"pkg/app/postgresql.go","Function":"github.com/kanisterio/kanister/pkg/app.PostgresDB.Insert","Line":149,"app":"postgres","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Inserted a row in test db.","time":"2023-08-22T12:21:15.019167462+05:30"}
{"File":"pkg/app/postgresql.go","Function":"github.com/kanisterio/kanister/pkg/app.PostgresDB.Count","Line":168,"app":"postgres","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","count":3,"level":"info","msg":"Counting rows in test db.","time":"2023-08-22T12:21:15.406073714+05:30"}
{"ActionSet":"test-actionset-sz5nq","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":241,"Status":"pending","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:21:15.416371741+05:30"}
{"ActionSet":"test-actionset-sz5nq","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"pgDump-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:21:15.428632306+05:30"}
{"ActionSet":"test-actionset-sz5nq","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Executing action backup","time":"2023-08-22T12:21:15.433597789+05:30"}
{"ActionSet":"test-actionset-sz5nq","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).handleActionSet","Line":417,"NewActionSetName":"test-actionset-sz5nq","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Created actionset and started executing actions","time":"2023-08-22T12:21:15.461662621+05:30"}
{"ActionSet":"test-actionset-sz5nq","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"Phase":"pgDump","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Executing phase pgDump","time":"2023-08-22T12:21:15.461752058+05:30"}
{"ActionSet":"test-actionset-sz5nq","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"pgDump-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:21:15.478423292+05:30"}
....
....
{"ActionSet":"test-actionset-sz5nq","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"pgDump-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:17.43761023+05:30"}
{"ActionSet":"test-actionset-sz5nq","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgDump","Pod":"kanister-job-5mm2q","Pod_Out":"###Phase-output###: {\"key\":\"backupLocation\",\"value\":\"pg_backups/postgres-test/postgres-qsdsh-postgresql/2023-08-22T12:21:15+05:30/backup.sql.gz\"}","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:18.309713078+05:30"}
{"ActionSet":"test-actionset-sz5nq","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"Phase":"pgDump","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Completed phase pgDump","time":"2023-08-22T12:22:18.343821453+05:30"}
{"ActionSet":"test-actionset-sz5nq","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet 'test-actionset-sz5nq' Status-\u003ecomplete","time":"2023-08-22T12:22:18.355945202+05:30"}
{"File":"pkg/app/postgresql.go","Function":"github.com/kanisterio/kanister/pkg/app.PostgresDB.Reset","Line":180,"app":"postgres","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Database reset successful!","time":"2023-08-22T12:22:28.375368218+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":241,"Status":"pending","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:28.39219388+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"pgRestore-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:28.406008259+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Executing action restore","time":"2023-08-22T12:22:28.412375694+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).handleActionSet","Line":417,"NewActionSetName":"restore-test-actionset-sz5nq-74jm7","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Created actionset and started executing actions","time":"2023-08-22T12:22:28.432353035+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"Phase":"pgRestore","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Executing phase pgRestore","time":"2023-08-22T12:22:28.432407607+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"pgRestore-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:28.44045571+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"pgRestore-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:30.414437566+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"ERROR:  database \"test\" does not exist","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586472632+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"ERROR:  current user cannot be dropped","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586532058+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"ERROR:  role \"postgres\" already exists","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586560611+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"set_config","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586581665+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"------------","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586603834+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"(1 row)","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586640461+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"set_config","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586659317+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"------------","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586677268+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"(1 row)","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.5866969+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"set_config","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586718752+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"------------","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586740205+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"(1 row)","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586761562+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"set_config","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586784197+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"------------","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.586801431+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"(1 row)","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:31.5868187+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"set_config","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.315910469+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"------------","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.315962748+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"(1 row)","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.316005264+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"set_config","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.334073047+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"------------","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.334376536+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"(1 row)","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.334944464+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"pgRestore-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:32.4141661+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"set_config","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.791137425+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"------------","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.791186869+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"(1 row)","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.791201015+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"setval","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.967650805+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"--------","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.967701308+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"3","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.967717732+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","Container":"container","File":"pkg/output/stream.go","Function":"github.com/kanisterio/kanister/pkg/output.LogAndParse.func1","Line":56,"LogKind":"datapath","Phase":"pgRestore","Pod":"kanister-job-x6jbk","Pod_Out":"(1 row)","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"","time":"2023-08-22T12:22:32.967741452+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"pgRestore-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:34.414844905+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"pgRestore-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:36.41578657+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"Phase":"pgRestore","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Completed phase pgRestore","time":"2023-08-22T12:22:37.160532554+05:30"}
{"ActionSet":"restore-test-actionset-sz5nq-74jm7","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet 'restore-test-actionset-sz5nq-74jm7' Status-\u003ecomplete","time":"2023-08-22T12:22:37.178376315+05:30"}
{"File":"pkg/app/postgresql.go","Function":"github.com/kanisterio/kanister/pkg/app.(*PostgresDB).Ping","Line":139,"app":"postgres","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Connected to database.","time":"2023-08-22T12:22:41.246392802+05:30"}
{"File":"pkg/app/postgresql.go","Function":"github.com/kanisterio/kanister/pkg/app.PostgresDB.Count","Line":168,"app":"postgres","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","count":3,"level":"info","msg":"Counting rows in test db.","time":"2023-08-22T12:22:41.317983104+05:30"}
{"ActionSet":"delete-test-actionset-sz5nq-jhrwx","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":241,"Status":"pending","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:41.347080508+05:30"}
{"ActionSet":"delete-test-actionset-sz5nq-jhrwx","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"deleteDump-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:41.362581892+05:30"}
{"ActionSet":"delete-test-actionset-sz5nq-jhrwx","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Executing action delete","time":"2023-08-22T12:22:41.373903792+05:30"}
{"ActionSet":"delete-test-actionset-sz5nq-jhrwx","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).handleActionSet","Line":417,"NewActionSetName":"delete-test-actionset-sz5nq-jhrwx","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Created actionset and started executing actions","time":"2023-08-22T12:22:41.401252607+05:30"}
{"ActionSet":"delete-test-actionset-sz5nq-jhrwx","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"Phase":"deleteDump","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Executing phase deleteDump","time":"2023-08-22T12:22:41.401321903+05:30"}
{"ActionSet":"delete-test-actionset-sz5nq-jhrwx","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"deleteDump-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:41.446645316+05:30"}
{"ActionSet":"delete-test-actionset-sz5nq-jhrwx","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"deleteDump-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:43.371412697+05:30"}
{"ActionSet":"delete-test-actionset-sz5nq-jhrwx","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"deleteDump-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:45.37388591+05:30"}
{"ActionSet":"delete-test-actionset-sz5nq-jhrwx","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).onUpdateActionSet","Line":248,"Phase":"deleteDump-\u003epending","Status":"running","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet","time":"2023-08-22T12:22:47.372659726+05:30"}
{"ActionSet":"delete-test-actionset-sz5nq-jhrwx","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"Phase":"deleteDump","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Completed phase deleteDump","time":"2023-08-22T12:22:47.878790117+05:30"}
{"ActionSet":"delete-test-actionset-sz5nq-jhrwx","File":"pkg/controller/controller.go","Function":"github.com/kanisterio/kanister/pkg/controller.(*Controller).logAndSuccessEvent","Line":688,"cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Updated ActionSet 'delete-test-actionset-sz5nq-jhrwx' Status-\u003ecomplete","time":"2023-08-22T12:22:47.928451733+05:30"}
{"File":"pkg/app/postgresql.go","Function":"github.com/kanisterio/kanister/pkg/app.PostgresDB.Uninstall","Line":203,"app":"postgres","cluster_name":"318a37e2-1cd0-4783-8518-ab76c9d1c103","level":"info","msg":"Uninstalling helm chart.","namespace":"postgres-test","release":"postgres-qsdsh","time":"2023-08-22T12:22:54.072802267+05:30"}
OK: 1 passed
--- PASS: Test (170.69s)
PASS
ok      github.com/kanisterio/kanister/pkg/testing      170.736s
~/Documents/mydev/veeam/kanister
  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
@github-actions
Copy link
Contributor

Thanks for submitting this pull request 🎉. The team will review it soon and get back to you.

If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document.

@infraq infraq added this to In Progress in Kanister Aug 21, 2023
@mabhi mabhi marked this pull request as ready for review August 21, 2023 18:19
Copy link
Contributor

@PrasadG193 PrasadG193 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -49,12 +49,16 @@ func NewPostgresDB(name string, subPath string) App {
RepoName: helm.BitnamiRepoName,
RepoURL: helm.BitnamiRepoURL,
Chart: "postgresql",
Version: "12.6.0", // TODO: Revert once #2155 is addressed
// Version: "12.6.0", // TODO: Revert once #2155 is addressed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets remove this instead of commenting

Kanister automation moved this from In Progress to Reviewer approved Aug 22, 2023
Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
@mabhi mabhi added the kueue label Aug 23, 2023
@mergify mergify bot merged commit d36cc6b into master Aug 23, 2023
14 checks passed
Kanister automation moved this from Reviewer approved to Done Aug 23, 2023
@mergify mergify bot deleted the updated-postgres-app branch August 23, 2023 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants