Advertisement
Guest User

Untitled

a guest
May 6th, 2014
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. ^[[01;31m2014-05-06 14:06:14.228 TRACE neutron.api.v2.resource ^[[01;35m^[[00mTraceback (most recent call last):
  2. ^[[01;31m2014-05-06 14:06:14.228 TRACE neutron.api.v2.resource ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/api/v2/resource.py", line 87, in resource
  3. ^[[01;31m2014-05-06 14:06:14.228 TRACE neutron.api.v2.resource ^[[01;35m^[[00m result = method(request=request, **args)
  4. ^[[01;31m2014-05-06 14:06:14.228 TRACE neutron.api.v2.resource ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/api/v2/base.py", line 423, in create
  5. ^[[01;31m2014-05-06 14:06:14.228 TRACE neutron.api.v2.resource ^[[01;35m^[[00m obj = obj_creator(request.context, **kwargs)
  6. ^[[01;31m2014-05-06 14:06:14.228 TRACE neutron.api.v2.resource ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py", line 1372, in create_network_profile
  7. ^[[01;31m2014-05-06 14:06:14.228 TRACE neutron.api.v2.resource ^[[01;35m^[[00m net_p['id'])
  8. ^[[01;31m2014-05-06 14:06:14.228 TRACE neutron.api.v2.resource ^[[01;35m^[[00m File "/opt/stack/neutron/neutron/plugins/cisco/db/n1kv_db_v2.py", line 906, in delete_profile_binding
  9. ^[[01;31m2014-05-06 14:06:14.228 TRACE neutron.api.v2.resource ^[[01;35m^[[00m db_session.delete(binding)
  10. ^[[01;31m2014-05-06 14:06:14.228 TRACE neutron.api.v2.resource ^[[01;35m^[[00m File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1279, in delete
  11. ^[[01;31m2014-05-06 14:06:14.228 TRACE neutron.api.v2.resource ^[[01;35m^[[00m raise exc.UnmappedInstanceError(instance)
  12. ^[[01;31m2014-05-06 14:06:14.228 TRACE neutron.api.v2.resource ^[[01;35m^[[00mUnmappedInstanceError: Class '__builtin__.NoneType' is not mapped
  13.  
  14. def get_profile_binding(db_session, tenant_id, profile_id):
  15. """Get Network/Policy Profile - Tenant binding."""
  16. LOG.debug(_("get_profile_binding()"))
  17. try:
  18. return (db_session.query(n1kv_models_v2.ProfileBinding).filter_by(
  19. tenant_id=tenant_id, profile_id=profile_id).one())
  20. except exc.NoResultFound:
  21. c_exc.ProfileTenantBindingNotFound(profile_id=profile_id)
  22.  
  23.  
  24. def delete_profile_binding(db_session, tenant_id, profile_id):
  25. """Delete Policy Binding."""
  26. LOG.debug(_("delete_profile_binding()"))
  27. db_session = db_session or db.get_session()
  28. try:
  29. binding = get_profile_binding(db_session, tenant_id, profile_id)
  30. with db_session.begin(subtransactions=True):
  31. db_session.delete(binding)
  32. except c_exc.ProfileTenantBindingNotFound:
  33. LOG.debug(_("Profile-Tenant binding missing for profile ID "
  34. "%(profile_id)s and tenant ID %(tenant_id)s"),
  35. {"profile_id": profile_id, "tenant_id": tenant_id})
  36. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement