Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-4743

test_metrics.test_metrics_containers - AssertionError: Application deployment failed, reason: Failed to launch container

    Details

    • Sprint:
      Networking: RI-11 Sprint 41, DevProd Team Sprint 43, DevProd Team Sprint 44, DevProd Team Sprint 47, DevProd Team Sprint 48
    • Story Points:
      2
    • Transition Due Date:

      Description

      test_metrics.test_metrics_containers fails with a Marathon error:

      self = <dcos_test_utils.marathon.Marathon object at 0x7fdcb9751da0>
      app_id = '/statsd-emitter', app_instances = 1, check_health = False
      ignore_failed_tasks = False
      
          def check_app_instances(
                  self,
                  app_id: str,
                  app_instances: int,
                  check_health: bool,
                  ignore_failed_tasks: bool) -> bool:
              """ Check a marathon app ID and return True if healthy
          
                  Args:
                      app_id: marathon app ID ro be checked
                      app_instances: number of expected app instances
                      check_health: if True, health check status must pass to return True
                      ignore_failed_tasks: if False, any failed tasks will result in an exception
                  """
              # Some of the counters need to be explicitly enabled now and/or in
              # future versions of Marathon:
              req_params = (('embed', 'apps.lastTaskFailure'),
                            ('embed', 'apps.counts'))
          
              log.info('Waiting for application to be deployed...')
              r = self.get(path_join('/v2/apps', app_id), params=req_params)
              r.raise_for_status()
          
              data = r.json()
              log.debug('Current application state data: {}'.format(repr(data)))
          
              if 'lastTaskFailure' in data['app']:
                  message = data['app']['lastTaskFailure']['message']
                  if not ignore_failed_tasks:
      >               raise AssertionError('Application deployment failed, reason: {}'.format(message))
      E               AssertionError: Application deployment failed, reason: Failed to launch container: Failed to fetch all URIs for container '8da782cf-eb53-4317-b33c-60469e6e4020': exited with status 1
      

        Attachments

          Activity

            People

            • Assignee:
              charlesprovencher Charles Provencher
              Reporter:
              timweidner Tim Weidner
              Team:
              Dev Prod Team
              Watchers:
              Alex Rukletsov (Inactive), Branden Rolston, Carter Gawron, Charles Provencher, Daniel Baker, Deepak Goel, Gastón Kleiman, Gauri Powale, Gilbert Song, Greg Mann, Gustav Paul, Jan-Philip Gehrcke, Jan Schlicht, Julian Gieseke, Ken Sipe, Matthias Eichstedt, Mergebot, Orlando Hohmeier, Philip Norman, Senthil Kumaran, Sergey Urbanovich, Till Toenshoff, Tim Weidner
            • Watchers:
              23 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: