Advertisement
mbuil

calssifier works

Jul 18th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.00 KB | None | 0 0
  1. root@node-15:~# tacker sfc-classifier-create --name blueeee_http --chain blue --match source_port=0,dest_port=80,protocol=6
  2. 2016-07-18 13:04:03.663 27665 INFO tacker.wsgi [-] (27665) accepted ('172.16.0.33', 48679)
  3.  
  4. 2016-07-18 13:04:03.664 27665 DEBUG keystonemiddleware.auth_token [-] Authenticating user token process_request /usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py:480
  5. 2016-07-18 13:04:03.665 27665 DEBUG keystoneclient.session [-] REQ: curl -g -i --cacert "/opt/stack/data/ca-bundle.pem" -X GET http://192.168.0.32:35357/v3/auth/tokens -H "X-Subject-Token: {SHA1}111568849bd21271f1c322fbe7bc609eb35f7c28" -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}551f5d151d48d122d3e36748271256426c5be04b" _http_log_request /usr/lib/python2.7/dist-packages/keystoneclient/session.py:198
  6. 2016-07-18 13:04:03.808 27665 DEBUG keystoneclient.session [-] RESP: [200] content-length: 8298 x-subject-token: {SHA1}111568849bd21271f1c322fbe7bc609eb35f7c28 vary: X-Auth-Token server: Apache connection: close date: Mon, 18 Jul 2016 13:04:03 GMT content-type: application/json x-openstack-request-id: req-9f0edcd1-080e-4e0c-b6d9-775a32cfcab4
  7. RESP BODY: {"token": {"methods": ["password"], "roles": [{"id": "980496fb33a14fee8a6655bb20197fa0", "name": "admin"}], "expires_at": "2016-07-18T14:04:03.614308Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "9f97698c9410407d8f25392e22356fba", "name": "services"}, "catalog": "<removed>", "extras": {}, "user": {"domain": {"id": "default", "name": "Default"}, "id": "682224ebd32f47a2803876c95f841c23", "name": "tacker"}, "audit_ids": ["vYARjLFxTZy_IDJgMwKaEA"], "issued_at": "2016-07-18T13:04:03.000000Z"}}
  8. _http_log_response /usr/lib/python2.7/dist-packages/keystoneclient/session.py:215
  9. 2016-07-18 13:04:03.809 27665 DEBUG keystonemiddleware.auth_token [-] Storing token in cache store /usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/_cache.py:170
  10. 2016-07-18 13:04:03.810 27665 DEBUG keystonemiddleware.auth_token [-] Received request from user: user_id 682224ebd32f47a2803876c95f841c23, project_id 9f97698c9410407d8f25392e22356fba, roles admin process_request /usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py:759
  11. 2016-07-18 13:04:03.811 27665 DEBUG routes.middleware [-] Matched GET /sfcs.json __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:105
  12. 2016-07-18 13:04:03.811 27665 DEBUG routes.middleware [-] Route path: '/sfcs.:(format)', defaults: {'action': u'index', 'controller': <wsgify at 140162925983952 wrapping <function resource at 0x7f7a396d9a28>>} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:107
  13. 2016-07-18 13:04:03.811 27665 DEBUG routes.middleware [-] Match dict: {'action': u'index', 'controller': <wsgify at 140162925983952 wrapping <function resource at 0x7f7a396d9a28>>, 'format': u'json'} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:108
  14. 2016-07-18 13:04:03.815 27665 DEBUG tacker.db.sfc.sfc_db [req-ee85aca9-e789-4cc5-a9a5-2b6c563ca061 None] sfc_db <tacker.db.sfc.sfc_db.SFC[object at 7f7a394aa290] {tenant_id=u'9f97698c9410407d8f25392e22356fba', id=u'45eb0f71-3f0d-4f73-b100-3c4441849925', name=u'blue', description=u'', instance_id=u'Path-blue-Path-1700', status=u'ACTIVE', infra_driver=u'opendaylight', symmetrical=False, chain=[u'7f1cac6b-3031-4ded-9cf9-4d4f17a146cd']}> _make_sfc_dict /usr/lib/python2.7/dist-packages/tacker/db/sfc/sfc_db.py:217
  15. 2016-07-18 13:04:03.819 27665 DEBUG tacker.db.sfc.sfc_db [req-ee85aca9-e789-4cc5-a9a5-2b6c563ca061 None] sfc_db attributes [] _make_sfc_dict /usr/lib/python2.7/dist-packages/tacker/db/sfc/sfc_db.py:218
  16. 2016-07-18 13:04:03.820 27665 INFO tacker.wsgi [req-ee85aca9-e789-4cc5-a9a5-2b6c563ca061 None] 172.16.0.33 - - [18/Jul/2016 13:04:03] "GET /v1.0/sfcs.json?fields=id&name=blue HTTP/1.1" 200 271 0.156255
  17.  
  18. 2016-07-18 13:04:03.823 27665 DEBUG keystonemiddleware.auth_token [-] Authenticating user token process_request /usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py:480
  19. 2016-07-18 13:04:03.824 27665 DEBUG keystonemiddleware.auth_token [-] Received request from user: user_id 682224ebd32f47a2803876c95f841c23, project_id 9f97698c9410407d8f25392e22356fba, roles admin process_request /usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py:759
  20. 2016-07-18 13:04:03.825 27665 DEBUG routes.middleware [-] Matched POST /sfc-classifiers.json __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:105
  21. 2016-07-18 13:04:03.825 27665 DEBUG routes.middleware [-] Route path: '/sfc-classifiers.:(format)', defaults: {'action': u'create', 'controller': <wsgify at 140162925983376 wrapping <function resource at 0x7f7a396d92a8>>} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:107
  22. 2016-07-18 13:04:03.825 27665 DEBUG routes.middleware [-] Match dict: {'action': u'create', 'controller': <wsgify at 140162925983376 wrapping <function resource at 0x7f7a396d92a8>>, 'format': u'json'} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:108
  23. 2016-07-18 13:04:03.826 27665 DEBUG tacker.api.v1.base [req-6504f029-249b-422c-a988-6a44952bf262 None] Request body: {u'sfc_classifier': {u'attributes': {}, u'match': {u'source_port': u'0', u'protocol': u'6', u'dest_port': u'80'}, u'name': u'blueeee_http', u'chain': u'45eb0f71-3f0d-4f73-b100-3c4441849925'}} prepare_request_body /usr/lib/python2.7/dist-packages/tacker/api/v1/base.py:512
  24. 2016-07-18 13:04:03.829 27665 DEBUG tacker.sfc_classifier.plugin [req-6504f029-249b-422c-a988-6a44952bf262 None] classifier_dict {'description': '', u'chain': u'45eb0f71-3f0d-4f73-b100-3c4441849925', 'tenant_id': u'9f97698c9410407d8f25392e22356fba', 'service_contexts': [], 'infra_driver': 'netvirtsfc', u'attributes': {}, 'acl_match_criteria': {}, u'match': {u'source_port': 0, u'protocol': 6, u'dest_port': 80}, u'name': u'blueeee_http'} _create_sfc_classifier /usr/lib/python2.7/dist-packages/tacker/sfc_classifier/plugin.py:79
  25. 2016-07-18 13:04:03.832 27665 DEBUG tacker.db.sfc.sfc_db [req-6504f029-249b-422c-a988-6a44952bf262 None] sfc_db <tacker.db.sfc.sfc_db.SFC[object at 7f7a394ee850] {tenant_id=u'9f97698c9410407d8f25392e22356fba', id=u'45eb0f71-3f0d-4f73-b100-3c4441849925', name=u'blue', description=u'', instance_id=u'Path-blue-Path-1700', status=u'ACTIVE', infra_driver=u'opendaylight', symmetrical=False, chain=[u'7f1cac6b-3031-4ded-9cf9-4d4f17a146cd']}> _make_sfc_dict /usr/lib/python2.7/dist-packages/tacker/db/sfc/sfc_db.py:217
  26. 2016-07-18 13:04:03.834 27665 DEBUG tacker.db.sfc.sfc_db [req-6504f029-249b-422c-a988-6a44952bf262 None] sfc_db attributes [] _make_sfc_dict /usr/lib/python2.7/dist-packages/tacker/db/sfc/sfc_db.py:218
  27. 2016-07-18 13:04:03.835 27665 DEBUG tacker.sfc_classifier.plugin [req-6504f029-249b-422c-a988-6a44952bf262 None] Matching SFC Instance: Path-blue-Path-1700 _create_sfc_classifier /usr/lib/python2.7/dist-packages/tacker/sfc_classifier/plugin.py:83
  28. 2016-07-18 13:04:03.835 27665 DEBUG tacker.db.sfc_classifier.sfc_classifier_db [req-6504f029-249b-422c-a988-6a44952bf262 None] sfc classifier {'description': '', u'chain': u'45eb0f71-3f0d-4f73-b100-3c4441849925', 'tenant_id': u'9f97698c9410407d8f25392e22356fba', 'service_contexts': [], 'infra_driver': 'netvirtsfc', u'attributes': {}, 'acl_match_criteria': {}, u'match': {u'source_port': 0, u'protocol': 6, u'dest_port': 80}, u'name': u'blueeee_http'} _create_sfc_classifier_pre /usr/lib/python2.7/dist-packages/tacker/db/sfc_classifier/sfc_classifier_db.py:138
  29. 2016-07-18 13:04:03.837 27665 DEBUG tacker.db.sfc_classifier.sfc_classifier_db [req-6504f029-249b-422c-a988-6a44952bf262 None] acl_match {u'source_port': 0, u'protocol': 6, u'dest_port': 80} _create_sfc_classifier_pre /usr/lib/python2.7/dist-packages/tacker/db/sfc_classifier/sfc_classifier_db.py:165
  30. 2016-07-18 13:04:03.841 27665 DEBUG tacker.db.sfc_classifier.sfc_classifier_db [req-6504f029-249b-422c-a988-6a44952bf262 None] sfcc_db <tacker.db.sfc_classifier.sfc_classifier_db.SFCClassifier[object at 7f7a394eec50] {tenant_id=u'9f97698c9410407d8f25392e22356fba', id='9dcc3721-c285-44c1-b701-6d0f7ce3a054', name=u'blueeee_http', description='', instance_id=None, status='PENDING_CREATE', infra_driver='netvirtsfc', chain=u'45eb0f71-3f0d-4f73-b100-3c4441849925'}> _make_sfc_classifier_dict /usr/lib/python2.7/dist-packages/tacker/db/sfc_classifier/sfc_classifier_db.py:248
  31. 2016-07-18 13:04:03.843 27665 DEBUG tacker.db.sfc_classifier.sfc_classifier_db [req-6504f029-249b-422c-a988-6a44952bf262 None] sfcc_db attributes [] _make_sfc_classifier_dict /usr/lib/python2.7/dist-packages/tacker/db/sfc_classifier/sfc_classifier_db.py:249
  32. 2016-07-18 13:04:03.846 27665 DEBUG tacker.db.sfc_classifier.sfc_classifier_db [req-6504f029-249b-422c-a988-6a44952bf262 None] sfcc_db match [<tacker.db.sfc_classifier.sfc_classifier_db.ACLMatchCriteria[object at 7f7a394ee7d0] {id='0ff3640c-376b-44cf-9b93-24073971e734', sfcc_id='9dcc3721-c285-44c1-b701-6d0f7ce3a054', source_mac=None, dest_mac=None, ethertype=None, source_ip_prefix=None, dest_ip_prefix=None, source_port=0, dest_port=80, protocol=6}>] _make_sfc_classifier_dict /usr/lib/python2.7/dist-packages/tacker/db/sfc_classifier/sfc_classifier_db.py:250
  33. 2016-07-18 13:04:03.848 27665 DEBUG tacker.sfc_classifier.plugin [req-6504f029-249b-422c-a988-6a44952bf262 None] sfcc_dict after database entry {'status': 'PENDING_CREATE', 'description': '', 'chain': u'45eb0f71-3f0d-4f73-b100-3c4441849925', 'tenant_id': u'9f97698c9410407d8f25392e22356fba', 'instance_id': None, 'acl_match_criteria': {'source_port': 0, 'protocol': 6, 'dest_port': 80}, 'infra_driver': 'netvirtsfc', 'attributes': {}, 'id': '9dcc3721-c285-44c1-b701-6d0f7ce3a054', 'name': u'blueeee_http'} _create_sfc_classifier /usr/lib/python2.7/dist-packages/tacker/sfc_classifier/plugin.py:85
  34. 2016-07-18 13:04:03.848 27665 DEBUG tacker.common.log [req-6504f029-249b-422c-a988-6a44952bf262 None] tacker.sfc_classifier.drivers.netvirtsfc.NetVirtSFC method create_sfc_classifier called with arguments () {'chain_instance_id': u'Path-blue-Path-1700', 'sfcc_dict': {'status': 'PENDING_CREATE', 'description': '', 'chain': u'45eb0f71-3f0d-4f73-b100-3c4441849925', 'tenant_id': u'9f97698c9410407d8f25392e22356fba', 'instance_id': None, 'acl_match_criteria': {'source_port': 0, 'protocol': 6, 'dest_port': 80}, 'infra_driver': 'netvirtsfc', 'attributes': {}, 'id': '9dcc3721-c285-44c1-b701-6d0f7ce3a054', 'name': u'blueeee_http'}} wrapper /usr/lib/python2.7/dist-packages/tacker/common/log.py:33
  35. 2016-07-18 13:04:03.849 27665 DEBUG tacker.common.log [req-6504f029-249b-422c-a988-6a44952bf262 None] tacker.sfc_classifier.drivers.netvirtsfc.NetVirtSFC method _build_acl_json called with arguments ({'status': 'PENDING_CREATE', 'description': '', 'chain': u'45eb0f71-3f0d-4f73-b100-3c4441849925', 'tenant_id': u'9f97698c9410407d8f25392e22356fba', 'instance_id': None, 'acl_match_criteria': {'source_port': 0, 'protocol': 6, 'dest_port': 80}, 'infra_driver': 'netvirtsfc', 'attributes': {}, 'id': '9dcc3721-c285-44c1-b701-6d0f7ce3a054', 'name': u'blueeee_http'}, u'Path-blue-Path-1700') {} wrapper /usr/lib/python2.7/dist-packages/tacker/common/log.py:33
  36. 2016-07-18 13:04:03.850 27665 DEBUG tacker.common.log [req-6504f029-249b-422c-a988-6a44952bf262 None] tacker.sfc_classifier.drivers.netvirtsfc.NetVirtSFC method send_rest called with arguments ({'acl': [{'acl-name': u'blueeee_http', 'access-list-entries': {'ace': [{'matches': {'source-port-range': {'lower-port': 0, 'upper-port': 0}, 'destination-port-range': {'lower-port': 80, 'upper-port': 80}, 'protocol': 6}, 'actions': {'netvirt-sfc-acl:rsp-name': u'Path-blue-Path-1700'}, 'rule-name': u'blueeee_http'}]}}]}, 'put', 'restconf/config/ietf-access-control-list:access-lists/acl/blueeee_http') {} wrapper /usr/lib/python2.7/dist-packages/tacker/common/log.py:33
  37. 2016-07-18 13:04:03.850 27665 DEBUG tacker.sfc_classifier.drivers.netvirtsfc [req-6504f029-249b-422c-a988-6a44952bf262 None] Sending REST message to URL: [http://192.168.0.33:8282/restconf/config/ietf-access-control-list:access-lists/acl/blueeee_http] Data: [{'acl': [{'acl-name': u'blueeee_http', 'access-list-entries': {'ace': [{'matches': {'source-port-range': {'lower-port': 0, 'upper-port': 0}, 'destination-port-range': {'lower-port': 80, 'upper-port': 80}, 'protocol': 6}, 'actions': {'netvirt-sfc-acl:rsp-name': u'Path-blue-Path-1700'}, 'rule-name': u'blueeee_http'}]}}]}] send_rest /usr/lib/python2.7/dist-packages/tacker/sfc_classifier/drivers/netvirtsfc.py:109
  38. 2016-07-18 13:04:03.941 27665 DEBUG tacker.sfc_classifier.drivers.netvirtsfc [req-6504f029-249b-422c-a988-6a44952bf262 None] rest call response: <Response [200]> send_rest /usr/lib/python2.7/dist-packages/tacker/sfc_classifier/drivers/netvirtsfc.py:115
  39. 2016-07-18 13:04:03.942 27665 DEBUG tacker.common.log [req-6504f029-249b-422c-a988-6a44952bf262 None] tacker.sfc_classifier.drivers.netvirtsfc.NetVirtSFC method send_rest called with arguments ({'classifier': [{'name': u'blueeee_http', 'acl': u'blueeee_http'}]}, 'put', 'restconf/config/netvirt-sfc-classifier:classifiers/classifier/blueeee_http') {} wrapper /usr/lib/python2.7/dist-packages/tacker/common/log.py:33
  40. 2016-07-18 13:04:03.943 27665 DEBUG tacker.sfc_classifier.drivers.netvirtsfc [req-6504f029-249b-422c-a988-6a44952bf262 None] Sending REST message to URL: [http://192.168.0.33:8282/restconf/config/netvirt-sfc-classifier:classifiers/classifier/blueeee_http] Data: [{'classifier': [{'name': u'blueeee_http', 'acl': u'blueeee_http'}]}] send_rest /usr/lib/python2.7/dist-packages/tacker/sfc_classifier/drivers/netvirtsfc.py:109
  41. 2016-07-18 13:04:03.983 27665 DEBUG tacker.sfc_classifier.drivers.netvirtsfc [req-6504f029-249b-422c-a988-6a44952bf262 None] rest call response: <Response [200]> send_rest /usr/lib/python2.7/dist-packages/tacker/sfc_classifier/drivers/netvirtsfc.py:115
  42. 2016-07-18 13:04:03.984 27665 DEBUG tacker.sfc_classifier.plugin [req-6504f029-249b-422c-a988-6a44952bf262 None] sfcc_dict after sfc SFC Classifier Create complete: {'status': 'PENDING_CREATE', 'description': '', 'chain': u'45eb0f71-3f0d-4f73-b100-3c4441849925', 'tenant_id': u'9f97698c9410407d8f25392e22356fba', 'instance_id': u'blueeee_http', 'acl_match_criteria': {'source_port': 0, 'protocol': 6, 'dest_port': 80}, 'infra_driver': 'netvirtsfc', 'attributes': {}, 'id': '9dcc3721-c285-44c1-b701-6d0f7ce3a054', 'name': u'blueeee_http'} _create_sfc_classifier /usr/lib/python2.7/dist-packages/tacker/sfc_classifier/plugin.py:104
  43. 2016-07-18 13:04:03.985 27665 DEBUG tacker.db.sfc_classifier.sfc_classifier_db [req-6504f029-249b-422c-a988-6a44952bf262 None] sfc_classifier_dict {'status': 'PENDING_CREATE', 'description': '', 'chain': u'45eb0f71-3f0d-4f73-b100-3c4441849925', 'tenant_id': u'9f97698c9410407d8f25392e22356fba', 'instance_id': u'blueeee_http', 'acl_match_criteria': {'source_port': 0, 'protocol': 6, 'dest_port': 80}, 'infra_driver': 'netvirtsfc', 'attributes': {}, 'id': '9dcc3721-c285-44c1-b701-6d0f7ce3a054', 'name': u'blueeee_http'} _create_sfc_classifier_post /usr/lib/python2.7/dist-packages/tacker/db/sfc_classifier/sfc_classifier_db.py:203
  44. 2016-07-18 13:04:03.991 27665 INFO tacker.wsgi [req-6504f029-249b-422c-a988-6a44952bf262 None] 172.16.0.33 - - [18/Jul/2016 13:04:03] "POST /v1.0/sfc-classifiers.json HTTP/1.1" 201 607 0.169017
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement