2026-06-23 15:05:35,094 - INFO - Domain Default found not creating
2026-06-23 15:05:35,233 - INFO - Project ctest-TestBasicPolicy-02042258 not found, creating it
2026-06-23 15:05:35,678 - INFO - Created Project:ctest-TestBasicPolicy-02042258, ID : 17e25d13-03f6-414e-a4f1-bede1a810b37
2026-06-23 15:05:37,088 - INFO - ================================================================================
2026-06-23 15:05:37,088 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-23 15:05:37,088 - 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-06-23 15:05:37,340 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-06-23 15:05:37,340 - INFO - Initial checks done. Running the testcase now
2026-06-23 15:05:37,340 - INFO -
2026-06-23 15:05:37,878 - DEBUG - Response for create_network : {'network': {'id': '5c223c83-fa70-490a-a5a9-ff8044856bd0', 'name': 'ctest-vn-38032737', 'tenant_id': '17e25d1303f6414ea4f1bede1a810b37', 'project_id': '17e25d1303f6414ea4f1bede1a810b37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02042258', 'ctest-vn-38032737'], 'port_security_enabled': True, 'description': ''}}
2026-06-23 15:05:38,036 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c20e80bd-5796-4549-aa9e-72442c6f5152', 'name': '', 'tenant_id': '17e25d1303f6414ea4f1bede1a810b37', 'network_id': '5c223c83-fa70-490a-a5a9-ff8044856bd0', 'ip_version': 4, 'cidr': '103.170.204.0/26', 'allocation_pools': [{'start': '103.170.204.2', 'end': '103.170.204.62'}], 'gateway_ip': '103.170.204.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.170.204.2', 'tags': [], 'project_id': '17e25d1303f6414ea4f1bede1a810b37'}}
2026-06-23 15:05:38,049 - INFO - Created VN ctest-vn-38032737
2026-06-23 15:05:38,100 - DEBUG - VN ctest-vn-38032737 UUID is 5c223c83-fa70-490a-a5a9-ff8044856bd0
2026-06-23 15:05:38,407 - DEBUG - Response for create_network : {'network': {'id': '1be6364c-4dec-4103-a925-65af225ce059', 'name': 'ctest-vn-14749183', 'tenant_id': '17e25d1303f6414ea4f1bede1a810b37', 'project_id': '17e25d1303f6414ea4f1bede1a810b37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02042258', 'ctest-vn-14749183'], 'port_security_enabled': True, 'description': ''}}
2026-06-23 15:05:38,618 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a763e38f-be06-4d91-8e8d-92bc4fd1c8d5', 'name': '', 'tenant_id': '17e25d1303f6414ea4f1bede1a810b37', 'network_id': '1be6364c-4dec-4103-a925-65af225ce059', 'ip_version': 4, 'cidr': '64.214.75.128/26', 'allocation_pools': [{'start': '64.214.75.130', 'end': '64.214.75.190'}], 'gateway_ip': '64.214.75.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.214.75.130', 'tags': [], 'project_id': '17e25d1303f6414ea4f1bede1a810b37'}}
2026-06-23 15:05:38,635 - INFO - Created VN ctest-vn-14749183
2026-06-23 15:05:38,688 - DEBUG - VN ctest-vn-14749183 UUID is 1be6364c-4dec-4103-a925-65af225ce059
2026-06-23 15:05:38,832 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02042258:ctest-vn-38032737, 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-02042258:ctest-vn-14749183, 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-06-23 15:05:39,114 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c223c83-fa70-490a-a5a9-ff8044856bd0', 'name': 'ctest-vn-38032737', 'tenant_id': '17e25d1303f6414ea4f1bede1a810b37', 'project_id': '17e25d1303f6414ea4f1bede1a810b37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c20e80bd-5796-4549-aa9e-72442c6f5152'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02042258', 'ctest-vn-38032737'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02042258', 'ctest-policy-allow-all-99627984']], 'subnet_ipam': [{'subnet_cidr': '103.170.204.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-23 15:05:39,324 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1be6364c-4dec-4103-a925-65af225ce059', 'name': 'ctest-vn-14749183', 'tenant_id': '17e25d1303f6414ea4f1bede1a810b37', 'project_id': '17e25d1303f6414ea4f1bede1a810b37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a763e38f-be06-4d91-8e8d-92bc4fd1c8d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02042258', 'ctest-vn-14749183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02042258', 'ctest-policy-allow-all-99627984']], 'subnet_ipam': [{'subnet_cidr': '64.214.75.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-23 15:05:39,484 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-23 15:05:39,799 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-23 15:05:39,822 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2c8c38b6-fed6-483c-8b47-2f5c398c2907
2026-06-23 15:05:39,833 - DEBUG - Requesting: http://10.0.0.50:8082/project/17e25d13-03f6-414e-a4f1-bede1a810b37
2026-06-23 15:05:39,900 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c223c83-fa70-490a-a5a9-ff8044856bd0
2026-06-23 15:05:39,910 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c223c83-fa70-490a-a5a9-ff8044856bd0
2026-06-23 15:05:39,918 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9fb9a0c-8fde-44fd-9076-d64763f0c189
2026-06-23 15:05:39,924 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9fb9a0c-8fde-44fd-9076-d64763f0c189
2026-06-23 15:05:39,929 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e5e3cac3-abd8-4d96-8ab1-a5eab0cd1f3c
2026-06-23 15:05:39,935 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-23 15:05:39,935 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c223c83-fa70-490a-a5a9-ff8044856bd0
2026-06-23 15:05:39,942 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9fb9a0c-8fde-44fd-9076-d64763f0c189
2026-06-23 15:05:39,953 - INFO - Verified VN network id 11 for VN 5c223c83-fa70-490a-a5a9-ff8044856bd0
2026-06-23 15:05:39,953 - INFO - Verifications in API Server for VN ctest-vn-38032737 passed
2026-06-23 15:05:39,953 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c223c83-fa70-490a-a5a9-ff8044856bd0
2026-06-23 15:05:39,960 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9fb9a0c-8fde-44fd-9076-d64763f0c189
2026-06-23 15:05:39,965 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a9fb9a0c-8fde-44fd-9076-d64763f0c189
2026-06-23 15:05:39,970 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e5e3cac3-abd8-4d96-8ab1-a5eab0cd1f3c
2026-06-23 15:05:39,979 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02042258:ctest-vn-38032737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02042258', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6638935338237577482', 'uuid-lslong': '11937353213692701648'}, 'enable': 'true', 'created': '2026-06-23T15:05:37', 'last-modified': '2026-06-23T15:05:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.882942'}
2026-06-23 15:05:39,984 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-23 15:05:39,984 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38032737 passed
2026-06-23 15:05:39,984 - DEBUG - ====Verifying policy data for ctest-vn-38032737 in API_Server ======
2026-06-23 15:05:39,984 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-23 15:05:39,988 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2c8c38b6-fed6-483c-8b47-2f5c398c2907
2026-06-23 15:05:39,997 - DEBUG - Requesting: http://10.0.0.50:8082/project/17e25d13-03f6-414e-a4f1-bede1a810b37
2026-06-23 15:05:40,064 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c223c83-fa70-490a-a5a9-ff8044856bd0
2026-06-23 15:05:40,073 - DEBUG - ==>Verifying data for policy with id: 369fef1e-c03f-49ac-b522-6137298df7a7, fqn: ['default-domain', 'ctest-TestBasicPolicy-02042258', 'ctest-policy-allow-all-99627984']
2026-06-23 15:05:40,073 - INFO - VN ctest-vn-38032737 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-23 15:05:40,073 - DEBUG - Verifying the vn in opserver
2026-06-23 15:05:40,073 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02042258:ctest-vn-38032737 virtual network link through opserver 10.0.0.50
2026-06-23 15:05:40,074 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-23 15:05:40,387 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-23 15:05:40,433 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02042258:ctest-vn-38032737', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02042258:ctest-vn-38032737?flat'}
2026-06-23 15:05:40,433 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02042258:ctest-vn-38032737 is found in opserver
2026-06-23 15:05:40,441 - DEBUG - Do not have enough data to verify VN in agent
2026-06-23 15:05:40,445 - DEBUG - VRF ids for VN ctest-vn-38032737: {}
2026-06-23 15:05:40,445 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-23 15:05:40,450 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2c8c38b6-fed6-483c-8b47-2f5c398c2907
2026-06-23 15:05:40,459 - DEBUG - Requesting: http://10.0.0.50:8082/project/17e25d13-03f6-414e-a4f1-bede1a810b37
2026-06-23 15:05:40,527 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1be6364c-4dec-4103-a925-65af225ce059
2026-06-23 15:05:40,537 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1be6364c-4dec-4103-a925-65af225ce059
2026-06-23 15:05:40,545 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5cd88546-d658-4863-865f-cd4b4a67780a
2026-06-23 15:05:40,550 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5cd88546-d658-4863-865f-cd4b4a67780a
2026-06-23 15:05:40,556 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/da959f81-8a94-4ccb-b857-e5a6eab6a816
2026-06-23 15:05:40,561 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-23 15:05:40,562 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1be6364c-4dec-4103-a925-65af225ce059
2026-06-23 15:05:40,569 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5cd88546-d658-4863-865f-cd4b4a67780a
2026-06-23 15:05:40,583 - INFO - Verified VN network id 12 for VN 1be6364c-4dec-4103-a925-65af225ce059
2026-06-23 15:05:40,584 - INFO - Verifications in API Server for VN ctest-vn-14749183 passed
2026-06-23 15:05:40,584 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1be6364c-4dec-4103-a925-65af225ce059
2026-06-23 15:05:40,592 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5cd88546-d658-4863-865f-cd4b4a67780a
2026-06-23 15:05:40,598 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5cd88546-d658-4863-865f-cd4b4a67780a
2026-06-23 15:05:40,603 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/da959f81-8a94-4ccb-b857-e5a6eab6a816
2026-06-23 15:05:40,612 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02042258:ctest-vn-14749183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02042258', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2010353985020248323', 'uuid-lslong': '12188259769418309721'}, 'enable': 'true', 'created': '2026-06-23T15:05:38', 'last-modified': '2026-06-23T15:05:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.306765'}
2026-06-23 15:05:40,618 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-23 15:05:40,618 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14749183 passed
2026-06-23 15:05:40,618 - DEBUG - ====Verifying policy data for ctest-vn-14749183 in API_Server ======
2026-06-23 15:05:40,618 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-23 15:05:40,623 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2c8c38b6-fed6-483c-8b47-2f5c398c2907
2026-06-23 15:05:40,633 - DEBUG - Requesting: http://10.0.0.50:8082/project/17e25d13-03f6-414e-a4f1-bede1a810b37
2026-06-23 15:05:40,701 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1be6364c-4dec-4103-a925-65af225ce059
2026-06-23 15:05:40,709 - DEBUG - ==>Verifying data for policy with id: 369fef1e-c03f-49ac-b522-6137298df7a7, fqn: ['default-domain', 'ctest-TestBasicPolicy-02042258', 'ctest-policy-allow-all-99627984']
2026-06-23 15:05:40,709 - INFO - VN ctest-vn-14749183 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-23 15:05:40,709 - DEBUG - Verifying the vn in opserver
2026-06-23 15:05:40,709 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02042258:ctest-vn-14749183 virtual network link through opserver 10.0.0.50
2026-06-23 15:05:40,709 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-23 15:05:40,717 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02042258:ctest-vn-14749183', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02042258:ctest-vn-14749183?flat'}
2026-06-23 15:05:40,717 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02042258:ctest-vn-14749183 is found in opserver
2026-06-23 15:05:40,725 - DEBUG - Do not have enough data to verify VN in agent
2026-06-23 15:05:40,729 - DEBUG - VRF ids for VN ctest-vn-14749183: {}
2026-06-23 15:05:40,777 - DEBUG - Services list from nova: [