2024-09-10 21:11:44,658 - INFO - Domain Default found not creating
2024-09-10 21:11:44,826 - INFO - Project ctest-TestBasicPolicy-74110988 not found, creating it
2024-09-10 21:11:45,310 - INFO - Created Project:ctest-TestBasicPolicy-74110988, ID : 940fc257-a8b2-4d57-8891-ac06230e16c3
2024-09-10 21:11:46,860 - INFO - ================================================================================
2024-09-10 21:11:46,860 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-10 21:11:46,860 - 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-10 21:11:47,113 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.7': '0'}} with
2024-09-10 21:11:47,113 - INFO - Initial checks done. Running the testcase now
2024-09-10 21:11:47,113 - INFO -
2024-09-10 21:11:47,676 - DEBUG - Response for create_network : {'network': {'id': '7d398c80-ddd3-4cc7-ad9e-b2adb625067b', 'name': 'ctest-vn-37452129', 'tenant_id': '940fc257a8b24d578891ac06230e16c3', 'project_id': '940fc257a8b24d578891ac06230e16c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-vn-37452129'], 'port_security_enabled': True, 'description': ''}}
2024-09-10 21:11:47,852 - DEBUG - Response for create_subnet : {'subnet': {'id': '477b0940-85dc-46a0-8758-0be2c0f9105c', 'name': '', 'tenant_id': '940fc257a8b24d578891ac06230e16c3', 'network_id': '7d398c80-ddd3-4cc7-ad9e-b2adb625067b', 'ip_version': 4, 'cidr': '57.205.35.192/26', 'allocation_pools': [{'start': '57.205.35.194', 'end': '57.205.35.254'}], 'gateway_ip': '57.205.35.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.205.35.194', 'tags': [], 'project_id': '940fc257a8b24d578891ac06230e16c3'}}
2024-09-10 21:11:47,877 - INFO - Created VN ctest-vn-37452129
2024-09-10 21:11:47,932 - DEBUG - VN ctest-vn-37452129 UUID is 7d398c80-ddd3-4cc7-ad9e-b2adb625067b
2024-09-10 21:11:48,231 - DEBUG - Response for create_network : {'network': {'id': 'dfa625b5-61b6-40e3-ab6a-ff6bcccbba18', 'name': 'ctest-vn-19533216', 'tenant_id': '940fc257a8b24d578891ac06230e16c3', 'project_id': '940fc257a8b24d578891ac06230e16c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-vn-19533216'], 'port_security_enabled': True, 'description': ''}}
2024-09-10 21:11:48,448 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8ab8cd4-c203-4f91-9453-9fb6bbfc4559', 'name': '', 'tenant_id': '940fc257a8b24d578891ac06230e16c3', 'network_id': 'dfa625b5-61b6-40e3-ab6a-ff6bcccbba18', 'ip_version': 4, 'cidr': '3.89.227.0/26', 'allocation_pools': [{'start': '3.89.227.2', 'end': '3.89.227.62'}], 'gateway_ip': '3.89.227.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.89.227.2', 'tags': [], 'project_id': '940fc257a8b24d578891ac06230e16c3'}}
2024-09-10 21:11:48,469 - INFO - Created VN ctest-vn-19533216
2024-09-10 21:11:48,519 - DEBUG - VN ctest-vn-19533216 UUID is dfa625b5-61b6-40e3-ab6a-ff6bcccbba18
2024-09-10 21:11:48,639 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129, 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-74110988:ctest-vn-19533216, 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-10 21:11:48,959 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d398c80-ddd3-4cc7-ad9e-b2adb625067b', 'name': 'ctest-vn-37452129', 'tenant_id': '940fc257a8b24d578891ac06230e16c3', 'project_id': '940fc257a8b24d578891ac06230e16c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['477b0940-85dc-46a0-8758-0be2c0f9105c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-vn-37452129'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-policy-allow-all-63098985']], 'subnet_ipam': [{'subnet_cidr': '57.205.35.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-10 21:11:49,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dfa625b5-61b6-40e3-ab6a-ff6bcccbba18', 'name': 'ctest-vn-19533216', 'tenant_id': '940fc257a8b24d578891ac06230e16c3', 'project_id': '940fc257a8b24d578891ac06230e16c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8ab8cd4-c203-4f91-9453-9fb6bbfc4559'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-vn-19533216'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-policy-allow-all-63098985']], 'subnet_ipam': [{'subnet_cidr': '3.89.227.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-10 21:11:49,368 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-10 21:11:49,664 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-10 21:11:49,696 - DEBUG - Requesting: http://10.0.0.17:8082/domain/8a462fbc-7795-4f42-b9a7-d0d8f8962dac
2024-09-10 21:11:49,718 - DEBUG - Requesting: http://10.0.0.17:8082/project/940fc257-a8b2-4d57-8891-ac06230e16c3
2024-09-10 21:11:49,791 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7d398c80-ddd3-4cc7-ad9e-b2adb625067b
2024-09-10 21:11:49,800 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7d398c80-ddd3-4cc7-ad9e-b2adb625067b
2024-09-10 21:11:49,808 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/bf32b1ad-1192-408e-9f51-7f832ddfe438
2024-09-10 21:11:49,814 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/bf32b1ad-1192-408e-9f51-7f832ddfe438
2024-09-10 21:11:49,820 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/cb06717a-ff96-4b67-82e3-0d457de9e4ab
2024-09-10 21:11:49,826 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-10 21:11:49,826 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7d398c80-ddd3-4cc7-ad9e-b2adb625067b
2024-09-10 21:11:49,833 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/bf32b1ad-1192-408e-9f51-7f832ddfe438
2024-09-10 21:11:49,846 - INFO - Verified VN network id 8 for VN 7d398c80-ddd3-4cc7-ad9e-b2adb625067b
2024-09-10 21:11:49,846 - INFO - Verifications in API Server for VN ctest-vn-37452129 passed
2024-09-10 21:11:49,846 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7d398c80-ddd3-4cc7-ad9e-b2adb625067b
2024-09-10 21:11:49,854 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/bf32b1ad-1192-408e-9f51-7f832ddfe438
2024-09-10 21:11:49,861 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/bf32b1ad-1192-408e-9f51-7f832ddfe438
2024-09-10 21:11:49,867 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/cb06717a-ff96-4b67-82e3-0d457de9e4ab
2024-09-10 21:11:49,879 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74110988', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9023397813518814407', 'uuid-lslong': '12510633274036782715'}, 'enable': 'true', 'created': '2024-09-10T21:11:47', 'last-modified': '2024-09-10T21:11:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952809'}
2024-09-10 21:11:49,885 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-10 21:11:49,885 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37452129 passed
2024-09-10 21:11:49,885 - DEBUG - ====Verifying policy data for ctest-vn-37452129 in API_Server ======
2024-09-10 21:11:49,885 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-10 21:11:49,891 - DEBUG - Requesting: http://10.0.0.17:8082/domain/8a462fbc-7795-4f42-b9a7-d0d8f8962dac
2024-09-10 21:11:49,903 - DEBUG - Requesting: http://10.0.0.17:8082/project/940fc257-a8b2-4d57-8891-ac06230e16c3
2024-09-10 21:11:49,981 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/7d398c80-ddd3-4cc7-ad9e-b2adb625067b
2024-09-10 21:11:50,000 - DEBUG - ==>Verifying data for policy with id: 6ba6135d-07b1-4f54-9a98-1246699349fa, fqn: ['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-policy-allow-all-63098985']
2024-09-10 21:11:50,000 - INFO - VN ctest-vn-37452129 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-10 21:11:50,000 - DEBUG - Verifying the vn in opserver
2024-09-10 21:11:50,000 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129 virtual network link through opserver 10.0.0.17
2024-09-10 21:11:50,000 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-10 21:11:50,296 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-10 21:11:50,358 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129?flat'}
2024-09-10 21:11:50,358 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-37452129 is found in opserver
2024-09-10 21:11:50,370 - DEBUG - Do not have enough data to verify VN in agent
2024-09-10 21:11:50,376 - DEBUG - VRF ids for VN ctest-vn-37452129: {}
2024-09-10 21:11:50,376 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-10 21:11:50,382 - DEBUG - Requesting: http://10.0.0.17:8082/domain/8a462fbc-7795-4f42-b9a7-d0d8f8962dac
2024-09-10 21:11:50,394 - DEBUG - Requesting: http://10.0.0.17:8082/project/940fc257-a8b2-4d57-8891-ac06230e16c3
2024-09-10 21:11:50,468 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dfa625b5-61b6-40e3-ab6a-ff6bcccbba18
2024-09-10 21:11:50,479 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dfa625b5-61b6-40e3-ab6a-ff6bcccbba18
2024-09-10 21:11:50,487 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a377af56-cda4-42ed-bcda-2e66291c5370
2024-09-10 21:11:50,494 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a377af56-cda4-42ed-bcda-2e66291c5370
2024-09-10 21:11:50,502 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/754d53f6-a524-4719-91c7-ff2e7dc8df3b
2024-09-10 21:11:50,511 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-10 21:11:50,511 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dfa625b5-61b6-40e3-ab6a-ff6bcccbba18
2024-09-10 21:11:50,521 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a377af56-cda4-42ed-bcda-2e66291c5370
2024-09-10 21:11:50,536 - INFO - Verified VN network id 9 for VN dfa625b5-61b6-40e3-ab6a-ff6bcccbba18
2024-09-10 21:11:50,536 - INFO - Verifications in API Server for VN ctest-vn-19533216 passed
2024-09-10 21:11:50,536 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dfa625b5-61b6-40e3-ab6a-ff6bcccbba18
2024-09-10 21:11:50,548 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a377af56-cda4-42ed-bcda-2e66291c5370
2024-09-10 21:11:50,556 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a377af56-cda4-42ed-bcda-2e66291c5370
2024-09-10 21:11:50,563 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/754d53f6-a524-4719-91c7-ff2e7dc8df3b
2024-09-10 21:11:50,577 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-19533216', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74110988', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16115609777550541027', 'uuid-lslong': '12351965766479493656'}, 'enable': 'true', 'created': '2024-09-10T21:11:48', 'last-modified': '2024-09-10T21:11:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.407427'}
2024-09-10 21:11:50,583 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-10 21:11:50,583 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19533216 passed
2024-09-10 21:11:50,584 - DEBUG - ====Verifying policy data for ctest-vn-19533216 in API_Server ======
2024-09-10 21:11:50,584 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-10 21:11:50,590 - DEBUG - Requesting: http://10.0.0.17:8082/domain/8a462fbc-7795-4f42-b9a7-d0d8f8962dac
2024-09-10 21:11:50,604 - DEBUG - Requesting: http://10.0.0.17:8082/project/940fc257-a8b2-4d57-8891-ac06230e16c3
2024-09-10 21:11:50,682 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/dfa625b5-61b6-40e3-ab6a-ff6bcccbba18
2024-09-10 21:11:50,691 - DEBUG - ==>Verifying data for policy with id: 6ba6135d-07b1-4f54-9a98-1246699349fa, fqn: ['default-domain', 'ctest-TestBasicPolicy-74110988', 'ctest-policy-allow-all-63098985']
2024-09-10 21:11:50,691 - INFO - VN ctest-vn-19533216 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-10 21:11:50,691 - DEBUG - Verifying the vn in opserver
2024-09-10 21:11:50,691 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-19533216 virtual network link through opserver 10.0.0.17
2024-09-10 21:11:50,692 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-10 21:11:50,704 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-19533216', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-19533216?flat'}
2024-09-10 21:11:50,704 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74110988:ctest-vn-19533216 is found in opserver
2024-09-10 21:11:50,717 - DEBUG - Do not have enough data to verify VN in agent
2024-09-10 21:11:50,724 - DEBUG - VRF ids for VN ctest-vn-19533216: {}
2024-09-10 21:11:50,795 - DEBUG - Services list from nova: [