2025-08-26 00:19:46,448 - INFO - Domain Default found not creating
2025-08-26 00:19:46,638 - INFO - Project ctest-TestBasicPolicy-93614494 not found, creating it
2025-08-26 00:19:47,202 - INFO - Created Project:ctest-TestBasicPolicy-93614494, ID : bf93da10-7716-446c-8459-31f0da243221
2025-08-26 00:19:48,954 - INFO - ================================================================================
2025-08-26 00:19:48,954 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-26 00:19:48,954 - 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
2025-08-26 00:19:49,218 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.201': '0'}} with
2025-08-26 00:19:49,218 - INFO - Initial checks done. Running the testcase now
2025-08-26 00:19:49,218 - INFO -
2025-08-26 00:19:49,831 - DEBUG - Response for create_network : {'network': {'id': 'aff1c61e-b4a0-4f53-97bd-caf26f40ea10', 'name': 'ctest-vn-96857263', 'tenant_id': 'bf93da107716446c845931f0da243221', 'project_id': 'bf93da107716446c845931f0da243221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93614494', 'ctest-vn-96857263'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 00:19:50,013 - DEBUG - Response for create_subnet : {'subnet': {'id': '71457a26-4e7b-4da4-b5c6-5e8671f3f243', 'name': '', 'tenant_id': 'bf93da107716446c845931f0da243221', 'network_id': 'aff1c61e-b4a0-4f53-97bd-caf26f40ea10', 'ip_version': 4, 'cidr': '175.81.46.64/26', 'allocation_pools': [{'start': '175.81.46.66', 'end': '175.81.46.126'}], 'gateway_ip': '175.81.46.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.81.46.66', 'tags': [], 'project_id': 'bf93da107716446c845931f0da243221'}}
2025-08-26 00:19:50,037 - INFO - Created VN ctest-vn-96857263
2025-08-26 00:19:50,091 - DEBUG - VN ctest-vn-96857263 UUID is aff1c61e-b4a0-4f53-97bd-caf26f40ea10
2025-08-26 00:19:50,454 - DEBUG - Response for create_network : {'network': {'id': '747447f3-f922-4a70-82ec-2b858f5a7b69', 'name': 'ctest-vn-86621218', 'tenant_id': 'bf93da107716446c845931f0da243221', 'project_id': 'bf93da107716446c845931f0da243221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93614494', 'ctest-vn-86621218'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 00:19:50,723 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e5b6e31-b633-4097-9c10-0efb8ebe134e', 'name': '', 'tenant_id': 'bf93da107716446c845931f0da243221', 'network_id': '747447f3-f922-4a70-82ec-2b858f5a7b69', 'ip_version': 4, 'cidr': '110.120.78.192/26', 'allocation_pools': [{'start': '110.120.78.194', 'end': '110.120.78.254'}], 'gateway_ip': '110.120.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.120.78.194', 'tags': [], 'project_id': 'bf93da107716446c845931f0da243221'}}
2025-08-26 00:19:50,746 - INFO - Created VN ctest-vn-86621218
2025-08-26 00:19:50,804 - DEBUG - VN ctest-vn-86621218 UUID is 747447f3-f922-4a70-82ec-2b858f5a7b69
2025-08-26 00:19:50,938 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93614494:ctest-vn-96857263, 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-93614494:ctest-vn-86621218, 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]
2025-08-26 00:19:51,273 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aff1c61e-b4a0-4f53-97bd-caf26f40ea10', 'name': 'ctest-vn-96857263', 'tenant_id': 'bf93da107716446c845931f0da243221', 'project_id': 'bf93da107716446c845931f0da243221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71457a26-4e7b-4da4-b5c6-5e8671f3f243'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93614494', 'ctest-vn-96857263'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93614494', 'ctest-policy-allow-all-45756245']], 'subnet_ipam': [{'subnet_cidr': '175.81.46.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 00:19:51,560 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '747447f3-f922-4a70-82ec-2b858f5a7b69', 'name': 'ctest-vn-86621218', 'tenant_id': 'bf93da107716446c845931f0da243221', 'project_id': 'bf93da107716446c845931f0da243221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e5b6e31-b633-4097-9c10-0efb8ebe134e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93614494', 'ctest-vn-86621218'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93614494', 'ctest-policy-allow-all-45756245']], 'subnet_ipam': [{'subnet_cidr': '110.120.78.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 00:19:51,752 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-26 00:19:52,054 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-26 00:19:52,089 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4eb524ad-d28a-468b-a4e7-1992f24ba989
2025-08-26 00:19:52,106 - DEBUG - Requesting: http://10.0.0.249:8082/project/bf93da10-7716-446c-8459-31f0da243221
2025-08-26 00:19:52,199 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/aff1c61e-b4a0-4f53-97bd-caf26f40ea10
2025-08-26 00:19:52,217 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/aff1c61e-b4a0-4f53-97bd-caf26f40ea10
2025-08-26 00:19:52,231 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e909c0fa-4bf9-4d5e-970e-9f5544ddd427
2025-08-26 00:19:52,243 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e909c0fa-4bf9-4d5e-970e-9f5544ddd427
2025-08-26 00:19:52,256 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/1aad3e3a-5e7a-42b1-bf30-29fae490b7b2
2025-08-26 00:19:52,268 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 00:19:52,268 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/aff1c61e-b4a0-4f53-97bd-caf26f40ea10
2025-08-26 00:19:52,282 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e909c0fa-4bf9-4d5e-970e-9f5544ddd427
2025-08-26 00:19:52,302 - INFO - Verified VN network id 11 for VN aff1c61e-b4a0-4f53-97bd-caf26f40ea10
2025-08-26 00:19:52,302 - INFO - Verifications in API Server for VN ctest-vn-96857263 passed
2025-08-26 00:19:52,302 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/aff1c61e-b4a0-4f53-97bd-caf26f40ea10
2025-08-26 00:19:52,318 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e909c0fa-4bf9-4d5e-970e-9f5544ddd427
2025-08-26 00:19:52,329 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e909c0fa-4bf9-4d5e-970e-9f5544ddd427
2025-08-26 00:19:52,340 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/1aad3e3a-5e7a-42b1-bf30-29fae490b7b2
2025-08-26 00:19:52,358 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93614494:ctest-vn-96857263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93614494', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12678132261206380371', 'uuid-lslong': '10934118612922853904'}, 'enable': 'true', 'created': '2025-08-26T00:19:49', 'last-modified': '2025-08-26T00:19:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.117135'}
2025-08-26 00:19:52,365 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 00:19:52,365 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96857263 passed
2025-08-26 00:19:52,366 - DEBUG - ====Verifying policy data for ctest-vn-96857263 in API_Server ======
2025-08-26 00:19:52,366 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-26 00:19:52,375 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4eb524ad-d28a-468b-a4e7-1992f24ba989
2025-08-26 00:19:52,394 - DEBUG - Requesting: http://10.0.0.249:8082/project/bf93da10-7716-446c-8459-31f0da243221
2025-08-26 00:19:52,478 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/aff1c61e-b4a0-4f53-97bd-caf26f40ea10
2025-08-26 00:19:52,490 - DEBUG - ==>Verifying data for policy with id: c8bdaf23-c7c4-4d08-9f96-b20c34325a95, fqn: ['default-domain', 'ctest-TestBasicPolicy-93614494', 'ctest-policy-allow-all-45756245']
2025-08-26 00:19:52,490 - INFO - VN ctest-vn-96857263 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 00:19:52,490 - DEBUG - Verifying the vn in opserver
2025-08-26 00:19:52,490 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93614494:ctest-vn-96857263 virtual network link through opserver 10.0.0.249
2025-08-26 00:19:52,490 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-26 00:19:52,786 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-26 00:19:52,856 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93614494:ctest-vn-96857263', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93614494:ctest-vn-96857263?flat'}
2025-08-26 00:19:52,856 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93614494:ctest-vn-96857263 is found in opserver
2025-08-26 00:19:52,870 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 00:19:52,876 - DEBUG - VRF ids for VN ctest-vn-96857263: {}
2025-08-26 00:19:52,876 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-26 00:19:52,883 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4eb524ad-d28a-468b-a4e7-1992f24ba989
2025-08-26 00:19:52,897 - DEBUG - Requesting: http://10.0.0.249:8082/project/bf93da10-7716-446c-8459-31f0da243221
2025-08-26 00:19:52,980 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/747447f3-f922-4a70-82ec-2b858f5a7b69
2025-08-26 00:19:52,996 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/747447f3-f922-4a70-82ec-2b858f5a7b69
2025-08-26 00:19:53,008 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/045cac7c-182a-4884-85a2-aeec503a587b
2025-08-26 00:19:53,017 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/045cac7c-182a-4884-85a2-aeec503a587b
2025-08-26 00:19:53,027 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0ec6de78-0cf3-4ecb-8fa5-fb840a358c68
2025-08-26 00:19:53,036 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 00:19:53,036 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/747447f3-f922-4a70-82ec-2b858f5a7b69
2025-08-26 00:19:53,049 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/045cac7c-182a-4884-85a2-aeec503a587b
2025-08-26 00:19:53,070 - INFO - Verified VN network id 12 for VN 747447f3-f922-4a70-82ec-2b858f5a7b69
2025-08-26 00:19:53,070 - INFO - Verifications in API Server for VN ctest-vn-86621218 passed
2025-08-26 00:19:53,071 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/747447f3-f922-4a70-82ec-2b858f5a7b69
2025-08-26 00:19:53,086 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/045cac7c-182a-4884-85a2-aeec503a587b
2025-08-26 00:19:53,097 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/045cac7c-182a-4884-85a2-aeec503a587b
2025-08-26 00:19:53,108 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0ec6de78-0cf3-4ecb-8fa5-fb840a358c68
2025-08-26 00:19:53,128 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93614494:ctest-vn-86621218', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93614494', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8391411118880475760', 'uuid-lslong': '9433963172070062953'}, 'enable': 'true', 'created': '2025-08-26T00:19:50', 'last-modified': '2025-08-26T00:19:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.607785'}
2025-08-26 00:19:53,136 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 00:19:53,136 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86621218 passed
2025-08-26 00:19:53,137 - DEBUG - ====Verifying policy data for ctest-vn-86621218 in API_Server ======
2025-08-26 00:19:53,137 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-26 00:19:53,144 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4eb524ad-d28a-468b-a4e7-1992f24ba989
2025-08-26 00:19:53,160 - DEBUG - Requesting: http://10.0.0.249:8082/project/bf93da10-7716-446c-8459-31f0da243221
2025-08-26 00:19:53,246 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/747447f3-f922-4a70-82ec-2b858f5a7b69
2025-08-26 00:19:53,258 - DEBUG - ==>Verifying data for policy with id: c8bdaf23-c7c4-4d08-9f96-b20c34325a95, fqn: ['default-domain', 'ctest-TestBasicPolicy-93614494', 'ctest-policy-allow-all-45756245']
2025-08-26 00:19:53,258 - INFO - VN ctest-vn-86621218 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 00:19:53,258 - DEBUG - Verifying the vn in opserver
2025-08-26 00:19:53,258 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93614494:ctest-vn-86621218 virtual network link through opserver 10.0.0.249
2025-08-26 00:19:53,258 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-26 00:19:53,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93614494:ctest-vn-86621218', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93614494:ctest-vn-86621218?flat'}
2025-08-26 00:19:53,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93614494:ctest-vn-86621218 is found in opserver
2025-08-26 00:19:53,287 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 00:19:53,293 - DEBUG - VRF ids for VN ctest-vn-86621218: {}
2025-08-26 00:19:53,360 - DEBUG - Services list from nova: [