change set_num_replicas in docker_container_manager#616
change set_num_replicas in docker_container_manager#616simon-mo merged 5 commits intoucbrise:developfrom
Conversation
…teError: 'NoneType' object has no attribute 'get'
|
Can one of the admins verify this patch? |
|
Jenkins test this please |
1 similar comment
|
Jenkins test this please |
|
@withsmilo forgot to made you an admin in jenkins, you should be all set now. |
|
Jenkins ok to test |
|
@simon-mo : Thanks! but Travis CI are generating error logs now. :( |
|
@withsmilo yes this is because it's waiting on jenkins to push the images. This is fine because the image built by jenkins will be tagged with the commit hash, we can always go to travis's UI and restart travis build. |
|
Test FAILed. |
|
It seems the multi-tenancy tests have failed. |
|
Test FAILed. |
|
Jenkins test this please |
|
Test FAILed. |
|
I believe there's a bug somewhere, this fails the multi-tenancy tests. To reproduce it locally, you can |
|
Log Traceback (most recent call last):
File "/clipper/integration-tests/multi_tenancy_test.py", line 78, in test(kubernetes=False)
File "/clipper/integration-tests/multi_tenancy_test.py", line 24, in test
assert not res_2['default']
AssertionError |
|
@simon-mo : https://github.com/ucbrise/clipper/blob/develop/integration-tests/multi_tenancy_test.py#L14-L27 def test(kubernetes):
conn_1 = create('multi-tenancy-1-{}'.format(randint(1,9999)), use_kubernetes=kubernetes)
conn_2 = create('multi-tenancy-2-{}'.format(randint(1,9999)), use_kubernetes=kubernetes)
deploy_(conn_1, use_kubernetes=kubernetes)
deploy_(conn_2, use_kubernetes=kubernetes)
time.sleep(10) # <---- added!
res_1 = predict_(conn_1.get_query_addr(), [.1, .2, .3])
res_2 = predict_(conn_2.get_query_addr(), [.1, .2, .3])
assert not res_1['default']
assert not res_2['default']
conn_1.stop_all()
conn_2.stop_all() |
|
Fix added at #626, will rebase after that. |
|
@Evan-JH-Kim , please merge this PR with latest |
|
Test PASSed. |
|
Jenkins ok to test |
|
Test PASSed. |
|
Travis CI still fails.. what's wrong with it? |
|
@Evan-JH-Kim : Passed on all tests of Travis CI. |
|
Test PASSed. |
* change set_num_replicas in docker_container_manager, due to - AttributeError: 'NoneType' object has no attribute 'get' * revise set_num_replicas logic * changed 'container' to 'inspect_container'
* change set_num_replicas in docker_container_manager, due to - AttributeError: 'NoneType' object has no attribute 'get' * revise set_num_replicas logic * changed 'container' to 'inspect_container'
* change set_num_replicas in docker_container_manager, due to - AttributeError: 'NoneType' object has no attribute 'get' * revise set_num_replicas logic * changed 'container' to 'inspect_container'
Due to
This error occurs because container.attrs.get("State") and self.docker_client.api.inspect_container(name) can be 'None' type before enough delay time.
Giving delay time can resolve this problem.