HomeSort by relevance Sort by last modified time
    Searched refs:leased (Results 1 - 23 of 23) sorted by null

  /external/autotest/scheduler/
host_scheduler_unittests.py 91 self.assertTrue(host.leased == True and
111 self.assertTrue(host.leased == False and
119 """Test handling of inactive hqes assigned leased hosts."""
120 # Create a job and assign it a leased host, then check that the
126 host.leased = 1
134 self.assertTrue(host.leased == True and
140 self.assertTrue(self.db_helper.get_host(hostname='h1')[0].leased == 0)
188 self.assertTrue(self.db_helper.get_host(hostname='h')[0].leased == 1 and
189 self.db_helper.get_host(hostname='h1')[0].leased == 1)
216 # for scheduling till its host is leased
    [all...]
rdb_hosts.py 101 3. Checking the leased bit/status of a host before leasing it out.
132 # trust the leased bit on a cached host.
144 """Set the leased bit on the host object, and in the database.
146 @raises RDBException: If the host is already leased.
148 self.refresh(fields=['leased'])
149 if self.leased:
150 raise rdb_utils.RDBException('Host %s is already leased' %
152 self.leased = True
155 # updating/refreshing a single indexed attribute, the leased bit.
156 afe_models.Host.objects.filter(id=self.id).update(leased=self.leased
    [all...]
rdb_unittest.py 215 name='h1', deps=deps, acls=acls, leased=1)
237 name='h1', deps=deps, acls=acls, leased=1)
238 # Confirm that the available_hosts_manager can't see the leased host.
243 # Confirm that the available_hosts_manager can't update a leased host.
244 # Also confirm that the general query manager Can see the leased host.
246 [db_host.id], **{'leased': 0})
248 self.assertTrue(len(hosts) == 1 and hosts[0].leased)
250 # Confirm that we can infact update the leased bit on the host.
252 [hosts[0].id], **{'leased': 0})
254 self.assertTrue(len(hosts) == 1 and not hosts[0].leased)
    [all...]
rdb_hosts_unittest.py 72 """Test that leasing a leased host raises an exception.
75 an RDBException, or the leased bits are not set after the
77 @raises RDBException: If the host is created with the leased bit set.
84 self.assertTrue(host.leased and server_host.leased)
116 db_host = self.db_helper.create_host(hostname, leased=True)
128 'leased': False,
rdb_integration_tests.py 124 """Test that acquisition of a leased host doesn't happen.
131 host.leased = 1
139 """Test behaviour when hosts are leased just before acquisition.
141 If a fraction of the hosts somehow get leased between finding and
146 since one host gets leased before the final attempt to lease both.
155 """Return a predetermined list of hosts, one of which is leased."""
157 h1.leased = 1
178 host.leased = 1
182 self.assertTrue(host.leased == (state != 'Ready'))
194 host.leased =
    [all...]
rdb_cache_unittests.py 109 'second request should have leased it.')
204 # it is already leased.
226 # able to use the cached host because it was already leased, and
261 # Caching a leased host is just a waste of cache space.
264 acls=test_utils.DEFAULT_ACLS, leased=1)
271 host.leased=0
279 acls=test_utils.DEFAULT_ACLS, leased=0)
288 acls=[test_utils.DEFAULT_ACLS[1]], leased=0)
rdb_testing_utils.py 204 locked=0, lock_reason='', leased=0, protection=0, dirty=0):
217 leased: 1 if the host is leased.
227 lock_reason=lock_reason, leased=leased,
418 Call this method to check the status of any host leased by the
419 rdb before it has been assigned to an hqe. It must be leased and
424 @raises AssertionError: If the host is either not leased or Ready.
427 self.assert_(host.leased)
443 self.assert_(host.leased == 1
    [all...]
rdb_cache_manager.py 16 2. Clients of the cache don't trust the leased bit on the cached object.
75 of requests, so it's faster to check leased bits real time than query for hosts.
292 If one of the hosts in the cache line is already leased.
297 if any(host.leased for host in line):
298 raise rdb_utils.RDBException('Cannot cache leased hosts %s' % line)
332 # This can happen if a previous request leased all matching hosts.
query_managers.py 126 tasks with leased hosts.
263 where="NOT afe_hosts.leased "
349 "AND afe_hosts.leased "
356 """Modify the leased bit on the hosts with ids in host_ids.
358 @param leased_value: The True/False value of the leased column for
362 logging.info('Setting leased = %s for the hosts that match %s',
364 models.Host.objects.filter(**kwargs).update(leased=leased_value)
host_scheduler.py 14 id of a leased host matching the dependencies of the job.
19 active hqes/special tasks are assigned the same host, and sets the leased bit
22 runs special tasks only after their hosts have been leased.
44 leased=0 in db. This is needed because host scheduler maintains internal
105 we need to know which suite it was leased to. Querying the db for the
357 if task.queue_entry_id is None and not task.host.leased]
358 # Leasing a leased hosts here shouldn't be a problem:
359 # 1. The only way a host can be leased is if it's been assigned to
364 # task has already leased a host and we lease it again, the
rdb.py 80 """Query manager for requests on un-leased, un-locked hosts.
91 """Handler for requests related to hosts, leased or unleased.
217 requests leaving their leased state untouched.
234 'is already leased or locked', request)
260 leased.
293 # bail early if the host is already leased.
294 if host.leased:
335 2. If all matching hosts are not leased for this request, the remaining
364 # failed leasing, most likely because they're already leased, so
371 # leased by a previous request, ergo, we can only get her
    [all...]
  /external/autotest/scheduler/shard/
simple_heartbeat_server.py 89 labels__name__in=[board], leased=False)
  /external/autotest/frontend/afe/
rdb_model_extensions.py 140 Eg: set([hostname, locked, leased, status, invalid,
186 leased = dbmodels.BooleanField(default=True) variable in class:AbstractHostModel
rpc_interface_unittest.py     [all...]
model_logic.py 34 leased=0, locked=0))
    [all...]
models.py 545 leased=False
    [all...]
  /prebuilts/tools/common/m2/repository/org/apache/httpcomponents/httpcore/4.2.1/
httpcore-4.2.1.jar 
  /prebuilts/tools/common/m2/repository/org/apache/httpcomponents/httpcore/4.2.5/
httpcore-4.2.5.jar 
  /prebuilts/tools/common/m2/repository/org/apache/httpcomponents/httpcore/4.3.1/
httpcore-4.3.1.jar 
  /prebuilts/tools/common/m2/repository/org/apache/httpcomponents/httpcore/4.4.4/
httpcore-4.4.4.jar 
  /prebuilts/eclipse/maven/apache-maven-3.2.1/lib/
wagon-http-2.6-shaded.jar 
  /prebuilts/tools/common/m2/repository/org/apache/httpcomponents/httpclient/4.3.2/
httpclient-4.3.2.jar 
  /prebuilts/tools/common/m2/repository/org/apache/httpcomponents/httpclient/4.5.2/
httpclient-4.5.2.jar 

Completed in 1399 milliseconds