Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-491

For JobScheduler passive cluster after fail-over Calendars are not displayed

    XMLWordPrintable

    Details

      Description

      Current Situation

      • A JobScheduler passive cluster is set up with a Primary and a Backup JobScheduler Master.
      • JobScheduler Primary Master is running and JobScheduler Backup Master is in state waiting_for_activation.
      • The User creates a Calendar (Resource --> Calendar --> Add calendar)
      • Then if the JobScheduler Primary Master crashes and after 120 seconds fail-over occurs then the Backup Master takes over and starts working, but in the JOC Cockpit Resources --> Calendar view no calendar is visible.

      Analysis

      • The JOC Cockpit REST API ./joc/api/tree returns an empty response, which is used by API ./joc/api/calendars as a parameter which results in an empty response from ./joc/api/calendars
      • Primary JobScheduler Master
        Tree
        URL: http://localhost:6446/joc/api/tree
        Payload: {"jobschedulerId":"JobScheduler12c","compact":true,"types":["WORKINGDAYSCALENDAR","NONWORKINGDAYSCALENDAR"]}
        Response: {"deliveryDate":"2018-08-15T15:11:32.802Z","folders":[{"name":"","path":"/"}]}
        
        Calendar
        URL: http://localhost:6446/joc/api/calendars
        Payload: {"jobschedulerId":"JobScheduler12c","folders":[{"folder":"/","recursive":false}],"compact":true}
        Response:  {"calendars":[{"from":"2018-08-15","id":1,"name":"test","path":"/test","to":"2018-08-23","type":"WORKING_DAYS"}],"deliveryDate":"2018-08-15T15:11:33.061Z"}
        
      • Backup JobScheduler Master
        Tree
        URL:http://localhost:6446/joc/api/tree
        Payload: {"jobschedulerId":"JobScheduler12c","compact":true,"types":["WORKINGDAYSCALENDAR","NONWORKINGDAYSCALENDAR"]}
        Response:  {"deliveryDate":"2018-08-15T15:16:01.447Z","folders":[]}
        
        Calendar
        URL: http://localhost:6446/joc/api/calendars
        Payload: {"folders":[],"compact":true,"jobschedulerId":"JobScheduler12c"}
        Response:  {"calendars":[],"deliveryDate":"2018-08-15T15:16:01.817Z"}
        

      Desired Behavior

      • In A passive cluster setup Calendars should be visible for the JobScheduler Primary and Backup Master.

      Maintainer Notes
      For ticket resolution the data model was changed, which is effected by the JobScheduler Master installer.
      Therefore it is necessary that a JobScheduler Master setup/update is executed first.

        Attachments

          Activity

            People

            • Assignee:
              oh Oliver Haufe
              Reporter:
              mp Mahendra Patidar
              Approver:
              Mahendra Patidar
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: