2026-04-28 14:57:00,287 - INFO - Domain Default found not creating
2026-04-28 14:57:00,478 - INFO - Project ctest-TestBasicPolicy-64976671 not found, creating it
2026-04-28 14:57:01,004 - INFO - Created Project:ctest-TestBasicPolicy-64976671, ID : 5fb60fac-e14b-4fbf-ac30-e4963d2157b8
2026-04-28 14:57:02,585 - INFO - ================================================================================
2026-04-28 14:57:02,585 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-28 14:57:02,585 - 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-04-28 14:57:02,838 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-28 14:57:02,838 - INFO - Initial checks done. Running the testcase now
2026-04-28 14:57:02,838 - INFO -
2026-04-28 14:57:03,414 - DEBUG - Response for create_network : {'network': {'id': '99277b4e-913a-4454-aca2-4f610845d361', 'name': 'ctest-vn-88341003', 'tenant_id': '5fb60face14b4fbfac30e4963d2157b8', 'project_id': '5fb60face14b4fbfac30e4963d2157b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64976671', 'ctest-vn-88341003'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 14:57:03,589 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ed7b359-af2e-4817-b7bb-305ec6ff12f6', 'name': '', 'tenant_id': '5fb60face14b4fbfac30e4963d2157b8', 'network_id': '99277b4e-913a-4454-aca2-4f610845d361', 'ip_version': 4, 'cidr': '211.0.168.128/26', 'allocation_pools': [{'start': '211.0.168.130', 'end': '211.0.168.190'}], 'gateway_ip': '211.0.168.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.0.168.130', 'tags': [], 'project_id': '5fb60face14b4fbfac30e4963d2157b8'}}
2026-04-28 14:57:03,608 - INFO - Created VN ctest-vn-88341003
2026-04-28 14:57:03,660 - DEBUG - VN ctest-vn-88341003 UUID is 99277b4e-913a-4454-aca2-4f610845d361
2026-04-28 14:57:03,976 - DEBUG - Response for create_network : {'network': {'id': 'c25c755f-4b2b-4315-90b8-e881484e507b', 'name': 'ctest-vn-56691878', 'tenant_id': '5fb60face14b4fbfac30e4963d2157b8', 'project_id': '5fb60face14b4fbfac30e4963d2157b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64976671', 'ctest-vn-56691878'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 14:57:04,228 - DEBUG - Response for create_subnet : {'subnet': {'id': '29ceb7c1-eb64-4334-98f4-e47f0eda2d89', 'name': '', 'tenant_id': '5fb60face14b4fbfac30e4963d2157b8', 'network_id': 'c25c755f-4b2b-4315-90b8-e881484e507b', 'ip_version': 4, 'cidr': '109.161.112.64/26', 'allocation_pools': [{'start': '109.161.112.66', 'end': '109.161.112.126'}], 'gateway_ip': '109.161.112.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.161.112.66', 'tags': [], 'project_id': '5fb60face14b4fbfac30e4963d2157b8'}}
2026-04-28 14:57:04,250 - INFO - Created VN ctest-vn-56691878
2026-04-28 14:57:04,304 - DEBUG - VN ctest-vn-56691878 UUID is c25c755f-4b2b-4315-90b8-e881484e507b
2026-04-28 14:57:04,436 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64976671:ctest-vn-88341003, 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-64976671:ctest-vn-56691878, 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-04-28 14:57:04,754 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99277b4e-913a-4454-aca2-4f610845d361', 'name': 'ctest-vn-88341003', 'tenant_id': '5fb60face14b4fbfac30e4963d2157b8', 'project_id': '5fb60face14b4fbfac30e4963d2157b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ed7b359-af2e-4817-b7bb-305ec6ff12f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64976671', 'ctest-vn-88341003'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64976671', 'ctest-policy-allow-all-38420949']], 'subnet_ipam': [{'subnet_cidr': '211.0.168.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 14:57:04,977 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c25c755f-4b2b-4315-90b8-e881484e507b', 'name': 'ctest-vn-56691878', 'tenant_id': '5fb60face14b4fbfac30e4963d2157b8', 'project_id': '5fb60face14b4fbfac30e4963d2157b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['29ceb7c1-eb64-4334-98f4-e47f0eda2d89'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64976671', 'ctest-vn-56691878'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64976671', 'ctest-policy-allow-all-38420949']], 'subnet_ipam': [{'subnet_cidr': '109.161.112.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 14:57:05,144 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-28 14:57:05,441 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-28 14:57:05,476 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0b4ccab4-0a8d-4512-af6f-d7e959bacc86
2026-04-28 14:57:05,488 - DEBUG - Requesting: http://10.0.0.50:8082/project/5fb60fac-e14b-4fbf-ac30-e4963d2157b8
2026-04-28 14:57:05,560 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/99277b4e-913a-4454-aca2-4f610845d361
2026-04-28 14:57:05,572 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/99277b4e-913a-4454-aca2-4f610845d361
2026-04-28 14:57:05,582 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb6db167-525d-49d7-8d3e-fb21a2960405
2026-04-28 14:57:05,590 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb6db167-525d-49d7-8d3e-fb21a2960405
2026-04-28 14:57:05,597 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8f5ec1af-a746-4d23-babf-48dc1e2dff65
2026-04-28 14:57:05,604 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 14:57:05,604 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/99277b4e-913a-4454-aca2-4f610845d361
2026-04-28 14:57:05,614 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb6db167-525d-49d7-8d3e-fb21a2960405
2026-04-28 14:57:05,629 - INFO - Verified VN network id 12 for VN 99277b4e-913a-4454-aca2-4f610845d361
2026-04-28 14:57:05,629 - INFO - Verifications in API Server for VN ctest-vn-88341003 passed
2026-04-28 14:57:05,629 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/99277b4e-913a-4454-aca2-4f610845d361
2026-04-28 14:57:05,640 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb6db167-525d-49d7-8d3e-fb21a2960405
2026-04-28 14:57:05,648 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb6db167-525d-49d7-8d3e-fb21a2960405
2026-04-28 14:57:05,656 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8f5ec1af-a746-4d23-babf-48dc1e2dff65
2026-04-28 14:57:05,671 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64976671:ctest-vn-88341003', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64976671', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11035924989268870228', 'uuid-lslong': '12439592398919947105'}, 'enable': 'true', 'created': '2026-04-28T14:57:03', 'last-modified': '2026-04-28T14:57:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.945807'}
2026-04-28 14:57:05,679 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 14:57:05,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88341003 passed
2026-04-28 14:57:05,680 - DEBUG - ====Verifying policy data for ctest-vn-88341003 in API_Server ======
2026-04-28 14:57:05,680 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-28 14:57:05,686 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0b4ccab4-0a8d-4512-af6f-d7e959bacc86
2026-04-28 14:57:05,698 - DEBUG - Requesting: http://10.0.0.50:8082/project/5fb60fac-e14b-4fbf-ac30-e4963d2157b8
2026-04-28 14:57:05,771 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/99277b4e-913a-4454-aca2-4f610845d361
2026-04-28 14:57:05,781 - DEBUG - ==>Verifying data for policy with id: 4c2a9891-6712-4857-8f10-7fad25a6f88b, fqn: ['default-domain', 'ctest-TestBasicPolicy-64976671', 'ctest-policy-allow-all-38420949']
2026-04-28 14:57:05,781 - INFO - VN ctest-vn-88341003 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 14:57:05,781 - DEBUG - Verifying the vn in opserver
2026-04-28 14:57:05,781 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64976671:ctest-vn-88341003 virtual network link through opserver 10.0.0.50
2026-04-28 14:57:05,781 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-28 14:57:06,077 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-28 14:57:06,142 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64976671:ctest-vn-88341003', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64976671:ctest-vn-88341003?flat'}
2026-04-28 14:57:06,142 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64976671:ctest-vn-88341003 is found in opserver
2026-04-28 14:57:06,152 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 14:57:06,157 - DEBUG - VRF ids for VN ctest-vn-88341003: {}
2026-04-28 14:57:06,157 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-28 14:57:06,163 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0b4ccab4-0a8d-4512-af6f-d7e959bacc86
2026-04-28 14:57:06,175 - DEBUG - Requesting: http://10.0.0.50:8082/project/5fb60fac-e14b-4fbf-ac30-e4963d2157b8
2026-04-28 14:57:06,248 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c25c755f-4b2b-4315-90b8-e881484e507b
2026-04-28 14:57:06,259 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c25c755f-4b2b-4315-90b8-e881484e507b
2026-04-28 14:57:06,268 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24ea29bf-d472-479b-95eb-0bac32c303ca
2026-04-28 14:57:06,276 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24ea29bf-d472-479b-95eb-0bac32c303ca
2026-04-28 14:57:06,283 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1d5782d6-e772-4b5e-9c5a-82d49bd151ad
2026-04-28 14:57:06,290 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 14:57:06,290 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c25c755f-4b2b-4315-90b8-e881484e507b
2026-04-28 14:57:06,299 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24ea29bf-d472-479b-95eb-0bac32c303ca
2026-04-28 14:57:06,314 - INFO - Verified VN network id 13 for VN c25c755f-4b2b-4315-90b8-e881484e507b
2026-04-28 14:57:06,315 - INFO - Verifications in API Server for VN ctest-vn-56691878 passed
2026-04-28 14:57:06,315 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c25c755f-4b2b-4315-90b8-e881484e507b
2026-04-28 14:57:06,325 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24ea29bf-d472-479b-95eb-0bac32c303ca
2026-04-28 14:57:06,332 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24ea29bf-d472-479b-95eb-0bac32c303ca
2026-04-28 14:57:06,339 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1d5782d6-e772-4b5e-9c5a-82d49bd151ad
2026-04-28 14:57:06,352 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64976671:ctest-vn-56691878', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64976671', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14005197993358869269', 'uuid-lslong': '10428340579137900667'}, 'enable': 'true', 'created': '2026-04-28T14:57:03', 'last-modified': '2026-04-28T14:57:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.394346'}
2026-04-28 14:57:06,358 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 14:57:06,358 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56691878 passed
2026-04-28 14:57:06,358 - DEBUG - ====Verifying policy data for ctest-vn-56691878 in API_Server ======
2026-04-28 14:57:06,358 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-28 14:57:06,364 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0b4ccab4-0a8d-4512-af6f-d7e959bacc86
2026-04-28 14:57:06,374 - DEBUG - Requesting: http://10.0.0.50:8082/project/5fb60fac-e14b-4fbf-ac30-e4963d2157b8
2026-04-28 14:57:06,448 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c25c755f-4b2b-4315-90b8-e881484e507b
2026-04-28 14:57:06,458 - DEBUG - ==>Verifying data for policy with id: 4c2a9891-6712-4857-8f10-7fad25a6f88b, fqn: ['default-domain', 'ctest-TestBasicPolicy-64976671', 'ctest-policy-allow-all-38420949']
2026-04-28 14:57:06,458 - INFO - VN ctest-vn-56691878 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 14:57:06,458 - DEBUG - Verifying the vn in opserver
2026-04-28 14:57:06,458 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64976671:ctest-vn-56691878 virtual network link through opserver 10.0.0.50
2026-04-28 14:57:06,458 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-28 14:57:06,469 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64976671:ctest-vn-56691878', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64976671:ctest-vn-56691878?flat'}
2026-04-28 14:57:06,469 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64976671:ctest-vn-56691878 is found in opserver
2026-04-28 14:57:06,478 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 14:57:06,483 - DEBUG - VRF ids for VN ctest-vn-56691878: {}
2026-04-28 14:57:06,547 - DEBUG - Services list from nova: [