2026-01-01 17:30:49,014 - INFO - Domain Default found not creating
2026-01-01 17:30:49,195 - INFO - Project ctest-TestBasicPolicy-53249026 not found, creating it
2026-01-01 17:30:49,681 - INFO - Created Project:ctest-TestBasicPolicy-53249026, ID : 6d97f5b8-6c06-4dcc-8687-9e44a8f38990
2026-01-01 17:30:51,234 - INFO - ================================================================================
2026-01-01 17:30:51,234 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-01 17:30:51,234 - 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-01 17:30:51,497 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2026-01-01 17:30:51,497 - INFO - Initial checks done. Running the testcase now
2026-01-01 17:30:51,497 - INFO -
2026-01-01 17:30:52,103 - DEBUG - Response for create_network : {'network': {'id': '5fb32aeb-74b4-4c8c-91a8-4c03f39bc457', 'name': 'ctest-vn-12665070', 'tenant_id': '6d97f5b86c064dcc86879e44a8f38990', 'project_id': '6d97f5b86c064dcc86879e44a8f38990', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53249026', 'ctest-vn-12665070'], 'port_security_enabled': True, 'description': ''}}
2026-01-01 17:30:52,312 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c325ca35-390a-4710-a807-91290b7a29b4', 'name': '', 'tenant_id': '6d97f5b86c064dcc86879e44a8f38990', 'network_id': '5fb32aeb-74b4-4c8c-91a8-4c03f39bc457', 'ip_version': 4, 'cidr': '61.51.187.64/26', 'allocation_pools': [{'start': '61.51.187.66', 'end': '61.51.187.126'}], 'gateway_ip': '61.51.187.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.51.187.66', 'tags': [], 'project_id': '6d97f5b86c064dcc86879e44a8f38990'}}
2026-01-01 17:30:52,332 - INFO - Created VN ctest-vn-12665070
2026-01-01 17:30:52,387 - DEBUG - VN ctest-vn-12665070 UUID is 5fb32aeb-74b4-4c8c-91a8-4c03f39bc457
2026-01-01 17:30:52,683 - DEBUG - Response for create_network : {'network': {'id': '2075605d-4138-4bb2-935c-0a6e3603fe8b', 'name': 'ctest-vn-08726850', 'tenant_id': '6d97f5b86c064dcc86879e44a8f38990', 'project_id': '6d97f5b86c064dcc86879e44a8f38990', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53249026', 'ctest-vn-08726850'], 'port_security_enabled': True, 'description': ''}}
2026-01-01 17:30:52,883 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7cba739-c68a-4f9d-8434-8a2adaaf8013', 'name': '', 'tenant_id': '6d97f5b86c064dcc86879e44a8f38990', 'network_id': '2075605d-4138-4bb2-935c-0a6e3603fe8b', 'ip_version': 4, 'cidr': '184.123.109.0/26', 'allocation_pools': [{'start': '184.123.109.2', 'end': '184.123.109.62'}], 'gateway_ip': '184.123.109.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.123.109.2', 'tags': [], 'project_id': '6d97f5b86c064dcc86879e44a8f38990'}}
2026-01-01 17:30:52,902 - INFO - Created VN ctest-vn-08726850
2026-01-01 17:30:52,958 - DEBUG - VN ctest-vn-08726850 UUID is 2075605d-4138-4bb2-935c-0a6e3603fe8b
2026-01-01 17:30:53,088 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53249026:ctest-vn-12665070, 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-53249026:ctest-vn-08726850, 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-01 17:30:53,415 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5fb32aeb-74b4-4c8c-91a8-4c03f39bc457', 'name': 'ctest-vn-12665070', 'tenant_id': '6d97f5b86c064dcc86879e44a8f38990', 'project_id': '6d97f5b86c064dcc86879e44a8f38990', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c325ca35-390a-4710-a807-91290b7a29b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53249026', 'ctest-vn-12665070'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53249026', 'ctest-policy-allow-all-00590875']], 'subnet_ipam': [{'subnet_cidr': '61.51.187.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-01 17:30:53,652 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2075605d-4138-4bb2-935c-0a6e3603fe8b', 'name': 'ctest-vn-08726850', 'tenant_id': '6d97f5b86c064dcc86879e44a8f38990', 'project_id': '6d97f5b86c064dcc86879e44a8f38990', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7cba739-c68a-4f9d-8434-8a2adaaf8013'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53249026', 'ctest-vn-08726850'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53249026', 'ctest-policy-allow-all-00590875']], 'subnet_ipam': [{'subnet_cidr': '184.123.109.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-01 17:30:53,814 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-01 17:30:54,117 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-01 17:30:54,155 - DEBUG - Requesting: http://10.0.0.249:8082/domain/539e2317-9ac9-4fd7-828d-2a4aacad0769
2026-01-01 17:30:54,179 - DEBUG - Requesting: http://10.0.0.249:8082/project/6d97f5b8-6c06-4dcc-8687-9e44a8f38990
2026-01-01 17:30:54,266 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5fb32aeb-74b4-4c8c-91a8-4c03f39bc457
2026-01-01 17:30:54,279 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5fb32aeb-74b4-4c8c-91a8-4c03f39bc457
2026-01-01 17:30:54,288 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c6d17375-268d-4ec5-8c4f-fbbe19a457ec
2026-01-01 17:30:54,297 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c6d17375-268d-4ec5-8c4f-fbbe19a457ec
2026-01-01 17:30:54,309 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0cced062-9cba-48c9-98f9-161ef3a50b1c
2026-01-01 17:30:54,316 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-01 17:30:54,316 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5fb32aeb-74b4-4c8c-91a8-4c03f39bc457
2026-01-01 17:30:54,327 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c6d17375-268d-4ec5-8c4f-fbbe19a457ec
2026-01-01 17:30:54,343 - INFO - Verified VN network id 11 for VN 5fb32aeb-74b4-4c8c-91a8-4c03f39bc457
2026-01-01 17:30:54,343 - INFO - Verifications in API Server for VN ctest-vn-12665070 passed
2026-01-01 17:30:54,343 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5fb32aeb-74b4-4c8c-91a8-4c03f39bc457
2026-01-01 17:30:54,353 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c6d17375-268d-4ec5-8c4f-fbbe19a457ec
2026-01-01 17:30:54,360 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c6d17375-268d-4ec5-8c4f-fbbe19a457ec
2026-01-01 17:30:54,368 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0cced062-9cba-48c9-98f9-161ef3a50b1c
2026-01-01 17:30:54,380 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53249026:ctest-vn-12665070', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53249026', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6895902645198015628', 'uuid-lslong': '10495722511442625623'}, 'enable': 'true', 'created': '2026-01-01T17:30:52', 'last-modified': '2026-01-01T17:30:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993164'}
2026-01-01 17:30:54,387 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-01 17:30:54,387 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12665070 passed
2026-01-01 17:30:54,387 - DEBUG - ====Verifying policy data for ctest-vn-12665070 in API_Server ======
2026-01-01 17:30:54,387 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-01 17:30:54,394 - DEBUG - Requesting: http://10.0.0.249:8082/domain/539e2317-9ac9-4fd7-828d-2a4aacad0769
2026-01-01 17:30:54,406 - DEBUG - Requesting: http://10.0.0.249:8082/project/6d97f5b8-6c06-4dcc-8687-9e44a8f38990
2026-01-01 17:30:54,490 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5fb32aeb-74b4-4c8c-91a8-4c03f39bc457
2026-01-01 17:30:54,501 - DEBUG - ==>Verifying data for policy with id: f9829573-bf50-41d3-a86c-3a0380081ea4, fqn: ['default-domain', 'ctest-TestBasicPolicy-53249026', 'ctest-policy-allow-all-00590875']
2026-01-01 17:30:54,501 - INFO - VN ctest-vn-12665070 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-01 17:30:54,501 - DEBUG - Verifying the vn in opserver
2026-01-01 17:30:54,502 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53249026:ctest-vn-12665070 virtual network link through opserver 10.0.0.249
2026-01-01 17:30:54,502 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-01-01 17:30:54,796 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-01-01 17:30:54,867 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53249026:ctest-vn-12665070', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53249026:ctest-vn-12665070?flat'}
2026-01-01 17:30:54,867 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53249026:ctest-vn-12665070 is found in opserver
2026-01-01 17:30:54,877 - DEBUG - Do not have enough data to verify VN in agent
2026-01-01 17:30:54,882 - DEBUG - VRF ids for VN ctest-vn-12665070: {}
2026-01-01 17:30:54,882 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-01 17:30:54,887 - DEBUG - Requesting: http://10.0.0.249:8082/domain/539e2317-9ac9-4fd7-828d-2a4aacad0769
2026-01-01 17:30:54,898 - DEBUG - Requesting: http://10.0.0.249:8082/project/6d97f5b8-6c06-4dcc-8687-9e44a8f38990
2026-01-01 17:30:54,971 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2075605d-4138-4bb2-935c-0a6e3603fe8b
2026-01-01 17:30:54,983 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2075605d-4138-4bb2-935c-0a6e3603fe8b
2026-01-01 17:30:54,992 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/96e41fe1-c42c-4870-9abc-a4deb2377972
2026-01-01 17:30:54,999 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/96e41fe1-c42c-4870-9abc-a4deb2377972
2026-01-01 17:30:55,007 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/3eb22596-d309-4cf4-8910-d9962bdaba8c
2026-01-01 17:30:55,015 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-01 17:30:55,015 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2075605d-4138-4bb2-935c-0a6e3603fe8b
2026-01-01 17:30:55,024 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/96e41fe1-c42c-4870-9abc-a4deb2377972
2026-01-01 17:30:55,051 - INFO - Verified VN network id 12 for VN 2075605d-4138-4bb2-935c-0a6e3603fe8b
2026-01-01 17:30:55,051 - INFO - Verifications in API Server for VN ctest-vn-08726850 passed
2026-01-01 17:30:55,051 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2075605d-4138-4bb2-935c-0a6e3603fe8b
2026-01-01 17:30:55,061 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/96e41fe1-c42c-4870-9abc-a4deb2377972
2026-01-01 17:30:55,069 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/96e41fe1-c42c-4870-9abc-a4deb2377972
2026-01-01 17:30:55,077 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/3eb22596-d309-4cf4-8910-d9962bdaba8c
2026-01-01 17:30:55,089 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53249026:ctest-vn-08726850', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53249026', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2338881535131274162', 'uuid-lslong': '10618373489901698699'}, 'enable': 'true', 'created': '2026-01-01T17:30:52', 'last-modified': '2026-01-01T17:30:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.467246'}
2026-01-01 17:30:55,095 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-01 17:30:55,095 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08726850 passed
2026-01-01 17:30:55,095 - DEBUG - ====Verifying policy data for ctest-vn-08726850 in API_Server ======
2026-01-01 17:30:55,095 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-01 17:30:55,101 - DEBUG - Requesting: http://10.0.0.249:8082/domain/539e2317-9ac9-4fd7-828d-2a4aacad0769
2026-01-01 17:30:55,112 - DEBUG - Requesting: http://10.0.0.249:8082/project/6d97f5b8-6c06-4dcc-8687-9e44a8f38990
2026-01-01 17:30:55,183 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2075605d-4138-4bb2-935c-0a6e3603fe8b
2026-01-01 17:30:55,193 - DEBUG - ==>Verifying data for policy with id: f9829573-bf50-41d3-a86c-3a0380081ea4, fqn: ['default-domain', 'ctest-TestBasicPolicy-53249026', 'ctest-policy-allow-all-00590875']
2026-01-01 17:30:55,193 - INFO - VN ctest-vn-08726850 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-01 17:30:55,193 - DEBUG - Verifying the vn in opserver
2026-01-01 17:30:55,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53249026:ctest-vn-08726850 virtual network link through opserver 10.0.0.249
2026-01-01 17:30:55,193 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-01-01 17:30:55,205 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53249026:ctest-vn-08726850', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53249026:ctest-vn-08726850?flat'}
2026-01-01 17:30:55,205 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53249026:ctest-vn-08726850 is found in opserver
2026-01-01 17:30:55,214 - DEBUG - Do not have enough data to verify VN in agent
2026-01-01 17:30:55,219 - DEBUG - VRF ids for VN ctest-vn-08726850: {}
2026-01-01 17:30:55,284 - DEBUG - Services list from nova: [