The attempt to merge lp:~sleepsonthefloor/nova/716847 into lp:nova failed. Below is the output from the failed tests. /tmp/tmpXLEj1s uid=108(jenkins) gid=65534(nogroup) groups=65534(nogroup) AdminAPITest test_admin_disabled ok test_admin_enabled ok APITest test_exceptions_are_converted_to_faults ok Test test_authorize_token ok test_authorize_user ok test_bad_token ok test_bad_user ok test_no_user ok test_token_expiry ok TestLimiter test_authorize_token ok TestFaults test_fault_parts ok test_raise ok test_retry_header ok FlavorsTest test_get_flavor_by_id ok test_get_flavor_list ok GlanceImageServiceTest test_create ok test_create_and_show_non_existing_image ok test_delete ok test_update ok ImageControllerWithGlanceServiceTest test_get_image_details ok test_get_image_index ok LocalImageServiceTest test_create ok test_create_and_show_non_existing_image ok test_delete ok test_update ok LimiterTest test_minute ok test_one_per_period ok test_second ok test_users_get_separate_buckets ok test_we_can_go_indefinitely_if_we_spread_out_requests ok WSGIAppProxyTest test_200 ok test_403 ok test_failure ok WSGIAppTest test_escaping ok test_good_urls ok test_invalid_methods ok test_invalid_urls ok test_response_to_delays ok ServersTest test_create_backup_schedules ok test_create_instance ok test_delete_backup_schedules ok test_delete_server_instance ok test_get_all_server_details ok test_get_server_backup_schedules ok test_get_server_by_id ok test_get_server_list ok test_server_actions ok test_server_diagnostics ok test_server_pause ok test_server_reboot ok test_server_rebuild ok test_server_resize ok test_server_resume ok test_server_suspend ok test_server_unpause ok test_update_bad_params ok test_update_no_body ok test_update_server ok SharedIpGroupsTest test_create_shared_ip_group ok test_delete_shared_ip_group ok test_get_shared_ip_groups ok SerializerTest test_basic ok test_defaults_to_json ok test_deserialize ok test_deserialize_empty_xml ok test_suffix_takes_precedence_over_accept_header ok Test test_controller ok test_debug ok test_router ok AccessTestCase test_001_allow_all ok test_002_allow_none ok test_003_allow_project_manager ok test_004_allow_sys_and_net ok ApiEc2TestCase test_authorize_revoke_security_group_cidr ERROR test_authorize_revoke_security_group_cidr_v6 ERROR ERROR test_authorize_revoke_security_group_foreign_group ERROR ERROR test_create_delete_security_group ERROR ERROR test_describe_instances ERROR ERROR test_get_all_key_pairs ERROR ERROR test_get_all_security_groups ERROR ERROR test_xmlns_version_matches_request_version ERROR ERROR XmlConversionTestCase test_number_conversion ok AuthManagerDbTestCase test_004_signature_is_valid ok test_005_can_get_credentials ok test_add_user_role_doesnt_infect_project_roles ok test_adding_role_to_project_is_ignored_unless_added_to_user ok test_can_add_and_remove_user_role ok test_can_add_remove_user_with_role ok test_can_add_user_to_project ok test_can_create_and_get_project ok test_can_create_and_get_project_with_attributes ok test_can_create_project_with_manager ok test_can_delete_project ok test_can_delete_user ok test_can_generate_x509 ok test_can_list_project_roles ok test_can_list_projects ok test_can_list_user_roles ok test_can_list_users ok test_can_modify_project ok test_can_modify_users ok test_can_remove_project_role_but_keep_user_role ok test_can_remove_user_from_project ok test_can_remove_user_roles ok test_can_retrieve_project_by_user ok test_create_and_find_user ok test_create_and_find_with_properties ok test_create_project_assigns_manager_to_members ok test_no_extra_project_managers ok test_no_extra_project_members ok test_removing_user_role_hides_it_from_project ok AuthManagerLdapTestCase test_004_signature_is_valid ok test_005_can_get_credentials ok test_add_user_role_doesnt_infect_project_roles ok test_adding_role_to_project_is_ignored_unless_added_to_user ok test_can_add_and_remove_user_role ok test_can_add_remove_user_with_role ok test_can_add_user_to_project ok test_can_create_and_get_project ok test_can_create_and_get_project_with_attributes ok test_can_create_project_with_manager ok test_can_delete_project ok test_can_delete_user ok test_can_generate_x509 ok test_can_list_project_roles ok test_can_list_projects ok test_can_list_user_roles ok test_can_list_users ok test_can_modify_project ok test_can_modify_users ok test_can_remove_project_role_but_keep_user_role ok test_can_remove_user_from_project ok test_can_remove_user_roles ok test_can_retrieve_project_by_user ok test_create_and_find_user ok test_create_and_find_with_properties ok test_create_project_assigns_manager_to_members ok test_no_extra_project_managers ok test_no_extra_project_members ok test_removing_user_role_hides_it_from_project ok CloudTestCase test_ajax_console ok test_associate_disassociate_address ok test_console_output ok test_delete_key_pair ok test_describe_addresses ok test_describe_availability_zones ok test_describe_instances ok test_describe_key_pairs ok test_describe_regions ok test_describe_volumes ok test_instance_update_state ok test_key_generation ok test_run_instances ok test_update_of_instance_display_fields ok test_update_of_instance_wont_update_private_fields ok test_update_of_volume_display_fields ok test_update_of_volume_wont_update_private_fields ok test_user_editable_image_endpoint ok ComputeTestCase test_ajax_console ok test_console_output ok test_create_instance_associates_security_groups ok test_create_instance_defaults_display_name ok test_destroy_instance_disassociates_security_groups ok test_destroy_security_group_disassociates_instances ok test_lock ok test_pause ok test_reboot ok test_run_instance_existing ok test_run_terminate ok test_run_terminate_timestamps ok test_set_admin_password ok test_snapshot ok test_suspend ok ConsoleTestCase test_add_console ok test_add_console_does_not_duplicate ok test_get_pool_creates_new_pool_if_needed ok test_get_pool_does_not_create_new_pool_if_exists ok test_get_pool_for_instance_host ok test_remove_console ok DirectCloudTestCase test_ajax_console ok test_associate_disassociate_address ok test_console_output ok test_delete_key_pair ok test_describe_addresses ok test_describe_availability_zones ok test_describe_instances ok test_describe_key_pairs ok test_describe_regions ok test_describe_volumes ok test_instance_update_state ok test_key_generation ok test_run_instances ok test_update_of_instance_display_fields ok test_update_of_instance_wont_update_private_fields ok test_update_of_volume_display_fields ok test_update_of_volume_wont_update_private_fields ok test_user_editable_image_endpoint ok DirectTestCase test_delegated_auth ok test_json_params ok test_post_params ok test_proxy ok FlagsTestCase test_declare ok test_define ok test_flag_leak_left ok test_flag_leak_right ok test_runtime_and_unknown_flags ok LocalizationTestCase test_multiple_positional_format_placeholders ok NovaFormatterTestCase test_contextualized_log ok test_debugging_log ok test_uncontextualized_log ok NovaLoggerTestCase test_child_log_has_level_of_parent_flag ok test_has_level_from_flags ok RootLoggerTestCase test_handlers_have_nova_formatter ok test_handles_context_kwarg ok test_is_nova_instance ok test_module_level_audit_handles_context_arg ok test_module_level_methods_handle_context_arg ok test_name_is_nova_root ok VerboseLoggerTestCase test_will_be_verbose_if_named_nova_and_verbose_flag_set ok LockoutTestCase test_lockout ok test_multiple_keys ok test_timeout ok test_window_timeout ok ProjectTestCase test_authors_up_to_date ok NetworkTestCase test_allocate_deallocate_fixed_ip ok test_available_ips ok test_ips_are_reused ok test_private_ipv6 ok test_public_network_association ok test_side_effects ok test_subnet_edge ok test_too_many_addresses ok test_too_many_networks ok test_vpn_ip_and_port_looks_valid ok QuotaTestCase test_quota_overrides ok test_too_many_addresses ok test_too_many_cores ok test_too_many_gigabytes ok test_too_many_instances ok test_too_many_volumes ok RpcTestCase test_call_exception ok test_call_succeed ok test_context_passed ok test_nested_calls ok SchedulerTestCase test_fallback ok test_named_method ok SimpleDriverTestCase test_doesnt_report_disabled_hosts_as_up ok test_least_busy_host_gets_instance ok test_least_busy_host_gets_volume ok test_reports_enabled_hosts_as_up ok test_specific_host_gets_instance ok test_too_many_cores ok test_too_many_gigabytes ok test_will_schedule_on_disabled_host_if_specified ok test_wont_sechedule_if_specified_host_is_down ok ZoneSchedulerTestCase test_with_two_zones ok ServiceFlagsTestCase test_service_disabled_on_create_based_on_flag ok test_service_enabled_on_create_based_on_flag ok ServiceManagerTestCase test_attribute_error_for_no_manager ok test_message_gets_to_manager ok test_override_manager_method ok ServiceTestCase test_create ok test_report_state_newly_connected ok test_report_state_newly_disconnected ok test_report_state_no_service ok TwistdTestCase test_basic ok test_help ok test_logfile ok IptablesFirewallTestCase test_static_filters ok LibvirtConnTestCase test_xml_and_uri ok test_xml_and_uri_no_kernel ok test_xml_and_uri_no_ramdisk ok test_xml_and_uri_no_ramdisk_no_kernel ok test_xml_and_uri_rescue ok NWFilterTestCase test_cidr_rule_nwfilter_xml ok test_creates_base_rule_first ok VolumeTestCase test_concurrent_volumes_get_different_targets ok test_create_delete_volume ok test_multi_node ok test_run_attach_detach_volume ok test_too_big_volume ok test_too_many_volumes ok XenAPIDiffieHellmanTestCase test_encryption ok test_shared ok XenAPIVMTestCase test_get_diagnostics ok test_instance_snapshot ok test_list_instances_0 ok test_spawn_glance ok test_spawn_objectstore ok test_spawn_raw_glance ok test_spawn_raw_objectstore ok XenAPIVolumeTestCase test_attach_volume ok test_attach_volume_raise_exception ok test_create_iscsi_storage ok test_parse_volume_info_raise_exception ok ====================================================================== ERROR: test_authorize_revoke_security_group_cidr (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/tests/test_api.py", line 266, in test_authorize_revoke_security_group_cidr group.revoke('tcp', 80, 81, '0.0.0.0/0') File "/usr/lib/pymodules/python2.6/boto/ec2/securitygroup.py", line 170, in revoke cidr_ip) File "/usr/lib/pymodules/python2.6/boto/ec2/connection.py", line 1399, in revoke_security_group return self.get_status('RevokeSecurityGroupIngress', params) File "/usr/lib/pymodules/python2.6/boto/connection.py", line 647, in get_status raise self.ResponseError(response.status, response.reason, body) EC2ResponseError: EC2ResponseError: 400 Bad Request UnknownUnknown: No rule for the specified parameters.K6RJYNLCH7ICGTCOSK-5 -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:44,853 AUDIT nova.auth.manager [-] Created user fake (admin: False) 2011-02-14 19:47:44,892 AUDIT nova.auth.manager [-] Created project fake with manager fake 2011-02-14 19:47:44,893 AUDIT nova.auth.manager [-] Adding sitewide role netadmin to user fake 2011-02-14 19:47:44,901 AUDIT nova.auth.manager [-] Adding role netadmin to user fake in project fake 2011-02-14 19:47:44,966 AUDIT nova.api [NNKFO7B6TOCBN20P4IF7 fake fake] Authenticated Request For fake:fake) 2011-02-14 19:47:44,968 AUDIT nova.api.cloud [NNKFO7B6TOCBN20P4IF7 fake fake] Create Security Group acsdpp 2011-02-14 19:47:45,246 AUDIT nova.api [WFU4NFJ4LB4DFOM8O7DC fake fake] Authenticated Request For fake:fake) 2011-02-14 19:47:45,247 AUDIT nova.api.cloud [WFU4NFJ4LB4DFOM8O7DC fake fake] Authorize security group ingress acsdpp 2011-02-14 19:47:45,364 AUDIT nova.api [8YAOZ4DRSBRRQH93VHH7 fake fake] Authenticated Request For fake:fake) 2011-02-14 19:47:45,468 AUDIT nova.api [K6RJYNLCH7ICGTCOSK-5 fake fake] Authenticated Request For fake:fake) 2011-02-14 19:47:45,470 AUDIT nova.api.cloud [K6RJYNLCH7ICGTCOSK-5 fake fake] Revoke security group ingress default 2011-02-14 19:47:45,514 ERROR nova.api [K6RJYNLCH7ICGTCOSK-5 fake fake] ApiError raised: Unknown: No rule for the specified parameters. (nova.api): TRACE: Traceback (most recent call last): (nova.api): TRACE: File "/tmp/tmpXLEj1s/nova/api/ec2/__init__.py", line 316, in __call__ (nova.api): TRACE: result = api_request.invoke(context) (nova.api): TRACE: File "/tmp/tmpXLEj1s/nova/api/ec2/apirequest.py", line 128, in invoke (nova.api): TRACE: result = method(context, **args) (nova.api): TRACE: File "/tmp/tmpXLEj1s/nova/api/ec2/cloud.py", line 443, in revoke_security_group_ingress (nova.api): TRACE: raise exception.ApiError(_("No rule for the specified parameters.")) (nova.api): TRACE: ApiError: Unknown: No rule for the specified parameters. (nova.api): TRACE: 2011-02-14 19:47:45,516 ERROR nova.api [K6RJYNLCH7ICGTCOSK-5 fake fake] Unknown: Unknown: No rule for the specified parameters. 2011-02-14 19:47:45,516 ERROR boto [-] 400 Bad Request 2011-02-14 19:47:45,516 ERROR boto [-] UnknownUnknown: No rule for the specified parameters.K6RJYNLCH7ICGTCOSK-5 --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_authorize_revoke_security_group_cidr_v6 (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/tests/test_api.py", line 294, in test_authorize_revoke_security_group_cidr_v6 user = self.manager.create_user('fake', 'fake', 'fake') File "/tmp/tmpXLEj1s/nova/auth/manager.py", line 645, in create_user user_dict = drv.create_user(name, access, secret, admin) File "/tmp/tmpXLEj1s/nova/auth/dbdriver.py", line 81, in create_user user_ref = db.user_create(context.get_admin_context(), values) File "/tmp/tmpXLEj1s/nova/db/api.py", line 832, in user_create return IMPL.user_create(context, values) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 97, in wrapper return f(*args, **kwargs) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 1737, in user_create user_ref.save() File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/models.py", line 57, in save session.flush() File "/tmp/tmpXLEj1s/nova/exception.py", line 108, in _wrap raise DBError(e) DBError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.535142', None, None, False, 'fake', None, 'fake', 'fake', False) -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,537 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.535142', None, None, False, 'fake', None, 'fake', 'fake', False) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_authorize_revoke_security_group_cidr_v6 (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/test.py", line 93, in tearDown self.mox.VerifyAll() File "/usr/lib/pymodules/python2.6/mox.py", line 284, in VerifyAll mock_obj._Verify() File "/usr/lib/pymodules/python2.6/mox.py", line 504, in _Verify raise ExpectedMethodCallsError(self._expected_calls_queue) ExpectedMethodCallsError: Verify: Expected methods never called: 0. Stub for .__call__(None, False) -> -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,537 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.535142', None, None, False, 'fake', None, 'fake', 'fake', False) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_authorize_revoke_security_group_foreign_group (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/tests/test_api.py", line 360, in test_authorize_revoke_security_group_foreign_group user = self.manager.create_user('fake', 'fake', 'fake', admin=True) File "/tmp/tmpXLEj1s/nova/auth/manager.py", line 645, in create_user user_dict = drv.create_user(name, access, secret, admin) File "/tmp/tmpXLEj1s/nova/auth/dbdriver.py", line 81, in create_user user_ref = db.user_create(context.get_admin_context(), values) File "/tmp/tmpXLEj1s/nova/db/api.py", line 832, in user_create return IMPL.user_create(context, values) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 97, in wrapper return f(*args, **kwargs) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 1737, in user_create user_ref.save() File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/models.py", line 57, in save session.flush() File "/tmp/tmpXLEj1s/nova/exception.py", line 108, in _wrap raise DBError(e) DBError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.552340', None, None, False, 'fake', None, 'fake', 'fake', True) -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,554 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.552340', None, None, False, 'fake', None, 'fake', 'fake', True) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_authorize_revoke_security_group_foreign_group (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/test.py", line 93, in tearDown self.mox.VerifyAll() File "/usr/lib/pymodules/python2.6/mox.py", line 284, in VerifyAll mock_obj._Verify() File "/usr/lib/pymodules/python2.6/mox.py", line 504, in _Verify raise ExpectedMethodCallsError(self._expected_calls_queue) ExpectedMethodCallsError: Verify: Expected methods never called: 0. Stub for .__call__(None, False) -> -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,554 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.552340', None, None, False, 'fake', None, 'fake', 'fake', True) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_create_delete_security_group (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/tests/test_api.py", line 194, in test_create_delete_security_group user = self.manager.create_user('fake', 'fake', 'fake', admin=True) File "/tmp/tmpXLEj1s/nova/auth/manager.py", line 645, in create_user user_dict = drv.create_user(name, access, secret, admin) File "/tmp/tmpXLEj1s/nova/auth/dbdriver.py", line 81, in create_user user_ref = db.user_create(context.get_admin_context(), values) File "/tmp/tmpXLEj1s/nova/db/api.py", line 832, in user_create return IMPL.user_create(context, values) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 97, in wrapper return f(*args, **kwargs) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 1737, in user_create user_ref.save() File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/models.py", line 57, in save session.flush() File "/tmp/tmpXLEj1s/nova/exception.py", line 108, in _wrap raise DBError(e) DBError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.562853', None, None, False, 'fake', None, 'fake', 'fake', True) -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,564 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.562853', None, None, False, 'fake', None, 'fake', 'fake', True) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_create_delete_security_group (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/test.py", line 93, in tearDown self.mox.VerifyAll() File "/usr/lib/pymodules/python2.6/mox.py", line 284, in VerifyAll mock_obj._Verify() File "/usr/lib/pymodules/python2.6/mox.py", line 504, in _Verify raise ExpectedMethodCallsError(self._expected_calls_queue) ExpectedMethodCallsError: Verify: Expected methods never called: 0. Stub for .__call__(None, False) -> -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,564 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.562853', None, None, False, 'fake', None, 'fake', 'fake', True) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_describe_instances (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/tests/test_api.py", line 151, in test_describe_instances user = self.manager.create_user('fake', 'fake', 'fake') File "/tmp/tmpXLEj1s/nova/auth/manager.py", line 645, in create_user user_dict = drv.create_user(name, access, secret, admin) File "/tmp/tmpXLEj1s/nova/auth/dbdriver.py", line 81, in create_user user_ref = db.user_create(context.get_admin_context(), values) File "/tmp/tmpXLEj1s/nova/db/api.py", line 832, in user_create return IMPL.user_create(context, values) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 97, in wrapper return f(*args, **kwargs) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 1737, in user_create user_ref.save() File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/models.py", line 57, in save session.flush() File "/tmp/tmpXLEj1s/nova/exception.py", line 108, in _wrap raise DBError(e) DBError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.576554', None, None, False, 'fake', None, 'fake', 'fake', False) -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,578 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.576554', None, None, False, 'fake', None, 'fake', 'fake', False) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_describe_instances (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/test.py", line 93, in tearDown self.mox.VerifyAll() File "/usr/lib/pymodules/python2.6/mox.py", line 284, in VerifyAll mock_obj._Verify() File "/usr/lib/pymodules/python2.6/mox.py", line 504, in _Verify raise ExpectedMethodCallsError(self._expected_calls_queue) ExpectedMethodCallsError: Verify: Expected methods never called: 0. Stub for .__call__(None, False) -> -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,578 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.576554', None, None, False, 'fake', None, 'fake', 'fake', False) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_get_all_key_pairs (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/tests/test_api.py", line 164, in test_get_all_key_pairs user = self.manager.create_user('fake', 'fake', 'fake') File "/tmp/tmpXLEj1s/nova/auth/manager.py", line 645, in create_user user_dict = drv.create_user(name, access, secret, admin) File "/tmp/tmpXLEj1s/nova/auth/dbdriver.py", line 81, in create_user user_ref = db.user_create(context.get_admin_context(), values) File "/tmp/tmpXLEj1s/nova/db/api.py", line 832, in user_create return IMPL.user_create(context, values) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 97, in wrapper return f(*args, **kwargs) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 1737, in user_create user_ref.save() File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/models.py", line 57, in save session.flush() File "/tmp/tmpXLEj1s/nova/exception.py", line 108, in _wrap raise DBError(e) DBError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.587196', None, None, False, 'fake', None, 'fake', 'fake', False) -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,589 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.587196', None, None, False, 'fake', None, 'fake', 'fake', False) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_get_all_key_pairs (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/test.py", line 93, in tearDown self.mox.VerifyAll() File "/usr/lib/pymodules/python2.6/mox.py", line 284, in VerifyAll mock_obj._Verify() File "/usr/lib/pymodules/python2.6/mox.py", line 504, in _Verify raise ExpectedMethodCallsError(self._expected_calls_queue) ExpectedMethodCallsError: Verify: Expected methods never called: 0. Stub for .__call__(None, False) -> -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,589 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.587196', None, None, False, 'fake', None, 'fake', 'fake', False) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_get_all_security_groups (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/tests/test_api.py", line 179, in test_get_all_security_groups user = self.manager.create_user('fake', 'fake', 'fake', admin=True) File "/tmp/tmpXLEj1s/nova/auth/manager.py", line 645, in create_user user_dict = drv.create_user(name, access, secret, admin) File "/tmp/tmpXLEj1s/nova/auth/dbdriver.py", line 81, in create_user user_ref = db.user_create(context.get_admin_context(), values) File "/tmp/tmpXLEj1s/nova/db/api.py", line 832, in user_create return IMPL.user_create(context, values) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 97, in wrapper return f(*args, **kwargs) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 1737, in user_create user_ref.save() File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/models.py", line 57, in save session.flush() File "/tmp/tmpXLEj1s/nova/exception.py", line 108, in _wrap raise DBError(e) DBError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.598396', None, None, False, 'fake', None, 'fake', 'fake', True) -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,599 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.598396', None, None, False, 'fake', None, 'fake', 'fake', True) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_get_all_security_groups (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/test.py", line 93, in tearDown self.mox.VerifyAll() File "/usr/lib/pymodules/python2.6/mox.py", line 284, in VerifyAll mock_obj._Verify() File "/usr/lib/pymodules/python2.6/mox.py", line 504, in _Verify raise ExpectedMethodCallsError(self._expected_calls_queue) ExpectedMethodCallsError: Verify: Expected methods never called: 0. Stub for .__call__(None, False) -> -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,599 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.598396', None, None, False, 'fake', None, 'fake', 'fake', True) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_xmlns_version_matches_request_version (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/tests/test_api.py", line 134, in test_xmlns_version_matches_request_version user = self.manager.create_user('fake', 'fake', 'fake') File "/tmp/tmpXLEj1s/nova/auth/manager.py", line 645, in create_user user_dict = drv.create_user(name, access, secret, admin) File "/tmp/tmpXLEj1s/nova/auth/dbdriver.py", line 81, in create_user user_ref = db.user_create(context.get_admin_context(), values) File "/tmp/tmpXLEj1s/nova/db/api.py", line 832, in user_create return IMPL.user_create(context, values) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 97, in wrapper return f(*args, **kwargs) File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/api.py", line 1737, in user_create user_ref.save() File "/tmp/tmpXLEj1s/nova/db/sqlalchemy/models.py", line 57, in save session.flush() File "/tmp/tmpXLEj1s/nova/exception.py", line 108, in _wrap raise DBError(e) DBError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.608611', None, None, False, 'fake', None, 'fake', 'fake', False) -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,610 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.608611', None, None, False, 'fake', None, 'fake', 'fake', False) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_xmlns_version_matches_request_version (nova.tests.test_api.ApiEc2TestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmpXLEj1s/nova/test.py", line 93, in tearDown self.mox.VerifyAll() File "/usr/lib/pymodules/python2.6/mox.py", line 284, in VerifyAll mock_obj._Verify() File "/usr/lib/pymodules/python2.6/mox.py", line 504, in _Verify raise ExpectedMethodCallsError(self._expected_calls_queue) ExpectedMethodCallsError: Verify: Expected methods never called: 0. Stub for .__call__(None, False) -> -------------------- >> begin captured logging << -------------------- 2011-02-14 19:47:45,610 ERROR nova.exception [-] DB exception wrapped (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/tmp/tmpXLEj1s/nova/exception.py", line 105, in _wrap (nova.exception): TRACE: return f(*args, **kwargs) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1346, in flush (nova.exception): TRACE: self._flush(objects) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 1427, in _flush (nova.exception): TRACE: flush_context.execute() (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 299, in execute (nova.exception): TRACE: rec.execute(self) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/unitofwork.py", line 443, in execute (nova.exception): TRACE: uow (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/mapper.py", line 1833, in _save_obj (nova.exception): TRACE: execute(statement, params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1157, in execute (nova.exception): TRACE: params) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement (nova.exception): TRACE: return self.__execute_context(context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1268, in __execute_context (nova.exception): TRACE: context.parameters[0], context=context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1367, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py", line 1360, in _cursor_execute (nova.exception): TRACE: context) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py", line 288, in do_execute (nova.exception): TRACE: cursor.execute(statement, parameters) (nova.exception): TRACE: IntegrityError: (IntegrityError) column id is not unique u'INSERT INTO users (created_at, updated_at, deleted_at, deleted, id, name, access_key, secret_key, is_admin) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)' ('2011-02-14 19:47:45.608611', None, None, False, 'fake', None, 'fake', 'fake', False) (nova.exception): TRACE: --------------------- >> end captured logging << --------------------- ---------------------------------------------------------------------- Ran 295 tests in 114.319s FAILED (errors=15)