Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20444

Remote agent should fail to startup when osgi is not running

      Issue Summary

      If remote agent is started in a machine with high CPU/RAM usage, some plugins might fail to startup in remote agent due to "osgi is not running" but remote agent still manage to connect to Bamboo server and pick up Jobs causing it to fail later

      Steps to Reproduce

      1. Start a remote agent in a machine with high CPU/RAM usage
      2. Make sure that there is error like the following in the remote agent log:
        INFO   | jvm 4    | 2019/05/24 02:20:59 | 2019-05-24 02:20:58,953 ERROR [AgentRunnerThread] [ScanningPluginLoader] Unable to deploy plugin 'com.atlassian.bamboo.warnings.atlassian-bamboo-warnings' from 'Unit: /bamboo-home/plugins/system-provided/atlassian-bamboo-warnings-6.7.1.jar (1541842823000)'.
        INFO   | jvm 4    | 2019/05/24 02:21:00 | 2019-05-24 02:21:00,530 ERROR [AgentRunnerThread] [ScanningPluginLoader] Because of the following exception:
        INFO   | jvm 4    | 2019/05/24 02:21:00 | java.lang.IllegalStateException: Unable to create a tracker when osgi is not running
        
        
      3. Run a build with this remote agent and the related task in the above error

      Expected Results

      Remote agent fail to startup and Bamboo will not assign Job to it

      Actual Results

      Bamboo server assign Job to this remote agent that fail to startup the plugin causing the Job to fail

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [BAM-20444] Remote agent should fail to startup when osgi is not running

            Marcin Gardias made changes -
            Assignee New: Marcin Gardias [ mgardias ]
            Marcin Gardias made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Long Term Backlog [ 12073 ] New: Closed [ 6 ]
            Marcin Gardias made changes -
            Fix Version/s New: 7.0.0 [ 89610 ]
            Pawel Skierczynski made changes -
            Status Original: Gathering Impact [ 12072 ] New: Long Term Backlog [ 12073 ]
            Pawel Skierczynski made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 3205614 ] New: JAC Bug Workflow v3 [ 3384711 ]
            Status Original: Open [ 1 ] New: Needs Triage [ 10030 ]
            Pawel Skierczynski made changes -
            Labels New: bamboo-bugfix-kanban-candidate
            Pawel Skierczynski made changes -
            Component/s New: Performance [ 11402 ]
            Occurrence Factor New: 10% [ 12830 ]
            Status Original: Needs Triage [ 10030 ] New: Open [ 1 ]
            Bugfix Automation Bot made changes -
            Support reference count New: 1
            Foong (Inactive) created issue -

              mgardias Marcin Gardias
              klfoong Foong (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: