2026-02-08 19:09:45,753 - INFO - Domain Default found not creating
2026-02-08 19:09:45,922 - INFO - Project ctest-TestBasicPolicy-40982571 not found, creating it
2026-02-08 19:09:46,381 - INFO - Created Project:ctest-TestBasicPolicy-40982571, ID : 77821de6-13b0-4bfb-9314-d9f35ade650a
2026-02-08 19:09:47,908 - INFO - ================================================================================
2026-02-08 19:09:47,908 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-08 19:09:47,908 - 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-02-08 19:09:48,166 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2026-02-08 19:09:48,166 - INFO - Initial checks done. Running the testcase now
2026-02-08 19:09:48,166 - INFO -
2026-02-08 19:09:48,733 - DEBUG - Response for create_network : {'network': {'id': '9bba23a0-54ca-440c-9951-83a531ba0858', 'name': 'ctest-vn-70654566', 'tenant_id': '77821de613b04bfb9314d9f35ade650a', 'project_id': '77821de613b04bfb9314d9f35ade650a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40982571', 'ctest-vn-70654566'], 'port_security_enabled': True, 'description': ''}}
2026-02-08 19:09:48,890 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e3e06aa-a8f0-413f-883f-cc9a46603d86', 'name': '', 'tenant_id': '77821de613b04bfb9314d9f35ade650a', 'network_id': '9bba23a0-54ca-440c-9951-83a531ba0858', 'ip_version': 4, 'cidr': '203.114.154.0/26', 'allocation_pools': [{'start': '203.114.154.2', 'end': '203.114.154.62'}], 'gateway_ip': '203.114.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.114.154.2', 'tags': [], 'project_id': '77821de613b04bfb9314d9f35ade650a'}}
2026-02-08 19:09:48,905 - INFO - Created VN ctest-vn-70654566
2026-02-08 19:09:48,957 - DEBUG - VN ctest-vn-70654566 UUID is 9bba23a0-54ca-440c-9951-83a531ba0858
2026-02-08 19:09:49,235 - DEBUG - Response for create_network : {'network': {'id': '3bf41f9d-6fa5-4068-b867-acde1b392b44', 'name': 'ctest-vn-61536426', 'tenant_id': '77821de613b04bfb9314d9f35ade650a', 'project_id': '77821de613b04bfb9314d9f35ade650a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40982571', 'ctest-vn-61536426'], 'port_security_enabled': True, 'description': ''}}
2026-02-08 19:09:49,444 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6de72ce-7846-46e6-9cc4-f5a38e9d5413', 'name': '', 'tenant_id': '77821de613b04bfb9314d9f35ade650a', 'network_id': '3bf41f9d-6fa5-4068-b867-acde1b392b44', 'ip_version': 4, 'cidr': '106.201.11.128/26', 'allocation_pools': [{'start': '106.201.11.130', 'end': '106.201.11.190'}], 'gateway_ip': '106.201.11.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.201.11.130', 'tags': [], 'project_id': '77821de613b04bfb9314d9f35ade650a'}}
2026-02-08 19:09:49,464 - INFO - Created VN ctest-vn-61536426
2026-02-08 19:09:49,517 - DEBUG - VN ctest-vn-61536426 UUID is 3bf41f9d-6fa5-4068-b867-acde1b392b44
2026-02-08 19:09:49,673 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40982571:ctest-vn-70654566, 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-40982571:ctest-vn-61536426, 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-02-08 19:09:49,962 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9bba23a0-54ca-440c-9951-83a531ba0858', 'name': 'ctest-vn-70654566', 'tenant_id': '77821de613b04bfb9314d9f35ade650a', 'project_id': '77821de613b04bfb9314d9f35ade650a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e3e06aa-a8f0-413f-883f-cc9a46603d86'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40982571', 'ctest-vn-70654566'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40982571', 'ctest-policy-allow-all-44250909']], 'subnet_ipam': [{'subnet_cidr': '203.114.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-08 19:09:50,229 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3bf41f9d-6fa5-4068-b867-acde1b392b44', 'name': 'ctest-vn-61536426', 'tenant_id': '77821de613b04bfb9314d9f35ade650a', 'project_id': '77821de613b04bfb9314d9f35ade650a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6de72ce-7846-46e6-9cc4-f5a38e9d5413'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40982571', 'ctest-vn-61536426'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40982571', 'ctest-policy-allow-all-44250909']], 'subnet_ipam': [{'subnet_cidr': '106.201.11.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-08 19:09:50,373 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-02-08 19:09:50,677 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-02-08 19:09:50,711 - DEBUG - Requesting: http://10.0.0.249:8082/domain/90687d1f-de58-44e3-9156-30fe74f161e1
2026-02-08 19:09:50,721 - DEBUG - Requesting: http://10.0.0.249:8082/project/77821de6-13b0-4bfb-9314-d9f35ade650a
2026-02-08 19:09:50,794 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9bba23a0-54ca-440c-9951-83a531ba0858
2026-02-08 19:09:50,803 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9bba23a0-54ca-440c-9951-83a531ba0858
2026-02-08 19:09:50,812 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/59c17ae0-b7fe-4860-8e24-059cd47c43bc
2026-02-08 19:09:50,819 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/59c17ae0-b7fe-4860-8e24-059cd47c43bc
2026-02-08 19:09:50,824 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/03f4d9a5-cf37-4151-a521-e7d8e336af23
2026-02-08 19:09:50,829 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-08 19:09:50,829 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9bba23a0-54ca-440c-9951-83a531ba0858
2026-02-08 19:09:50,836 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/59c17ae0-b7fe-4860-8e24-059cd47c43bc
2026-02-08 19:09:50,851 - INFO - Verified VN network id 12 for VN 9bba23a0-54ca-440c-9951-83a531ba0858
2026-02-08 19:09:50,851 - INFO - Verifications in API Server for VN ctest-vn-70654566 passed
2026-02-08 19:09:50,851 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9bba23a0-54ca-440c-9951-83a531ba0858
2026-02-08 19:09:50,861 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/59c17ae0-b7fe-4860-8e24-059cd47c43bc
2026-02-08 19:09:50,867 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/59c17ae0-b7fe-4860-8e24-059cd47c43bc
2026-02-08 19:09:50,873 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/03f4d9a5-cf37-4151-a521-e7d8e336af23
2026-02-08 19:09:50,883 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40982571:ctest-vn-70654566', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40982571', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11221320593071293452', 'uuid-lslong': '11047756106443655256'}, 'enable': 'true', 'created': '2026-02-08T19:09:48', 'last-modified': '2026-02-08T19:09:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944826'}
2026-02-08 19:09:50,890 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-08 19:09:50,890 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70654566 passed
2026-02-08 19:09:50,890 - DEBUG - ====Verifying policy data for ctest-vn-70654566 in API_Server ======
2026-02-08 19:09:50,890 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-02-08 19:09:50,895 - DEBUG - Requesting: http://10.0.0.249:8082/domain/90687d1f-de58-44e3-9156-30fe74f161e1
2026-02-08 19:09:50,905 - DEBUG - Requesting: http://10.0.0.249:8082/project/77821de6-13b0-4bfb-9314-d9f35ade650a
2026-02-08 19:09:50,974 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9bba23a0-54ca-440c-9951-83a531ba0858
2026-02-08 19:09:50,984 - DEBUG - ==>Verifying data for policy with id: b3ed56cf-b3f2-4cbc-b7a9-3a427b47bd0d, fqn: ['default-domain', 'ctest-TestBasicPolicy-40982571', 'ctest-policy-allow-all-44250909']
2026-02-08 19:09:50,984 - INFO - VN ctest-vn-70654566 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-08 19:09:50,984 - DEBUG - Verifying the vn in opserver
2026-02-08 19:09:50,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40982571:ctest-vn-70654566 virtual network link through opserver 10.0.0.249
2026-02-08 19:09:50,984 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-02-08 19:09:51,301 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-02-08 19:09:51,373 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40982571:ctest-vn-70654566', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40982571:ctest-vn-70654566?flat'}
2026-02-08 19:09:51,373 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40982571:ctest-vn-70654566 is found in opserver
2026-02-08 19:09:51,384 - DEBUG - Do not have enough data to verify VN in agent
2026-02-08 19:09:51,388 - DEBUG - VRF ids for VN ctest-vn-70654566: {}
2026-02-08 19:09:51,388 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-02-08 19:09:51,394 - DEBUG - Requesting: http://10.0.0.249:8082/domain/90687d1f-de58-44e3-9156-30fe74f161e1
2026-02-08 19:09:51,404 - DEBUG - Requesting: http://10.0.0.249:8082/project/77821de6-13b0-4bfb-9314-d9f35ade650a
2026-02-08 19:09:51,480 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3bf41f9d-6fa5-4068-b867-acde1b392b44
2026-02-08 19:09:51,492 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3bf41f9d-6fa5-4068-b867-acde1b392b44
2026-02-08 19:09:51,501 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/607608c3-7d45-46ea-9905-b092df64956f
2026-02-08 19:09:51,508 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/607608c3-7d45-46ea-9905-b092df64956f
2026-02-08 19:09:51,514 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b4e581b7-d1d5-486f-bbfe-3b48b02491a1
2026-02-08 19:09:51,521 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-08 19:09:51,522 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3bf41f9d-6fa5-4068-b867-acde1b392b44
2026-02-08 19:09:51,530 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/607608c3-7d45-46ea-9905-b092df64956f
2026-02-08 19:09:51,542 - INFO - Verified VN network id 13 for VN 3bf41f9d-6fa5-4068-b867-acde1b392b44
2026-02-08 19:09:51,542 - INFO - Verifications in API Server for VN ctest-vn-61536426 passed
2026-02-08 19:09:51,543 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3bf41f9d-6fa5-4068-b867-acde1b392b44
2026-02-08 19:09:51,551 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/607608c3-7d45-46ea-9905-b092df64956f
2026-02-08 19:09:51,559 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/607608c3-7d45-46ea-9905-b092df64956f
2026-02-08 19:09:51,565 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b4e581b7-d1d5-486f-bbfe-3b48b02491a1
2026-02-08 19:09:51,580 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40982571:ctest-vn-61536426', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40982571', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4320112703598575720', 'uuid-lslong': '13287779295519386436'}, 'enable': 'true', 'created': '2026-02-08T19:09:49', 'last-modified': '2026-02-08T19:09:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.414955'}
2026-02-08 19:09:51,585 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-08 19:09:51,585 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61536426 passed
2026-02-08 19:09:51,586 - DEBUG - ====Verifying policy data for ctest-vn-61536426 in API_Server ======
2026-02-08 19:09:51,586 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-02-08 19:09:51,592 - DEBUG - Requesting: http://10.0.0.249:8082/domain/90687d1f-de58-44e3-9156-30fe74f161e1
2026-02-08 19:09:51,603 - DEBUG - Requesting: http://10.0.0.249:8082/project/77821de6-13b0-4bfb-9314-d9f35ade650a
2026-02-08 19:09:51,671 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3bf41f9d-6fa5-4068-b867-acde1b392b44
2026-02-08 19:09:51,682 - DEBUG - ==>Verifying data for policy with id: b3ed56cf-b3f2-4cbc-b7a9-3a427b47bd0d, fqn: ['default-domain', 'ctest-TestBasicPolicy-40982571', 'ctest-policy-allow-all-44250909']
2026-02-08 19:09:51,682 - INFO - VN ctest-vn-61536426 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-08 19:09:51,682 - DEBUG - Verifying the vn in opserver
2026-02-08 19:09:51,682 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40982571:ctest-vn-61536426 virtual network link through opserver 10.0.0.249
2026-02-08 19:09:51,682 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-02-08 19:09:51,693 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40982571:ctest-vn-61536426', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40982571:ctest-vn-61536426?flat'}
2026-02-08 19:09:51,693 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40982571:ctest-vn-61536426 is found in opserver
2026-02-08 19:09:51,704 - DEBUG - Do not have enough data to verify VN in agent
2026-02-08 19:09:51,710 - DEBUG - VRF ids for VN ctest-vn-61536426: {}
2026-02-08 19:09:51,773 - DEBUG - Services list from nova: [