From Fedora Project Wiki

Line 30: Line 30:
The test machine should ideally have multiple disks and multiple network interfaces.  If you use a virtual machine, just add some virtual disks and network adapters.
The test machine should ideally have multiple disks and multiple network interfaces.  If you use a virtual machine, just add some virtual disks and network adapters.


* '''Install generic Fedora:''' [http://dl.fedoraproject.org/pub/alt/stage/21_Alpha_TC7/Server/x86_64/iso/ Fedora 21 Server Alpha TC7] on your machine (use then Notes section below).
* '''Install Fedora 21 Server.''' Make sure that your installation is recent enough.  Either install [http://dl.fedoraproject.org/pub/alt/stage/21_Alpha_TC7/Server/x86_64/iso/ Fedora 21 Server Alpha TC7] or run <code>yum update</code> in an older Fedora 21 Server installation.  You should have at least Cockpit 0.23.
* '''prepared Live ISO images:''' (root have no password here by default, anything you type will access cockpit page)
* '''Prepared Live ISO images:''' (root have no password here by default, anything you type will access cockpit page)
** https://fedorapeople.org/groups/qa/20140916-Cockpit-Test-Day-Live-x86_64.iso
** https://fedorapeople.org/groups/qa/20140916-Cockpit-Test-Day-Live-x86_64.iso
* '''image for virt-manager''' : http://fedorapeople.org/groups/qa/20140916-Cockpit-VM-disk-image.qcow2.xz
* '''Image for virt-manager''' : http://fedorapeople.org/groups/qa/20140916-Cockpit-VM-disk-image.qcow2.xz
** user/password: test/test root/internal
** user/password: test/test root/internal
<pre>
<pre>
Line 44: Line 44:
</pre>
</pre>


** on virt guest (workaround for docker testcases):
Note that Docker is not enabled by default, but the test cases will tell you how to enable it.
<pre>
systemctl enable docker
systemctl start docker
systemctl restart cockpit
ip a s dev eth0
</pre>


== How to test? ==
== How to test? ==

Revision as of 16:43, 15 September 2014

Fedora Test Days
Cockpit Test Day

Date 2014-09-16
Time all day

Website QA/Fedora_21_test_days
IRC #fedora-test-day (webirc)
Mailing list cockpit-devel


Can't make the date?
If you come to this page before or after the test day is completed, your testing is still valuable, and you can use the information on this page to test, file any bugs you find at Bugzilla, and add your results to the results section. If this page is more than a month old when you arrive here, please check the current schedule and see if a similar but more recent Test Day is planned or has already happened.

What to test?

Today's installment of Fedora Test Day will focus on testing Cockpit. Cockpit is a server user interface.

http://cockpit-project.org

Who's available

The following cast of characters will be available testing, workarounds, bug fixes, and general discussion ...

Prerequisite for Test Day

A machine that can run Fedora 21 and that you can screw around with. This can be a virtual machine, but we are also very interested in test results on real hardware.

The test machine should ideally have multiple disks and multiple network interfaces. If you use a virtual machine, just add some virtual disks and network adapters.

curl https://fedorapeople.org/groups/qa/20140916-Cockpit-VM-disk-image.qcow2.xz >20140916-Cockpit-VM-disk-image.qcow2.xz
unxz 20140916-Cockpit-VM-disk-image.qcow2.xz
yum -y install qemu\*
systemctl  restart libvirtd
virt-install --connect qemu:///system --ram 1024 -n cockpit --os-type=linux --os-variant=fedora20 --disk path=20140916-Cockpit-VM-disk-image.qcow2,device=disk,format=qcow2 --vcpus=1 --vnc --noautoconsole --import
virt-manager&

Note that Docker is not enabled by default, but the test cases will tell you how to enable it.

How to test?

After boot, Cockpit is up and running and listens on port 9090.

  • Point a browser at
    • http://<server-ip-address>:9090
    • Cockpit's login page will load.
      • Cockpit uses a self-signed certificate, and your browser will very likely warn you about it.

(Here, <server-ip-address> is the IP address of your machine. You can find it by logging into the machine on the text console as "root" and running ip addr.)

Once the Cockpit log in screen is loaded in your browser, log in as "root". You can log into Cockpit as any user that exists on the machine, but currently only "root" has enough privileges to execute the test cases. Trying with any other user, even those that are in the "wheel" group, will likely lead to techno-babble error messages. (This will be improved as Cockpit and its dependencies evolve, of course.)

The test cases are intentionally a bit vague. They don't tell you exactly what button to click, and what to type into which field. You have to figure that out yourself! :-) Cockpit should be discoverable´, and your feedback about this is very valuable.

Unfortunately, Cockpit is quite far from being finished. There are so many things worth improving that it will be a lot of work to report them all. For example, most of the dialogs don't do intelligent validation of user input. Thus, we can not ask you to be exhaustive. Feel free to report only things that you consider non-obvious´ or are particularily important to you.

In fact, please stray from the test cases into whatever corner of Cockpit you want to explore!

When Cockpit encounters an internal error, a red "Oops" label will appear at the top right. Please report it when this happens. It is not a good idea to continue using Cockpit after an "Oops", but simply reloading the page should put you back on track.

Please report your feedback either on Github or in Bugzilla.

Test Cases

Test Results

If you have problems with any of the tests, report a bug either on Github or in Bugzilla.

If you are unsure about exactly how to file the report or what other information to include, just ask on IRC and we will help you. Once you have completed the tests, add your results to the tables below, following the example results from the first line as a template. The first column should be your name with a link to your User page in the Wiki if you have one. For each test case, use the result template to enter your result, as shown in the example result line.

Testday Results App

Use This App for reporting results
Put your results here

Basic

User Password change Create user account References
Sample User
Pass pass
Fail fail
[1]

Storage

User Monitor disk I/O Create a RAID Device Create a Logical Volume References

Network

User Monitor network I/O Create VLAN Create Bond References

Docker

User Download and run image Create a new image and run it References

Notes

to install&enable cockpit service after restart and allow access from outside:

yum -y install cockpit docker-io fedora-dockerfiles wmdocker
firewall-cmd --permanent --add-service=cockpit
systemctl reload firewalld.service
systemctl start docker
systemctl enable docker
systemctl start cockpit.socket
systemctl enable cockpit.socket