Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-7029

booth: wrong zero exit code in case of failure of `booth grant|revoke -s <site>` commands

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • rhel-9.4
    • booth
    • booth-1.1-1.el9
    • None
    • None
    • rhel-sst-high-availability
    • ssg_filesystems_storage_and_HA
    • 12
    • 19
    • 2
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • None

      What were you trying to do that didn't work?

      Please provide the package NVR for which bug is seen:

      booth-1.0-283.1.9d4029a.git.el9

      How reproducible:

      always

      Steps to reproduce

      1.  create /etc/booth/booth.conf with some site addresses

       

      # cat /etc/booth/booth.conf 
      authfile = /etc/booth/booth.key
      enable-authfile = yes
      site = 192.168.122.241
      site = 192.168.122.242
      arbitrator = r93-3.vm
      ticket = "TicketA"
      

       

      2. run booth grant/revoke commands using a not-configured site ip address

      # booth grant -s 8.8.8.8; echo $?
      Sep 22 14:15:54 r90-node-01 booth: [771007]: error: Site "8.8.8.8" not configured.
      0
      # booth revoke -s 8.8.8.8; echo $?
      Sep 22 14:15:59 r90-node-01 booth: [771067]: error: Site "8.8.8.8" not configured.
      0
       

      Expected results

      a non-zero exit code

      Actual results

      zero exit code

              mnovacek@redhat.com Michal Nováček
              mlisik@redhat.com Miroslav Lisik
              Jan Friesse Jan Friesse
              Michal Nováček Michal Nováček
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: