|
|
(4 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <Hongqing YANG>
| |
| <14 January 2010>
| |
|
| |
|
| =Accomplishments for this week=
| |
|
| |
| *read the sources code of AutoQA tests rats_install and rats_sanity and understand it.
| |
| *explore the Anaconda/Logging technologies.
| |
|
| |
| =Plans for the upcoming week=
| |
| *involve in the F15 rawhide acceptance test.
| |
| *continue exploring the technologies of Anaconda/Logging.
| |
|
| |
| = Discussions, Escalations or Requests =
| |
| *target missed: prepare knowledge for the F15 Rawhide Acceptance Test Plan by reading the Rawhide Acceptance Test Plan, former test results, etc .I will finish this on this weekend.
| |
| *The steps to do the assignment
| |
| # create port /dev/virtio-ports/org.fedoraproject.anaconda.log.0, I will do this next week.
| |
| # create a guest with a serial port, this can be done by the following two ways:
| |
| first, add the channel option to virt-install command, code is below:
| |
| <pre>
| |
| #!/bin/bash
| |
| virt-install \
| |
| --connect qemu:///system \
| |
| --virt-type kvm \
| |
| --name demo1 \
| |
| --ram 500 \
| |
| --disk path=/home/hongqing/testscript/demo1.img,size=10,sparse=true \
| |
| --accelerate \
| |
| --cdrom /home/hongqing/fedora/Fedora-14-x86_64-DVD.iso \
| |
| --channel tcp host=127.0.0.1 mode=connect target_type=virtio name=org.fedoraproject.nanconda.log.0
| |
| </pre>
| |
| I get the error messsage:
| |
| <pre>
| |
| Starting install...
| |
| ERROR internal error Process exited while reading console log output: char device redirected to /dev/pts/35
| |
| getaddrinfo(127.0.0.1,None): Servname not supported for ai_socktype
| |
| chardev: opening backend "socket" failed
| |
| </pre>
| |
| second, after the guest create, use virsh attach-device command to attach a channel, xml file is below:<br />
| |
| following the instruction on page: http://fedoraproject.org/wiki/Anaconda/Logging . I have sucessfully attach a cdrom, but it fails to attach a port, the xml file is below: <br />
| |
| <pre>
| |
| <channel type='tcp'>
| |
| <source mode='connect' host='127.0.0.1' service='6080'/>
| |
| <target type='virtio' name='org.fedoraproject.anaconda.log.0'/>
| |
| </channel>
| |
| </pre>
| |
| error message is:
| |
| <pre>
| |
| error: Failed to attach device from channel.xml
| |
| error: XML description for unknown device type is not well formed or invalid
| |
| </pre>
| |
| I just got message from Daniel P. Berrange that virsh does not support serials hotplug. I can use virsh edit or add to the configuration xml file when create guest.
| |
| I also find that qemu monitor supports serials hotplug/unhotplug, I will also try this.
| |
| #start the listening rsyslogd process on the host, follow the instrution: http://fedoraproject.org/wiki/Anaconda/Logging
| |
| <pre> eval `scripts/analog -p 6080 ./ -o rsyslogd.conf -s </pre>
| |
| it says the scripts/analog is in the anaconda RPM file, I still do not understand how to use it, will do it next week.
| |
| #define the test result criteria according the logs forwarded by the guest.
| |
| * I will try to finish the assignment in the next two weeks.
| |