]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
windows: add Ceph dir to Windows Defender exclusion list 2164/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 21 Sep 2023 08:24:11 +0000 (08:24 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 21 Sep 2023 08:29:48 +0000 (08:29 +0000)
We're getting occasional false positives from Windows Defender.
For this reason, we'll add the Ceph dir to the exclusion list.

  ERROR - Test exception: [WinError 225] Operation did not complete
  successfully because the file contains a virus or potentially unwanted
  software. Total exceptions: 22

   Windows Defender Antivirus has taken action to protect this machine from
   malware or other potentially unwanted software.
    For more information please see the following:
   https://go.microsoft.com/fwlink/?linkid=37020&name=Trojan:Win32/Bearfoos.A!m
   l&threatid=2147731250&enterprise=0
        Name: Trojan:Win32/Bearfoos.A!ml
        ID: 2147731250
        Severity: Severe
        Category: Trojan
        Path: file:_C:\ceph\rbd-wnbd.exe
        Detection Origin: Local machine
        Detection Type: Concrete
        Detection Source: Real-Time Protection
        User: NT AUTHORITY\SYSTEM
        Process Name: C:\Program Files\Python311\python.exe
        Action: Quarantine
        Action Status:  No additional actions required
        Error Code: 0x80508023
        Error description: The program could not find the malware and other
                       potentially unwanted software on this device.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
scripts/ceph-windows/run_tests

index b0e214a82f4ad9c0b216b23571942bd5723fc8a5..194abfd6ce6c7df1bd462cc74ca98065b59ab6e5 100644 (file)
@@ -40,6 +40,7 @@ scp_upload $CEPH_KEYRING /ProgramData/ceph/keyring
 #
 SSH_TIMEOUT=5m scp_upload $WORKSPACE/ceph.zip /ceph.zip
 SSH_TIMEOUT=10m ssh_exec powershell.exe "\$ProgressPreference='SilentlyContinue'; Expand-Archive -Path /ceph.zip -DestinationPath / -Force"
+ssh_exec powershell.exe "Add-MpPreference -ExclusionPath 'C:\ceph'"
 ssh_exec powershell.exe "New-Service -Name ceph-rbd -BinaryPathName 'c:\ceph\rbd-wnbd.exe service'"
 ssh_exec powershell.exe net.exe start ceph-rbd