2025-10-27 00:04:02,115 - INFO - Domain Default found not creating
2025-10-27 00:04:02,274 - INFO - Project ctest-TestBasicPolicy-07228547 not found, creating it
2025-10-27 00:04:02,736 - INFO - Created Project:ctest-TestBasicPolicy-07228547, ID : 22036d24-d9a5-4927-b6ec-09bed570ee7e
2025-10-27 00:04:04,312 - INFO - ================================================================================
2025-10-27 00:04:04,312 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 00:04:04,312 - 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-10-27 00:04:04,570 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2025-10-27 00:04:04,570 - INFO - Initial checks done. Running the testcase now
2025-10-27 00:04:04,570 - INFO -
2025-10-27 00:04:05,186 - DEBUG - Response for create_network : {'network': {'id': '2bd6dfda-7510-45e5-916c-075896980769', 'name': 'ctest-vn-52366233', 'tenant_id': '22036d24d9a54927b6ec09bed570ee7e', 'project_id': '22036d24d9a54927b6ec09bed570ee7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07228547', 'ctest-vn-52366233'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 00:04:05,353 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4511bb4-11fa-435e-be52-4f8043095824', 'name': '', 'tenant_id': '22036d24d9a54927b6ec09bed570ee7e', 'network_id': '2bd6dfda-7510-45e5-916c-075896980769', 'ip_version': 4, 'cidr': '5.93.113.0/26', 'allocation_pools': [{'start': '5.93.113.2', 'end': '5.93.113.62'}], 'gateway_ip': '5.93.113.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.93.113.2', 'tags': [], 'project_id': '22036d24d9a54927b6ec09bed570ee7e'}}
2025-10-27 00:04:05,376 - INFO - Created VN ctest-vn-52366233
2025-10-27 00:04:05,428 - DEBUG - VN ctest-vn-52366233 UUID is 2bd6dfda-7510-45e5-916c-075896980769
2025-10-27 00:04:05,743 - DEBUG - Response for create_network : {'network': {'id': '2b8ed95b-fe70-4d20-837f-a31141ae9377', 'name': 'ctest-vn-12515274', 'tenant_id': '22036d24d9a54927b6ec09bed570ee7e', 'project_id': '22036d24d9a54927b6ec09bed570ee7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07228547', 'ctest-vn-12515274'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 00:04:05,927 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f20b8b0d-ab9a-4160-ae51-68a5127f8f0d', 'name': '', 'tenant_id': '22036d24d9a54927b6ec09bed570ee7e', 'network_id': '2b8ed95b-fe70-4d20-837f-a31141ae9377', 'ip_version': 4, 'cidr': '63.35.186.192/26', 'allocation_pools': [{'start': '63.35.186.194', 'end': '63.35.186.254'}], 'gateway_ip': '63.35.186.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.35.186.194', 'tags': [], 'project_id': '22036d24d9a54927b6ec09bed570ee7e'}}
2025-10-27 00:04:05,947 - INFO - Created VN ctest-vn-12515274
2025-10-27 00:04:06,000 - DEBUG - VN ctest-vn-12515274 UUID is 2b8ed95b-fe70-4d20-837f-a31141ae9377
2025-10-27 00:04:06,160 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07228547:ctest-vn-52366233, 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-07228547:ctest-vn-12515274, 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-10-27 00:04:06,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bd6dfda-7510-45e5-916c-075896980769', 'name': 'ctest-vn-52366233', 'tenant_id': '22036d24d9a54927b6ec09bed570ee7e', 'project_id': '22036d24d9a54927b6ec09bed570ee7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4511bb4-11fa-435e-be52-4f8043095824'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07228547', 'ctest-vn-52366233'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07228547', 'ctest-policy-allow-all-07371921']], 'subnet_ipam': [{'subnet_cidr': '5.93.113.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 00:04:06,737 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b8ed95b-fe70-4d20-837f-a31141ae9377', 'name': 'ctest-vn-12515274', 'tenant_id': '22036d24d9a54927b6ec09bed570ee7e', 'project_id': '22036d24d9a54927b6ec09bed570ee7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f20b8b0d-ab9a-4160-ae51-68a5127f8f0d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07228547', 'ctest-vn-12515274'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07228547', 'ctest-policy-allow-all-07371921']], 'subnet_ipam': [{'subnet_cidr': '63.35.186.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 00:04:06,880 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-27 00:04:07,218 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-27 00:04:07,244 - DEBUG - Requesting: http://10.0.0.249:8082/domain/bf2a038e-3335-4572-999d-0784d85f18b9
2025-10-27 00:04:07,255 - DEBUG - Requesting: http://10.0.0.249:8082/project/22036d24-d9a5-4927-b6ec-09bed570ee7e
2025-10-27 00:04:07,326 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2bd6dfda-7510-45e5-916c-075896980769
2025-10-27 00:04:07,336 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2bd6dfda-7510-45e5-916c-075896980769
2025-10-27 00:04:07,344 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25588406-d655-44c9-bf61-e4e8ec9c014c
2025-10-27 00:04:07,350 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25588406-d655-44c9-bf61-e4e8ec9c014c
2025-10-27 00:04:07,356 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/da69742f-ca8e-4b80-8cf2-2e857286a3a9
2025-10-27 00:04:07,361 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 00:04:07,361 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2bd6dfda-7510-45e5-916c-075896980769
2025-10-27 00:04:07,369 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25588406-d655-44c9-bf61-e4e8ec9c014c
2025-10-27 00:04:07,381 - INFO - Verified VN network id 11 for VN 2bd6dfda-7510-45e5-916c-075896980769
2025-10-27 00:04:07,381 - INFO - Verifications in API Server for VN ctest-vn-52366233 passed
2025-10-27 00:04:07,381 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2bd6dfda-7510-45e5-916c-075896980769
2025-10-27 00:04:07,391 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25588406-d655-44c9-bf61-e4e8ec9c014c
2025-10-27 00:04:07,398 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/25588406-d655-44c9-bf61-e4e8ec9c014c
2025-10-27 00:04:07,404 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/da69742f-ca8e-4b80-8cf2-2e857286a3a9
2025-10-27 00:04:07,414 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07228547:ctest-vn-52366233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07228547', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3158958318006846949', 'uuid-lslong': '10478758510049363817'}, 'enable': 'true', 'created': '2025-10-27T00:04:05', 'last-modified': '2025-10-27T00:04:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984075'}
2025-10-27 00:04:07,420 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 00:04:07,420 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52366233 passed
2025-10-27 00:04:07,420 - DEBUG - ====Verifying policy data for ctest-vn-52366233 in API_Server ======
2025-10-27 00:04:07,420 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-27 00:04:07,424 - DEBUG - Requesting: http://10.0.0.249:8082/domain/bf2a038e-3335-4572-999d-0784d85f18b9
2025-10-27 00:04:07,434 - DEBUG - Requesting: http://10.0.0.249:8082/project/22036d24-d9a5-4927-b6ec-09bed570ee7e
2025-10-27 00:04:07,503 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2bd6dfda-7510-45e5-916c-075896980769
2025-10-27 00:04:07,511 - DEBUG - ==>Verifying data for policy with id: a390507d-1401-42f9-9c06-447bd88c59e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-07228547', 'ctest-policy-allow-all-07371921']
2025-10-27 00:04:07,511 - INFO - VN ctest-vn-52366233 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 00:04:07,511 - DEBUG - Verifying the vn in opserver
2025-10-27 00:04:07,511 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07228547:ctest-vn-52366233 virtual network link through opserver 10.0.0.249
2025-10-27 00:04:07,511 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-27 00:04:07,841 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-27 00:04:07,893 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07228547:ctest-vn-52366233', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07228547:ctest-vn-52366233?flat'}
2025-10-27 00:04:07,893 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07228547:ctest-vn-52366233 is found in opserver
2025-10-27 00:04:07,901 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 00:04:07,905 - DEBUG - VRF ids for VN ctest-vn-52366233: {}
2025-10-27 00:04:07,905 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-27 00:04:07,910 - DEBUG - Requesting: http://10.0.0.249:8082/domain/bf2a038e-3335-4572-999d-0784d85f18b9
2025-10-27 00:04:07,920 - DEBUG - Requesting: http://10.0.0.249:8082/project/22036d24-d9a5-4927-b6ec-09bed570ee7e
2025-10-27 00:04:07,991 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2b8ed95b-fe70-4d20-837f-a31141ae9377
2025-10-27 00:04:08,002 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2b8ed95b-fe70-4d20-837f-a31141ae9377
2025-10-27 00:04:08,010 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/824f5ccb-9580-4311-a818-22e5988a0cca
2025-10-27 00:04:08,016 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/824f5ccb-9580-4311-a818-22e5988a0cca
2025-10-27 00:04:08,021 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/97ec99e1-486a-4b82-865a-442b31907ade
2025-10-27 00:04:08,026 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 00:04:08,026 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2b8ed95b-fe70-4d20-837f-a31141ae9377
2025-10-27 00:04:08,034 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/824f5ccb-9580-4311-a818-22e5988a0cca
2025-10-27 00:04:08,045 - INFO - Verified VN network id 12 for VN 2b8ed95b-fe70-4d20-837f-a31141ae9377
2025-10-27 00:04:08,045 - INFO - Verifications in API Server for VN ctest-vn-12515274 passed
2025-10-27 00:04:08,045 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2b8ed95b-fe70-4d20-837f-a31141ae9377
2025-10-27 00:04:08,052 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/824f5ccb-9580-4311-a818-22e5988a0cca
2025-10-27 00:04:08,058 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/824f5ccb-9580-4311-a818-22e5988a0cca
2025-10-27 00:04:08,063 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/97ec99e1-486a-4b82-865a-442b31907ade
2025-10-27 00:04:08,073 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07228547:ctest-vn-12515274', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07228547', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3138684979457838368', 'uuid-lslong': '9475471435522544503'}, 'enable': 'true', 'created': '2025-10-27T00:04:05', 'last-modified': '2025-10-27T00:04:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.405334'}
2025-10-27 00:04:08,078 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 00:04:08,078 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12515274 passed
2025-10-27 00:04:08,078 - DEBUG - ====Verifying policy data for ctest-vn-12515274 in API_Server ======
2025-10-27 00:04:08,078 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-27 00:04:08,082 - DEBUG - Requesting: http://10.0.0.249:8082/domain/bf2a038e-3335-4572-999d-0784d85f18b9
2025-10-27 00:04:08,091 - DEBUG - Requesting: http://10.0.0.249:8082/project/22036d24-d9a5-4927-b6ec-09bed570ee7e
2025-10-27 00:04:08,162 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2b8ed95b-fe70-4d20-837f-a31141ae9377
2025-10-27 00:04:08,171 - DEBUG - ==>Verifying data for policy with id: a390507d-1401-42f9-9c06-447bd88c59e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-07228547', 'ctest-policy-allow-all-07371921']
2025-10-27 00:04:08,171 - INFO - VN ctest-vn-12515274 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 00:04:08,172 - DEBUG - Verifying the vn in opserver
2025-10-27 00:04:08,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07228547:ctest-vn-12515274 virtual network link through opserver 10.0.0.249
2025-10-27 00:04:08,172 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-27 00:04:08,180 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07228547:ctest-vn-12515274', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07228547:ctest-vn-12515274?flat'}
2025-10-27 00:04:08,180 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07228547:ctest-vn-12515274 is found in opserver
2025-10-27 00:04:08,191 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 00:04:08,195 - DEBUG - VRF ids for VN ctest-vn-12515274: {}
2025-10-27 00:04:08,248 - DEBUG - Services list from nova: [