2026-01-07 04:35:41,515 - INFO - Domain Default found not creating
2026-01-07 04:35:41,686 - INFO - Project ctest-TestBasicPolicy-00031045 not found, creating it
2026-01-07 04:35:42,125 - INFO - Created Project:ctest-TestBasicPolicy-00031045, ID : 22ed5dda-bab8-4fd3-acc4-100da62af365
2026-01-07 04:35:43,554 - INFO - ================================================================================
2026-01-07 04:35:43,554 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-07 04:35:43,554 - 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
2026-01-07 04:35:43,810 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-01-07 04:35:43,810 - INFO - Initial checks done. Running the testcase now
2026-01-07 04:35:43,810 - INFO -
2026-01-07 04:35:44,340 - DEBUG - Response for create_network : {'network': {'id': '3c1d9960-ce1f-4863-bb67-93d150a3cd86', 'name': 'ctest-vn-38523124', 'tenant_id': '22ed5ddabab84fd3acc4100da62af365', 'project_id': '22ed5ddabab84fd3acc4100da62af365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00031045', 'ctest-vn-38523124'], 'port_security_enabled': True, 'description': ''}}
2026-01-07 04:35:44,537 - DEBUG - Response for create_subnet : {'subnet': {'id': '0eb0229b-76b9-4099-8c33-9e31db61a196', 'name': '', 'tenant_id': '22ed5ddabab84fd3acc4100da62af365', 'network_id': '3c1d9960-ce1f-4863-bb67-93d150a3cd86', 'ip_version': 4, 'cidr': '132.210.13.128/26', 'allocation_pools': [{'start': '132.210.13.130', 'end': '132.210.13.190'}], 'gateway_ip': '132.210.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.210.13.130', 'tags': [], 'project_id': '22ed5ddabab84fd3acc4100da62af365'}}
2026-01-07 04:35:44,553 - INFO - Created VN ctest-vn-38523124
2026-01-07 04:35:44,606 - DEBUG - VN ctest-vn-38523124 UUID is 3c1d9960-ce1f-4863-bb67-93d150a3cd86
2026-01-07 04:35:44,928 - DEBUG - Response for create_network : {'network': {'id': '4dcb3a99-757a-4171-8ab4-72f3ff57a45e', 'name': 'ctest-vn-91428387', 'tenant_id': '22ed5ddabab84fd3acc4100da62af365', 'project_id': '22ed5ddabab84fd3acc4100da62af365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00031045', 'ctest-vn-91428387'], 'port_security_enabled': True, 'description': ''}}
2026-01-07 04:35:45,100 - DEBUG - Response for create_subnet : {'subnet': {'id': '59a804d1-fedb-479c-a02b-cf3527fecb20', 'name': '', 'tenant_id': '22ed5ddabab84fd3acc4100da62af365', 'network_id': '4dcb3a99-757a-4171-8ab4-72f3ff57a45e', 'ip_version': 4, 'cidr': '117.171.60.64/26', 'allocation_pools': [{'start': '117.171.60.66', 'end': '117.171.60.126'}], 'gateway_ip': '117.171.60.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.171.60.66', 'tags': [], 'project_id': '22ed5ddabab84fd3acc4100da62af365'}}
2026-01-07 04:35:45,115 - INFO - Created VN ctest-vn-91428387
2026-01-07 04:35:45,166 - DEBUG - VN ctest-vn-91428387 UUID is 4dcb3a99-757a-4171-8ab4-72f3ff57a45e
2026-01-07 04:35:45,309 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00031045:ctest-vn-38523124, 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-00031045:ctest-vn-91428387, 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]
2026-01-07 04:35:45,598 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c1d9960-ce1f-4863-bb67-93d150a3cd86', 'name': 'ctest-vn-38523124', 'tenant_id': '22ed5ddabab84fd3acc4100da62af365', 'project_id': '22ed5ddabab84fd3acc4100da62af365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0eb0229b-76b9-4099-8c33-9e31db61a196'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00031045', 'ctest-vn-38523124'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00031045', 'ctest-policy-allow-all-50010222']], 'subnet_ipam': [{'subnet_cidr': '132.210.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-07 04:35:45,814 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4dcb3a99-757a-4171-8ab4-72f3ff57a45e', 'name': 'ctest-vn-91428387', 'tenant_id': '22ed5ddabab84fd3acc4100da62af365', 'project_id': '22ed5ddabab84fd3acc4100da62af365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59a804d1-fedb-479c-a02b-cf3527fecb20'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00031045', 'ctest-vn-91428387'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00031045', 'ctest-policy-allow-all-50010222']], 'subnet_ipam': [{'subnet_cidr': '117.171.60.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-07 04:35:45,966 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-07 04:35:46,261 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-07 04:35:46,293 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c221dd2-61f9-4cf2-834e-b22e88dba6b6
2026-01-07 04:35:46,304 - DEBUG - Requesting: http://10.0.0.50:8082/project/22ed5dda-bab8-4fd3-acc4-100da62af365
2026-01-07 04:35:46,378 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c1d9960-ce1f-4863-bb67-93d150a3cd86
2026-01-07 04:35:46,390 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c1d9960-ce1f-4863-bb67-93d150a3cd86
2026-01-07 04:35:46,400 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5e1139-1aa6-41f8-be2d-baaa1049556e
2026-01-07 04:35:46,406 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5e1139-1aa6-41f8-be2d-baaa1049556e
2026-01-07 04:35:46,412 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a4e6b3ff-0515-477a-8e4d-35f656c9f0bf
2026-01-07 04:35:46,417 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-07 04:35:46,417 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c1d9960-ce1f-4863-bb67-93d150a3cd86
2026-01-07 04:35:46,426 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5e1139-1aa6-41f8-be2d-baaa1049556e
2026-01-07 04:35:46,440 - INFO - Verified VN network id 12 for VN 3c1d9960-ce1f-4863-bb67-93d150a3cd86
2026-01-07 04:35:46,440 - INFO - Verifications in API Server for VN ctest-vn-38523124 passed
2026-01-07 04:35:46,440 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c1d9960-ce1f-4863-bb67-93d150a3cd86
2026-01-07 04:35:46,450 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5e1139-1aa6-41f8-be2d-baaa1049556e
2026-01-07 04:35:46,457 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df5e1139-1aa6-41f8-be2d-baaa1049556e
2026-01-07 04:35:46,463 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a4e6b3ff-0515-477a-8e4d-35f656c9f0bf
2026-01-07 04:35:46,473 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00031045:ctest-vn-38523124', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00031045', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4331787057654351971', 'uuid-lslong': '13503924534904081798'}, 'enable': 'true', 'created': '2026-01-07T04:35:44', 'last-modified': '2026-01-07T04:35:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.895972'}
2026-01-07 04:35:46,479 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-07 04:35:46,479 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38523124 passed
2026-01-07 04:35:46,479 - DEBUG - ====Verifying policy data for ctest-vn-38523124 in API_Server ======
2026-01-07 04:35:46,479 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-07 04:35:46,483 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c221dd2-61f9-4cf2-834e-b22e88dba6b6
2026-01-07 04:35:46,497 - DEBUG - Requesting: http://10.0.0.50:8082/project/22ed5dda-bab8-4fd3-acc4-100da62af365
2026-01-07 04:35:46,572 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c1d9960-ce1f-4863-bb67-93d150a3cd86
2026-01-07 04:35:46,582 - DEBUG - ==>Verifying data for policy with id: 969dd872-4d2b-4b2d-b22f-20a572100ff9, fqn: ['default-domain', 'ctest-TestBasicPolicy-00031045', 'ctest-policy-allow-all-50010222']
2026-01-07 04:35:46,582 - INFO - VN ctest-vn-38523124 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-07 04:35:46,583 - DEBUG - Verifying the vn in opserver
2026-01-07 04:35:46,583 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00031045:ctest-vn-38523124 virtual network link through opserver 10.0.0.50
2026-01-07 04:35:46,583 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-07 04:35:46,878 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-07 04:35:46,933 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00031045:ctest-vn-38523124', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00031045:ctest-vn-38523124?flat'}
2026-01-07 04:35:46,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00031045:ctest-vn-38523124 is found in opserver
2026-01-07 04:35:46,942 - DEBUG - Do not have enough data to verify VN in agent
2026-01-07 04:35:46,946 - DEBUG - VRF ids for VN ctest-vn-38523124: {}
2026-01-07 04:35:46,946 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-07 04:35:46,951 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c221dd2-61f9-4cf2-834e-b22e88dba6b6
2026-01-07 04:35:46,960 - DEBUG - Requesting: http://10.0.0.50:8082/project/22ed5dda-bab8-4fd3-acc4-100da62af365
2026-01-07 04:35:47,029 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4dcb3a99-757a-4171-8ab4-72f3ff57a45e
2026-01-07 04:35:47,039 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4dcb3a99-757a-4171-8ab4-72f3ff57a45e
2026-01-07 04:35:47,047 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6bd9835-0916-473a-b84b-61760d2e2ae5
2026-01-07 04:35:47,055 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6bd9835-0916-473a-b84b-61760d2e2ae5
2026-01-07 04:35:47,062 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5a28d47f-8e48-49dc-a5d8-4de2ae8547e3
2026-01-07 04:35:47,068 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-07 04:35:47,068 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4dcb3a99-757a-4171-8ab4-72f3ff57a45e
2026-01-07 04:35:47,077 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6bd9835-0916-473a-b84b-61760d2e2ae5
2026-01-07 04:35:47,091 - INFO - Verified VN network id 13 for VN 4dcb3a99-757a-4171-8ab4-72f3ff57a45e
2026-01-07 04:35:47,091 - INFO - Verifications in API Server for VN ctest-vn-91428387 passed
2026-01-07 04:35:47,091 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4dcb3a99-757a-4171-8ab4-72f3ff57a45e
2026-01-07 04:35:47,099 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6bd9835-0916-473a-b84b-61760d2e2ae5
2026-01-07 04:35:47,105 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6bd9835-0916-473a-b84b-61760d2e2ae5
2026-01-07 04:35:47,111 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5a28d47f-8e48-49dc-a5d8-4de2ae8547e3
2026-01-07 04:35:47,120 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00031045:ctest-vn-91428387', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00031045', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5605638591968067953', 'uuid-lslong': '9994739865328526430'}, 'enable': 'true', 'created': '2026-01-07T04:35:44', 'last-modified': '2026-01-07T04:35:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.322100'}
2026-01-07 04:35:47,127 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-07 04:35:47,127 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91428387 passed
2026-01-07 04:35:47,127 - DEBUG - ====Verifying policy data for ctest-vn-91428387 in API_Server ======
2026-01-07 04:35:47,127 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-07 04:35:47,132 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c221dd2-61f9-4cf2-834e-b22e88dba6b6
2026-01-07 04:35:47,141 - DEBUG - Requesting: http://10.0.0.50:8082/project/22ed5dda-bab8-4fd3-acc4-100da62af365
2026-01-07 04:35:47,210 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4dcb3a99-757a-4171-8ab4-72f3ff57a45e
2026-01-07 04:35:47,218 - DEBUG - ==>Verifying data for policy with id: 969dd872-4d2b-4b2d-b22f-20a572100ff9, fqn: ['default-domain', 'ctest-TestBasicPolicy-00031045', 'ctest-policy-allow-all-50010222']
2026-01-07 04:35:47,218 - INFO - VN ctest-vn-91428387 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-07 04:35:47,219 - DEBUG - Verifying the vn in opserver
2026-01-07 04:35:47,219 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00031045:ctest-vn-91428387 virtual network link through opserver 10.0.0.50
2026-01-07 04:35:47,219 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-07 04:35:47,228 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00031045:ctest-vn-91428387', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00031045:ctest-vn-91428387?flat'}
2026-01-07 04:35:47,228 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00031045:ctest-vn-91428387 is found in opserver
2026-01-07 04:35:47,238 - DEBUG - Do not have enough data to verify VN in agent
2026-01-07 04:35:47,242 - DEBUG - VRF ids for VN ctest-vn-91428387: {}
2026-01-07 04:35:47,293 - DEBUG - Services list from nova: [