Skip to content

Instantly share code, notes, and snippets.

@ianfixes
Created June 14, 2013 20:05
Show Gist options
  • Save ianfixes/5784849 to your computer and use it in GitHub Desktop.
Save ianfixes/5784849 to your computer and use it in GitHub Desktop.
test_agent_instance_config_hasDevice running 4 times from single test instance
$ bin/nosetests ion.services.sa.instrument.test.test_instrument_management_service_integration:TestInstrumentManagementServiceIntegration.test_agent_instance_config_hasDevice
EEEE
======================================================================
ERROR: test_agent_instance_config_hasDevice ( ion.services.sa.instrument.test.test_instrument_management_service_integration:TestInstrumentManagementServiceIntegration.test_agent_instance_config_hasDevice )
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/sa/instrument/test/test_instrument_management_service_integration.py", line 484, in test_agent_instance_config_hasDevice
self.base_agent_instance_config(assign_fn, find_fn)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/sa/instrument/test/test_instrument_management_service_integration.py", line 746, in base_agent_instance_config
refresh_pconfig_builder_hack() # associations have changed since builder was instantiated
TypeError: refresh_pconfig_builder_hack() takes exactly 1 argument (0 given)
-------------------- >> begin captured logging << --------------------
pyon.ion.event: WARNING: queue_name specified, prepending sys_name to it: ion_test_4b96f4.event_persister
pyon.core.governance: WARNING: The ION System Actor Identity was not found; defaulting to anonymous actor
pyon.ion.event: WARNING: queue_name specified, prepending sys_name to it: ion_test_4b96f4.notification_worker_queue
pyon.container.procs: ERROR: Error spawning index_bootstrap immediate process (process_id: silverlining_local_83580.36): instantiating process
Traceback (most recent call last):
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 170, in spawn_process
process_instance = self._spawn_immediate_process(process_id, name, module, cls, process_cfg)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 610, in _spawn_immediate_process
self._process_start(process_instance)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 711, in _process_start
process_instance.start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/ion/service.py", line 65, in start
return self.on_start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 114, in on_start
self.clean_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 183, in clean_bootstrap
self.index_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 217, in index_bootstrap
IndexManagementService._check_response(response)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/dm/inventory/index_management_service.py", line 61, in _check_response
raise ServerError("ElasticSearch error: %s" % response['error'])
ServerError: 500 - ElasticSearch error: HTTPConnectionPool(host='localhost', port=9200): Max retries exceeded with url: /ion_test_4b96f4_searches_and_catalogs (Caused by <class 'socket.error'>: [Errno 61] Connection refused)
ion.processes.bootstrap.bootstrapper: ERROR: Error bootstrapping plugin ion.processes.bootstrap.plugins.bootstrap_index.BootstrapIndex
Traceback (most recent call last):
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/bootstrapper.py", line 46, in _call_plugins
plugin_func(process, plugin_cfg, **kwargs)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/plugins/bootstrap_index.py", line 23, in on_initial_bootstrap
process.container.spawn_process('index_bootstrap','ion.processes.bootstrap.index_bootstrap','IndexBootStrap',config)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 170, in spawn_process
process_instance = self._spawn_immediate_process(process_id, name, module, cls, process_cfg)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 610, in _spawn_immediate_process
self._process_start(process_instance)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 711, in _process_start
process_instance.start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/ion/service.py", line 65, in start
return self.on_start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 114, in on_start
self.clean_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 183, in clean_bootstrap
self.index_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 217, in index_bootstrap
IndexManagementService._check_response(response)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/dm/inventory/index_management_service.py", line 61, in _check_response
raise ServerError("ElasticSearch error: %s" % response['error'])
ServerError: 500 - ElasticSearch error: HTTPConnectionPool(host='localhost', port=9200): Max retries exceeded with url: /ion_test_4b96f4_searches_and_catalogs (Caused by <class 'socket.error'>: [Errno 61] Connection refused)
root: INFO: Using udunits2.xml database: /Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/eggs/udunitspy-0.0.6-py2.7-macosx-10.6-intel.egg/etc/udunits/udunits2.xml
pyon.core.interceptor.validate: WARNING: message failed validation, but allowing it anyway: Invalid type "<type 'float'>" for field "scheduler_create_interval_timer_in.start_time", should be "str"
headers {'conv-seq': 1, 'protocol': 'rpc', 'sender': 'silverlining_local_83580.40', 'sender-name': 'unnamed-process', 'encoding': 'msgpack', 'reply-by': '1371231746449', 'sender-type': 'immediate', 'ts': '1371231716449', 'routing_key': 'scheduler', 'language': 'ion-r2', 'ion-actor-id': 'dc1cb8d8976844288d0020ce57bba208', 'receiver': 'ion_test_4b96f4,scheduler', 'format': 'scheduler_create_interval_timer_in', 'ion-actor-roles': {'ION': ['ORG_MANAGER', 'ION_MANAGER', 'ORG_MEMBER']}, 'reply-to': 'ion_test_4b96f4,amq.gen-2iRq82kGDEPgpsjIJEmvJw==', 'conv-id': 'silverlining_local_83580-212', 'performative': 'request', 'op': 'create_interval_timer'}
payload {'event_origin': 'b5babd6954dd413288ace61307b5edf7', 'start_time': 1371231716.443619, 'interval': 3600, 'event_subtype': '', 'end_time': -1}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing that preparing a launcher without agent instance raises an error
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Making the structure for a platform agent, which will be the child
ion.services.dm.inventory.dataset_management_service: WARNING: No registration worker found
pyon.datastore.couchdb.couchdb_datastore: WARNING: Attempt to delete ExchangeName object 8980046de3d347649c04addb2fac6cb6 that still has associations
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Preparing a valid agent instance launch, for config only
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.253 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.089 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_1 are {}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Making the structure for a platform agent, which will be the parent
ion.services.dm.inventory.dataset_management_service: WARNING: No registration worker found
pyon.datastore.couchdb.couchdb_datastore: WARNING: Attempt to delete ExchangeName object c5c5e7c25629438fa2dc8c431c39ec13 that still has associations
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing child-less parent as a child config
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.297 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.061 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_2 are {}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: assigning child platform to parent
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing parent + child as parent config
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.189 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.044 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_1 are {}
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_2 are {'PlatformAgentInstance_1': {}}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: making the structure for an instrument agent
ion.services.sa.instrument.instrument_management_service: DEBUG: device now connected to instrument agent instance 1e036450216d4bdcbcd14b784aa61073 (L4-CI-SA-RQ-363)
ion.services.dm.inventory.dataset_management_service: WARNING: No registration worker found
pyon.datastore.couchdb.couchdb_datastore: WARNING: Attempt to delete ExchangeName object 8e06367948cc404797fcc6268821943b that still has associations
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing instrument config
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.235 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.043 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for InstrumentAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for InstrumentAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of InstrumentAgentInstance_1 are {}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: assigning instrument to platform
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing entire config
--------------------- >> end captured logging << ---------------------
-------------------- >> begin captured stdout << ---------------------
store_interfaces: Created 0 datastores...
Excel imports failed
Starting Monitor Loop worker: %s timeout=%s silverlining_local_83580.42 300
--------------------- >> end captured stdout << ----------------------
======================================================================
ERROR: test_agent_instance_config_hasDevice ( ion.services.sa.instrument.test.test_instrument_management_service_integration:TestInstrumentManagementServiceIntegration.test_agent_instance_config_hasDevice )
----------------------------------------------------------------------
TypeError: 'NoneType' object is not callable
-------------------- >> begin captured logging << --------------------
pyon.ion.event: WARNING: queue_name specified, prepending sys_name to it: ion_test_4b96f4.event_persister
pyon.core.governance: WARNING: The ION System Actor Identity was not found; defaulting to anonymous actor
pyon.ion.event: WARNING: queue_name specified, prepending sys_name to it: ion_test_4b96f4.notification_worker_queue
pyon.container.procs: ERROR: Error spawning index_bootstrap immediate process (process_id: silverlining_local_83580.36): instantiating process
Traceback (most recent call last):
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 170, in spawn_process
process_instance = self._spawn_immediate_process(process_id, name, module, cls, process_cfg)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 610, in _spawn_immediate_process
self._process_start(process_instance)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 711, in _process_start
process_instance.start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/ion/service.py", line 65, in start
return self.on_start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 114, in on_start
self.clean_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 183, in clean_bootstrap
self.index_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 217, in index_bootstrap
IndexManagementService._check_response(response)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/dm/inventory/index_management_service.py", line 61, in _check_response
raise ServerError("ElasticSearch error: %s" % response['error'])
ServerError: 500 - ElasticSearch error: HTTPConnectionPool(host='localhost', port=9200): Max retries exceeded with url: /ion_test_4b96f4_searches_and_catalogs (Caused by <class 'socket.error'>: [Errno 61] Connection refused)
ion.processes.bootstrap.bootstrapper: ERROR: Error bootstrapping plugin ion.processes.bootstrap.plugins.bootstrap_index.BootstrapIndex
Traceback (most recent call last):
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/bootstrapper.py", line 46, in _call_plugins
plugin_func(process, plugin_cfg, **kwargs)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/plugins/bootstrap_index.py", line 23, in on_initial_bootstrap
process.container.spawn_process('index_bootstrap','ion.processes.bootstrap.index_bootstrap','IndexBootStrap',config)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 170, in spawn_process
process_instance = self._spawn_immediate_process(process_id, name, module, cls, process_cfg)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 610, in _spawn_immediate_process
self._process_start(process_instance)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 711, in _process_start
process_instance.start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/ion/service.py", line 65, in start
return self.on_start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 114, in on_start
self.clean_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 183, in clean_bootstrap
self.index_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 217, in index_bootstrap
IndexManagementService._check_response(response)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/dm/inventory/index_management_service.py", line 61, in _check_response
raise ServerError("ElasticSearch error: %s" % response['error'])
ServerError: 500 - ElasticSearch error: HTTPConnectionPool(host='localhost', port=9200): Max retries exceeded with url: /ion_test_4b96f4_searches_and_catalogs (Caused by <class 'socket.error'>: [Errno 61] Connection refused)
root: INFO: Using udunits2.xml database: /Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/eggs/udunitspy-0.0.6-py2.7-macosx-10.6-intel.egg/etc/udunits/udunits2.xml
pyon.core.interceptor.validate: WARNING: message failed validation, but allowing it anyway: Invalid type "<type 'float'>" for field "scheduler_create_interval_timer_in.start_time", should be "str"
headers {'conv-seq': 1, 'protocol': 'rpc', 'sender': 'silverlining_local_83580.40', 'sender-name': 'unnamed-process', 'encoding': 'msgpack', 'reply-by': '1371231746449', 'sender-type': 'immediate', 'ts': '1371231716449', 'routing_key': 'scheduler', 'language': 'ion-r2', 'ion-actor-id': 'dc1cb8d8976844288d0020ce57bba208', 'receiver': 'ion_test_4b96f4,scheduler', 'format': 'scheduler_create_interval_timer_in', 'ion-actor-roles': {'ION': ['ORG_MANAGER', 'ION_MANAGER', 'ORG_MEMBER']}, 'reply-to': 'ion_test_4b96f4,amq.gen-2iRq82kGDEPgpsjIJEmvJw==', 'conv-id': 'silverlining_local_83580-212', 'performative': 'request', 'op': 'create_interval_timer'}
payload {'event_origin': 'b5babd6954dd413288ace61307b5edf7', 'start_time': 1371231716.443619, 'interval': 3600, 'event_subtype': '', 'end_time': -1}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing that preparing a launcher without agent instance raises an error
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Making the structure for a platform agent, which will be the child
ion.services.dm.inventory.dataset_management_service: WARNING: No registration worker found
pyon.datastore.couchdb.couchdb_datastore: WARNING: Attempt to delete ExchangeName object 8980046de3d347649c04addb2fac6cb6 that still has associations
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Preparing a valid agent instance launch, for config only
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.253 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.089 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_1 are {}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Making the structure for a platform agent, which will be the parent
ion.services.dm.inventory.dataset_management_service: WARNING: No registration worker found
pyon.datastore.couchdb.couchdb_datastore: WARNING: Attempt to delete ExchangeName object c5c5e7c25629438fa2dc8c431c39ec13 that still has associations
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing child-less parent as a child config
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.297 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.061 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_2 are {}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: assigning child platform to parent
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing parent + child as parent config
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.189 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.044 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_1 are {}
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_2 are {'PlatformAgentInstance_1': {}}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: making the structure for an instrument agent
ion.services.sa.instrument.instrument_management_service: DEBUG: device now connected to instrument agent instance 1e036450216d4bdcbcd14b784aa61073 (L4-CI-SA-RQ-363)
ion.services.dm.inventory.dataset_management_service: WARNING: No registration worker found
pyon.datastore.couchdb.couchdb_datastore: WARNING: Attempt to delete ExchangeName object 8e06367948cc404797fcc6268821943b that still has associations
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing instrument config
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.235 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.043 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for InstrumentAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for InstrumentAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of InstrumentAgentInstance_1 are {}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: assigning instrument to platform
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing entire config
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_agent_instance_config_hasDevice ( ion.services.sa.instrument.test.test_instrument_management_service_integration:TestInstrumentManagementServiceIntegration.test_agent_instance_config_hasDevice )
----------------------------------------------------------------------
TypeError: 'NoneType' object is not callable
-------------------- >> begin captured logging << --------------------
pyon.ion.event: WARNING: queue_name specified, prepending sys_name to it: ion_test_4b96f4.event_persister
pyon.core.governance: WARNING: The ION System Actor Identity was not found; defaulting to anonymous actor
pyon.ion.event: WARNING: queue_name specified, prepending sys_name to it: ion_test_4b96f4.notification_worker_queue
pyon.container.procs: ERROR: Error spawning index_bootstrap immediate process (process_id: silverlining_local_83580.36): instantiating process
Traceback (most recent call last):
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 170, in spawn_process
process_instance = self._spawn_immediate_process(process_id, name, module, cls, process_cfg)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 610, in _spawn_immediate_process
self._process_start(process_instance)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 711, in _process_start
process_instance.start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/ion/service.py", line 65, in start
return self.on_start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 114, in on_start
self.clean_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 183, in clean_bootstrap
self.index_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 217, in index_bootstrap
IndexManagementService._check_response(response)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/dm/inventory/index_management_service.py", line 61, in _check_response
raise ServerError("ElasticSearch error: %s" % response['error'])
ServerError: 500 - ElasticSearch error: HTTPConnectionPool(host='localhost', port=9200): Max retries exceeded with url: /ion_test_4b96f4_searches_and_catalogs (Caused by <class 'socket.error'>: [Errno 61] Connection refused)
ion.processes.bootstrap.bootstrapper: ERROR: Error bootstrapping plugin ion.processes.bootstrap.plugins.bootstrap_index.BootstrapIndex
Traceback (most recent call last):
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/bootstrapper.py", line 46, in _call_plugins
plugin_func(process, plugin_cfg, **kwargs)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/plugins/bootstrap_index.py", line 23, in on_initial_bootstrap
process.container.spawn_process('index_bootstrap','ion.processes.bootstrap.index_bootstrap','IndexBootStrap',config)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 170, in spawn_process
process_instance = self._spawn_immediate_process(process_id, name, module, cls, process_cfg)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 610, in _spawn_immediate_process
self._process_start(process_instance)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 711, in _process_start
process_instance.start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/ion/service.py", line 65, in start
return self.on_start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 114, in on_start
self.clean_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 183, in clean_bootstrap
self.index_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 217, in index_bootstrap
IndexManagementService._check_response(response)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/dm/inventory/index_management_service.py", line 61, in _check_response
raise ServerError("ElasticSearch error: %s" % response['error'])
ServerError: 500 - ElasticSearch error: HTTPConnectionPool(host='localhost', port=9200): Max retries exceeded with url: /ion_test_4b96f4_searches_and_catalogs (Caused by <class 'socket.error'>: [Errno 61] Connection refused)
root: INFO: Using udunits2.xml database: /Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/eggs/udunitspy-0.0.6-py2.7-macosx-10.6-intel.egg/etc/udunits/udunits2.xml
pyon.core.interceptor.validate: WARNING: message failed validation, but allowing it anyway: Invalid type "<type 'float'>" for field "scheduler_create_interval_timer_in.start_time", should be "str"
headers {'conv-seq': 1, 'protocol': 'rpc', 'sender': 'silverlining_local_83580.40', 'sender-name': 'unnamed-process', 'encoding': 'msgpack', 'reply-by': '1371231746449', 'sender-type': 'immediate', 'ts': '1371231716449', 'routing_key': 'scheduler', 'language': 'ion-r2', 'ion-actor-id': 'dc1cb8d8976844288d0020ce57bba208', 'receiver': 'ion_test_4b96f4,scheduler', 'format': 'scheduler_create_interval_timer_in', 'ion-actor-roles': {'ION': ['ORG_MANAGER', 'ION_MANAGER', 'ORG_MEMBER']}, 'reply-to': 'ion_test_4b96f4,amq.gen-2iRq82kGDEPgpsjIJEmvJw==', 'conv-id': 'silverlining_local_83580-212', 'performative': 'request', 'op': 'create_interval_timer'}
payload {'event_origin': 'b5babd6954dd413288ace61307b5edf7', 'start_time': 1371231716.443619, 'interval': 3600, 'event_subtype': '', 'end_time': -1}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing that preparing a launcher without agent instance raises an error
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Making the structure for a platform agent, which will be the child
ion.services.dm.inventory.dataset_management_service: WARNING: No registration worker found
pyon.datastore.couchdb.couchdb_datastore: WARNING: Attempt to delete ExchangeName object 8980046de3d347649c04addb2fac6cb6 that still has associations
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Preparing a valid agent instance launch, for config only
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.253 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.089 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_1 are {}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Making the structure for a platform agent, which will be the parent
ion.services.dm.inventory.dataset_management_service: WARNING: No registration worker found
pyon.datastore.couchdb.couchdb_datastore: WARNING: Attempt to delete ExchangeName object c5c5e7c25629438fa2dc8c431c39ec13 that still has associations
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing child-less parent as a child config
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.297 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.061 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_2 are {}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: assigning child platform to parent
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing parent + child as parent config
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.189 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.044 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_1 are {}
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_2 are {'PlatformAgentInstance_1': {}}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: making the structure for an instrument agent
ion.services.sa.instrument.instrument_management_service: DEBUG: device now connected to instrument agent instance 1e036450216d4bdcbcd14b784aa61073 (L4-CI-SA-RQ-363)
ion.services.dm.inventory.dataset_management_service: WARNING: No registration worker found
pyon.datastore.couchdb.couchdb_datastore: WARNING: Attempt to delete ExchangeName object 8e06367948cc404797fcc6268821943b that still has associations
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing instrument config
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.235 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.043 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for InstrumentAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for InstrumentAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of InstrumentAgentInstance_1 are {}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: assigning instrument to platform
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing entire config
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_agent_instance_config_hasDevice ( ion.services.sa.instrument.test.test_instrument_management_service_integration:TestInstrumentManagementServiceIntegration.test_agent_instance_config_hasDevice )
----------------------------------------------------------------------
TypeError: 'NoneType' object is not callable
-------------------- >> begin captured logging << --------------------
pyon.ion.event: WARNING: queue_name specified, prepending sys_name to it: ion_test_4b96f4.event_persister
pyon.core.governance: WARNING: The ION System Actor Identity was not found; defaulting to anonymous actor
pyon.ion.event: WARNING: queue_name specified, prepending sys_name to it: ion_test_4b96f4.notification_worker_queue
pyon.container.procs: ERROR: Error spawning index_bootstrap immediate process (process_id: silverlining_local_83580.36): instantiating process
Traceback (most recent call last):
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 170, in spawn_process
process_instance = self._spawn_immediate_process(process_id, name, module, cls, process_cfg)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 610, in _spawn_immediate_process
self._process_start(process_instance)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 711, in _process_start
process_instance.start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/ion/service.py", line 65, in start
return self.on_start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 114, in on_start
self.clean_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 183, in clean_bootstrap
self.index_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 217, in index_bootstrap
IndexManagementService._check_response(response)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/dm/inventory/index_management_service.py", line 61, in _check_response
raise ServerError("ElasticSearch error: %s" % response['error'])
ServerError: 500 - ElasticSearch error: HTTPConnectionPool(host='localhost', port=9200): Max retries exceeded with url: /ion_test_4b96f4_searches_and_catalogs (Caused by <class 'socket.error'>: [Errno 61] Connection refused)
ion.processes.bootstrap.bootstrapper: ERROR: Error bootstrapping plugin ion.processes.bootstrap.plugins.bootstrap_index.BootstrapIndex
Traceback (most recent call last):
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/bootstrapper.py", line 46, in _call_plugins
plugin_func(process, plugin_cfg, **kwargs)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/plugins/bootstrap_index.py", line 23, in on_initial_bootstrap
process.container.spawn_process('index_bootstrap','ion.processes.bootstrap.index_bootstrap','IndexBootStrap',config)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 170, in spawn_process
process_instance = self._spawn_immediate_process(process_id, name, module, cls, process_cfg)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 610, in _spawn_immediate_process
self._process_start(process_instance)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/container/procs.py", line 711, in _process_start
process_instance.start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/extern/pyon/pyon/ion/service.py", line 65, in start
return self.on_start()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 114, in on_start
self.clean_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 183, in clean_bootstrap
self.index_bootstrap()
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/processes/bootstrap/index_bootstrap.py", line 217, in index_bootstrap
IndexManagementService._check_response(response)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/dm/inventory/index_management_service.py", line 61, in _check_response
raise ServerError("ElasticSearch error: %s" % response['error'])
ServerError: 500 - ElasticSearch error: HTTPConnectionPool(host='localhost', port=9200): Max retries exceeded with url: /ion_test_4b96f4_searches_and_catalogs (Caused by <class 'socket.error'>: [Errno 61] Connection refused)
root: INFO: Using udunits2.xml database: /Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/eggs/udunitspy-0.0.6-py2.7-macosx-10.6-intel.egg/etc/udunits/udunits2.xml
pyon.core.interceptor.validate: WARNING: message failed validation, but allowing it anyway: Invalid type "<type 'float'>" for field "scheduler_create_interval_timer_in.start_time", should be "str"
headers {'conv-seq': 1, 'protocol': 'rpc', 'sender': 'silverlining_local_83580.40', 'sender-name': 'unnamed-process', 'encoding': 'msgpack', 'reply-by': '1371231746449', 'sender-type': 'immediate', 'ts': '1371231716449', 'routing_key': 'scheduler', 'language': 'ion-r2', 'ion-actor-id': 'dc1cb8d8976844288d0020ce57bba208', 'receiver': 'ion_test_4b96f4,scheduler', 'format': 'scheduler_create_interval_timer_in', 'ion-actor-roles': {'ION': ['ORG_MANAGER', 'ION_MANAGER', 'ORG_MEMBER']}, 'reply-to': 'ion_test_4b96f4,amq.gen-2iRq82kGDEPgpsjIJEmvJw==', 'conv-id': 'silverlining_local_83580-212', 'performative': 'request', 'op': 'create_interval_timer'}
payload {'event_origin': 'b5babd6954dd413288ace61307b5edf7', 'start_time': 1371231716.443619, 'interval': 3600, 'event_subtype': '', 'end_time': -1}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing that preparing a launcher without agent instance raises an error
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Making the structure for a platform agent, which will be the child
ion.services.dm.inventory.dataset_management_service: WARNING: No registration worker found
pyon.datastore.couchdb.couchdb_datastore: WARNING: Attempt to delete ExchangeName object 8980046de3d347649c04addb2fac6cb6 that still has associations
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Preparing a valid agent instance launch, for config only
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.253 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.089 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_1 are {}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Making the structure for a platform agent, which will be the parent
ion.services.dm.inventory.dataset_management_service: WARNING: No registration worker found
pyon.datastore.couchdb.couchdb_datastore: WARNING: Attempt to delete ExchangeName object c5c5e7c25629438fa2dc8c431c39ec13 that still has associations
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing child-less parent as a child config
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.297 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.061 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_2 are {}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: assigning child platform to parent
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing parent + child as parent config
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.189 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.044 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_1 are {}
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for PlatformAgentInstance_2
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of PlatformAgentInstance_2 are {'PlatformAgentInstance_1': {}}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: making the structure for an instrument agent
ion.services.sa.instrument.instrument_management_service: DEBUG: device now connected to instrument agent instance 1e036450216d4bdcbcd14b784aa61073 (L4-CI-SA-RQ-363)
ion.services.dm.inventory.dataset_management_service: WARNING: No registration worker found
pyon.datastore.couchdb.couchdb_datastore: WARNING: Attempt to delete ExchangeName object 8e06367948cc404797fcc6268821943b that still has associations
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing instrument config
ion.services.sa.instrument.agent_configuration_builder: WARNING: Creating new RR2
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 6 predicates in 0.235 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Cached 1 resource types in 0.043 seconds
ion.services.sa.instrument.agent_configuration_builder: INFO: Generating skeleton config block for InstrumentAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: DONE generating skeleton config block for InstrumentAgentInstance_1
ion.services.sa.instrument.agent_configuration_builder: INFO: Children of InstrumentAgentInstance_1 are {}
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: assigning instrument to platform
ion.services.sa.instrument.test.test_instrument_management_service_integration: DEBUG: Testing entire config
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 1 test in 63.881s
FAILED (errors=4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment