2026-11-06 14:36:51,894 - INFO - Domain Default found not creating
2026-11-06 14:36:52,099 - INFO - Project ctest-TestBasicPolicy-18540817 not found, creating it
2026-11-06 14:36:52,605 - INFO - Created Project:ctest-TestBasicPolicy-18540817, ID : c379bf1b-209c-4c52-8590-cd3e4aec9b81
2026-11-06 14:36:54,286 - INFO - ================================================================================
2026-11-06 14:36:54,286 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-06 14:36:54,286 - 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-11-06 14:36:54,542 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-11-06 14:36:54,542 - INFO - Initial checks done. Running the testcase now
2026-11-06 14:36:54,543 - INFO -
2026-11-06 14:36:55,156 - DEBUG - Response for create_network : {'network': {'id': '3912cd71-c6b2-42e8-8e8a-58b0ee46964c', 'name': 'ctest-vn-96331349', 'tenant_id': 'c379bf1b209c4c528590cd3e4aec9b81', 'project_id': 'c379bf1b209c4c528590cd3e4aec9b81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18540817', 'ctest-vn-96331349'], 'port_security_enabled': True, 'description': ''}}
2026-11-06 14:36:55,482 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f77d1a73-1af9-4cc8-aca1-58afcede2d4a', 'name': '', 'tenant_id': 'c379bf1b209c4c528590cd3e4aec9b81', 'network_id': '3912cd71-c6b2-42e8-8e8a-58b0ee46964c', 'ip_version': 4, 'cidr': '125.178.12.192/26', 'allocation_pools': [{'start': '125.178.12.194', 'end': '125.178.12.254'}], 'gateway_ip': '125.178.12.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.178.12.194', 'tags': [], 'project_id': 'c379bf1b209c4c528590cd3e4aec9b81'}}
2026-11-06 14:36:55,505 - INFO - Created VN ctest-vn-96331349
2026-11-06 14:36:55,560 - DEBUG - VN ctest-vn-96331349 UUID is 3912cd71-c6b2-42e8-8e8a-58b0ee46964c
2026-11-06 14:36:55,919 - DEBUG - Response for create_network : {'network': {'id': '68f3b4c4-6d5b-455f-81b8-5445d0b871eb', 'name': 'ctest-vn-95496639', 'tenant_id': 'c379bf1b209c4c528590cd3e4aec9b81', 'project_id': 'c379bf1b209c4c528590cd3e4aec9b81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18540817', 'ctest-vn-95496639'], 'port_security_enabled': True, 'description': ''}}
2026-11-06 14:36:56,103 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c5f4b16-81bb-4bf0-b16d-1121ceb5641c', 'name': '', 'tenant_id': 'c379bf1b209c4c528590cd3e4aec9b81', 'network_id': '68f3b4c4-6d5b-455f-81b8-5445d0b871eb', 'ip_version': 4, 'cidr': '107.210.115.64/26', 'allocation_pools': [{'start': '107.210.115.66', 'end': '107.210.115.126'}], 'gateway_ip': '107.210.115.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.210.115.66', 'tags': [], 'project_id': 'c379bf1b209c4c528590cd3e4aec9b81'}}
2026-11-06 14:36:56,121 - INFO - Created VN ctest-vn-95496639
2026-11-06 14:36:56,176 - DEBUG - VN ctest-vn-95496639 UUID is 68f3b4c4-6d5b-455f-81b8-5445d0b871eb
2026-11-06 14:36:56,292 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18540817:ctest-vn-96331349, 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-18540817:ctest-vn-95496639, 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-11-06 14:36:56,598 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3912cd71-c6b2-42e8-8e8a-58b0ee46964c', 'name': 'ctest-vn-96331349', 'tenant_id': 'c379bf1b209c4c528590cd3e4aec9b81', 'project_id': 'c379bf1b209c4c528590cd3e4aec9b81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['f77d1a73-1af9-4cc8-aca1-58afcede2d4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18540817', 'ctest-vn-96331349'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18540817', 'ctest-policy-allow-all-16660275']], 'subnet_ipam': [{'subnet_cidr': '125.178.12.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-06 14:36:56,839 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '68f3b4c4-6d5b-455f-81b8-5445d0b871eb', 'name': 'ctest-vn-95496639', 'tenant_id': 'c379bf1b209c4c528590cd3e4aec9b81', 'project_id': 'c379bf1b209c4c528590cd3e4aec9b81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['4c5f4b16-81bb-4bf0-b16d-1121ceb5641c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18540817', 'ctest-vn-95496639'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18540817', 'ctest-policy-allow-all-16660275']], 'subnet_ipam': [{'subnet_cidr': '107.210.115.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-06 14:36:57,004 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-06 14:36:57,331 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-06 14:36:57,361 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f56d05e6-50cc-4c34-bfa5-c3e4c856b5f3
2026-11-06 14:36:57,373 - DEBUG - Requesting: http://10.0.0.38:8082/project/c379bf1b-209c-4c52-8590-cd3e4aec9b81
2026-11-06 14:36:57,449 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3912cd71-c6b2-42e8-8e8a-58b0ee46964c
2026-11-06 14:36:57,465 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3912cd71-c6b2-42e8-8e8a-58b0ee46964c
2026-11-06 14:36:57,476 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39257582-e95a-466e-9e8d-bd995033f1a7
2026-11-06 14:36:57,486 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39257582-e95a-466e-9e8d-bd995033f1a7
2026-11-06 14:36:57,496 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1a396210-1b9f-40f8-ad5f-d8afba39f1a4
2026-11-06 14:36:57,503 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-06 14:36:57,504 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3912cd71-c6b2-42e8-8e8a-58b0ee46964c
2026-11-06 14:36:57,515 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39257582-e95a-466e-9e8d-bd995033f1a7
2026-11-06 14:36:57,532 - INFO - Verified VN network id 10 for VN 3912cd71-c6b2-42e8-8e8a-58b0ee46964c
2026-11-06 14:36:57,532 - INFO - Verifications in API Server for VN ctest-vn-96331349 passed
2026-11-06 14:36:57,532 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3912cd71-c6b2-42e8-8e8a-58b0ee46964c
2026-11-06 14:36:57,547 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39257582-e95a-466e-9e8d-bd995033f1a7
2026-11-06 14:36:57,556 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/39257582-e95a-466e-9e8d-bd995033f1a7
2026-11-06 14:36:57,567 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1a396210-1b9f-40f8-ad5f-d8afba39f1a4
2026-11-06 14:36:57,582 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18540817:ctest-vn-96331349', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18540817', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4112575298291253992', 'uuid-lslong': '10271119417106929228'}, 'enable': 'true', 'created': '2026-11-06T14:36:55', 'last-modified': '2026-11-06T14:36:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.006699'}
2026-11-06 14:36:57,591 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-06 14:36:57,591 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96331349 passed
2026-11-06 14:36:57,591 - DEBUG - ====Verifying policy data for ctest-vn-96331349 in API_Server ======
2026-11-06 14:36:57,591 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-06 14:36:57,601 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f56d05e6-50cc-4c34-bfa5-c3e4c856b5f3
2026-11-06 14:36:57,613 - DEBUG - Requesting: http://10.0.0.38:8082/project/c379bf1b-209c-4c52-8590-cd3e4aec9b81
2026-11-06 14:36:57,693 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3912cd71-c6b2-42e8-8e8a-58b0ee46964c
2026-11-06 14:36:57,702 - DEBUG - ==>Verifying data for policy with id: c20412f6-6038-44a9-bf4f-72e8fec33c6a, fqn: ['default-domain', 'ctest-TestBasicPolicy-18540817', 'ctest-policy-allow-all-16660275']
2026-11-06 14:36:57,702 - INFO - VN ctest-vn-96331349 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-06 14:36:57,703 - DEBUG - Verifying the vn in opserver
2026-11-06 14:36:57,703 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18540817:ctest-vn-96331349 virtual network link through opserver 10.0.0.38
2026-11-06 14:36:57,703 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-11-06 14:36:58,033 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-11-06 14:36:58,095 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18540817:ctest-vn-96331349', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18540817:ctest-vn-96331349?flat'}
2026-11-06 14:36:58,095 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18540817:ctest-vn-96331349 is found in opserver
2026-11-06 14:36:58,107 - DEBUG - Do not have enough data to verify VN in agent
2026-11-06 14:36:58,111 - DEBUG - VRF ids for VN ctest-vn-96331349: {}
2026-11-06 14:36:58,111 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-06 14:36:58,118 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f56d05e6-50cc-4c34-bfa5-c3e4c856b5f3
2026-11-06 14:36:58,130 - DEBUG - Requesting: http://10.0.0.38:8082/project/c379bf1b-209c-4c52-8590-cd3e4aec9b81
2026-11-06 14:36:58,210 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/68f3b4c4-6d5b-455f-81b8-5445d0b871eb
2026-11-06 14:36:58,225 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/68f3b4c4-6d5b-455f-81b8-5445d0b871eb
2026-11-06 14:36:58,236 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38ab107a-b717-43a5-87fa-c2a0a933da02
2026-11-06 14:36:58,244 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38ab107a-b717-43a5-87fa-c2a0a933da02
2026-11-06 14:36:58,252 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e32b2919-0115-4b5e-b7a9-34613e6fba6f
2026-11-06 14:36:58,261 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-06 14:36:58,261 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/68f3b4c4-6d5b-455f-81b8-5445d0b871eb
2026-11-06 14:36:58,272 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38ab107a-b717-43a5-87fa-c2a0a933da02
2026-11-06 14:36:58,289 - INFO - Verified VN network id 11 for VN 68f3b4c4-6d5b-455f-81b8-5445d0b871eb
2026-11-06 14:36:58,289 - INFO - Verifications in API Server for VN ctest-vn-95496639 passed
2026-11-06 14:36:58,289 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/68f3b4c4-6d5b-455f-81b8-5445d0b871eb
2026-11-06 14:36:58,302 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38ab107a-b717-43a5-87fa-c2a0a933da02
2026-11-06 14:36:58,310 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38ab107a-b717-43a5-87fa-c2a0a933da02
2026-11-06 14:36:58,318 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e32b2919-0115-4b5e-b7a9-34613e6fba6f
2026-11-06 14:36:58,330 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18540817:ctest-vn-95496639', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18540817', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7562586955026482527', 'uuid-lslong': '9347313685438689771'}, 'enable': 'true', 'created': '2026-11-06T14:36:55', 'last-modified': '2026-11-06T14:36:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.522442'}
2026-11-06 14:36:58,337 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-06 14:36:58,337 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95496639 passed
2026-11-06 14:36:58,337 - DEBUG - ====Verifying policy data for ctest-vn-95496639 in API_Server ======
2026-11-06 14:36:58,337 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-06 14:36:58,343 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f56d05e6-50cc-4c34-bfa5-c3e4c856b5f3
2026-11-06 14:36:58,354 - DEBUG - Requesting: http://10.0.0.38:8082/project/c379bf1b-209c-4c52-8590-cd3e4aec9b81
2026-11-06 14:36:58,435 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/68f3b4c4-6d5b-455f-81b8-5445d0b871eb
2026-11-06 14:36:58,443 - DEBUG - ==>Verifying data for policy with id: c20412f6-6038-44a9-bf4f-72e8fec33c6a, fqn: ['default-domain', 'ctest-TestBasicPolicy-18540817', 'ctest-policy-allow-all-16660275']
2026-11-06 14:36:58,443 - INFO - VN ctest-vn-95496639 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-06 14:36:58,443 - DEBUG - Verifying the vn in opserver
2026-11-06 14:36:58,443 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18540817:ctest-vn-95496639 virtual network link through opserver 10.0.0.38
2026-11-06 14:36:58,443 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-11-06 14:36:58,453 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18540817:ctest-vn-95496639', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18540817:ctest-vn-95496639?flat'}
2026-11-06 14:36:58,453 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18540817:ctest-vn-95496639 is found in opserver
2026-11-06 14:36:58,467 - DEBUG - Do not have enough data to verify VN in agent
2026-11-06 14:36:58,471 - DEBUG - VRF ids for VN ctest-vn-95496639: {}
2026-11-06 14:36:58,531 - DEBUG - Services list from nova: [