2024-09-16 22:07:12,838 - INFO - Domain Default found not creating
2024-09-16 22:07:13,061 - INFO - Project ctest-TestBasicPolicy-30605619 not found, creating it
2024-09-16 22:07:13,819 - INFO - Created Project:ctest-TestBasicPolicy-30605619, ID : 819dd6c9-be6d-49d9-9e8d-e75eadb067ef
2024-09-16 22:07:15,291 - INFO - ================================================================================
2024-09-16 22:07:15,291 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-16 22:07:15,291 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-09-16 22:07:15,545 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.22': '0'}} with
2024-09-16 22:07:15,545 - INFO - Initial checks done. Running the testcase now
2024-09-16 22:07:15,545 - INFO -
2024-09-16 22:07:16,122 - DEBUG - Response for create_network : {'network': {'id': 'df5a85ce-99ca-4a5d-ab53-ce30a259af6e', 'name': 'ctest-vn-59290888', 'tenant_id': '819dd6c9be6d49d99e8de75eadb067ef', 'project_id': '819dd6c9be6d49d99e8de75eadb067ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-vn-59290888'], 'port_security_enabled': True, 'description': ''}}
2024-09-16 22:07:16,326 - DEBUG - Response for create_subnet : {'subnet': {'id': '3dee2cab-eb60-4888-a68d-c985d6a093d3', 'name': '', 'tenant_id': '819dd6c9be6d49d99e8de75eadb067ef', 'network_id': 'df5a85ce-99ca-4a5d-ab53-ce30a259af6e', 'ip_version': 4, 'cidr': '166.176.105.0/26', 'allocation_pools': [{'start': '166.176.105.2', 'end': '166.176.105.62'}], 'gateway_ip': '166.176.105.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.176.105.2', 'tags': [], 'project_id': '819dd6c9be6d49d99e8de75eadb067ef'}}
2024-09-16 22:07:16,344 - INFO - Created VN ctest-vn-59290888
2024-09-16 22:07:16,399 - DEBUG - VN ctest-vn-59290888 UUID is df5a85ce-99ca-4a5d-ab53-ce30a259af6e
2024-09-16 22:07:16,697 - DEBUG - Response for create_network : {'network': {'id': 'b348196e-acb8-45b6-9da9-36ac61d8c2d6', 'name': 'ctest-vn-16254861', 'tenant_id': '819dd6c9be6d49d99e8de75eadb067ef', 'project_id': '819dd6c9be6d49d99e8de75eadb067ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-vn-16254861'], 'port_security_enabled': True, 'description': ''}}
2024-09-16 22:07:16,919 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c20976f-7b11-49ed-b398-f27db8a54d1c', 'name': '', 'tenant_id': '819dd6c9be6d49d99e8de75eadb067ef', 'network_id': 'b348196e-acb8-45b6-9da9-36ac61d8c2d6', 'ip_version': 4, 'cidr': '71.225.249.64/26', 'allocation_pools': [{'start': '71.225.249.66', 'end': '71.225.249.126'}], 'gateway_ip': '71.225.249.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.225.249.66', 'tags': [], 'project_id': '819dd6c9be6d49d99e8de75eadb067ef'}}
2024-09-16 22:07:16,941 - INFO - Created VN ctest-vn-16254861
2024-09-16 22:07:17,003 - DEBUG - VN ctest-vn-16254861 UUID is b348196e-acb8-45b6-9da9-36ac61d8c2d6
2024-09-16 22:07:17,118 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-16254861, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-09-16 22:07:17,437 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df5a85ce-99ca-4a5d-ab53-ce30a259af6e', 'name': 'ctest-vn-59290888', 'tenant_id': '819dd6c9be6d49d99e8de75eadb067ef', 'project_id': '819dd6c9be6d49d99e8de75eadb067ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3dee2cab-eb60-4888-a68d-c985d6a093d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-vn-59290888'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-policy-allow-all-10498788']], 'subnet_ipam': [{'subnet_cidr': '166.176.105.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-16 22:07:17,683 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b348196e-acb8-45b6-9da9-36ac61d8c2d6', 'name': 'ctest-vn-16254861', 'tenant_id': '819dd6c9be6d49d99e8de75eadb067ef', 'project_id': '819dd6c9be6d49d99e8de75eadb067ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c20976f-7b11-49ed-b398-f27db8a54d1c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-vn-16254861'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-policy-allow-all-10498788']], 'subnet_ipam': [{'subnet_cidr': '71.225.249.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-16 22:07:17,867 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-16 22:07:18,163 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-16 22:07:18,193 - DEBUG - Requesting: http://10.0.0.47:8082/domain/af8599bc-d41b-40c1-938f-1d8f0c770c90
2024-09-16 22:07:18,208 - DEBUG - Requesting: http://10.0.0.47:8082/project/819dd6c9-be6d-49d9-9e8d-e75eadb067ef
2024-09-16 22:07:18,288 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/df5a85ce-99ca-4a5d-ab53-ce30a259af6e
2024-09-16 22:07:18,303 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/df5a85ce-99ca-4a5d-ab53-ce30a259af6e
2024-09-16 22:07:18,316 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9810d05-cbc3-4b1e-a562-fc7a83f3a4bb
2024-09-16 22:07:18,325 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9810d05-cbc3-4b1e-a562-fc7a83f3a4bb
2024-09-16 22:07:18,332 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/ea99eb13-f684-404d-aebc-5daa543f7b6f
2024-09-16 22:07:18,339 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-16 22:07:18,339 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/df5a85ce-99ca-4a5d-ab53-ce30a259af6e
2024-09-16 22:07:18,351 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9810d05-cbc3-4b1e-a562-fc7a83f3a4bb
2024-09-16 22:07:18,370 - INFO - Verified VN network id 8 for VN df5a85ce-99ca-4a5d-ab53-ce30a259af6e
2024-09-16 22:07:18,370 - INFO - Verifications in API Server for VN ctest-vn-59290888 passed
2024-09-16 22:07:18,370 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/df5a85ce-99ca-4a5d-ab53-ce30a259af6e
2024-09-16 22:07:18,384 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9810d05-cbc3-4b1e-a562-fc7a83f3a4bb
2024-09-16 22:07:18,392 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9810d05-cbc3-4b1e-a562-fc7a83f3a4bb
2024-09-16 22:07:18,399 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/ea99eb13-f684-404d-aebc-5daa543f7b6f
2024-09-16 22:07:18,411 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30605619', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16094323340751817309', 'uuid-lslong': '12345437711830200174'}, 'enable': 'true', 'created': '2024-09-16T22:07:16', 'last-modified': '2024-09-16T22:07:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003570'}
2024-09-16 22:07:18,417 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-16 22:07:18,417 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59290888 passed
2024-09-16 22:07:18,417 - DEBUG - ====Verifying policy data for ctest-vn-59290888 in API_Server ======
2024-09-16 22:07:18,417 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-16 22:07:18,422 - DEBUG - Requesting: http://10.0.0.47:8082/domain/af8599bc-d41b-40c1-938f-1d8f0c770c90
2024-09-16 22:07:18,434 - DEBUG - Requesting: http://10.0.0.47:8082/project/819dd6c9-be6d-49d9-9e8d-e75eadb067ef
2024-09-16 22:07:18,514 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/df5a85ce-99ca-4a5d-ab53-ce30a259af6e
2024-09-16 22:07:18,531 - DEBUG - ==>Verifying data for policy with id: 8c3b969b-13b0-46f5-b69e-56fb1d8c2af9, fqn: ['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-policy-allow-all-10498788']
2024-09-16 22:07:18,531 - INFO - VN ctest-vn-59290888 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-16 22:07:18,532 - DEBUG - Verifying the vn in opserver
2024-09-16 22:07:18,532 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888 virtual network link through opserver 10.0.0.47
2024-09-16 22:07:18,532 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-09-16 22:07:19,088 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-09-16 22:07:19,167 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888?flat'}
2024-09-16 22:07:19,167 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888 is found in opserver
2024-09-16 22:07:19,180 - DEBUG - Do not have enough data to verify VN in agent
2024-09-16 22:07:19,185 - DEBUG - VRF ids for VN ctest-vn-59290888: {}
2024-09-16 22:07:19,185 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-16 22:07:19,190 - DEBUG - Requesting: http://10.0.0.47:8082/domain/af8599bc-d41b-40c1-938f-1d8f0c770c90
2024-09-16 22:07:19,203 - DEBUG - Requesting: http://10.0.0.47:8082/project/819dd6c9-be6d-49d9-9e8d-e75eadb067ef
2024-09-16 22:07:19,287 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b348196e-acb8-45b6-9da9-36ac61d8c2d6
2024-09-16 22:07:19,308 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b348196e-acb8-45b6-9da9-36ac61d8c2d6
2024-09-16 22:07:19,322 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/2e82c15f-5d6b-4d75-932f-272a830aa1c1
2024-09-16 22:07:19,330 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/2e82c15f-5d6b-4d75-932f-272a830aa1c1
2024-09-16 22:07:19,338 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/90e0de68-000f-4ec3-92cd-d987da3cd538
2024-09-16 22:07:19,345 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-16 22:07:19,345 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b348196e-acb8-45b6-9da9-36ac61d8c2d6
2024-09-16 22:07:19,359 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/2e82c15f-5d6b-4d75-932f-272a830aa1c1
2024-09-16 22:07:19,378 - INFO - Verified VN network id 9 for VN b348196e-acb8-45b6-9da9-36ac61d8c2d6
2024-09-16 22:07:19,378 - INFO - Verifications in API Server for VN ctest-vn-16254861 passed
2024-09-16 22:07:19,378 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b348196e-acb8-45b6-9da9-36ac61d8c2d6
2024-09-16 22:07:19,392 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/2e82c15f-5d6b-4d75-932f-272a830aa1c1
2024-09-16 22:07:19,400 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/2e82c15f-5d6b-4d75-932f-272a830aa1c1
2024-09-16 22:07:19,409 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/90e0de68-000f-4ec3-92cd-d987da3cd538
2024-09-16 22:07:19,422 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-16254861', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30605619', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12918603494247122358', 'uuid-lslong': '11360671649022657238'}, 'enable': 'true', 'created': '2024-09-16T22:07:16', 'last-modified': '2024-09-16T22:07:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.766871'}
2024-09-16 22:07:19,428 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-16 22:07:19,429 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16254861 passed
2024-09-16 22:07:19,429 - DEBUG - ====Verifying policy data for ctest-vn-16254861 in API_Server ======
2024-09-16 22:07:19,429 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-16 22:07:19,434 - DEBUG - Requesting: http://10.0.0.47:8082/domain/af8599bc-d41b-40c1-938f-1d8f0c770c90
2024-09-16 22:07:19,446 - DEBUG - Requesting: http://10.0.0.47:8082/project/819dd6c9-be6d-49d9-9e8d-e75eadb067ef
2024-09-16 22:07:19,526 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b348196e-acb8-45b6-9da9-36ac61d8c2d6
2024-09-16 22:07:19,541 - DEBUG - ==>Verifying data for policy with id: 8c3b969b-13b0-46f5-b69e-56fb1d8c2af9, fqn: ['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-policy-allow-all-10498788']
2024-09-16 22:07:19,541 - INFO - VN ctest-vn-16254861 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-16 22:07:19,541 - DEBUG - Verifying the vn in opserver
2024-09-16 22:07:19,541 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-16254861 virtual network link through opserver 10.0.0.47
2024-09-16 22:07:19,541 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-09-16 22:07:19,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-16254861', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-16254861?flat'}
2024-09-16 22:07:19,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-16254861 is found in opserver
2024-09-16 22:07:19,565 - DEBUG - Do not have enough data to verify VN in agent
2024-09-16 22:07:19,570 - DEBUG - VRF ids for VN ctest-vn-16254861: {}
2024-09-16 22:07:19,628 - DEBUG - Services list from nova: [