2026-04-21 16:48:00,065 - INFO - Domain Default found not creating
2026-04-21 16:48:00,259 - INFO - Project ctest-TestBasicPolicy-73784685 not found, creating it
2026-04-21 16:48:00,738 - INFO - Created Project:ctest-TestBasicPolicy-73784685, ID : d000dc5f-74f1-46b4-9a29-89f56ceed68d
2026-04-21 16:48:02,431 - INFO - ================================================================================
2026-04-21 16:48:02,431 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-21 16:48:02,431 - 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-21 16:48:02,703 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-21 16:48:02,703 - INFO - Initial checks done. Running the testcase now
2026-04-21 16:48:02,703 - INFO -
2026-04-21 16:48:03,341 - DEBUG - Response for create_network : {'network': {'id': '82c809c4-7000-4706-8dc2-3d37c4a08ce7', 'name': 'ctest-vn-39731253', 'tenant_id': 'd000dc5f74f146b49a2989f56ceed68d', 'project_id': 'd000dc5f74f146b49a2989f56ceed68d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73784685', 'ctest-vn-39731253'], 'port_security_enabled': True, 'description': ''}}
2026-04-21 16:48:03,561 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfe9e732-f59a-47b9-8a63-ff95f549601b', 'name': '', 'tenant_id': 'd000dc5f74f146b49a2989f56ceed68d', 'network_id': '82c809c4-7000-4706-8dc2-3d37c4a08ce7', 'ip_version': 4, 'cidr': '79.173.71.0/26', 'allocation_pools': [{'start': '79.173.71.2', 'end': '79.173.71.62'}], 'gateway_ip': '79.173.71.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.173.71.2', 'tags': [], 'project_id': 'd000dc5f74f146b49a2989f56ceed68d'}}
2026-04-21 16:48:03,582 - INFO - Created VN ctest-vn-39731253
2026-04-21 16:48:03,638 - DEBUG - VN ctest-vn-39731253 UUID is 82c809c4-7000-4706-8dc2-3d37c4a08ce7
2026-04-21 16:48:03,960 - DEBUG - Response for create_network : {'network': {'id': 'f2dcf7e0-7f32-4a0b-a1d0-734706d69d96', 'name': 'ctest-vn-31830514', 'tenant_id': 'd000dc5f74f146b49a2989f56ceed68d', 'project_id': 'd000dc5f74f146b49a2989f56ceed68d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73784685', 'ctest-vn-31830514'], 'port_security_enabled': True, 'description': ''}}
2026-04-21 16:48:04,147 - DEBUG - Response for create_subnet : {'subnet': {'id': '63290df8-2bab-4a5a-b589-0e2012e7b688', 'name': '', 'tenant_id': 'd000dc5f74f146b49a2989f56ceed68d', 'network_id': 'f2dcf7e0-7f32-4a0b-a1d0-734706d69d96', 'ip_version': 4, 'cidr': '214.182.96.64/26', 'allocation_pools': [{'start': '214.182.96.66', 'end': '214.182.96.126'}], 'gateway_ip': '214.182.96.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.182.96.66', 'tags': [], 'project_id': 'd000dc5f74f146b49a2989f56ceed68d'}}
2026-04-21 16:48:04,166 - INFO - Created VN ctest-vn-31830514
2026-04-21 16:48:04,218 - DEBUG - VN ctest-vn-31830514 UUID is f2dcf7e0-7f32-4a0b-a1d0-734706d69d96
2026-04-21 16:48:04,337 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73784685:ctest-vn-39731253, 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-73784685:ctest-vn-31830514, 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-21 16:48:04,641 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82c809c4-7000-4706-8dc2-3d37c4a08ce7', 'name': 'ctest-vn-39731253', 'tenant_id': 'd000dc5f74f146b49a2989f56ceed68d', 'project_id': 'd000dc5f74f146b49a2989f56ceed68d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cfe9e732-f59a-47b9-8a63-ff95f549601b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73784685', 'ctest-vn-39731253'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73784685', 'ctest-policy-allow-all-87373320']], 'subnet_ipam': [{'subnet_cidr': '79.173.71.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-21 16:48:04,875 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f2dcf7e0-7f32-4a0b-a1d0-734706d69d96', 'name': 'ctest-vn-31830514', 'tenant_id': 'd000dc5f74f146b49a2989f56ceed68d', 'project_id': 'd000dc5f74f146b49a2989f56ceed68d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63290df8-2bab-4a5a-b589-0e2012e7b688'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73784685', 'ctest-vn-31830514'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73784685', 'ctest-policy-allow-all-87373320']], 'subnet_ipam': [{'subnet_cidr': '214.182.96.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-21 16:48:05,054 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 16:48:05,389 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 16:48:05,422 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8d46f45d-e3ab-45ce-9e96-d142eb89fe68
2026-04-21 16:48:05,435 - DEBUG - Requesting: http://10.0.0.50:8082/project/d000dc5f-74f1-46b4-9a29-89f56ceed68d
2026-04-21 16:48:05,512 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82c809c4-7000-4706-8dc2-3d37c4a08ce7
2026-04-21 16:48:05,524 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82c809c4-7000-4706-8dc2-3d37c4a08ce7
2026-04-21 16:48:05,535 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3f6bf615-ece4-4d0b-ad8f-1d91cc99ce7e
2026-04-21 16:48:05,542 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3f6bf615-ece4-4d0b-ad8f-1d91cc99ce7e
2026-04-21 16:48:05,549 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1f387b6f-c5cf-4197-95db-9a2f4e31bb28
2026-04-21 16:48:05,556 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-21 16:48:05,556 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82c809c4-7000-4706-8dc2-3d37c4a08ce7
2026-04-21 16:48:05,565 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3f6bf615-ece4-4d0b-ad8f-1d91cc99ce7e
2026-04-21 16:48:05,580 - INFO - Verified VN network id 12 for VN 82c809c4-7000-4706-8dc2-3d37c4a08ce7
2026-04-21 16:48:05,580 - INFO - Verifications in API Server for VN ctest-vn-39731253 passed
2026-04-21 16:48:05,580 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82c809c4-7000-4706-8dc2-3d37c4a08ce7
2026-04-21 16:48:05,590 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3f6bf615-ece4-4d0b-ad8f-1d91cc99ce7e
2026-04-21 16:48:05,597 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3f6bf615-ece4-4d0b-ad8f-1d91cc99ce7e
2026-04-21 16:48:05,605 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1f387b6f-c5cf-4197-95db-9a2f4e31bb28
2026-04-21 16:48:05,617 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73784685:ctest-vn-39731253', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73784685', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9423792959570069254', 'uuid-lslong': '10214794214561058023'}, 'enable': 'true', 'created': '2026-04-21T16:48:03', 'last-modified': '2026-04-21T16:48:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001200'}
2026-04-21 16:48:05,624 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-21 16:48:05,624 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39731253 passed
2026-04-21 16:48:05,625 - DEBUG - ====Verifying policy data for ctest-vn-39731253 in API_Server ======
2026-04-21 16:48:05,625 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 16:48:05,631 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8d46f45d-e3ab-45ce-9e96-d142eb89fe68
2026-04-21 16:48:05,643 - DEBUG - Requesting: http://10.0.0.50:8082/project/d000dc5f-74f1-46b4-9a29-89f56ceed68d
2026-04-21 16:48:05,715 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/82c809c4-7000-4706-8dc2-3d37c4a08ce7
2026-04-21 16:48:05,725 - DEBUG - ==>Verifying data for policy with id: 1fb17d05-0dd0-4a2e-b0a6-38ae3945ef61, fqn: ['default-domain', 'ctest-TestBasicPolicy-73784685', 'ctest-policy-allow-all-87373320']
2026-04-21 16:48:05,725 - INFO - VN ctest-vn-39731253 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-21 16:48:05,725 - DEBUG - Verifying the vn in opserver
2026-04-21 16:48:05,725 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73784685:ctest-vn-39731253 virtual network link through opserver 10.0.0.50
2026-04-21 16:48:05,725 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-21 16:48:06,059 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-21 16:48:06,124 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73784685:ctest-vn-39731253', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73784685:ctest-vn-39731253?flat'}
2026-04-21 16:48:06,124 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73784685:ctest-vn-39731253 is found in opserver
2026-04-21 16:48:06,134 - DEBUG - Do not have enough data to verify VN in agent
2026-04-21 16:48:06,138 - DEBUG - VRF ids for VN ctest-vn-39731253: {}
2026-04-21 16:48:06,138 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 16:48:06,144 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8d46f45d-e3ab-45ce-9e96-d142eb89fe68
2026-04-21 16:48:06,154 - DEBUG - Requesting: http://10.0.0.50:8082/project/d000dc5f-74f1-46b4-9a29-89f56ceed68d
2026-04-21 16:48:06,227 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2dcf7e0-7f32-4a0b-a1d0-734706d69d96
2026-04-21 16:48:06,239 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2dcf7e0-7f32-4a0b-a1d0-734706d69d96
2026-04-21 16:48:06,249 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a3bd1e5d-a516-466d-9236-5ae5ac01ff28
2026-04-21 16:48:06,255 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a3bd1e5d-a516-466d-9236-5ae5ac01ff28
2026-04-21 16:48:06,261 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/591f7f5f-ec0d-424c-9523-a105feca7c5c
2026-04-21 16:48:06,267 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-21 16:48:06,267 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2dcf7e0-7f32-4a0b-a1d0-734706d69d96
2026-04-21 16:48:06,275 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a3bd1e5d-a516-466d-9236-5ae5ac01ff28
2026-04-21 16:48:06,289 - INFO - Verified VN network id 13 for VN f2dcf7e0-7f32-4a0b-a1d0-734706d69d96
2026-04-21 16:48:06,289 - INFO - Verifications in API Server for VN ctest-vn-31830514 passed
2026-04-21 16:48:06,289 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2dcf7e0-7f32-4a0b-a1d0-734706d69d96
2026-04-21 16:48:06,298 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a3bd1e5d-a516-466d-9236-5ae5ac01ff28
2026-04-21 16:48:06,305 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a3bd1e5d-a516-466d-9236-5ae5ac01ff28
2026-04-21 16:48:06,312 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/591f7f5f-ec0d-424c-9523-a105feca7c5c
2026-04-21 16:48:06,326 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73784685:ctest-vn-31830514', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73784685', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17500134795633641995', 'uuid-lslong': '11659946184156814742'}, 'enable': 'true', 'created': '2026-04-21T16:48:03', 'last-modified': '2026-04-21T16:48:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.470166'}
2026-04-21 16:48:06,333 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-21 16:48:06,333 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31830514 passed
2026-04-21 16:48:06,333 - DEBUG - ====Verifying policy data for ctest-vn-31830514 in API_Server ======
2026-04-21 16:48:06,333 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-21 16:48:06,339 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8d46f45d-e3ab-45ce-9e96-d142eb89fe68
2026-04-21 16:48:06,355 - DEBUG - Requesting: http://10.0.0.50:8082/project/d000dc5f-74f1-46b4-9a29-89f56ceed68d
2026-04-21 16:48:06,428 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2dcf7e0-7f32-4a0b-a1d0-734706d69d96
2026-04-21 16:48:06,438 - DEBUG - ==>Verifying data for policy with id: 1fb17d05-0dd0-4a2e-b0a6-38ae3945ef61, fqn: ['default-domain', 'ctest-TestBasicPolicy-73784685', 'ctest-policy-allow-all-87373320']
2026-04-21 16:48:06,438 - INFO - VN ctest-vn-31830514 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-21 16:48:06,438 - DEBUG - Verifying the vn in opserver
2026-04-21 16:48:06,438 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73784685:ctest-vn-31830514 virtual network link through opserver 10.0.0.50
2026-04-21 16:48:06,438 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-21 16:48:06,449 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73784685:ctest-vn-31830514', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73784685:ctest-vn-31830514?flat'}
2026-04-21 16:48:06,449 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73784685:ctest-vn-31830514 is found in opserver
2026-04-21 16:48:06,458 - DEBUG - Do not have enough data to verify VN in agent
2026-04-21 16:48:06,463 - DEBUG - VRF ids for VN ctest-vn-31830514: {}
2026-04-21 16:48:06,529 - DEBUG - Services list from nova: [