2026-01-20 19:09:38,972 - INFO - Domain Default found not creating
2026-01-20 19:09:39,158 - INFO - Project ctest-TestBasicPolicy-84822955 not found, creating it
2026-01-20 19:09:39,629 - INFO - Created Project:ctest-TestBasicPolicy-84822955, ID : e0948c34-7908-4c7c-98bf-5f6441c1ad72
2026-01-20 19:09:41,246 - INFO - ================================================================================
2026-01-20 19:09:41,247 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-20 19:09:41,247 - 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-20 19:09:41,506 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-01-20 19:09:41,506 - INFO - Initial checks done. Running the testcase now
2026-01-20 19:09:41,506 - INFO -
2026-01-20 19:09:42,104 - DEBUG - Response for create_network : {'network': {'id': '155aa686-9807-4d5b-b9cf-8bf11e2ded73', 'name': 'ctest-vn-95857223', 'tenant_id': 'e0948c3479084c7c98bf5f6441c1ad72', 'project_id': 'e0948c3479084c7c98bf5f6441c1ad72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84822955', 'ctest-vn-95857223'], 'port_security_enabled': True, 'description': ''}}
2026-01-20 19:09:42,341 - DEBUG - Response for create_subnet : {'subnet': {'id': '0ea26e4b-c244-4a67-9691-d0c0aaec72f2', 'name': '', 'tenant_id': 'e0948c3479084c7c98bf5f6441c1ad72', 'network_id': '155aa686-9807-4d5b-b9cf-8bf11e2ded73', 'ip_version': 4, 'cidr': '135.189.15.0/26', 'allocation_pools': [{'start': '135.189.15.2', 'end': '135.189.15.62'}], 'gateway_ip': '135.189.15.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.189.15.2', 'tags': [], 'project_id': 'e0948c3479084c7c98bf5f6441c1ad72'}}
2026-01-20 19:09:42,363 - INFO - Created VN ctest-vn-95857223
2026-01-20 19:09:42,416 - DEBUG - VN ctest-vn-95857223 UUID is 155aa686-9807-4d5b-b9cf-8bf11e2ded73
2026-01-20 19:09:42,701 - DEBUG - Response for create_network : {'network': {'id': '624ca889-3f1b-426f-9fff-371f7c256182', 'name': 'ctest-vn-91986544', 'tenant_id': 'e0948c3479084c7c98bf5f6441c1ad72', 'project_id': 'e0948c3479084c7c98bf5f6441c1ad72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84822955', 'ctest-vn-91986544'], 'port_security_enabled': True, 'description': ''}}
2026-01-20 19:09:42,845 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b06eb67-706a-4690-8c15-cbd5c1aee9ff', 'name': '', 'tenant_id': 'e0948c3479084c7c98bf5f6441c1ad72', 'network_id': '624ca889-3f1b-426f-9fff-371f7c256182', 'ip_version': 4, 'cidr': '194.44.232.128/26', 'allocation_pools': [{'start': '194.44.232.130', 'end': '194.44.232.190'}], 'gateway_ip': '194.44.232.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.44.232.130', 'tags': [], 'project_id': 'e0948c3479084c7c98bf5f6441c1ad72'}}
2026-01-20 19:09:42,864 - INFO - Created VN ctest-vn-91986544
2026-01-20 19:09:42,920 - DEBUG - VN ctest-vn-91986544 UUID is 624ca889-3f1b-426f-9fff-371f7c256182
2026-01-20 19:09:43,037 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84822955:ctest-vn-95857223, 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-84822955:ctest-vn-91986544, 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-20 19:09:43,341 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '155aa686-9807-4d5b-b9cf-8bf11e2ded73', 'name': 'ctest-vn-95857223', 'tenant_id': 'e0948c3479084c7c98bf5f6441c1ad72', 'project_id': 'e0948c3479084c7c98bf5f6441c1ad72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0ea26e4b-c244-4a67-9691-d0c0aaec72f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84822955', 'ctest-vn-95857223'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84822955', 'ctest-policy-allow-all-28777698']], 'subnet_ipam': [{'subnet_cidr': '135.189.15.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-20 19:09:43,577 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '624ca889-3f1b-426f-9fff-371f7c256182', 'name': 'ctest-vn-91986544', 'tenant_id': 'e0948c3479084c7c98bf5f6441c1ad72', 'project_id': 'e0948c3479084c7c98bf5f6441c1ad72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b06eb67-706a-4690-8c15-cbd5c1aee9ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84822955', 'ctest-vn-91986544'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84822955', 'ctest-policy-allow-all-28777698']], 'subnet_ipam': [{'subnet_cidr': '194.44.232.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-20 19:09:43,716 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 19:09:44,061 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 19:09:44,096 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5864c4-38c7-4d5b-ac84-039c5cb39ec8
2026-01-20 19:09:44,109 - DEBUG - Requesting: http://10.0.0.38:8082/project/e0948c34-7908-4c7c-98bf-5f6441c1ad72
2026-01-20 19:09:44,190 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/155aa686-9807-4d5b-b9cf-8bf11e2ded73
2026-01-20 19:09:44,203 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/155aa686-9807-4d5b-b9cf-8bf11e2ded73
2026-01-20 19:09:44,215 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c11956f3-76a0-44bc-8e38-8c821146aba1
2026-01-20 19:09:44,223 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c11956f3-76a0-44bc-8e38-8c821146aba1
2026-01-20 19:09:44,230 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1b3ef878-1599-403a-9303-4834ec2f947c
2026-01-20 19:09:44,237 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-20 19:09:44,237 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/155aa686-9807-4d5b-b9cf-8bf11e2ded73
2026-01-20 19:09:44,247 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c11956f3-76a0-44bc-8e38-8c821146aba1
2026-01-20 19:09:44,261 - INFO - Verified VN network id 11 for VN 155aa686-9807-4d5b-b9cf-8bf11e2ded73
2026-01-20 19:09:44,262 - INFO - Verifications in API Server for VN ctest-vn-95857223 passed
2026-01-20 19:09:44,262 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/155aa686-9807-4d5b-b9cf-8bf11e2ded73
2026-01-20 19:09:44,271 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c11956f3-76a0-44bc-8e38-8c821146aba1
2026-01-20 19:09:44,278 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c11956f3-76a0-44bc-8e38-8c821146aba1
2026-01-20 19:09:44,285 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1b3ef878-1599-403a-9303-4834ec2f947c
2026-01-20 19:09:44,297 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84822955:ctest-vn-95857223', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84822955', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1538725319706889563', 'uuid-lslong': '13389074084905479539'}, 'enable': 'true', 'created': '2026-01-20T19:09:42', 'last-modified': '2026-01-20T19:09:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980051'}
2026-01-20 19:09:44,303 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-20 19:09:44,303 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95857223 passed
2026-01-20 19:09:44,303 - DEBUG - ====Verifying policy data for ctest-vn-95857223 in API_Server ======
2026-01-20 19:09:44,303 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 19:09:44,308 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5864c4-38c7-4d5b-ac84-039c5cb39ec8
2026-01-20 19:09:44,320 - DEBUG - Requesting: http://10.0.0.38:8082/project/e0948c34-7908-4c7c-98bf-5f6441c1ad72
2026-01-20 19:09:44,392 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/155aa686-9807-4d5b-b9cf-8bf11e2ded73
2026-01-20 19:09:44,402 - DEBUG - ==>Verifying data for policy with id: 0a93b151-de06-4f3f-ab49-f991c2eef69a, fqn: ['default-domain', 'ctest-TestBasicPolicy-84822955', 'ctest-policy-allow-all-28777698']
2026-01-20 19:09:44,402 - INFO - VN ctest-vn-95857223 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-20 19:09:44,402 - DEBUG - Verifying the vn in opserver
2026-01-20 19:09:44,402 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84822955:ctest-vn-95857223 virtual network link through opserver 10.0.0.38
2026-01-20 19:09:44,403 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-20 19:09:44,741 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-20 19:09:44,810 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84822955:ctest-vn-95857223', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84822955:ctest-vn-95857223?flat'}
2026-01-20 19:09:44,810 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84822955:ctest-vn-95857223 is found in opserver
2026-01-20 19:09:44,820 - DEBUG - Do not have enough data to verify VN in agent
2026-01-20 19:09:44,825 - DEBUG - VRF ids for VN ctest-vn-95857223: {}
2026-01-20 19:09:44,825 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 19:09:44,830 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5864c4-38c7-4d5b-ac84-039c5cb39ec8
2026-01-20 19:09:44,842 - DEBUG - Requesting: http://10.0.0.38:8082/project/e0948c34-7908-4c7c-98bf-5f6441c1ad72
2026-01-20 19:09:44,913 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/624ca889-3f1b-426f-9fff-371f7c256182
2026-01-20 19:09:44,927 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/624ca889-3f1b-426f-9fff-371f7c256182
2026-01-20 19:09:44,938 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/66856876-f7ab-49b8-96ae-1c5d4b55c14f
2026-01-20 19:09:44,945 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/66856876-f7ab-49b8-96ae-1c5d4b55c14f
2026-01-20 19:09:44,952 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/57e42054-288b-4376-a102-6b7da8357093
2026-01-20 19:09:44,959 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-20 19:09:44,959 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/624ca889-3f1b-426f-9fff-371f7c256182
2026-01-20 19:09:44,968 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/66856876-f7ab-49b8-96ae-1c5d4b55c14f
2026-01-20 19:09:44,983 - INFO - Verified VN network id 12 for VN 624ca889-3f1b-426f-9fff-371f7c256182
2026-01-20 19:09:44,983 - INFO - Verifications in API Server for VN ctest-vn-91986544 passed
2026-01-20 19:09:44,983 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/624ca889-3f1b-426f-9fff-371f7c256182
2026-01-20 19:09:44,993 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/66856876-f7ab-49b8-96ae-1c5d4b55c14f
2026-01-20 19:09:45,001 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/66856876-f7ab-49b8-96ae-1c5d4b55c14f
2026-01-20 19:09:45,008 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/57e42054-288b-4376-a102-6b7da8357093
2026-01-20 19:09:45,023 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84822955:ctest-vn-91986544', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84822955', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7083221621369684591', 'uuid-lslong': '11528994179458097538'}, 'enable': 'true', 'created': '2026-01-20T19:09:42', 'last-modified': '2026-01-20T19:09:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.473171'}
2026-01-20 19:09:45,029 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-20 19:09:45,029 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91986544 passed
2026-01-20 19:09:45,029 - DEBUG - ====Verifying policy data for ctest-vn-91986544 in API_Server ======
2026-01-20 19:09:45,029 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 19:09:45,036 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5864c4-38c7-4d5b-ac84-039c5cb39ec8
2026-01-20 19:09:45,048 - DEBUG - Requesting: http://10.0.0.38:8082/project/e0948c34-7908-4c7c-98bf-5f6441c1ad72
2026-01-20 19:09:45,118 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/624ca889-3f1b-426f-9fff-371f7c256182
2026-01-20 19:09:45,128 - DEBUG - ==>Verifying data for policy with id: 0a93b151-de06-4f3f-ab49-f991c2eef69a, fqn: ['default-domain', 'ctest-TestBasicPolicy-84822955', 'ctest-policy-allow-all-28777698']
2026-01-20 19:09:45,128 - INFO - VN ctest-vn-91986544 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-20 19:09:45,128 - DEBUG - Verifying the vn in opserver
2026-01-20 19:09:45,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84822955:ctest-vn-91986544 virtual network link through opserver 10.0.0.38
2026-01-20 19:09:45,128 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-20 19:09:45,138 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84822955:ctest-vn-91986544', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84822955:ctest-vn-91986544?flat'}
2026-01-20 19:09:45,138 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84822955:ctest-vn-91986544 is found in opserver
2026-01-20 19:09:45,148 - DEBUG - Do not have enough data to verify VN in agent
2026-01-20 19:09:45,153 - DEBUG - VRF ids for VN ctest-vn-91986544: {}
2026-01-20 19:09:45,219 - DEBUG - Services list from nova: [