commit 47d26ac9d88703e86bf6ffc34d832fca1e8376e7 Author: Amit Saha Date: Fri Jun 7 12:51:01 2013 +1000 Automatic commit of package [beaker] release [0.13.0-1]. commit 594565803a76e80333d2eb2c35f195bdf3b06b9e Author: Nick Coghlan Date: Mon Jun 3 15:41:19 2013 +1000 Prepare release notes for 0.13 Change-Id: Icd3153efa22b6f52adedecb50a23934cd918839c commit 109eabd042ea198a0ed00d76d21762264ca4fe7a Author: Raymond Mancy Date: Tue Jun 4 17:06:14 2013 +1000 This fixes the original omission of '--root-password' from 'bkr group-modify' Bug: 908186 Change-Id: I1b82f5cd04bb6e7e09eddcf874598f50059961a6 commit 17c9ee1e9ac015e4f1398f80219f482bfbd77f6e Author: Amit Saha Date: Thu Jun 6 11:11:09 2013 +1000 Test case for 968865. The bug reported was already fixed as part of another patch. Bug: 968865 Change-Id: I0cefae7fd6f969868fbcfcd562bc24bf3f85f3e9 commit c8fe7f272e8418c035d03aeff13686756e9f26f6 Author: Dan Callaghan Date: Wed Jun 5 17:26:59 2013 +1000 allow only admins to add systems on the group page Group owners shouldn't be able to add arbitrary systems to their group, since that lets them gain extra access to the systems. This patch adjusts the permission checks, and also hides the form for adding systems on the group page from everyone except admins. System owners can still add their system to a group from the system page. Bug: 970499 Change-Id: I85472550068265e3feb544064c3b54af2b91a436 commit b50f26be72a825174581bd2e0f3191e2fc87be63 Author: Dan Callaghan Date: Tue Jun 4 22:20:20 2013 +1000 rationalise group pages /groups/admin is redundant, use /groups/ instead. /groups/group_members is useless, use /groups/edit instead (with UI adjusted depending on permissions). Bug: 970493 Change-Id: Iebb24aefb19b73f5c9bc9ecbdb983572759ceed2 commit eece74c271fad10cfcfbd106d9a5a0ee11012d58 Author: Dan Callaghan Date: Wed Jun 5 15:04:17 2013 +1000 remove systems from groups using POST, with confirmation Bug: 970512 Change-Id: I33fecf5b2c0de500186cea803a390c765f19573b commit 1800e81b6bb23083d172d222435c242e65a9c0ee Author: Amit Saha Date: Sat Jun 1 19:37:55 2013 +1000 Add/Remove group owner(s). This patch adds support for adding and/or removing group owners. Bug: 908174 Change-Id: I42fa38b394675fcfde0b821e047239c80ece8391 commit 2ab191086db03dd7b7644cedcf901b881c1c6f66 Author: Raymond Mancy Date: Fri May 31 18:31:59 2013 +1000 Added URL_SCHEME to labcontroller.conf, and s/SERVER/URL_DOMAIN/ Bug: 963700 Change-Id: I96c1c5728906bdfc9d05dd3501b4e4410b4c5834 commit 7ec9f39677b01ccd8a66ed16a60cf1804aa10ae8 Author: Nick Coghlan Date: Tue Jun 4 10:59:16 2013 +1000 Explicitly state how to force an LDAP refresh Bug: 969959 Change-Id: Ie76d15e3e4bae08956aea10542c4c744d2ba79bd commit 1ec4a1093f7fef48fa1df1663f953debce9e0374 Author: Amit Saha Date: Mon Jun 3 10:48:48 2013 +1000 Groups associated with jobs cannot be deleted. I opted for the approach to display a nice error message, instead of not showing the Remove link at all. Since, it may suprise users that they cannot delete their own groups. Bug: 968843 Change-Id: Id3cd68b8735584af0b1d1f151cdba681fcd1afdd commit 551948550ad90df8e927061aba8fbbe261961f53 Author: Amit Saha Date: Mon Jun 3 14:26:40 2013 +1000 Rename the group so that it appears on the top of the page. commit bf44e69e0b18e33bce70b2f9608035c6e3480e3f Author: Amit Saha Date: Sun Jun 2 21:37:47 2013 +1000 Fix for 500 error on group modification. Bug: 967799 Change-Id: I39e31ddf8e6278cabe48fc3b40d9a247a8c66be4 commit 1aa77b1f79611d742482e97a7c17bf4f3000aedc Author: Raymond Mancy Date: Fri May 31 18:40:58 2013 +1000 Add release note for optional-debuginfo changes commit 3d4950ac8ce2459e8ee0c0cecadbb194f0251f83 Author: Nick Coghlan Date: Fri May 31 17:24:36 2013 +1000 Mark oVirt/RHEV-M integration as experimental Change-Id: I050f58e94678b20c6384956755f1ec7b56fc6eb9 commit b81e659fbf0077005dcae0df8efa2447f29efac3 Author: Dan Callaghan Date: Fri May 31 16:15:49 2013 +1000 /distribution/beaker/setup: tidy up logging Also changed the single-host case to not run both code paths in parallel, since that would often break beakerlib's journal (which is apparently not multiprocess-safe). Change-Id: I54926789ca26a977aea549e2a5d43b914d9e324e commit 0ce7a0fc98f51472a81ad80fbd6fd08c5e8e48cd Author: Dan Callaghan Date: Fri May 31 13:48:57 2013 +1000 tests: fix Requires for slapadd Change-Id: Ib82d31b73e0afab1bb69f6fa82a7355556d4d895 commit 919835ec53f30c89bb67e0b1dd75af8c8057d418 Author: Dan Callaghan Date: Fri May 31 13:36:47 2013 +1000 more fixes for pkg_resources shenanigans Bug: 957577 Change-Id: I2f56e7a6bb72068438b09bc15169d6a04aec06ee commit 8b232588df787078accede65396f064ee864a1b9 Author: Nick Coghlan Date: Wed May 29 17:19:48 2013 +1000 New approach to mark bkr as a namespace package * Tells setuptools to install the bkr/__init__.py file * Adds the namespace package metadata in "make install" * Allows building the docs with system RPMs installed Bug: 957577 Change-Id: I72b644051bd44d96baee7fca165df9a4aabeff25 commit 3b2238ee9b090d4421640905bcdbc8711609f8d1 Author: Dan Callaghan Date: Thu May 30 14:56:22 2013 +1000 reject log registrations for finished recipes/tasks Also fixes a bug with the error handling in LogFile.__enter__ which I noticed while testing this patch. Bug: 962253 Change-Id: Ib216cbf69228f8af3ce29293d42f713eddd29650 commit 98bff397c99e532bbd2f0b349df0d0c5e121a89a Author: Raymond Mancy Date: Mon May 20 19:08:33 2013 +1000 Job permissions Bug:961580 Change-Id: Ic99436dfaf7f5642d19e396e5822fc0ed6da683a commit 01aa7a227ff18c9af6529c8f072a2aa0dcdc2411 Author: Amit Saha Date: Tue May 28 12:58:13 2013 +1000 Admin can remove anyone from any group. Admins have the right to remove a member from a group even if he is the only owner of that group. This also fixes the original cause of the bug: An admin can remove himself/herself from the admin group (which doesn't have an owner) Bug: 966312 Change-Id: Ibaf3a1f40d87b6c8422ca921725f354f5b0e3110 commit cdcb027174fed29e4389b57bc5234e040e39f010 Author: Dan Callaghan Date: Thu May 30 16:22:32 2013 +1000 .gitignore for new selenium jar in dogfood commit 4fa675a07a5356363146bc64acf799faaf265a22 Author: Dan Callaghan Date: Thu May 30 13:43:58 2013 +1000 use 411 response for missing Content-Length I was just looking at HTTP response codes and noticed there's actually a defined response code, 411, for missing Content-Length. Change-Id: Idb1b50076b0d0014de7408ad87adab9eff88a558 commit 883870a616416b0e7458f7cd0c43a4f66db3ecbb Author: Dan Callaghan Date: Wed May 29 16:58:57 2013 +1000 fix up a few SQLAlchemy warnings Change-Id: I41f47f4bfe80e9ae10e5950c65a9e6b64753a4e2 commit 66c2c02686bdac57873f23ddc7697e0e2acaacaf Author: Dan Callaghan Date: Wed May 29 16:57:06 2013 +1000 return 409 when attempting to record a result against a finished task Recording a result for a finished task is against the spirit (and now the letter) of the API and probably indicates a programming mistake on the harness side. But we can still return a nice response instead of 500. Bug: 962254 Change-Id: Iee7adaaa3acc4df91e16866b0aa24ccb3016f74e commit dbf26e96186745ad6a295fdbef9c2b3682ab54c7 Author: Dan Callaghan Date: Wed May 29 14:02:34 2013 +1000 lab controller API should accept empty log files Bug: 961300 Change-Id: If712eefa1f1d921d98392e301d7bd9f926ce4654 commit 0a3e61afc2bfa54e64e48842f319f618d53cd511 Author: Dan Callaghan Date: Tue May 28 21:08:04 2013 +1000 don't flush individual user objects SQLAlchemy has deprecated this behaviour a long time ago, although we still have a few calls like this in Beaker. This one is particularly problematic because it will show up in the cron output of beaker-refresh-ldap, if a new user is added: /usr/lib64/python2.6/site-packages/sqlalchemy/orm/scoping.py:139: SADeprecationWarning: The 'objects' argument to session.flush() is deprecated; Please do not add objects to the session which should not yet be persisted. return getattr(self.registry(), name)(*args, **kwargs) Change-Id: I7feb2f239506b5bba2b1e22c02f7888391423599 commit 199c9f96642703d9ba38fc92092334cef7b80773 Author: Nick Coghlan Date: Tue May 28 19:06:31 2013 +1000 Minor test suite cleanups Change-Id: Ifb1f3c3b313349e97f91d4c94f8b28b1bedf10da commit 4b3f7af91bca6d48e69837c95e64b49dcdd62f6c Author: Nick Coghlan Date: Tue May 28 16:42:46 2013 +1000 Bump the standalone Selenium testing jar to 2.33 Change-Id: I06c519b91fd72431457b41666709b3bb3ef1e6db commit ac0130d324852d3f934bb68fe6b4806a9deca7c9 Author: Nick Coghlan Date: Tue May 28 16:40:27 2013 +1000 Make bkr a valid namespace package Imports __version__ from bkr.common rather than setting it directly Bug: 957577 Change-Id: I51c0584f6a11cf474473446b0a20d5b765a3d257 commit 4b7184e746bacbef3d56ab2c21daf38dc5eef241 Author: Dan Callaghan Date: Tue May 28 13:43:30 2013 +1000 tests: expand hacky repodata perms fix to cover all tests calling beakerd The "hacky fix" was done for test_beakerd.py in commit 7432ec1a but there are other tests which also call beakerd code and therefore have the same problem. Change-Id: Ie9c4ab9fbaf9886aa38ef020357cce5a53319bf9 commit ea9cf82d88fe325a5c580d704db34d988d9c7d18 Author: Dan Callaghan Date: Tue May 28 15:08:59 2013 +1000 /distribution/beaker/setup: create client config As of commit 4e60b1e0 we don't ship /etc/beaker/client.conf in the client package, so the task needs to write a complete config. Change-Id: I3bebb6a529467c69e4d0f2d1785d6c0a3734fe37 commit d2edd4599f767db8ac775e8ad1f1a1236878c27d Author: Dan Callaghan Date: Fri May 24 16:12:37 2013 +1000 /distribution/beaker/dogfood: set up config as expected for tests LDAP config and SLEEP_TIME are new. Also rearranged the sed'ing, and updated it to only touch files which exist, to better support running the task on a separate server and lab controller. Change-Id: I4bad8fb4a9de006fe4ac43e899f0f6b1c7edb19d commit e2cc082a34f592a537b74d5017cfa6e1dbb94732 Author: Dan Callaghan Date: Tue May 28 13:45:10 2013 +1000 fix exception message for createrepo failures Change-Id: I9c554ee48751dcd9ec1b84d6526ae525576efd26 commit e89cfc2ce9fa84563d93b5ec49531a8589386e97 Author: Dan Callaghan Date: Mon May 27 16:48:32 2013 +1000 set threads=1 in Apache config to work around TurboGears bug This is to work around a thread safety issue where TurboGears intermittently raises NoApplicableMethods if you hit it while the application is starting up in a multi-threaded server. Bug: 796037 Change-Id: I226001f428c5a29e7ce0e1a724cd60ff276b89e9 commit e7756555d8e10d38fab75bdbdf1f450340a8281b Author: Nick Coghlan Date: Mon May 27 15:34:06 2013 +1000 docs: Amend descriptions of included tasks Bug: 921346 Change-Id: I09009b006a635e746e2414984fe9eab745bb8a7f commit 9ba46cd7a28c969ac43ab967df9253c422c4cfee Author: Dan Callaghan Date: Mon May 27 13:56:56 2013 +1000 tests: default to hardcoded nonexistent lab controller The problem with using LabController.query.first() is that, in the dogfood task, the first lab controller is actually real (it's the lab controller participating in the tests) and so we end up creating hundreds of junk power commands which beaker-provision will try to execute. In itself that isn't harmful, but it makes beaker-provision fall behind on executing the *real* commands that we want it to run in the bkr.inttest.labcontroller.test_provision module. Change-Id: Ifee75ef88126fc6cc8adc1ead866f7f0493bd0f0 commit a7780b7edefe99ec2c71d276451006a7907058af Author: Dan Callaghan Date: Mon May 27 13:35:32 2013 +1000 tests: //head/title does not work in Selenium 2.33 FAIL: bkr.inttest.server.selenium.test_external_reports:ExternalReportTest.test_can_delete /usr/bin/vim +38 src/bkr/inttest/server/selenium/test_external_reports.py # test_can_delete 'External Reports') AssertionError: u'' != 'External Reports' Change-Id: I29983d30e1a1727eb8e6d0d03295fae574e26109 commit 088f6b34202987b87e018053f1ccf6791590cbba Author: Dan Callaghan Date: Mon May 27 09:00:41 2013 +1000 require requests >= 1.0, requests-kerberos Change-Id: Iabaecb95658ee22744e6c24447aba87ebd60ba36 commit 7bacb7fc17a8d7a2bbc36131e35312b66fae6495 Author: Dan Callaghan Date: Mon May 27 16:00:12 2013 +1000 docs: top-level index is the new "Beaker help" page This patch, along with a corresponding patch to beaker-project.org, will make the top level index of these docs become the replacement for the old http://beaker-project.org/help.html page. The end result will be mostly unchanged, which explains some of the unusual markup which now appears in the index page. Change-Id: I40e059b1c27273aa0f3798af934e61198c5b98a4 commit df77d666c365f1b7913de50d745c921a52bfe7fb Author: Dan Callaghan Date: Fri May 24 10:58:23 2013 +1000 docs: add --job-group to workflow options Change-Id: Ib62e082f1b915c6c2aa9560e40d37d2a28419fc4 commit 1cf912d760ad0fed1ff92281321f6118b680afef Author: Dan Callaghan Date: Thu May 23 15:38:45 2013 +1000 tests: include ldif data files Change-Id: Iffd8ee7f94ac977096e69f7dcaa080c0035d9b9c commit c77ffab9535a28d25d21f6afb2d44f2999631953 Author: Nick Coghlan Date: Thu May 16 18:17:38 2013 +1000 Protect system groups from name changes * Also refactors all group name changes into a model method * Creates a (potentially) common infrastructure for activity tracking Bug: 961206 Change-Id: I77bc967eeea6ca86336644e86e958b62f931d9c6 commit f381b3dca6de545ee4c666e9339ab46a6a16d149 Author: Dan Callaghan Date: Thu May 23 11:30:52 2013 +1000 tests: avoid timing issues when checking cached log contents beaker-watchdog could still be writing to the cached log file when the tests check it for expected data, leading to intermittent failures like this: Traceback (most recent call last): File "IntegrationTests/src/bkr/inttest/labcontroller/test_watchdog.py", line 62, in test_console_log_not_recreated_after_removed self.assertEquals(open(self.cached_console_log, 'r').read(), existing_data) AssertionError: '' != 'Existing data\n' Change-Id: I3fb5dba3842e61e107e1ed22aad9888f587922de commit c8e7f58cc147fc5779b999a466172d787d79ff9d Author: Amit Saha Date: Fri May 17 21:47:19 2013 +1000 Email notification on group membership change. This patch adds support for notifying an user via email when he/she is added/removed from a group. Bug: 961248 Change-Id: I8442a0f3348f29a1032ee033aa8ffba184e5c2ec commit 6ef3be35f80e429fe79b1f796ddd69f4834a3a13 Author: Dan Callaghan Date: Thu May 23 08:55:24 2013 +1000 docs: fix upgrade note for group root password Change-Id: I64e0aea73fbdec514043833c12145712407bae2a commit ea35cbd37bf67a47e65c088b6b4120f2d4565780 Author: Dan Callaghan Date: Wed May 22 11:40:02 2013 +1000 always show Group field on the job page Also rearranged the table cells a little, to make better use of the space. Bug: 961194 Change-Id: I11418440d2132dff6fb0904968305c78f3cf4b24 commit 871f3df834438a5d0a3e441a196e90b7f8ccd446 Author: Amit Saha Date: Wed May 22 10:32:44 2013 +1000 Add group column to jobs display page. Bug: 961192 Change-Id: Iad81db270e08979d9488c478b2d8e4c7c0cdd32f commit ba864173ffa06537ac27e3479f5079f9049403dd Author: Raymond Mancy Date: Wed May 22 16:56:29 2013 +1000 Remove commented out line. Not needed commit 70e156a7b70968c802feb903f1ebc5fe35b772eb Author: Raymond Mancy Date: Mon May 20 19:50:57 2013 -0400 Set group root password Bug: 908186 Change-Id: I9fe39c6a695d2d013153b0593ecca319a41ed8ac commit d4c26d7e8174ec50121dd7b40ea0cec383143112 Author: Dan Callaghan Date: Wed May 22 16:40:50 2013 +1000 pull in RHS2 kickstart customizations using %include This patch removes the hardcoded customizations from the RedHatStorage2 kickstart template, which were based on RHS-2.0-20120320.2 but were not applicable to other releases. Instead the template includes the necessary custom bits from kickstarts/ksappend.cfg underneath the distro tree itself, using the %include directive. That way Beaker's kickstarts will always have the appropriate customizations without needing to update the templates for every RHS2 release. The template now matches RedHatEnterpriseLinux6 apart from the %include and a few other small differences. Bug: 903416 Change-Id: Iff82ebefe531ed00aeb4a768d22274028dd3b1d1 commit 6b57e1fdfc1c07d6b7e74f35b5d2ef08d119e998 Author: Nick Coghlan Date: Tue May 21 19:08:16 2013 +1000 Fix generation of per-recipe task repositories * fixes errors is task repo snapshot creation * updates the beakerd tests to use a non-empty task library * additional logging output for task library metadata updates * capture mail in beakerd tests Bug: 880855 Change-Id: I45e5045b7058a5b7bca0c18c5eafd557eed52c79 commit ecd8ee19c2bb363b4f7fc7f024084996cef0b0bc Author: Dan Callaghan Date: Wed May 22 11:32:51 2013 +1000 tests: fix truncated group name /usr/lib64/python2.6/site-packages/sqlalchemy/engine/default.py:299: Warning: Data truncated for column 'group_name' at row 1 cursor.execute(statement, parameters) Change-Id: I5cde7d277d9890dfe63621b80711ab2657f69b5e commit 573e576c0e46feae300fd5d59c2cc472ce30b598 Author: Dan Callaghan Date: Tue May 21 17:44:19 2013 +1000 only transfer recipes which have been finished for >= 2 minutes Bug: 962901 Change-Id: I0f37186ab289692be01bbb5dd468e1a0d8cf42ed commit 8191203753d844c99dae0cc23be01a0c3c2c7b57 Author: Amit Saha Date: Tue May 21 17:55:05 2013 +1000 Fix for Jobs/mine regressing Change-Id: I92c81af1b030e8a65f04bfb46bd8dc6ccbb0de45 commit 6f92d0997513c502705a0c926d7245b77dc77054 Author: Nick Coghlan Date: Tue May 21 15:25:29 2013 +1000 Mitigate the effects of the current DB deadlocks Due to BZ#958362, we're occasionally getting deadlocks in the DB. That kills our transaction, which then confuses SQL Alchemy. This patch is a workaround that at least keeps the daemon from crashing until we can fix the underlying database issue. Bug: 950895 Change-Id: Ia743c71b8332e4db0930823d62be8431ca1f4316 commit 04ca063af8bb014cfbb86bf7ec6c279b3d391ba8 Author: Dan Callaghan Date: Tue May 21 13:50:23 2013 +1000 don't re-create console logs after beaker-transfer has removed them Bug: 962901 Change-Id: I14209f2edb9906382ba95e915d24fe2d97f5a0ee commit a55b6f9fdf4872d52a8b1caf6b1f62cc9e4fe7b6 Author: Amit Saha Date: Sat May 18 00:54:20 2013 +1000 List group members from the command line. This patch adds a new sub-command ``bkr group-members`` which will list a group's members. (http://beaker-project.org/dev/proposals/enhanced-user-groups.html#viewing-group-details) Change-Id: Ife1f367cec63c11d5fa5086cb0fa23f1f135e9b0 commit d1414e0e028ad752dc972fa520b771824943c9c6 Author: Nick Coghlan Date: Mon May 20 16:13:20 2013 +1000 Missing changes for requests 1.x compatibility Log delete changes that were missing from the previous checkin. Bug: 962582 Change-Id: I0794de24aad36c30e658d3c54e7eb45b55daeec8 commit 1235cdbb93b2cf482b6e39897e703b26c9a9ef96 Author: Amit Saha Date: Thu May 16 17:35:19 2013 +1000 Requests 1.x compatibility Bug: 962582 Change-Id: I2674fd3aaadde30ea798f16cdbaf8df6c28df623 commit 3e7b94d93c0c234a6d33a7acff0e0257b2007ef7 Author: Amit Saha Date: Sat May 18 00:17:42 2013 +1000 Add LDAP support to bkr group-create. Bug: 908173 Change-Id: I4fc6097e57eb6421d684bacb3d4e2c84c6a25146 commit 8abc382af1cf9d7f38bc75ae5d9a8267a71638b3 Author: Amit Saha Date: Thu May 16 13:19:15 2013 +1000 Add/Remove group members This patch adds support for adding/removing group members by the owner of a group. Bug: 908176 Change-Id: If90775ed63483cad2ac504c7a5c7311cade76389 commit 4fc0489885d32ff18b54c104e1e554600e9f4660 Author: Dan Callaghan Date: Thu May 16 17:22:50 2013 +1000 close handlers instead of calling logging.shutdown() This is to avoid calling .acquire() on a ConcurrentRotatingFileHandler that has already been closed by the shutdown call. This doesn't actually fix bug 952929, but it's necessary for the *real* fix in ConcurrentLogHandler. Bug: 952929 Change-Id: I642723072f544e5cb21b8a87f490990a27b327d3 commit 63d119b0dcefb4a299edb07d116ea67daab71d10 Author: Dan Callaghan Date: Thu May 16 13:57:00 2013 +1000 docs for ad-hoc groups and LDAP groups Copied the "Groups" section from admin-guide/interface.rst to user-guide/interface/groups.rst. Replaced it with a description of the extra functionality available to administrators. Change-Id: Icef3f1cfc09b4ebc0122f68d6c43dd92601bd5a3 commit 1738fb52c4cc57fc24c8be0dd468c29dc4023c02 Author: Petr Šplíchal Date: Thu Apr 11 09:30:21 2013 +0200 beaker-wizard: Include whiteboard string in the new bug link I see BeakerWizard string is used to mark all beaker-wizard bugs. It would probably make sense to have this set automatically when people are using the "file a new bug link" in the documentation. http://beaker-project.org/docs/man/beaker-wizard.html#bugs Change-Id: I9dc0015a64f040f14f8864c9d9418ace16fd7183 commit ea9a0b61624d106e264f8d1e8e2bf593ba0070e5 Author: Nick Coghlan Date: Mon May 13 16:45:50 2013 +1000 Bring task related documentation up to date * Updated task metadata description * Updated (and relocated) multihost testing guidelines * Updated the example task text to be less RH specific Bug: 960317 Change-Id: I9344c308bdd0e9644ad66cfcc155afe493bb24f1 commit 507611e6384785a27a8fc216c7f0bb28268ab487 Author: Dan Callaghan Date: Wed May 15 17:00:54 2013 +1000 add indexes for enum columns on job/recipe_set/recipe These columns were originally implicitly indexed, way back in the day, when they were INT foreign keys. When they were converted to ENUMs they should have had an explicit index added. Change-Id: I6aa4d0ba705dbc2469dfa8a6b4e3b90678d1e697 commit c3242013a7bc57dc4ce558793a1a473f423e37be Author: Amit Saha Date: Wed May 15 13:02:44 2013 +1000 'groups/mine' should return only the user's groups. This fix reverts the accidental change made in the group creation patch (334b86e7d6c196544413885d4abe798ffe1279b4) and the fix needed to make it working correctly. Now, 'groups/mine' will return only the groups that the user is a member of, and not *all* groups. Change-Id: I270f63ab9f06fc6fce34c355e8501cdd8345f14e commit 278ee5e3d2c1a5d68b5cdfa913cf1be8b3b0db44 Author: Amit Saha Date: Tue May 14 10:57:22 2013 +1000 Support for editing group details. This patch adds support for editing group details: group name and display name via the Web UI and the command line. Bug: 952978 Change-Id: I0bba6f6d8109b324ef7c8a48ccdb700cd9f57011 commit 13d7466401d5194545b04508536ff98acf31138f Author: Dan Callaghan Date: Tue May 14 14:15:55 2013 +1000 tests: fix "Group is not" search in test_system_search When run in the whole suite this test was failing, due to an increase in the number of group systems we have now. The test should search by the group it specifically created instead. Change-Id: I91d93cf9e71f8fd3bd6784a44e5dbd8f534c55a6 commit 580d5b15840218a9b14d68fc786d17d1f154ca33 Author: Dan Callaghan Date: Wed May 8 22:14:15 2013 +1000 support for LDAP groups Bug: 908173 Change-Id: Id55c54b1281b5621d382397299898b0dc95b818e commit 792673753a00e38d8e948c833e26cc8ea1d2cb85 Author: Dan Callaghan Date: Tue May 14 12:50:34 2013 +1000 group creation: fix display name over XML-RPC, activity recording Change-Id: I9f3ff3ef9a51e2b29bd1a6d0f30b180d3dc4945a commit 0c5657eb02c62be411df49c596f625947b690f28 Author: Raymond Mancy Date: Tue May 14 14:38:05 2013 +1000 Test fix. Removes UserGroup duplication errors Change-Id: I691b0b168b35b4c9029af15a588dd20559855417 commit fdfe32c10d785840042421ae1fdf66cab9c59b12 Author: Nick Coghlan Date: Tue May 7 18:52:06 2013 +1000 Avoid race conditions when updating task library * Consolidate task library manipulation to one class * Refactor atomic file replacement to cope with task upgrades * Always acquire task library flock when removing RPMs * Don't link partially uploaded RPMs into recipe specific repos Bug: 880855 Change-Id: I66ef39e0af94462298096bd9c1b9c5acd7edf0e6 commit 71ae01975625338f985279d3cc3bf1df8e1ded9e Author: Dan Callaghan Date: Wed May 8 11:31:23 2013 +1000 make tg_group.group_name not NULLable Having NULL for the group_name doesn't make sense, and will screw up lots of code (including the new LDAP support). Change-Id: I0cf560ee10cb2dc0e0e3ee4bbace15e3c47227e8 commit 140d30a73150c3da998f11e8f24821dce92bd06f Author: Dan Callaghan Date: Mon May 13 13:46:30 2013 +1000 tests: fix some racey title assertions in test_group_edit Change-Id: I4a82d62ac923580318b783b8748a7062745d6b0f commit b9b9f7de12fb5afee23c87fb727da57fe62ca71f Author: Dan Callaghan Date: Fri May 10 08:56:05 2013 +1000 tests: use User.lazy_create in data_setup This lets us avoid the LDAP lookups in User.by_user_name (if LDAP is enabled), which might be problematic for some test data. Change-Id: I078f6a5d9a3e2ba7a16a9c3d74fc935999a947d7 commit 334b86e7d6c196544413885d4abe798ffe1279b4 Author: Amit Saha Date: Mon May 6 17:37:27 2013 +1000 Create new User Group This patch adds support for creating a new user group from the Web UI and CLI. It also includes other features (although, not a focus of this bug - group editing, adding users, etc.). Bug: 908172 Change-Id: I430616e8606d12303d919e023b930db707fa9205 commit 57a1ccb723f69d1a9e4173fe58e000e954a147d4 Author: Dan Callaghan Date: Thu May 9 15:53:14 2013 +1000 docs: fix a number of minor errors commit 312049f2f622ee4a3321409486071c41c976a24c Author: Dan Callaghan Date: Wed May 8 21:34:40 2013 +1000 tests: fix one more DeprecationWarning commit 19ec7c60e1125541ae761850776ad45327d07867 Author: Dan Callaghan Date: Wed May 8 17:22:16 2013 +1000 tests: BaseException.message is deprecated, use str() instead IntegrationTests/src/bkr/inttest/server/test_model.py:743: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 self.assert_('Invalid date format' in e.message, e.message) Change-Id: I931f6b222c24fa47a9beb209789d61a47287597c commit aebc4769b4104fd7e819a412098dad6bea7db18d Author: Dan Callaghan Date: Wed May 8 17:56:56 2013 +1000 docs: set maxdepth 2 on User Guide index Makes the ToC look a bit less overwhelming and cluttered. Change-Id: Ieca0b7d978968295b70cb85af96cb17e69553249 commit a9b6e154212e8866c8a1306b466ec17fe05d486a Author: Amit Saha Date: Wed Apr 24 16:16:51 2013 +1000 Fixes for XML Filtering by System's addded date Also, includes a change to the last_inventoried attribute specification in Relax NG and related schema test addition. Bug: 955868 Change-Id: Id851f52925952786eecfcd2bfd0861c94e9a2d23 commit 48b9d008360a6d7eb7b79189a4d2d87e4c675b0d Author: Raymond Mancy Date: Wed May 1 13:40:34 2013 +1000 Add jobs owned by your group to 'My Jobs' listing. The 'My Jobs' pages, will now (by default) list any jobs where you are the 'owner' or the job has been submitted on behalf of a group you are a member of. Bug: 952980 Change-Id: Ie1633ed495554b15c73d900a1b5045a99525a12d commit 443bd9db102234de740f8d1c9add673b18e37e7e Author: Raymond Mancy Date: Thu May 2 16:54:27 2013 +1000 Copy group ssh keys to job, and add some relevant docs Bug:908183 Change-Id: Ia2e8ec8413f6ed20ee58cb08876e0f3953a7546b commit 93dcca54a13ef1efbec867819338a7f1ea485385 Author: Nick Coghlan Date: Tue May 7 17:10:28 2013 +1000 More fixes to dupe handling Change-Id: I682c200e6cb46ee6057cf74f5a6023558e4fb7ea commit cd95df708579bafe38fe392ca70a776a5e5d8601 Author: Dan Callaghan Date: Mon May 6 16:00:50 2013 +1000 docs: cleaned up and improved docs for writing tasks Extracted example-task.rst from tasks.rst. Extracted multihost.rst from tests.rst. Dropped remaining content from tests.rst, because it was excessively preachy but not particularly instructive or relevant to Beaker. Converted makefile.rst to task-metadata.rst, and dropped references to Makefile variables which are no longer relevant to Beaker. Wrote task-environment.rst, describing commands and environment variables for tasks. Added writing-tasks.rst to group it all together in a new top-level section. Bug: 872421 Change-Id: I313017a7122729b2a9f387e47ed218c903dffe2b commit 9797eea302ea2aef23539ed0e306183f46dda79f Author: Dan Callaghan Date: Mon Apr 29 16:52:40 2013 +1000 install and enable chrony on Fedora and RHEL7 Bug: 901670 Change-Id: If42cf81ce93d181c6e0394758be27860e080fcf7 commit bbdb63337411bc80379373686588724822c7bc7e Author: Dan Callaghan Date: Tue Apr 30 10:36:06 2013 +1000 docs: create a dedicated section to describe install options Change-Id: I763687328bc20942cf5a5b550c690702db7de620 commit 167b3956192e54d70242e8ebfb296eeb5dfe2543 Author: Nick Coghlan Date: Mon May 6 16:20:04 2013 +1000 Sorting and filtering by bug status Change-Id: If5426553800173d8605e3b81a0932eb8b59420b1 commit 75fb5205e219e83c646354d53e91b8db5ddd394c Author: Amit Saha Date: Sun May 5 13:18:10 2013 +1000 Another attempt at fixing this test. The 'nature' of this test is such that will potentially fetch a huge number of systems when run as part of the entire suite. Hence, this fix limits the systems searched to the ones loaned to a particular user. I believe it still tests the same code, so it should still be a good test. commit 2a973cde71c72e91820b66abb9afd58fe88cbbae Author: Amit Saha Date: Mon Apr 22 13:36:20 2013 +1000 Add System search and filtering using inventory date/status. This patch adds support for two things: 1. Searching systems via the Inventoried status or date from the CLI. 2. Recipes can also specify an ``last_inventoried`` element to ask Beaker to schedule it on a system inventoried on/after/before a certain date or whether inventoried at all. Change-Id: If819f8efafb15d8c92aca21ba2171216137ca0ca Bug: 949777 commit 45cca2990b432ebc380908ac4bf65b114bfa17a4 Author: amitsaha Date: Thu May 2 22:47:39 2013 +1000 Make setup a class method for this test case. This will help prevent creating the "common" systems only once for the test fixture and hence keep the system count down. This will in turn make sure that the results are all on a single page. commit 52c5abab3ff41124c90f656b9ce3a46a42677a44 Author: amitsaha Date: Thu May 2 20:42:28 2013 +1000 Fix group job related test failures. commit d44ca1eacf452ac35c3dcbfcb944c85a04d5246b Author: amitsaha Date: Thu May 2 18:05:16 2013 +1000 Fix title underline commit 4ec24270b0ff0af3a98e0349f091ceef8d7e64ce Author: Dan Callaghan Date: Wed May 1 15:28:08 2013 +1000 avoid race condition in updating system_status_duration table Bug: 903902 Change-Id: If153a72f424a710447f4e730fa77d5afc4f88a99 commit eee8bb09e0ab2e4e4df7d6437ac63266201eb2cd Author: Dan Callaghan Date: Wed May 1 16:33:14 2013 +1000 tests: fix race in test_system_loan The test_return_loan case was intermittently failing like this: FAIL: bkr.inttest.server.selenium.test_system_loan:SystemLoanTest.test_return_loan /usr/bin/vim +81 src/bkr/inttest/server/selenium/test_system_loan.py # test_return_loan self.assertEqual(sys_activity_name.old_value, u'admin') AssertionError: u'' != u'admin' because the test was inspecting the database before the HTTP request to return the loan was completed. The fix is to wait for the web UI to indicate the loan was returned before looking in the db. Change-Id: I7993e399d4e9eb7b41391fde999520b5c8bdb7d8 commit de5662803739867eedcfd321e2e30f241af5df85 Author: Raymond Mancy Date: Mon Feb 18 15:46:36 2013 +1000 Add group owners to jobs Bug:908183 Change-Id: Ic7a051e01560e498968ef47715a620330148fd57 commit 9dff364f10d46209246df6d4e12e83ab425541a3 Author: Amit Saha Date: Mon Apr 8 16:02:41 2013 +1000 Add Inventory Date search in System Search bar. Bug: 949777 Change-Id: I4e21565012b24fd029540911882f865989c156c1 commit bc8edb8195d6b4d80e25f7240cb65859da1daa2d Author: Nick Coghlan Date: Mon Apr 29 17:38:58 2013 +1000 Add support for checking by sprint Change-Id: I391b7876160aeaf2ca9e4ffeabb07ae9cb0e2fb7 commit 5c10b96f46db89703a1c5904ed2af5b98ec5330a Author: Petr Šplíchal Date: Wed Apr 10 16:20:34 2013 +0200 beaker-wizard: Accept more keys for attachments Updated python-bugzilla uses different key names for attachment data. This patch adds support for both "ispatch" and "is_patch", "filename" and "file_name", "isobsolete" and "is_obsolete". Bug: 929190 Change-Id: If4f969ccc20fb95474ca1e5a3a338e6709a31806 commit 2fe4ab4d5978829051ab890a3cc2395d60afc381 Author: Petr Šplíchal Date: Wed Apr 10 15:05:53 2013 +0200 beaker-wizard: Fix package detection Bug: 929202 Change-Id: Id9a292bc14e4e0a718a6bbf831a5f0b10bfed29e commit b0b1c7baabaa8f98a75be9ab9302f7e5d64d1c4c Author: Dan Callaghan Date: Mon Apr 29 17:15:04 2013 +1000 remove Fedora17-specific kickstart template, merged into Fedora template The only difference between Fedora and Fedora17 were some one-off ARM-specific hacks which were not intended to be kept beyond Fedora 17. But it's easier to keep those in the main Fedora template surrounded by conditionals, than maintaining two completely separate copies of the Fedora templates. Also updated the tests to test for the ARM-specific hacks, and removed references to Fedora 16 which is now EOL. Change-Id: I87becc7d974bba26052aa8f899a689a3f154ed96 commit 9575924e44b3ca38c33d836b6e4819150e619c28 Author: Nick Coghlan Date: Mon Apr 29 16:59:01 2013 +1000 Better handling of CLOSED DUPLICATE Change-Id: I15dff00e1ac79b6ee725aea2e175d45beac05d61 commit 960e5d46e2299af073a2388e91a0592ff583e640 Author: Dan Callaghan Date: Mon Apr 29 16:57:14 2013 +1000 docs: fix typo in kickstart docs: distro_tree -> distro The osmajor and osversion filters must be applied to distro, not distro_tree. Change-Id: Iff07c979f5af005103f005491319ab43575feec3 commit 6b4e46f86e279560a97ae59c2bdc5862886e3ff1 Author: Dan Callaghan Date: Mon Apr 29 16:13:19 2013 +1000 power script to control Hyper-V guests Contributed by Ladislav Jozsa . Bug: 884558 Change-Id: Iaf094e3654b173ebc3f57db7abf038b77db605d5 commit 8f62279f88c9a3d96353d2aae3c27bb410224b65 Author: Amit Saha Date: Mon Apr 29 15:33:22 2013 +1000 Document Beaker provided Tasks Bug: 921346 Change-Id: I12bf8744ec5f05b59797ddb58413b063656bc319 commit 91ebd822bf6c59eea127380fd192c40e9b3ee941 Author: Amit Saha Date: Sat Apr 13 01:24:45 2013 +1000 Fix for kernel options not propagated correctly. Also, adds test cases for ks_meta and kernel_options_post. Bug: 886875 Change-Id: I424bec69b2a7b1db6b6ed490b367934b765ca4d9 commit e395c711baf0c9c8aa55cb536c0918784a2df98b Author: Amit Saha Date: Tue Apr 23 11:08:31 2013 +1000 RHEL7 distro import tests. Change-Id: Ia41f7613cf301105b856589defdfd8e4a535431f commit 1bc65a529d6fc0aa2ce9025a134015d1d1a0d218 Author: Amit Saha Date: Tue Apr 23 10:56:44 2013 +1000 Rename "Last Checkin" to "Last Inventoried" in the System grid. commit 313e8bb2d4ba3e9ff268967f62a66daafa6b12fc Author: Raymond Mancy Date: Tue Apr 23 08:44:47 2013 +1000 Fix importing of optional-debuginfo repos for RHEL6 Bug: 952963 commit d66c0da8d7255da7dd3db2da0e0af7fa088a0795 Author: Dan Callaghan Date: Tue Apr 16 14:34:07 2013 +1000 explicitly install beakerlib Previously it was being pulled in by rhts-test-env, which had an RPM dependency on beakerlib, but this is removed. Bug: 952486 Change-Id: Ied89086665aa7ad50737c6f5b70bdf2fbe893a05 commit ff835b7c53ad39bfbd67b981896f88a14a396616 Author: Raymond Mancy Date: Tue Apr 16 11:20:30 2013 +1000 Fix BeakerException to do something more sensible. Bug: 951985 commit 2ea2d37b35f065ac74b7e0f04ba7613f045555e6 Author: Dan Callaghan Date: Tue Apr 16 10:39:32 2013 +1000 docs: use intersphinx instead of explicitly linking to Python docs Change-Id: Ic415ddd9675cc872132c2ccdafad19cb851ffc89 commit f5fc29d19ad5f2d716726fdeb7f9ac646c96ac17 Author: Amit Saha Date: Wed Apr 10 16:23:08 2013 +1000 Relative year range in search bar. Change-Id: I6659d15060d6cd58676c7fc5db96cf33d4fe9434 commit 8d5b9839d2ae684aa9ecbacd49ac015196e8fa68 Author: Amit Saha Date: Wed Apr 3 21:39:40 2013 +1000 Number of changes to beaker-sync-tasks It was found during testing that uploading task RPMs over XML-RPC is not suitable for the purpose. One reason being, that ``createrepo`` is called for every task upload, which is not very desirable. The way out is to directly write the task RPMs to the disk and update the database accordingly. As a consequence, the tool now *have* to be run on the Beaker server on which the the task RPMs are to be copied. This patch mainly addresses the changes required to implement the above mentioned change. The tool does lose a bit of its flexibility (and utility), but perhaps it should first serve the purpose for which it is written. Relevant documentation changes as well. Change-Id: If813d334791736d916eb5d27a5278d6ea5f5190b commit dd874428d6e901411df45bc3a081b8f71280bc82 Author: David Sommerseth Date: Thu Apr 4 16:55:33 2013 +0200 workflow-xslt: Allow internal XML to be dumped before XSLT is parsed This makes it easier to debug failing XSLT templates, as workflow-xslt won't always give good enough error messages when parsing XSLT files. By dumping the internal XML file before starting the XSLT processing, that XML can be used directly with xsltproc for more deeper going XSLT debugging. Signed-off-by: David Sommerseth commit 81c50e24cbd06ff8c505317593d336f10cb9a998 Author: Dan Callaghan Date: Tue Apr 2 09:17:08 2013 +1000 docs: fix a few typos in bkr(1) man page Change-Id: I6096e1c5f3b41372191fb84d3de2b4ef04cebef4