commit 126e28324231b91c8b8df8519e2c348040871440 Author: Raymond Mancy Date: Mon Nov 19 22:08:03 2012 +1000 Automatic commit of package [beaker] release [0.10.1-1]. commit 5fe7880e102733f6aef5afab5eaf2ee6ccb040ef Author: Raymond Mancy Date: Mon Nov 19 14:47:25 2012 +1000 Moved schedule code into virt_recipes(). RHEV errors during the scheduling could cause every rhev recipe to be aborted, without having the ability of falling back to queing on a regular system. Errors from recipe.provision() (like those shown in 7f541ff1d8ae3fa0a44bd) are now caught and handled. Change-Id: Ida9e8d79b05f8c1b82f6ce46998c1bec7a71a7e5 commit 7f541ff1d8ae3fa0a44bd72f85395415acee7fdf Author: Raymond Mancy Date: Mon Nov 19 11:12:19 2012 +1000 Specify which storage domain you want your beaker machines created on. Without this option, having non bootable storage domains (i.e ISO domains) on your Hypervisor can cause the following traceback during provisioning and will abort the recipe: 2012-11-15 17:22:51,828 beakerd ERROR Failed to provision recipeid 360 Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/bkr/server/tools/beakerd.py", line 525, in scheduled_recipes recipe.provision() File "/usr/lib/python2.6/site-packages/bkr/server/model.py", line 5194, in provision self.resource.lab_controller) File "/usr/lib/python2.6/site-packages/bkr/server/model.py", line 6484, in start_install self.api.vms.get(name).start(action=a) File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/brokers.py", line 5296, in start headers={"Correlation-Id":correlation_id}) File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line 128, in request last=last) File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line 154, in __doRequest raise RequestError, response RequestError: ^M status: 400^M reason: Bad Request^M detail: Cannot run VM without at least one bootable disk commit 275ce347559bf07f4eb67e8ab65de77f22b2b05f Author: Raymond Mancy Date: Mon Nov 19 10:50:35 2012 +1000 Move CSV export step to top of upgrade notes. We need to do this step first as beaker may be in a non functioning state half way through the upgrade, so the CSV export may not work at that point. commit b7b27db9d8b66e2ec11e5d5f37138f83a177aefa Author: Dan Callaghan Date: Wed Nov 14 13:37:41 2012 +1000 fix Processed and Queued state transitions for guest recipes This was a mistake in commit 7e690c1e for bug 655009. The update_status method would never be called after changing the state of the guest recipes so they would be stuck in New. Change-Id: I871437dba7fa75f13fe2d0bc2fc32dbe084e7352 commit aaffffa51dac1f7b751b20c1a8e796fbd43e396f Author: Dan Callaghan Date: Tue Nov 13 11:06:08 2012 +1000 roll back creation of VirtResource if VM creation fails Otherwise the VirtResource row will be committed even though the VM was never created and the recipe was not moved to Scheduled. So it will end up breaking later on, when queued_recipes tries to provision a real system for it: 2012-11-12 18:12:12,071 beakerd ERROR Failed to commit in queued_recipes Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/bkr/server/tools/beakerd.py", line 391, in queued_recipes recipe.resource.allocate() File "/usr/lib/python2.6/site-packages/bkr/server/model.py", line 5964, in allocate reservation_type=u'recipe') File "/usr/lib/python2.6/site-packages/bkr/server/model.py", line 2452, in reserve session.flush() [...] IntegrityError: (IntegrityError) (1452, 'Cannot add or update a child row: a foreign key constraint fails (`beaker_devel/recipe_resource`, CONSTRAINT `recipe_resource_recipe_id_fk` FOREIGN KEY (`recipe_id`) REFERENCES `recipe` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)') 'UPDATE recipe_resource SET recipe_id=%s WHERE recipe_resource.id = %s' (None, 12L) Change-Id: I6e9cd94ad674549e3dff688e5d2d8be0e9426fb5 commit f0a55f672d2e08aa7f87579db16bd3f5d5281b9b Author: Dan Callaghan Date: Mon Nov 12 15:49:29 2012 +1000 tests: ensure log messages are always evaluated immediately This is to work around the fact that nose delays evaluating the log messages when log capturing is enabled, which can result in exceptions like this if the log message tries to format an expired sqlalchemy instance: Traceback (most recent call last): File "/usr/bin/nosetests", line 9, in load_entry_point('nose==1.1.2', 'console_scripts', 'nosetests')() File "/usr/lib/python2.6/site-packages/nose/core.py", line 118, in __init__ **extra_args) File "/usr/lib64/python2.6/unittest.py", line 816, in __init__ self.runTests() File "/usr/lib/python2.6/site-packages/nose/core.py", line 197, in runTests result = self.testRunner.run(self.test) File "/usr/lib/python2.6/site-packages/nose/core.py", line 61, in run test(result) [...] File "/usr/lib/python2.6/site-packages/nose/case.py", line 138, in run result.addError(self, err) File "/usr/lib/python2.6/site-packages/nose/proxy.py", line 131, in addError formatted = plugins.formatError(self.test, err) File "/usr/lib/python2.6/site-packages/nose/plugins/manager.py", line 94, in __call__ return self.call(*arg, **kw) File "/usr/lib/python2.6/site-packages/nose/plugins/manager.py", line 136, in chain result = meth(*arg, **kw) File "/usr/lib/python2.6/site-packages/nose/plugins/logcapture.py", line 223, in formatError test.capturedLogging = records = self.formatLogRecords() File "/usr/lib/python2.6/site-packages/nose/plugins/logcapture.py", line 231, in formatLogRecords return [safe_str(format(r)) for r in self.handler.buffer] File "/usr/lib64/python2.6/logging/__init__.py", line 654, in format return fmt.format(record) File "/usr/lib64/python2.6/logging/__init__.py", line 436, in format record.message = record.getMessage() File "/usr/lib64/python2.6/logging/__init__.py", line 306, in getMessage msg = msg % self.args File "/usr/lib/python2.6/site-packages/bkr/server/model.py", line 2982, in __repr__ return '%s(name=%r)' % (self.__class__.__name__, self.name) File "/usr/lib64/python2.6/site-packages/sqlalchemy/orm/attributes.py", line 168, in __get__ instance_dict(instance)) File "/usr/lib64/python2.6/site-packages/sqlalchemy/orm/attributes.py", line 388, in get value = callable_(passive=passive) File "/usr/lib64/python2.6/site-packages/sqlalchemy/orm/state.py", line 287, in __call__ self.manager.deferred_scalar_loader(self, toload) File "/usr/lib64/python2.6/site-packages/sqlalchemy/orm/mapper.py", line 2509, in _load_scalar_attributes state_str(state)) sqlalchemy.orm.exc.ObjectDeletedError: Instance '' has been deleted. Also removed a very old workaround for sqlalchemy 0.4 that no longer applies. Change-Id: I0c6bd888ae3ad660bb965c861a08d195c67ec0c5 commit 143341126883904768734723fd63406595cdddf0 Author: Dan Callaghan Date: Mon Nov 12 12:23:31 2012 +1000 skip log-delete tests if kerberos is not available We only support Kerberos authentication in log-delete, so we can just skip the tests if it's missing. Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/bkr/inttest/server/tools/test_log_delete.py", line 116, in test_log_delete_expired log_delete.log_delete() File "/usr/lib/python2.6/site-packages/bkr/server/tools/log_delete.py", line 54, in log_delete auth=requests.auth.HTTPKerberosAuth(require_mutual_auth=False)) File "/usr/lib/python2.6/site-packages/requests/auth.py", line 279, in __init__ raise Exception("Kerberos libraries unavailable") Exception: Kerberos libraries unavailable Change-Id: I55a50aedbd1255545126101ad88f713a25b04454 commit b08bd2970670cf4792899b442d7cb67cc6f4e4ea Author: Raymond Mancy Date: Mon Nov 12 11:50:44 2012 +1000 Re-doing template change from 77641e1. This was acidentally overwritten by e708bd commit 9229a8dd965c71f2e51a05a3eefdc650d9e7463c Author: Amit Saha Date: Fri Nov 9 17:29:53 2012 +1000 Look for an element on the loaded page. This takes advantage of the implicit wait and hence prevents intermittent failures. Bug: 860870 Change-Id: I032df8fc0018dbbfd77995ae025aed674c1ff37a commit 40f4404728d49552e554f6a4b566d071ee0f10ed Author: Dan Callaghan Date: Fri Nov 9 13:16:22 2012 +1000 fix error when destroying a VM which is not running 2012-11-08 14:25:09,875 bkr.server.model ERROR Failed to destroy vm guest_for_recipe_220, leaked! Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/bkr/server/model.py", line 6005, in release manager.destroy_vm(self.system_name) File "/usr/lib/python2.6/site-packages/bkr/server/model.py", line 6492, in destroy_vm vm.stop() File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/brokers.py", line 5313, in stop headers={"Correlation-Id":correlation_id}) File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line 128, in request last=last) File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/proxy.py", line 154, in __doRequest raise RequestError, response RequestError: status: 400 reason: Bad Request detail: Cannot stop VM. VM is not running. Change-Id: If8896b414746778b98bc72ae160de77bfcd5451b commit 4efb5bf4787109940e4e69f67d2b829d0c777801 Author: Dan Callaghan Date: Fri Nov 9 08:16:00 2012 +1000 update repo URL for Fedora ARM packages Bug: 874675 Change-Id: I2ba4c3817be49eeebb9f58c6a2b59c6f81bbd9c3 commit 873ec0da4bf21704d20b1dd955f94d65f4922047 Author: Nick Coghlan Date: Thu Nov 8 14:43:46 2012 +1000 Fixes to whiteboard env var definitions - always define env vars (even when empty) - set to empty when provisioning manual systems Bug: 691442 Change-Id: Id47f78f97447f56e76e3bf72d53c73279141afea commit ab642fec77ac8c38947c94f6715c1e21535d307c Author: Amit Saha Date: Thu Nov 8 17:38:45 2012 +1000 Update the priority values in the schema to match the actual allowed ones. Bug: 740704 commit 7bc7058b757bf6f45e4f7008271d39d8adf6dc3e Author: Dan Callaghan Date: Tue Nov 6 16:47:24 2012 +1000 use postreboot instead of install_done for RHEV reboot hackery This way we can ensure the reboot happens at the very end of %post. Change-Id: I7c5333498015380b75629fd988b99387d2b98650 commit 2bbf51f039bacdcbb18de1d2e624293e7129a380 Author: Dan Callaghan Date: Wed Nov 7 15:50:02 2012 +1000 allocate MAC address for RHEV guests Beaker should use the same MAC address allocation scheme for RHEV guests as it uses for guest recipes, for the same reasons. Change-Id: I81b39a8e08c08851a870226f82ec3c4db5e6c50e commit c4a8ebce9893b969148c5571bb7a52c0051d9cd1 Author: Dan Callaghan Date: Wed Nov 7 15:01:42 2012 +1000 move virt manager settings from db to config file This means we only support one (optional) RHEV-M instance, instead of many. It makes things a lot simpler and lets us fix the issue with leaking VMs in beakerd.virt_recipes if the db transaction rolls back. Change-Id: I48e526f650d52c787e65b53639ce349dee644132 commit 0da0bdb3504427d4e9d429cf34f471470ef49ad1 Author: Amit Saha Date: Thu Nov 8 10:40:11 2012 +1000 Fix test case for systems view under My Groups Bug: 839116 Change-Id: I0a0dda657a95a5e2398f573ae1bf25987dd97db2 commit 79d77d76fd651fdb8866246263dc73b19e8a6d6a Author: Amit Saha Date: Wed Nov 7 14:43:17 2012 +1000 Updates to the Job RNG description. Other miscellaneous cleanups to the documentation to hopefully make it crisper and more useful. Bug: 740704 Change-Id: Ie4b8499e31da760ecfcfb6c92f77e77d3cd48928 commit 8988b4015fd49f4553e3cb3a205869c2450705a3 Author: Nick Coghlan Date: Mon Nov 5 14:17:51 2012 +1000 Improve description of recipeSet XML tag Arguably this is duplicating info available at the other end of the cross-reference, but I think the maintenance risk is low since the meaning of recipeSet is highly unlikely to change. Bug: 626292 Change-Id: If771f4bb3d2f93fcff708506e3dd8c9ca3de259d commit 0c3d0140dc0a23b5b2b9b2d59dbbf05485fa2f9e Author: Bill Peck Date: Thu Oct 25 15:38:14 2012 -0400 unable to collect inventory from ppc64 system running RH6.3 Bug: 820793 Change-Id: Ie9e4faa188cd77dc7eb71585d0eb0db0a0bea003 commit a28a2426cbf7dc49ce626b9535e038d99d4087ce Author: Dan Callaghan Date: Tue Nov 6 16:06:33 2012 +1000 fix typo in VirtManager.destroy_vm Change-Id: I911c9ce92c6edd5ba8a367abc0ee4ab94d7295b2 commit edcca9cb25c41ea15824f707ef8c890104bf88bc Author: Dan Callaghan Date: Tue Nov 6 14:40:24 2012 +1000 support for running recipes on RHEV/oVirt guests Based on a patch by Steven Lawrance . Bug: 862518 Change-Id: If46da6be23fabac11f6defa7c724e2d369eb1544 commit 739b6b95f40574c5f3a423645911cc3762d39536 Author: Raymond Mancy Date: Mon Nov 5 16:00:15 2012 +1000 Move beaker.documentation_link to app.cfg from server.cfg commit 807a9978a7395eedac903ea09e41f1efd0832e26 Author: Dan Callaghan Date: Mon Nov 5 15:10:57 2012 +1000 remove Client/build.out accidentally added in commit be470056 commit be470056adc7f01f0461d4935313517ca8cbda66 Author: Nick Coghlan Date: Thu Nov 1 11:29:18 2012 +1000 Wait for power state change when using ipmitool The fence scripts wait for the power state to change, this adds the same behaviour to the direct call to ipmitool. Bug: 860130 Change-Id: Ia6bd9e19c83e1fde85e164d5736548217910d0cc commit a56025be90384369246aeb658f6c8356d4dd7f8c Author: Amit Saha Date: Fri Oct 26 14:59:44 2012 +1000 Add Systems information in My Groups. Bug: 839116 Change-Id: I9f935b394f9843e0967719cfdb9eb173bac33364 commit db965e1168fde1f49898127f1ed1946d0b4df405 Author: Amit Saha Date: Fri Nov 2 18:38:24 2012 +1000 Use 'curl' instead of 'wget' in RHEL 6+ and Fedora in Kickstarts. Continue using 'wget' in %pre (install) commands but use curl in all %post (install) commands. Bug: 735054 Change-Id: I3a948e72e6cf8a86e044938ca446a0c63a25db8d commit c7a059abf76bd0c501ae2a742701ba6478450ecc Author: Raymond Mancy Date: Fri Oct 5 15:41:21 2012 +1000 Added beaker-proxy server process to test suite Change-Id: Ib3984cb664aceb0ac01f25878118e323307a4816 commit e708bd66ee681e3c11f5f47cafa42f88c82e3b98 Author: Amit Saha Date: Fri Oct 26 11:28:11 2012 +1000 Always show task specified by anchor. Bug: 674025 Change-Id: I465c84892f3c59955201790382f0be75372889d3 commit d2ec7a8d54bc3cc433e7aa6614c3f167b71f78d9 Author: Raymond Mancy Date: Thu Nov 1 09:46:06 2012 +1000 Initial glossary index Bug:695609 Change-Id: I5385eaab40762d04bf1580134360ce2ed4a652f8 commit 8f51009224229ab8ebddce72ca4647ee5941a9b7 Author: Nick Coghlan Date: Fri Oct 26 15:23:14 2012 +1000 Be explicit that tasks may not have their destructiveness defined. Bug: 749512 Change-Id: Iddac66d7755817aacf39d9971925c4949432ad52 commit dafb6eca6e96046c67c4df47088df6f015db3455 Author: Dan Callaghan Date: Thu Nov 1 11:23:04 2012 +1000 turn off Jinja caching for kickstart templates Bug: 862235 Change-Id: I9847e5385d5ed9323caac58ea66f13d2891b2592 commit f54e4d5ea1ffcdf1e2467becec676021e22e7d7c Author: Dan Callaghan Date: Thu Nov 1 09:56:18 2012 +1000 allow sorting recipes grid by fqdn I had disabled this in the original version of my patch for bug 655009 because the db structure made it too difficult, but moving fqdn onto RecipeResource (as suggested by Nick) means that there is no problem. Change-Id: I53512f80cf87e94e3262ce5754493c7e77cb6aca commit 0b4289b9420a5aa45bc20f16789e1e5c592c77bc Author: Dan Callaghan Date: Thu Nov 1 08:55:44 2012 +1000 use unpatched tarballs for tito build --test There is just too much stuff which patch cannot handle, like adding binary files or adding empty files. So for test builds, revert back to the default tito behaviour (create a tarball directly from the git commit, with no patches on top). We continue with the current behaviour for non-test builds, under the assumption that hotfixes do not need any tricky patches. Change-Id: Ia768dcbdd70e90009f36aad131318bb7824cc830 commit 5588ccfdd6d55a2999730e709897dd53117a05d0 Author: Dan Callaghan Date: Wed Oct 31 17:57:36 2012 +1000 normalize log paths before inserting into the database Bug: 865265 Change-Id: I12b80cb8de26a136408dc3eb8f03309e8642e0a3 commit d8948ec9175a8ff4a0652748e823f80762e80730 Author: Qixiang Wan Date: Thu Oct 25 14:33:52 2012 +0800 Report "None" for unknown destructive and nda fields in task details When destructive and nda fields are missing in testinfo.desc, the value is stored by Beaker as NULL, and bkr task-details reports destructive=False and nda=False for these tasks. This is dangerous because it means Beaker is reporting a test as not destructive, or not under NDA, when it does not know that. Now it reports None for these fields, and are excluded in xml format output to satisfy the Relax NG schema. Bug: 862970 Change-Id: Ie3555b6708b827ecd53b097c43c1132afd71cfd1 commit cb0317a6e17092565afeadcc36eddcca3632382e Author: Nick Coghlan Date: Mon Oct 29 16:50:36 2012 +1000 Publish whiteboards for reserved systems The job and recipe whiteboards are now published in /etc/motd and the notification email when reserving a system. Bug: 691442 Change-Id: I77a0fda02442c75531adb5d2777c7d9c82387fec commit 77641e1bfc66b7fedf27755a19e5cfbb32bfada2 Author: Raymond Mancy Date: Tue Oct 30 12:02:24 2012 +1000 Link to a recipe's 'Possible Systems' Bug: 607531 Change-Id: Iee7d5fe525ba562fda56038ca7d195571a67bcf9 commit 11541072503bc97646818a5fe18a772c90d71330 Author: Raymond Mancy Date: Mon Oct 29 15:47:06 2012 +1000 DistroTree activity search page Change-Id: I3ee9bbd83e02d954a6c3e9077c10f39b3c50df84 Bug: 837709 commit bff5442d5dbb6265021716aac1092b22b038e8de Author: Bill Peck Date: Mon Oct 1 11:35:06 2012 -0400 run createrepo at task upload time, instead of recipe scheduling time Bug: 835367 Change-Id: I1c276d9bc33b94eebfbd65e822e167fe1d5ad57f commit d968d975555d97dc0274349d818793ec3218e6ee Author: Raymond Mancy Date: Mon Oct 29 16:29:11 2012 +1000 Update footer with version number and doc link Bug: 584267 Change-Id: Ida84a0c85a3369c5908750f0a00edc4b1a161ca3 commit a38896ccec97a4ceffd4b48125f51be2db70d29b Author: Dan Callaghan Date: Wed Oct 24 15:59:14 2012 +1000 only add Jobs to the session once they are fully populated Bug: 869455 Change-Id: Ic14e4df3b217884fab91bea8806888ee35bf0263 commit a3a106c8f3bc237e62ab54f67970e278c0837404 Author: Dan Callaghan Date: Fri Oct 26 11:47:46 2012 +1000 new snippet 'packages' to allow extra packages per system Also removed the word "Error" from the message that we write when no snippet is found, since it's not necessarily an error and I don't want to scare people. Bug: 728410 Change-Id: Ie79c3b0fd8d89596024d7df31ccdab87a43fd10b commit a54364b959e1af465751873b9eeef9636e453190 Author: Dan Callaghan Date: Mon Oct 29 10:58:16 2012 +1000 yum for RHEL3 and RHEL4 Change-Id: Icd0d36a2713b4e0728873515b16dbaaa534a49dd commit 433bf498866e0ac54ec426ee0fce1d03d5a4aaef Author: Raymond Mancy Date: Thu Oct 25 20:47:03 2012 +1000 Expanded documentation for adding a task Bug: 598865 Change-Id: I3351e76f4aa0f8d94e90e8a6933b26541463970e commit 16137c38bf462670e86923ad55c1e659bdbe8160 Author: Dan Callaghan Date: Fri Oct 26 11:18:43 2012 +1000 tests: use a more specific assertion in test_task_search Checking whether '/a/a/a' is present on the page is not a good way to check whether task '/a/a/a' was returned in the results. It will fail if an earlier test has created a task like '/a/a/a7'. Change-Id: Iea3cbf57ae34cb3fd03b3e74488f958fcd69ab68 commit 4379d40a9b68069286bbba2dbf60ce997914e0ad Author: Dan Callaghan Date: Tue Oct 23 17:38:07 2012 +1000 allocate MAC addresses to guests Even though 'Virtual' system records for guest recipes are no longer needed, Beaker still has to allocate MAC addresses for guests. We need to make sure MAC addresses are re-used whenever possible, otherwise running many guest recipes in succession could exhaust the lab's DHCP pool. This also gives some amount of configurability for the MAC addresses used, in case the lab DHCP server has restrictions on what MAC addresses can be granted leases. Bug: 655009 Change-Id: I68e5d64b0cb90b935c807638fbd7c2c7b3f704ff commit 1a180c0f4fab1e5c2767f272c38d915cd63fa95c Author: Dan Callaghan Date: Fri Oct 26 16:40:35 2012 +1000 ensure provision commands aren't leaked in case of unhandled exception Bug: 867168 Change-Id: I3f07f5a1c87abfd5cc1ed9ef78d6651935784fd5 commit 326a9aaaf93c7bfadd29c090ffcd9f3388d3114b Author: David Sommerseth Date: Tue Jul 17 10:31:25 2012 +0200 workflow-xslt: Fix jobxml_parsed variable declarations The jobxml_parsed variable in the JobConfig class was not properly declared and would cause an AttributeError exception if --job-xml was not provided. This patch cleans up the usage of the jobxml_parsed variable, and marking it as a private variable. It also removes the jobxml_parsed variable from the JobArgument class where it was never needed or used. Bug: 840734 Change-Id: I0199e6d4258f6c72f81c65c10075823cd58a7980 commit 29e5b283dc8fa350bcaefbdf752e6306ce005d6b Author: Amit Saha Date: Thu Oct 18 17:50:27 2012 +1000 Support for search by min and max Job ID in the CLI Bug: 816490 Change-Id: I46ecd018eb25141c08c8910666d77a2bc1fe4c8e commit 39dff60185b7962a01724301742bd3508702b892 Author: Dan Callaghan Date: Tue Oct 16 14:57:05 2012 +1000 expose kickstart URL in job results XML This allows /distribution/virt/install to grab the kickstart URL for guest installations. Change-Id: Iad8b515c9ebd5a9f8cd19b51b1bf20df152bd50b commit 544eb1ff884eb1327aaa99da45256dca353a68fe Author: Dan Callaghan Date: Fri Oct 12 14:47:47 2012 +1000 add install_done call to register hostname with Beaker Bug: 655009 Change-Id: I64c717cd2435812ab8b5095efef42e5240fa6675 commit 7e690c1eda8d99ed382137b9895fde56412f2c45 Author: Dan Callaghan Date: Thu Oct 11 12:38:19 2012 +1000 remove 'Virtual' system type Bug: 655009 Change-Id: Ib771780c76e5c66634ef371f7dcbbe78e78f748d commit e6bdc8126c373ca50a45bebba699e5916cf46991 Author: Dan Callaghan Date: Mon Oct 8 18:46:49 2012 +1000 make system optional when generating kickstarts This also lets us simplify the kickstart tests substantially, since none of the templates rely on system.user anymore (the job owner is passed in as user). Change-Id: I0c217bff708ec45068d21d7c2cc8ef8b9e4b16f5 commit 66b95192ea4e986817809cbfc495b8e696ecf727 Author: Dan Callaghan Date: Thu Sep 27 14:30:04 2012 +1000 simplify Recipe.roles and RecipeTask.roles We don't need to persist these in the database, we can compute them as needed. This simplifies the code quite a lot, and means we can do away with the recipe_role and recipe_task_role tables. Change-Id: Iffa389f65e00e8626ba46e0da525f9017af51cc6 commit 064fb6c082cac886a3938150558e4f518f8ff0bd Author: Dan Callaghan Date: Tue Sep 25 13:33:08 2012 +1000 remove support for looking up a recipe by hostname This has already been deprecated for quite a long time and is not used by anything (except for beah if it has not been configured with a recipe ID, which should never happen). Change-Id: I662d7ab0137f8563df3eaed8156205990b605db8 commit 1640dc96e846389bba199d69500cd30e16ef5ad6 Author: Dan Callaghan Date: Thu Oct 25 12:23:54 2012 +1000 remove special handling of Decimal for rdflib As of version 3.2.0, rdflib now correctly maps Decimal so we don't need to do this ourselves. This also lets us avoid warnings about re-mapping the XSD#decimal data type. Bug: 864610 Change-Id: I1527a39f1d602b65fc21c15b2be50e0f6f4bbb5d commit ce7a4b3b5719a04519ee880d9a4ce9e5f62e5371 Author: Bill Peck Date: Mon Oct 1 14:27:08 2012 -0400 power command fails if machine is in wrong state Bug: 862061 Change-Id: I31c374ebba5ace754dd7ffe715a24dd3f7ef9423 commit 14a86216bc68435a24c28d0ab815e2ef99fff3f7 Author: Steven Lawrance Date: Tue May 1 11:10:30 2012 +1000 Remove system_id from watchdog table The relationship Watchdog -> System is redundant since Watchdogs are always associated with a Recipe, and we can grab the System from there. We can also avoid potential inconsistencies if we don't have to maintain this relationship separately. This paves the way for Recipes which do not have an associated System. Change-Id: Ie5aabf0e8c86c07ee2e7d1faf6bc8b801ba51825 commit 5a5d1329639726eb4cee49cd1a23aceb3b5352b5 Author: Dan Callaghan Date: Fri Oct 19 12:52:08 2012 +1000 skip LDAP lookups for usernames containing '/' If the username contains '/' it is not a valid POSIX username and is most likely a Kerberos service principal, so it won't appear in LDAP. We can avoid a costly LDAP lookup (which will just fail every time) in those cases. Bug: 866552 Change-Id: I4b8f4e7a96082ea50bd8053d77dc648a34c969ca commit 92011358e57e5d4a13d051aa1368bb55c53290d0 Author: Dan Callaghan Date: Fri Oct 19 11:49:17 2012 +1000 checkbugs.py: --release option to search by bug flags commit 12385de1287a85e33100951979606fe90476fa1c Author: Dan Callaghan Date: Thu Oct 18 13:58:02 2012 +1000 /distribution/inventory: capture output of pushInventory.py in case it fails commit f342feb496deea7898ddbef27b4b1de0b90e840a Author: Dan Callaghan Date: Thu Oct 18 10:35:58 2012 +1000 /distribution/inventory: add a parameter to show output instead of sending it commit 018cc031d0caa561b0429e8aba7b54f44593a851 Author: Dan Callaghan Date: Thu Oct 18 10:24:30 2012 +1000 /distribution/inventory: acpidump and acpixtract are not needed We can grab the ACPI tables that we need from /sys/firmware/acpi/tables/ instead. So we can avoid having to bundle and compile pmtools. Change-Id: If21a818f08d821dd9eab58d36fc67367423a56e1 commit 06c7caa9a2d48f6bfba259a601d1c7e0fcd68da6 Author: Dan Callaghan Date: Tue Oct 9 12:29:17 2012 +1000 session.close() must be in a finally: block session.close() has to be matched with session.begin(), but some beakerd functions can exit their loops with a `break` or `continue` statement which would skip the necessary session.close(). Change-Id: I28423d601f666b1e592b4d7126f3581c28f737ae commit 79a1846695b414bab5861ef9f055bd16cde77cb4 Author: Dan Callaghan Date: Tue Oct 9 12:14:55 2012 +1000 test_beakerd: set shared=True for "loaned" tests With shared=False (the default) the "loaned" tests were kind of pointless, since the test user never had access to the loaned systems at all. Change-Id: Ic4afde0e6e1695e07801c9e6fd1559d720a3b666 commit e51f3bebbcb0582432d8aa623da2bdbc90e574b8 Author: Dan Callaghan Date: Mon Oct 8 18:48:53 2012 +1000 fix typo in jinja SnippetExtension which breaks tracebacks Change-Id: Ie60c88768f61601b41b217232d6258e02ea785b0 commit 2783ed07e4c0a88e8eed97632bd71026036195e0 Author: Amit Saha Date: Thu Sep 27 15:42:08 2012 +1000 Fix the navigation bar URLs for OS Version listing. Bug: 860870 Change-Id: I4f4763a04118e41d9fd5962d75cc7a151a62949a commit b77c0fe840f5ba916fa61f248e62399c83a1e917 Author: Raymond Mancy Date: Mon Oct 8 09:47:01 2012 +1000 Test fix for client.test_task_details commit 68092fd23072e11b77adffc394ff67e80bd1b16e Author: Dan Callaghan Date: Mon Oct 8 09:39:15 2012 +1000 execute python for fake archive server archive_server.py in our source tree is executable, but setup.py doesn't preserve the executable bit when installing. The easiest fix is just to exec python instead. ====================================================================== ERROR: test_301_redirect (bkr.inttest.server.tools.test_log_delete.RemoteLogDeletionTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/bkr/inttest/server/tools/test_log_delete.py", line 141, in setUp self.archive_server.start() File "/usr/lib/python2.6/site-packages/bkr/inttest/__init__.py", line 101, in start stderr=subprocess.STDOUT, env=env) File "/usr/lib64/python2.6/subprocess.py", line 639, in __init__ errread, errwrite) File "/usr/lib64/python2.6/subprocess.py", line 1228, in _execute_child raise child_exception OSError: [Errno 13] Permission denied Change-Id: I0634d37ec13ad240d5acf223c04c58e3f3b9e2f6 commit e1f1deff47a17b282277b42273b89081b1a89717 Author: Bill Peck Date: Thu Oct 4 11:46:53 2012 -0400 [RFE] add --lab-controller to beaker-import script Bug: 863180 commit fb9a2a43d8af5eccb12226c6627d29a246e1e86c Author: Dan Callaghan Date: Thu Oct 4 20:38:14 2012 +1000 Automatic commit of package [beaker] release [0.9.4-2]. commit 1a3c326e7113ca0a121c4e6a20fe1252196b8019 Author: Dan Callaghan Date: Thu Oct 4 20:35:07 2012 +1000 fix tests Change-Id: I6898cfc78bcc43e259f99a14c2d6d0471245ac2d commit 8609c77a03ceadd0a0127a7c78db84ae918ddfd5 Author: Raymond Mancy Date: Wed Oct 3 23:22:10 2012 +1000 Fixes for 624393 Change-Id: I9087eb57f56d6661f122546c2f1e6031cedc2102 commit 358c2df8fc259809e5ea0ebcc3a454d8f8d783bd Author: Raymond Mancy Date: Wed Oct 3 23:39:22 2012 +1000 Fixes for 853282 commit c3e377bf1441da337ff4bff20e72906a40b0212d Author: Bill Peck Date: Tue Oct 2 20:42:13 2012 -0400 Update test to test --any option correctly commit 4b433117f308afd6cc0f7457bc0e0ba5ceb95d1f Author: Dan Callaghan Date: Tue Oct 2 13:56:48 2012 +1000 hide stderr from bkr in bash-completion script Bug: 856691 Change-Id: Iefcfbdba4a67f5ddb0b3780a5e5b492d867269ed commit 507f0089b431da3e7d2bb8c78ca0cd7b0ba3e962 Author: Dan Callaghan Date: Tue Oct 2 12:52:59 2012 +1000 fix bash-completion problems in build commit 5df2c615989c154c37e10d6f74cd979bce5ccb14 Author: Dan Callaghan Date: Tue Oct 2 11:48:18 2012 +1000 fix DocBook syntax error