2026-01-30 21:24:20,092 - INFO - Domain Default found not creating
2026-01-30 21:24:20,239 - INFO - Project ctest-TestBasicPolicy-52558305 not found, creating it
2026-01-30 21:24:20,672 - INFO - Created Project:ctest-TestBasicPolicy-52558305, ID : ce5015fe-ff6a-46e1-9f4c-ce01f62b0537
2026-01-30 21:24:22,702 - INFO - ================================================================================
2026-01-30 21:24:22,702 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-30 21:24:22,702 - 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-30 21:24:22,961 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-01-30 21:24:22,961 - INFO - Initial checks done. Running the testcase now
2026-01-30 21:24:22,961 - INFO -
2026-01-30 21:24:23,485 - DEBUG - Response for create_network : {'network': {'id': '2c75d6a1-dc1b-4c34-bb23-f2b0b944f594', 'name': 'ctest-vn-23295418', 'tenant_id': 'ce5015feff6a46e19f4cce01f62b0537', 'project_id': 'ce5015feff6a46e19f4cce01f62b0537', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52558305', 'ctest-vn-23295418'], 'port_security_enabled': True, 'description': ''}}
2026-01-30 21:24:23,710 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4b1fe7b-5719-41b6-8be5-5719df62d591', 'name': '', 'tenant_id': 'ce5015feff6a46e19f4cce01f62b0537', 'network_id': '2c75d6a1-dc1b-4c34-bb23-f2b0b944f594', 'ip_version': 4, 'cidr': '27.214.134.0/26', 'allocation_pools': [{'start': '27.214.134.2', 'end': '27.214.134.62'}], 'gateway_ip': '27.214.134.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.214.134.2', 'tags': [], 'project_id': 'ce5015feff6a46e19f4cce01f62b0537'}}
2026-01-30 21:24:23,726 - INFO - Created VN ctest-vn-23295418
2026-01-30 21:24:23,776 - DEBUG - VN ctest-vn-23295418 UUID is 2c75d6a1-dc1b-4c34-bb23-f2b0b944f594
2026-01-30 21:24:24,082 - DEBUG - Response for create_network : {'network': {'id': 'a1b31067-88c6-4ad8-be9b-d82568abe5df', 'name': 'ctest-vn-47693234', 'tenant_id': 'ce5015feff6a46e19f4cce01f62b0537', 'project_id': 'ce5015feff6a46e19f4cce01f62b0537', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52558305', 'ctest-vn-47693234'], 'port_security_enabled': True, 'description': ''}}
2026-01-30 21:24:24,273 - DEBUG - Response for create_subnet : {'subnet': {'id': '561517c2-1727-4fd2-882d-caea12746e22', 'name': '', 'tenant_id': 'ce5015feff6a46e19f4cce01f62b0537', 'network_id': 'a1b31067-88c6-4ad8-be9b-d82568abe5df', 'ip_version': 4, 'cidr': '122.201.23.0/26', 'allocation_pools': [{'start': '122.201.23.2', 'end': '122.201.23.62'}], 'gateway_ip': '122.201.23.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.201.23.2', 'tags': [], 'project_id': 'ce5015feff6a46e19f4cce01f62b0537'}}
2026-01-30 21:24:24,288 - INFO - Created VN ctest-vn-47693234
2026-01-30 21:24:24,340 - DEBUG - VN ctest-vn-47693234 UUID is a1b31067-88c6-4ad8-be9b-d82568abe5df
2026-01-30 21:24:24,484 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52558305:ctest-vn-23295418, 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-52558305:ctest-vn-47693234, 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-30 21:24:24,765 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c75d6a1-dc1b-4c34-bb23-f2b0b944f594', 'name': 'ctest-vn-23295418', 'tenant_id': 'ce5015feff6a46e19f4cce01f62b0537', 'project_id': 'ce5015feff6a46e19f4cce01f62b0537', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4b1fe7b-5719-41b6-8be5-5719df62d591'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52558305', 'ctest-vn-23295418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52558305', 'ctest-policy-allow-all-03296932']], 'subnet_ipam': [{'subnet_cidr': '27.214.134.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-30 21:24:25,016 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1b31067-88c6-4ad8-be9b-d82568abe5df', 'name': 'ctest-vn-47693234', 'tenant_id': 'ce5015feff6a46e19f4cce01f62b0537', 'project_id': 'ce5015feff6a46e19f4cce01f62b0537', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['561517c2-1727-4fd2-882d-caea12746e22'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52558305', 'ctest-vn-47693234'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52558305', 'ctest-policy-allow-all-03296932']], 'subnet_ipam': [{'subnet_cidr': '122.201.23.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-30 21:24:25,168 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-30 21:24:25,468 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-30 21:24:25,497 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f10ea38e-0fc2-49c8-a111-4fedd436e4f0
2026-01-30 21:24:25,508 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce5015fe-ff6a-46e1-9f4c-ce01f62b0537
2026-01-30 21:24:25,578 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c75d6a1-dc1b-4c34-bb23-f2b0b944f594
2026-01-30 21:24:25,587 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c75d6a1-dc1b-4c34-bb23-f2b0b944f594
2026-01-30 21:24:25,595 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c2e999e-8d36-4ccd-ad5d-f4ee793998f2
2026-01-30 21:24:25,601 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c2e999e-8d36-4ccd-ad5d-f4ee793998f2
2026-01-30 21:24:25,607 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/73979303-c868-40d9-a256-edbee989c6a4
2026-01-30 21:24:25,613 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-30 21:24:25,613 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c75d6a1-dc1b-4c34-bb23-f2b0b944f594
2026-01-30 21:24:25,622 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c2e999e-8d36-4ccd-ad5d-f4ee793998f2
2026-01-30 21:24:25,635 - INFO - Verified VN network id 11 for VN 2c75d6a1-dc1b-4c34-bb23-f2b0b944f594
2026-01-30 21:24:25,635 - INFO - Verifications in API Server for VN ctest-vn-23295418 passed
2026-01-30 21:24:25,636 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c75d6a1-dc1b-4c34-bb23-f2b0b944f594
2026-01-30 21:24:25,645 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c2e999e-8d36-4ccd-ad5d-f4ee793998f2
2026-01-30 21:24:25,652 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c2e999e-8d36-4ccd-ad5d-f4ee793998f2
2026-01-30 21:24:25,658 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/73979303-c868-40d9-a256-edbee989c6a4
2026-01-30 21:24:25,669 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52558305:ctest-vn-23295418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52558305', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3203702700614831156', 'uuid-lslong': '13484888550113867156'}, 'enable': 'true', 'created': '2026-01-30T21:24:23', 'last-modified': '2026-01-30T21:24:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924916'}
2026-01-30 21:24:25,674 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-30 21:24:25,674 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23295418 passed
2026-01-30 21:24:25,674 - DEBUG - ====Verifying policy data for ctest-vn-23295418 in API_Server ======
2026-01-30 21:24:25,675 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-30 21:24:25,679 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f10ea38e-0fc2-49c8-a111-4fedd436e4f0
2026-01-30 21:24:25,688 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce5015fe-ff6a-46e1-9f4c-ce01f62b0537
2026-01-30 21:24:25,754 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2c75d6a1-dc1b-4c34-bb23-f2b0b944f594
2026-01-30 21:24:25,762 - DEBUG - ==>Verifying data for policy with id: 40c4e87f-ecb1-4ccb-bb3f-70a8fa36a813, fqn: ['default-domain', 'ctest-TestBasicPolicy-52558305', 'ctest-policy-allow-all-03296932']
2026-01-30 21:24:25,762 - INFO - VN ctest-vn-23295418 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-30 21:24:25,763 - DEBUG - Verifying the vn in opserver
2026-01-30 21:24:25,763 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52558305:ctest-vn-23295418 virtual network link through opserver 10.0.0.38
2026-01-30 21:24:25,763 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-30 21:24:26,051 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-30 21:24:26,101 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52558305:ctest-vn-23295418', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52558305:ctest-vn-23295418?flat'}
2026-01-30 21:24:26,101 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52558305:ctest-vn-23295418 is found in opserver
2026-01-30 21:24:26,109 - DEBUG - Do not have enough data to verify VN in agent
2026-01-30 21:24:26,113 - DEBUG - VRF ids for VN ctest-vn-23295418: {}
2026-01-30 21:24:26,113 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-30 21:24:26,117 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f10ea38e-0fc2-49c8-a111-4fedd436e4f0
2026-01-30 21:24:26,126 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce5015fe-ff6a-46e1-9f4c-ce01f62b0537
2026-01-30 21:24:26,192 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a1b31067-88c6-4ad8-be9b-d82568abe5df
2026-01-30 21:24:26,203 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a1b31067-88c6-4ad8-be9b-d82568abe5df
2026-01-30 21:24:26,211 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/62523c86-fce8-474c-8060-6d411d34f9a3
2026-01-30 21:24:26,216 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/62523c86-fce8-474c-8060-6d411d34f9a3
2026-01-30 21:24:26,220 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dfb48a53-3790-4a36-8570-423f3d5365b4
2026-01-30 21:24:26,225 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-30 21:24:26,225 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a1b31067-88c6-4ad8-be9b-d82568abe5df
2026-01-30 21:24:26,231 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/62523c86-fce8-474c-8060-6d411d34f9a3
2026-01-30 21:24:26,241 - INFO - Verified VN network id 12 for VN a1b31067-88c6-4ad8-be9b-d82568abe5df
2026-01-30 21:24:26,241 - INFO - Verifications in API Server for VN ctest-vn-47693234 passed
2026-01-30 21:24:26,241 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a1b31067-88c6-4ad8-be9b-d82568abe5df
2026-01-30 21:24:26,248 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/62523c86-fce8-474c-8060-6d411d34f9a3
2026-01-30 21:24:26,253 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/62523c86-fce8-474c-8060-6d411d34f9a3
2026-01-30 21:24:26,258 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dfb48a53-3790-4a36-8570-423f3d5365b4
2026-01-30 21:24:26,266 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52558305:ctest-vn-47693234', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52558305', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11651674697799977688', 'uuid-lslong': '13734809143777945055'}, 'enable': 'true', 'created': '2026-01-30T21:24:24', 'last-modified': '2026-01-30T21:24:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.273465'}
2026-01-30 21:24:26,271 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-30 21:24:26,271 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47693234 passed
2026-01-30 21:24:26,271 - DEBUG - ====Verifying policy data for ctest-vn-47693234 in API_Server ======
2026-01-30 21:24:26,271 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-30 21:24:26,276 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f10ea38e-0fc2-49c8-a111-4fedd436e4f0
2026-01-30 21:24:26,284 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce5015fe-ff6a-46e1-9f4c-ce01f62b0537
2026-01-30 21:24:26,350 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a1b31067-88c6-4ad8-be9b-d82568abe5df
2026-01-30 21:24:26,357 - DEBUG - ==>Verifying data for policy with id: 40c4e87f-ecb1-4ccb-bb3f-70a8fa36a813, fqn: ['default-domain', 'ctest-TestBasicPolicy-52558305', 'ctest-policy-allow-all-03296932']
2026-01-30 21:24:26,357 - INFO - VN ctest-vn-47693234 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-30 21:24:26,357 - DEBUG - Verifying the vn in opserver
2026-01-30 21:24:26,357 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52558305:ctest-vn-47693234 virtual network link through opserver 10.0.0.38
2026-01-30 21:24:26,357 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-30 21:24:26,365 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52558305:ctest-vn-47693234', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52558305:ctest-vn-47693234?flat'}
2026-01-30 21:24:26,365 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52558305:ctest-vn-47693234 is found in opserver
2026-01-30 21:24:26,373 - DEBUG - Do not have enough data to verify VN in agent
2026-01-30 21:24:26,377 - DEBUG - VRF ids for VN ctest-vn-47693234: {}
2026-01-30 21:24:26,430 - DEBUG - Services list from nova: [