AgeCommit message (Collapse)AuthorFilesLines
2017-10-27Automatic commit of release 24.5beaker-24.5Anwesha Chatterjee7-8/+8
Change-Id: I7bb4e2159665d00959c21e7d6bf946d0668e0a2c
2017-10-23release notes for 24.5Dan Callaghan1-0/+31
Change-Id: I94f61215239c54e193957d3e9e109db4d2b19792
2017-10-23more targetted re-rendering for the recipe progress barDan Callaghan1-1/+3
Bug: 1500142 Change-Id: I6fb14ff64ece2db91cfcd88c21c168efc273a3b0
2017-10-23more targetted re-rendering for the job page recipe rowsDan Callaghan1-1/+1
Bug: 1500142 Change-Id: I5ac8fb7579ba4098a3c0eb3b0ec72755729475c1
2017-10-23more targetted re-rendering for the recipe page headerDan Callaghan1-1/+3
Bug: 1500142 Change-Id: Ib5a15e62e075dc747bbc18b7c8c097477147c10f
2017-10-20flush session before returning from PATCH /users/<username>Dan Callaghan2-0/+36
This ensures the queries in user_full_json() to populate the various resource counts are properly updated to the changes just made (particularly when the change was to remove the user and clean up all their resources). Change-Id: Ic2be8a7266adf40e56d9307ece0a67dada7317a4
2017-10-19lab controllers need to be permitted to power any systemDan Callaghan2-0/+24
Bug: 1501671 Change-Id: I103068c694c52263eaa9334060f94cf2a095a6b9
2017-10-13only listenTo specific attribute changes in modelAnwesha Chatterjee1-1/+2
To avoid unnecessary re-rendering of recipe-summary section. Bug: 1500142 Change-Id: I34e216616eee8d75887c0495812d037fc27d47fb
2017-10-12system search: treat missing value as empty stringDan Callaghan3-5/+47
Bug: 1498804 Change-Id: I565d32950b71c9132753f976857780ffd8483d5e
2017-10-12disallow giving pools to deleted usersDan Callaghan2-0/+26
Bug: 1498374 Change-Id: I0845f620e4506e5b0525044193adbd8c43d1046d
2017-10-12transfer pool ownership when removing a userDan Callaghan4-3/+21
Similar to how we transfer system ownership. Bug: 1498374 Change-Id: I2803163812ddf1772af4deecb5ff1ec948103e24
2017-10-12show owned pools on the user pageDan Callaghan2-1/+10
Bug: 1498374 Change-Id: Ifb4d22892bd9273e9f6759c618ae1a4a24256637
2017-10-12disallow adding deleted users to access policiesDan Callaghan4-1/+55
Bug: 1497881 Change-Id: Iea477dbe40ea4013edbfec076e4132b872a3b01c
2017-10-12disallow adding deleted users to groupsDan Callaghan2-1/+40
Bug: 1497881 Change-Id: I8404af34ab835abd8b613ce04dccec08716f2b8a
2017-10-12disallow giving systems to deleted usersDan Callaghan3-0/+20
Bug: 1497881 Change-Id: Id6073a991c2922ffacc64c47ff773fff7cf57e63
2017-10-12disallow lending systems to deleted usersDan Callaghan2-1/+22
Bug: 1497881 Change-Id: I189966c1302b5c58cd7e7c54832fbd19adbbdfc6
2017-10-12implement OpenStack flavor filtering for <not/>Dan Callaghan2-0/+35
This was somehow missed in the original implementation, causing <not/> to always default to precluding OpenStack. Bug: 1499646 Change-Id: I79dd7ccedbb7c5e38af4deef724504e5874b56b7
2017-10-11sqlalchemy 1.0 compatibility: cannot delete from joinDan Callaghan1-4/+4
With sqlalchemy 1.0, deleting from a query containing a join is now an error. This fixes a failure in the tests for removing lab controllers: bkr.server ERROR Exception on /labcontrollers/lab249.testdata.invalid [PATCH] Traceback (most recent call last): [...] File "Server/bkr/server/", line 151, in update_labcontroller remove_labcontroller(labcontroller) File "Server/bkr/server/", line 92, in remove_labcontroller distro_tree_assocs.delete(synchronize_session=False) File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/", line 3047, in delete self, synchronize_session) File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/", line 1302, in factory }, synchronize_session, query) File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/", line 1122, in _factory return klass(*arg) File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/", line 1294, in __init__ super(BulkDelete, self).__init__(query) File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/", line 1087, in __init__ self._validate_query_state() File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/", line 1105, in _validate_query_state (methname, ) InvalidRequestError: Can't call Query.update() or Query.delete() when join(), outerjoin(), select_from(), or from_self() has been called OpenStack 11 provides sqlalchemy 1.0. Change-Id: Ib09439d121fe41d2ad49103c7f11b816567c0afa
2017-10-10tests: requests exception message has changedDan Callaghan1-3/+5
Newer versions of requests have started including the failing URL in exception messages. We can adjust the test case assertions to handle both possibilities. This fixes failures like this: FAIL: test_on_error_warns_if_server_version_does_not_match (bkr.inttest.client.test_common_options.CommonOptionsTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "IntegrationTests/src/bkr/inttest/client/", line 54, in test_on_error_warns_if_server_version_does_not_match % __version__) AssertionError: 'WARN[91 chars]Found for url: http://localhost:19998/systems/[21 chars]us\n' != 'WARN[91 chars]Found\n' WARNING: client version is 24.4 but server version is 999.3 - HTTP error: 404 Client Error: Not Found for url: http://localhost:19998/systems/ + HTTP error: 404 Client Error: Not Found Change-Id: I0fa06703f53560c04ac9b09f3d5256ec2b388a21
2017-10-06fix allowed_priorities() to use proper permission checkDan Callaghan3-5/+29
This method was not aware of the newer "group job" permissions, since it wasn't calling through can_change_priority(). And it was also missing a base case so it was falling through to return None, causing a confusing exception in the caller. Bug: 1497021 Change-Id: I8fea805e9d83d3debec5a4b74f7ad9ad2864f511
2017-10-06fix missing URI encoding for login linkDan Callaghan2-1/+21
The Flask request.path attribute is URI-decoded and UTF8-decoded, which means we need to re-apply the encoding when we construct the forward_url parameter. Change-Id: I3d55b4184947913018f47f56a6d55640128f8fd5