Test Day:2011-10-20 OpenStack Test Day

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(Disable SELinux)
m (Added missing category)
 
(46 intermediate revisions by 9 users not shown)
Line 27: Line 27:
 
== Prerequisite for Test Day ==  
 
== Prerequisite for Test Day ==  
  
* A [http://fedoraproject.org/get-prerelease fully updated Fedora 16 machine].
+
* A [http://fedoraproject.org/get-prerelease fully updated Fedora 16 (virtual) machine].
* Hardware virtualization support (e.g. Intel VT or AMD-V). Openstack can be installed on the host OS or within a KVM
+
* Hardware virtualization support (e.g. Intel VT or AMD-V).
 
* Up to 10-20Gb free disk space. Guest images take up a lot of space.
 
* Up to 10-20Gb free disk space. Guest images take up a lot of space.
 +
 +
{{admon/note|Hardware Requirements|You can do basic testing of OpenStack in a virtual machine, with specific config noted below}}
  
 
== How to test? ==
 
== How to test? ==
Line 37: Line 39:
 
=== '''Configure sudo''' ===
 
=== '''Configure sudo''' ===
  
Add your account to sudoers e.g.
+
Add <span style="color:red;">your account</span> to sudoers, which can be done from a root prompt like:
  
   $> sudoedit /etc/sudoers
+
   #> (umask 337; name=<span style="color:red;">markmc</span>; echo "$name ALL = (ALL) NOPASSWD: ALL" > /etc/sudoers.d/testday)
  ...
+
  markmc ALL = (ALL) NOPASSWD: ALL
+
  
 
=== '''Update your machine''' ===
 
=== '''Update your machine''' ===
Line 61: Line 61:
 
  $> sudo chkconfig libvirtd on
 
  $> sudo chkconfig libvirtd on
  
=== '''Disable SELinux''' ===
+
=== '''Optionally Disable SELinux''' ===
  
Until we have [https://bugzilla.redhat.com/734346 SELinux policy for Nova]:
+
We now have [https://bugzilla.redhat.com/734346 SELinux policy for Nova]. If you don't have selinux-policy 3.10.0-43.fc16 or newer, disable enforcing mode:
  
 
  $> sudo setenforce 0
 
  $> sudo setenforce 0
 
  $> sudo sed -i 's/^SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
 
  $> sudo sed -i 's/^SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
  
=== '''Create a nova-volumes VG''' ===
+
However, if you're running in permissive mode, please keep an eye on AVCs logged and add them to [[Test_Day:2011-10-20_OpenStack_Test_Day_SELinux_AVCs]].
  
Nova expects an LVM volume group called '''nova-volumes'''. One way of creating this is:
+
=== '''Load nbd''' ===
  
$> sudo truncate -s20G /var/lib/nova/nova-volumes.img
+
So that we can later inject files into qcow2 images
$> sudo vgcreate nova-volumes $(sudo losetup --show -f /var/lib/nova/nova-volumes.img)
+
  
=== '''Create a novacreds Directory''' ===
+
$> sudo modprobe nbd
 
+
  $> echo nbd | sudo tee -a /etc/modules-load.d/nbd.conf
You will need to store your Nova credentials somewhere, so e.g.
+
 
+
  $> mkdir ~/novacreds
+
  
 
== Test Cases ==
 
== Test Cases ==
Line 97: Line 93:
  
 
# [[QA:Testcase_launch_an_instance_on_OpenStack|Launch an instance]]
 
# [[QA:Testcase_launch_an_instance_on_OpenStack|Launch an instance]]
 +
# [[QA:Testcase_attach_a_volume_to_an_instance|Attach a volume]]
 
# [[QA:Testcase_OpenStack_floating_IPs|Floating IPs]]
 
# [[QA:Testcase_OpenStack_floating_IPs|Floating IPs]]
 
# [[QA:Testcase_use_MySQL_for_OpenStack_database|MySQL]]
 
# [[QA:Testcase_use_MySQL_for_OpenStack_database|MySQL]]
Line 122: Line 119:
 
! References
 
! References
 
|-
 
|-
| [[User:SampleUser|Sample User]]
+
| [[User:Sergey|Sergey]]
 +
| {{result|warn}} <ref>Test pass, but also encountered {{bz|685155}}</ref>
 +
| {{result|fail}} <ref>Test fails {{bz|746767}}</ref>
 +
| {{result|fail}} <ref>Test fails {{bz|746771}}</ref>
 +
| {{result|pass}}
 
| {{result|none}}
 
| {{result|none}}
 +
| {{result|none}}
 +
| <references/>
 +
|-
 +
| [[User:Markmc|markmc]]
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}} <ref>"database is locked" errors {{bz|735012}}</ref>
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| <references/>
 +
|-
 +
| [[User:Pbrady|pbrady]]
 +
| {{result|pass}} <ref>All testing done in a VM, with selinux permissive mode </ref>
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| <references/>
 +
|-
 +
| [[User:asalkeld|asalkeld]]
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}}
 
| {{result|pass}}
 
| {{result|pass}}
| {{result|warn}} <ref>Test pass, but also encountered {{bz|54321}}</ref>
 
| {{result|fail}} <ref>{{bz|12345}}</ref>
 
| {{result|none}}
 
 
| {{result|none}}
 
| {{result|none}}
 
| <references/>
 
| <references/>
 
|-
 
|-
| [[User:Sergey|Sergey]]
+
| [[User:Rkukura|rkukura]]
 +
| {{result|pass}} <ref>All testing done in enforcing mode</ref>
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| <references/>
 +
|-
 +
| [[User:aacosta|aacosta]]
 
| {{result|warn}} <ref>Test pass, but also encountered {{bz|685155}}</ref>
 
| {{result|warn}} <ref>Test pass, but also encountered {{bz|685155}}</ref>
| {{result|fail}} <ref>Test fails {{bz|746767}}</ref>
+
| {{result|pass}}
| {{result|fail}} <ref>Test fails {{bz|746771}}</ref>
+
 
| {{result|pass}}  
 
| {{result|pass}}  
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| <references/>
 +
|-
 +
 +
 +
 +
<!--
 +
| [[User:SampleUser|Sample User]]
 +
| {{result|none}}
 +
| {{result|pass}}
 +
| {{result|warn}} <ref>Test pass, but also encountered {{bz|54321}}</ref>
 +
| {{result|fail}} <ref>{{bz|12345}}</ref>
 
| {{result|none}}
 
| {{result|none}}
 
| {{result|none}}
 
| {{result|none}}
 
| <references/>
 
| <references/>
 
|-
 
|-
 +
-->
 
|}
 
|}
  
Line 147: Line 194:
 
! User
 
! User
 
! [[QA:Testcase_launch_an_instance_on_OpenStack|Launch an instance]]
 
! [[QA:Testcase_launch_an_instance_on_OpenStack|Launch an instance]]
 +
! [[QA:Testcase_attach_a_volume_to_an_instance|Attach a volume]]
 
! [[QA:Testcase_OpenStack_floating_IPs|Floating IPs]]
 
! [[QA:Testcase_OpenStack_floating_IPs|Floating IPs]]
 
! [[QA:Testcase_use_MySQL_for_OpenStack_database|MySQL]]
 
! [[QA:Testcase_use_MySQL_for_OpenStack_database|MySQL]]
Line 152: Line 200:
 
! References
 
! References
 
|-
 
|-
 +
| [[User:Markmc|markmc]]
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}} <ref>AMQPChannelException {{bz|747568}}</ref>
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| <references/>
 +
|-
 +
| [[User:Pbrady|pbrady]]
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|pass}} <ref>Not available external to a VM {{bz|747605}}</ref>
 +
| {{result|none}}
 +
| {{result|none}}
 +
| <references/>
 +
|-
 +
| [[User:asalkeld|asalkeld]]
 +
| {{result|pass}}
 +
| {{result|none}}
 +
| {{result|none}}
 +
| {{result|none}}
 +
| {{result|none}}
 +
| <references/>
 +
|-
 +
| [[User:Rkukura|rkukura]]
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| {{result|none}}
 +
| {{result|pass}}
 +
| {{result|pass}}
 +
| <references/>
 +
|-
 +
<!--
 
| [[User:SampleUser|Sample User]]
 
| [[User:SampleUser|Sample User]]
 +
| {{result|none}}
 
| {{result|none}}
 
| {{result|none}}
 
| {{result|pass}}
 
| {{result|pass}}
Line 159: Line 241:
 
| <references/>
 
| <references/>
 
|-
 
|-
 +
-->
 
|}
 
|}
  
Line 169: Line 252:
 
! References
 
! References
 
|-
 
|-
 +
| [[User:Markmc|markmc]]
 +
| {{result|none}}
 +
| {{result|none}}
 +
| <references/>
 +
|-
 +
| [[User:Pbrady|pbrady]]
 +
| {{result|none}}
 +
| {{result|pass}} <ref>all 50 passed. note I didn't do mysql test</ref>
 +
| <references/>
 +
|-
 +
| [[User:asalkeld|asalkeld]]
 +
| {{result|pass}}
 +
| {{result|none}}
 +
| <references/>
 +
|-
 +
<!--
 
| [[User:SampleUser|Sample User]]
 
| [[User:SampleUser|Sample User]]
 
| {{result|warn}} <ref>Test pass, but also encountered {{bz|54321}}</ref>
 
| {{result|warn}} <ref>Test pass, but also encountered {{bz|54321}}</ref>
Line 174: Line 273:
 
| <references/>
 
| <references/>
 
|-
 
|-
 +
-->
 
|}
 
|}
  
[[Category:Test Days]]
+
[[Category:Test Days]] [[Category:Fedora 16 Test Days]]
|
+
[[Category:OpenStack]]
[[Category:Cloud SIG]]
+

Latest revision as of 13:27, 14 June 2013

Fedora Test Days
Echo-testing-48px.png
OpenStack Test Day

Date 2011-10-20
Time all day

Website QA/Fedora_16_test_days
IRC #fedora-test-day (webirc)

Mailing list
MailSubscribeArchives


Note.png
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.

Contents

[edit] What to test?

Today's instalment of Fedora Test Day is a Cloud SIG Test Day. This page tracks the tests specifically focused on OpenStack.

[edit] Who's available

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

[edit] Prerequisite for Test Day

Note.png
Hardware Requirements
You can do basic testing of OpenStack in a virtual machine, with specific config noted below

[edit] How to test?

Follow the steps below to prepare the machine, then follow each of the test cases in order.

[edit] Configure sudo

Add your account to sudoers, which can be done from a root prompt like:

 #> (umask 337; name=markmc; echo "$name ALL = (ALL) NOPASSWD: ALL" > /etc/sudoers.d/testday)

[edit] Update your machine

Make sure you have all the current updates for it installed:

 $> sudo yum update -y

[edit] Enable RabbitMQ

$> sudo yum install --enablerepo=updates-testing -y rabbitmq-server
$> sudo service rabbitmq-server start
$> sudo chkconfig rabbitmq-server on

[edit] Enable libvirt

$> sudo yum install --enablerepo=updates-testing -y @virtualization
$> sudo service libvirtd start
$> sudo chkconfig libvirtd on

[edit] Optionally Disable SELinux

We now have SELinux policy for Nova. If you don't have selinux-policy 3.10.0-43.fc16 or newer, disable enforcing mode:

$> sudo setenforce 0
$> sudo sed -i 's/^SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config

However, if you're running in permissive mode, please keep an eye on AVCs logged and add them to Test_Day:2011-10-20_OpenStack_Test_Day_SELinux_AVCs.

[edit] Load nbd

So that we can later inject files into qcow2 images

$> sudo modprobe nbd
$> echo nbd | sudo tee -a /etc/modules-load.d/nbd.conf

[edit] Test Cases

When ready, follow the instructions provided in each of the test cases:

Basic setup:

  1. Install the packages
  2. Start glance services
  3. Start nova services
  4. Create user, project and network
  5. Add SSH keypair
  6. Register tty images

Core functionality:

  1. Launch an instance
  2. Attach a volume
  3. Floating IPs
  4. MySQL
  5. Separate compute node

Extra credit:

  1. Build an image with Oz
  2. Smoke tests

[edit] Test Results

If you have problems with any of the tests, report a bug to Bugzilla usually for one of the openstack-nova, openstack-glance, openstack-keystone or openstack-swift components. 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 Results table 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.

Basic setup:

User Install the packages Start glance services Start nova services Create user, project and network Add SSH keypair Register tty images References
Sergey
Warning warn
[1]
Fail fail
[2]
Fail fail
[3]
Pass pass
none
none
  1. Test pass, but also encountered RHBZ #685155
  2. Test fails RHBZ #746767
  3. Test fails RHBZ #746771
markmc
Pass pass
Pass pass
Pass pass
Pass pass
[1]
Pass pass
Pass pass
  1. "database is locked" errors RHBZ #735012
pbrady
Pass pass
[1]
Pass pass
Pass pass
Pass pass
Pass pass
Pass pass
  1. All testing done in a VM, with selinux permissive mode
asalkeld
Pass pass
Pass pass
Pass pass
Pass pass
Pass pass
none
rkukura
Pass pass
[1]
Pass pass
Pass pass
Pass pass
Pass pass
Pass pass
  1. All testing done in enforcing mode
aacosta
Warning warn
[1]
Pass pass
Pass pass
Pass pass
Pass pass
Pass pass
  1. Test pass, but also encountered RHBZ #685155

Core functionality:

User Launch an instance Attach a volume Floating IPs MySQL Separate compute node References
markmc
Pass pass
Pass pass
Pass pass
[1]
Pass pass
Pass pass
  1. AMQPChannelException RHBZ #747568
pbrady
Pass pass
Pass pass
Pass pass
[1]
none
none
  1. Not available external to a VM RHBZ #747605
asalkeld
Pass pass
none
none
none
none
rkukura
Pass pass
Pass pass
none
Pass pass
Pass pass

Extra credit:

User Build an image with Oz Smoke tests References
markmc
none
none
pbrady
none
Pass pass
[1]
  1. all 50 passed. note I didn't do mysql test
asalkeld
Pass pass
none