Uploaded image for project: 'OpenShift SDN'
  1. OpenShift SDN
  2. SDN-2643

[Debugging] Add script in network-tools to get the NBDB and SBDB leaders at any given time and then run ctl commands on them

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • SDN Sprint 223
    • 0
    • 0.000

      Add scripts folder to the network-tools, maybe split them into dev-only/customers-available. Than add customers-available scripts to the image.

      The reason is to share tools we use in 2 ways:

      1. available from the repo
      2. available from the repo and from the must-gather command

      Let's have a script which when invoked on OCP with

      `oc adm must-gather --image <network-tools> – <raft-leaders.sh>` gives me the nbdb & sbdb leader in the cluster at any given time.

      Currently its annoying to have to manually remember the cluster status command and run it inside the right pods

      Second part of this task is to create a script that uses the former script to get the leader but takes the argument that we want i.e the nbctl/sbctl command we want to run and gives us the output.

      I do wish we could just run these as simple bash scripts without having to rely on the oc adm must-gather to create a pod that runs this. Maybe adding a flag to must-gather that says "run this command locally" instead of creating a pod and running it inside that makes sense?

            npinaeva@redhat.com Nadia Pinaeva
            sseethar Surya Seetharaman
            Qiong Wang Qiong Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: