testing osg software
play

Testing OSG Software Mtys Selmeci OSG Software Lead Developer OSG - PowerPoint PPT Presentation

Testing OSG Software Mtys Selmeci OSG Software Lead Developer OSG All Hands Meeting SLAC 10 April 2014 Overview Automated Testing osg-test Automated test runs Manual Testing Developer Acceptance Integration Test Bed (ITB)


  1. Testing OSG Software Mátyás Selmeci 
 OSG Software Lead Developer OSG All Hands Meeting · SLAC · 10 April 2014

  2. Overview Automated Testing osg-test Automated test runs Manual Testing Developer Acceptance Integration Test Bed (ITB) Testing and Releases Future 10 April 2014 Testing OSG Software 2

  3. osg-test 10 April 2014 Testing OSG Software 3

  4. osg-test • Software that tests OSG software stack • Tries to mimic what admins do – Install RPMs · con fi gure (commands, fi les) – Run services · use client tools – Clean up · remove RPMs • Works best on virtual machine (VM) – Needs administrator privileges (root) – Avoid con fl icts with existing software • One run tests all installed components 10 April 2014 Testing OSG Software 4

  5. Test Coverage HTCondor GUMS GRAM BeStMan GridFTP XRootD Gratia probes Fetch CRL VOMS RSV VOMS Admin gLExec 10 April 2014 Testing OSG Software 5

  6. Test Run Output FAIL: test_03_myproxy_init (osgtest.tests.test_48_myproxy.TestMyProxy) Traceback (most recent call last): · · · EXIT STATUS: 1 STANDARD OUTPUT: MyProxy v5.9 Jul 2012 PAM SASL KRB5 LDAP VOMS OCSP · · · STANDARD ERROR: [none] � BAD SKIPS: test_04_my_proxy_retrieval (osgtest.tests.test_48_myproxy.TestMyProxy) MyProxy creation failed � Ran 271 tests in 2367.078s FAILED (failures=2, badSkips=1, okSkips=15) 10 April 2014 Testing OSG Software 6

  7. Automated Tests 10 April 2014 Testing OSG Software 7

  8. Automation Goals One run tests one environment Want many runs, varying: Operating system Installed package(s) Repositories used Fully automated Harness power of HTC Clear reporting 10 April 2014 Testing OSG Software 8

  9. Testing in CHTC • Use VM universe feature of HTCondor to run osg-test as opportunistic VM jobs • Supported by developers and admins at Center for High Throughput Computing • Work fl ow adjusts to input parameters: – All 6 OSG operating systems (EL5 & EL6) – 6 package sets (e.g., CE, BeStMan SE, GUMS) – 9 repository combos (e.g., release, 3.1 ⇒ 3.2) • Automated nightly runs or on demand 10 April 2014 Testing OSG Software 9

  10. Test Workflow osg-test Extract osg-test Extract ⁞ Prepare Report Workflow Results osg-test Extract osg-test Extract 10 April 2014 Testing OSG Software 10

  11. Benefits of VM Tests • “Nightlies”: 324 test runs in 2–4 hours • Customized run: 1–4 hours • Has found real issues – OpenJDK 7 dependency changes – OpenSSL changes to minimum proxy lengths – OpenSSL packaging changes – jGlobus / BeStMan problems with certi fi cates 10 April 2014 Testing OSG Software 11

  12. Report Sample 3.1 Production ⇒ 3.1 Testing [1/9] Cent 5 RH 5 SL 5 Cent 6 RH 6 SL 6 Everything 241 14 1 241 14 1 241 14 1 242 14 0 241 14 1 242 14 0 HTCondor 86 169 1 86 169 1 86 169 1 88 168 0 88 168 0 88 168 0 GridFTP 70 186 0 70 186 0 70 186 0 71 185 0 71 185 0 71 185 0 BeStMan 79 177 0 78 177 1 79 177 0 80 176 0 80 176 0 80 176 0 VOMS 93 163 0 93 163 0 93 163 0 94 162 0 94 162 0 94 162 0 GUMS 79 177 0 78 177 1 79 177 0 80 176 0 80 176 0 80 176 0 http://vdt.cs.wisc.edu/tests/latest.html 10 April 2014 Testing OSG Software 12

  13. Manual Testing 10 April 2014 Testing OSG Software 13

  14. Why Test by Hand? Lack coverage in osg-test yet We keep adding tests … If test cases are hard to code Client and server on separate machines Simulating user input to web pages If test covers a one-time change Exploratory testing Unexpected output Unusual messages in log fi les 10 April 2014 Testing OSG Software 14

  15. Developer Testing Check for basic errors Packaging mistakes Software does not work at all Usually install isolated software E.g., not a whole Compute Element Generally very lightweight 10 April 2014 Testing OSG Software 15

  16. Sample Dev Test Carl, testing new GridFTP UDT feature: # yum install osg-gridftp Loaded plugins: priorities, ... osg-development | 1.9 kB 00:00 ... Complete! # service globus-gridftp-server start Starting globus-gridftp-server: [ OK ] $ echo hi > /tmp/test.in $ globus-url-copy -udt file:///tmp/test.in \ 
 gsiftp://$HOSTNAME/tmp/test.out $ cat /tmp/test.out hi 10 April 2014 Testing OSG Software 16

  17. Acceptance Testing Must pass before release Install software on bare VM FermiCloud is awesome – thanks, guys! Some integration, but not a site Kinds of testing Check speci fi c features or changes Check for regressions Look around for new issues Maybe do multi-machine testing 10 April 2014 Testing OSG Software 17

  18. Sample Defect #1 Brian L., testing an unrelated change: # osg-koji setup Koji configuration file '...' already exists. Recreate it? [y/n] ? n Error downloading DOEGrids certs tarball (from https://pki1.doegrids.org/Other/doegrids.tar to /.../doegrids.tar): <urlopen error [Errno 110] Connection timed out> # echo $? 1 # 10 April 2014 Testing OSG Software 18

  19. Sample Defect #2 Neha, testing other changes to fetch-crl: # grep dir /etc/fetch-crl.conf fodir = /etc/grid-security/certificates # service fetch-crl-boot start Running fetch-crl on boot: [ OK ] # echo $? 0 We emailed the fetch-crl developer about the failure to warn about an unused con fi g option; still trying to convince them that this is a bug … 10 April 2014 Testing OSG Software 19

  20. ITB Testing Install software on a test site Same architecture as real site Relatively few worker/data nodes Takes some real production jobs Lets us test in real environment Very few ITB sites today … E.g.: UChicago (Suchandra), OU (Horst) Soon: Madison (OSG Software/Release) 10 April 2014 Testing OSG Software 20

  21. ITB Defect Horst, testing Globus 5.2.5 updates: # osg-control list Configured services: - c condor-cron e edg-mkgridmap f fetch-crl-boot fetch-crl-cron g globus-gatekeeper globus-gridftp-server ... 10 April 2014 Testing OSG Software 21

  22. Testing is a Process 10 April 2014 Testing OSG Software 22

  23. Testing and Releases 1. Build ⇒ Development 2. Developer testing 3. Development ⇒ Testing 4. Acceptance and ITB testing 5. Testing ⇒ Pre-Release 6. One fi nal run of osg-test 7. Pre-Release ⇒ Production 10 April 2014 Testing OSG Software 23

  24. Future Work osg-test Expand coverage and expressiveness Add di ff erent modes: e.g., all vs. fast Better support runs on existing installs Automated Runs Update for OS, package, & repo changes Reports: “EL5 HTCondor jobs are broken” Test Cases Continue adding manual testing recipes Better tie tests to documentation 10 April 2014 Testing OSG Software 24

  25. Teams OSG Software OSG Release Tim Cartwright Tim Theisen Brian Lin Brian Lin Carl Edquist Suchandra Thapa Edgar Fajardo Xin Zhao Igor S fi ligoi Mat Selmeci � 10 April 2014 Testing OSG Software 25

  26. Contacts OSG Software & Release teams osg-software@opensciencegrid.org Tim Cartwright (Software mgr) cat@cs.wisc.edu Tim Theisen (Release mgr) tim@cs.wisc.edu OSG GOC (when defects slip by!) goc@opensciencegrid.org 10 April 2014 Testing OSG Software 26

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend