Bug 480282

Summary: dvd test won't stop if inserting an empty DVD disk
Product: [Retired] Red Hat Hardware Certification Program Reporter: lihuang <lihuang>
Component: Test Suite (tests)Assignee: YangKun <ykun>
Status: CLOSED NOTABUG QA Contact: Lawrence Lim <llim>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.3CC: gnichols, ndai, rlandry, tools-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-16 18:01:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
results.xml none

Description lihuang 2009-01-16 06:52:49 UTC
Description of problem:
dvd test won't stop if inserting an empty DVD disk


Version-Release number of selected component (if applicable):
hts-5.3-12.el5

How reproducible:
Every time

Steps to Reproduce:
1.#hts plan
2.#hts run -t dvd
3.insert an empty DVD disk
  
Actual results:


Expected results:
dvd test end with a warning

Additional info:

Comment 1 YangKun 2009-01-16 07:41:19 UTC
this actually affects both cdrom and dvd tests.

could you please attach the output.log and /var/hts/results.xml file here ?

Thanks
-YK

Comment 2 lihuang 2009-01-16 08:38:56 UTC
[root@shangrila ~]# hts print plan
/var/hts

Test Plan:
----------------------------------------------------------------
dvd        hda        storage_model_DV_28E_N               
usb                   pnp_PNP0a03                          
network    eth2       net_00_00_87_e2_c7_69                
network    eth1       net_00_00_87_e2_c7_68                
network    eth0       net_00_00_87_12_b4_b4                
memory                                                     
storage    sda        storage_serial_3500000e01248e7d0     
video                 pci_1002_515e                        
core                                                       
profiler                                                   
info                                                       
[root@shangrila ~]# hts run -t dvd
/var/hts
loaded results /var/hts/results.xml
OS Version: Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Kernel RPM: kernel-2.6.18-128.el5
HTS version 5.3, release 12
saved test plan to /var/hts/results.xml
running only test dvd 
running dvd on /org/freedesktop/Hal/devices/storage_model_DV_28E_N
mkdir -p /tmp/hts-dvd-rwUtKN/mnt/tests/HTS/hts/dvd
cp -a testinfo.desc runtest.sh dvd.py Makefile /tmp/hts-dvd-rwUtKN/mnt/tests/HTS/hts/dvd
install -m 0755 runtest.sh /tmp/hts-dvd-rwUtKN/mnt/tests/HTS/hts/dvd
make OUTPUTFILE=/var/log/hts/runs/1/dvd/output.log RUNMODE=normal UDI=/org/freedesktop/Hal/devices/storage_model_DV_28E_N DEVICE=hda TESTSERVER=unknown run
chmod a+x ./runtest.sh ./dvd.py
./runtest.sh
/tmp/hts-dvd-rwUtKN/mnt/tests/HTS/hts/dvd/dvd.py
Running ./dvd.py:

  Your CD/DVD device /dev/hda supports dvd 
  We will check these features. 
  You need to prepare following media(disks) for this test: 

    --- one DVD data disk which contains more than 800MiB of data. 
        (e.g. one RHEL5 install DVD disk) 

  Press ENTER when you are ready ! Or press Ctrl-C to quit !

  Please insert a DVD data disk into hda and then press ENTER to continue !

  +++ Start testing ... 

umount: /dev/hda: not mounted

  +++ Media mounted !

  Copying files ...

Comment 3 lihuang 2009-01-16 08:41:37 UTC
Created attachment 329184 [details]
results.xml

/var/hts/results.xml

Comment 4 YangKun 2009-01-16 09:36:10 UTC
re-checked the results. this could not be an error.

If the DVD disk is a blank disk, it could not be mounted correctly by "mount -o ro". 

I checked the media used, turns out to be not empty, but containing huge amount of small files and deep dir hierarchy. 

Please re-test and be patient to wait for longer time, if the indicator LED on the optical drive shows the media is busy, then it's still copying or comparing files.

Thanks
-YK

Comment 5 lihuang 2009-01-16 09:58:08 UTC
lihuang-> ykun

OK. I am re-testing, and will update the results later.

thank you very much

Comment 6 lihuang 2009-01-16 18:01:55 UTC
yes . spent more than 4 hours to finish this case. it ended successfully.
Can I close it ?