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

Validate configration at startup and exit when it's invalid

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: testing
    • Labels:
      None
    • Sprint:
      Cluster Ops Team Sprint 29
    • Story Points:
      1

      Description

      https://github.com/dcos/dcos/pull/3446
      https://teamcity.mesosphere.io/viewLog.html?buildId=1208442

      
      test_dcos_diagnostics.test_dcos_diagnostics_bundle_download_and_extract 	
      show details
      test_dcos_diagnostics.py:479 (test_dcos_diagnostics_bundle_download_and_extract)
      dcos_api_session = <dcos_test_utils.dcos_api.DcosApiSession object at 0x7f7ab3a71828>
      
          @retrying.retry(wait_fixed=2000, stop_max_delay=LATENCY * 1000)
          def test_dcos_diagnostics_bundle_download_and_extract(dcos_api_session):
              """
              test bundle download and validate zip file
              """
      >       _download_bundle_from_master(dcos_api_session, 0)
      
      test_dcos_diagnostics.py:485: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      test_dcos_diagnostics.py:610: in _download_bundle_from_master
          verify_archived_items(master_folder, archived_items, expected_master_files)
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      folder = '10.0.5.202_master/'
      archived_items = ['10.0.5.202_master/dcos-telegraf.service.gz', '10.0.5.202_master/dcos-checks-poststart.timer.gz', '10.0.5.202_master/...service.gz', '10.0.5.202_master/dcos-metrics-master.service.gz', '10.0.5.202_master/dcos-pkgpanda-api.service.gz', ...]
      expected_files = ['dcos-mesos-master.service.gz', 'var/lib/dcos/exhibitor/zookeeper/snapshot/myid.gz', 'var/lib/dcos/exhibitor/conf/zoo.cfg.gz', '5050-quota.json', 'dmesg_-T-0.output.gz', 'opt/mesosphere/active.buildinfo.full.json.gz', ...]
      
          def verify_archived_items(folder, archived_items, expected_files):
              for expected_file in expected_files:
                  expected_file = folder + expected_file
      >           assert expected_file in archived_items, ('expecting {} in {}'.format(expected_file, archived_items))
      E           AssertionError: expecting 10.0.5.202_master/var/lib/dcos/exhibitor/zookeeper/snapshot/myid.gz in ['10.0.5.202_master/dcos-telegraf.service.gz', '10.0.5.202_master/dcos-checks-poststart.timer.gz', '10.0.5.202_master/dcos-diagnostics-health.json', '10.0.5.202_master/dcos-mesos-dns.service.gz', '10.0.5.202_master/dcos-metrics-master.service.gz', '10.0.5.202_master/dcos-pkgpanda-api.servic
      ...
      

      That is, the file 10.0.5.202_master/var/lib/dcos/exhibitor/zookeeper/snapshot/myid.gz was expected in the bundle but missing.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tomaszjaniszewski Tomasz Janiszewski
                Reporter:
                jp Jan-Philip Gehrcke
                Team:
                Cluster Ops Team
                Watchers:
                Alexander Rojas (Inactive), Alex R (Inactive), Branden Rolston, Charles Provencher, Deepak Goel, Dima Rozhkov, Gauri Powale, Greg Mann, Gustav Paul, Jan-Philip Gehrcke, Jonathan Giddy, Kapil Arya (Inactive), Kevin Klues (Inactive), Matthias Eichstedt, Mergebot, Orlando Hohmeier, Philip Norman, Senthil Kumaran, Sergey Urbanovich, Tim Weidner, Tomasz Janiszewski
              • Watchers:
                21 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: