2026-04-16 22:44:24,275 - INFO - Domain Default found not creating
2026-04-16 22:44:24,431 - INFO - Project ctest-TestBasicPolicy-89835349 not found, creating it
2026-04-16 22:44:24,888 - INFO - Created Project:ctest-TestBasicPolicy-89835349, ID : 9a9df911-540a-438d-8d5a-a2cd472eadd1
2026-04-16 22:44:26,367 - INFO - ================================================================================
2026-04-16 22:44:26,367 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-16 22:44:26,367 - 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-16 22:44:26,626 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-04-16 22:44:26,626 - INFO - Initial checks done. Running the testcase now
2026-04-16 22:44:26,626 - INFO -
2026-04-16 22:44:27,166 - DEBUG - Response for create_network : {'network': {'id': 'cfc8db4d-788c-406b-afb1-8c9c72d19528', 'name': 'ctest-vn-92456377', 'tenant_id': '9a9df911540a438d8d5aa2cd472eadd1', 'project_id': '9a9df911540a438d8d5aa2cd472eadd1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89835349', 'ctest-vn-92456377'], 'port_security_enabled': True, 'description': ''}}
2026-04-16 22:44:27,381 - DEBUG - Response for create_subnet : {'subnet': {'id': '1403ebb3-333c-4bb8-9aa3-8ae029cd33cf', 'name': '', 'tenant_id': '9a9df911540a438d8d5aa2cd472eadd1', 'network_id': 'cfc8db4d-788c-406b-afb1-8c9c72d19528', 'ip_version': 4, 'cidr': '115.106.216.128/26', 'allocation_pools': [{'start': '115.106.216.130', 'end': '115.106.216.190'}], 'gateway_ip': '115.106.216.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.106.216.130', 'tags': [], 'project_id': '9a9df911540a438d8d5aa2cd472eadd1'}}
2026-04-16 22:44:27,399 - INFO - Created VN ctest-vn-92456377
2026-04-16 22:44:27,452 - DEBUG - VN ctest-vn-92456377 UUID is cfc8db4d-788c-406b-afb1-8c9c72d19528
2026-04-16 22:44:27,772 - DEBUG - Response for create_network : {'network': {'id': 'eeab477e-e80f-4da4-90ae-97bc6ffb5c49', 'name': 'ctest-vn-18018965', 'tenant_id': '9a9df911540a438d8d5aa2cd472eadd1', 'project_id': '9a9df911540a438d8d5aa2cd472eadd1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89835349', 'ctest-vn-18018965'], 'port_security_enabled': True, 'description': ''}}
2026-04-16 22:44:27,927 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb73d0d4-82dc-466b-b2e4-7c8675b554f3', 'name': '', 'tenant_id': '9a9df911540a438d8d5aa2cd472eadd1', 'network_id': 'eeab477e-e80f-4da4-90ae-97bc6ffb5c49', 'ip_version': 4, 'cidr': '20.22.62.64/26', 'allocation_pools': [{'start': '20.22.62.66', 'end': '20.22.62.126'}], 'gateway_ip': '20.22.62.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.22.62.66', 'tags': [], 'project_id': '9a9df911540a438d8d5aa2cd472eadd1'}}
2026-04-16 22:44:27,943 - INFO - Created VN ctest-vn-18018965
2026-04-16 22:44:27,996 - DEBUG - VN ctest-vn-18018965 UUID is eeab477e-e80f-4da4-90ae-97bc6ffb5c49
2026-04-16 22:44:28,112 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89835349:ctest-vn-92456377, 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-89835349:ctest-vn-18018965, 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-16 22:44:28,394 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cfc8db4d-788c-406b-afb1-8c9c72d19528', 'name': 'ctest-vn-92456377', 'tenant_id': '9a9df911540a438d8d5aa2cd472eadd1', 'project_id': '9a9df911540a438d8d5aa2cd472eadd1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1403ebb3-333c-4bb8-9aa3-8ae029cd33cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89835349', 'ctest-vn-92456377'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89835349', 'ctest-policy-allow-all-65635232']], 'subnet_ipam': [{'subnet_cidr': '115.106.216.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-16 22:44:28,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eeab477e-e80f-4da4-90ae-97bc6ffb5c49', 'name': 'ctest-vn-18018965', 'tenant_id': '9a9df911540a438d8d5aa2cd472eadd1', 'project_id': '9a9df911540a438d8d5aa2cd472eadd1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb73d0d4-82dc-466b-b2e4-7c8675b554f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89835349', 'ctest-vn-18018965'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89835349', 'ctest-policy-allow-all-65635232']], 'subnet_ipam': [{'subnet_cidr': '20.22.62.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-16 22:44:28,808 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-16 22:44:29,107 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-16 22:44:29,135 - DEBUG - Requesting: http://10.0.0.22:8082/domain/77199670-2829-4c32-a70b-3f3872e3ae90
2026-04-16 22:44:29,147 - DEBUG - Requesting: http://10.0.0.22:8082/project/9a9df911-540a-438d-8d5a-a2cd472eadd1
2026-04-16 22:44:29,217 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc8db4d-788c-406b-afb1-8c9c72d19528
2026-04-16 22:44:29,228 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc8db4d-788c-406b-afb1-8c9c72d19528
2026-04-16 22:44:29,238 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6754921d-b406-4d34-94fb-9cc0b61690a3
2026-04-16 22:44:29,246 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6754921d-b406-4d34-94fb-9cc0b61690a3
2026-04-16 22:44:29,253 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/63473b7b-dc03-4c31-82a5-f45f50d907d3
2026-04-16 22:44:29,259 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-16 22:44:29,259 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc8db4d-788c-406b-afb1-8c9c72d19528
2026-04-16 22:44:29,267 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6754921d-b406-4d34-94fb-9cc0b61690a3
2026-04-16 22:44:29,279 - INFO - Verified VN network id 11 for VN cfc8db4d-788c-406b-afb1-8c9c72d19528
2026-04-16 22:44:29,279 - INFO - Verifications in API Server for VN ctest-vn-92456377 passed
2026-04-16 22:44:29,279 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc8db4d-788c-406b-afb1-8c9c72d19528
2026-04-16 22:44:29,287 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6754921d-b406-4d34-94fb-9cc0b61690a3
2026-04-16 22:44:29,293 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6754921d-b406-4d34-94fb-9cc0b61690a3
2026-04-16 22:44:29,299 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/63473b7b-dc03-4c31-82a5-f45f50d907d3
2026-04-16 22:44:29,309 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89835349:ctest-vn-92456377', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89835349', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14972458086974636139', 'uuid-lslong': '12660054631084299560'}, 'enable': 'true', 'created': '2026-04-16T22:44:27', 'last-modified': '2026-04-16T22:44:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.932749'}
2026-04-16 22:44:29,316 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-16 22:44:29,316 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92456377 passed
2026-04-16 22:44:29,316 - DEBUG - ====Verifying policy data for ctest-vn-92456377 in API_Server ======
2026-04-16 22:44:29,316 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-16 22:44:29,321 - DEBUG - Requesting: http://10.0.0.22:8082/domain/77199670-2829-4c32-a70b-3f3872e3ae90
2026-04-16 22:44:29,331 - DEBUG - Requesting: http://10.0.0.22:8082/project/9a9df911-540a-438d-8d5a-a2cd472eadd1
2026-04-16 22:44:29,400 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc8db4d-788c-406b-afb1-8c9c72d19528
2026-04-16 22:44:29,408 - DEBUG - ==>Verifying data for policy with id: 8267b330-924d-4dd4-94d3-1c56a9604891, fqn: ['default-domain', 'ctest-TestBasicPolicy-89835349', 'ctest-policy-allow-all-65635232']
2026-04-16 22:44:29,408 - INFO - VN ctest-vn-92456377 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-16 22:44:29,408 - DEBUG - Verifying the vn in opserver
2026-04-16 22:44:29,408 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89835349:ctest-vn-92456377 virtual network link through opserver 10.0.0.22
2026-04-16 22:44:29,408 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-16 22:44:29,700 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-16 22:44:29,757 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89835349:ctest-vn-92456377', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89835349:ctest-vn-92456377?flat'}
2026-04-16 22:44:29,758 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89835349:ctest-vn-92456377 is found in opserver
2026-04-16 22:44:29,767 - DEBUG - Do not have enough data to verify VN in agent
2026-04-16 22:44:29,771 - DEBUG - VRF ids for VN ctest-vn-92456377: {}
2026-04-16 22:44:29,771 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-16 22:44:29,776 - DEBUG - Requesting: http://10.0.0.22:8082/domain/77199670-2829-4c32-a70b-3f3872e3ae90
2026-04-16 22:44:29,786 - DEBUG - Requesting: http://10.0.0.22:8082/project/9a9df911-540a-438d-8d5a-a2cd472eadd1
2026-04-16 22:44:29,855 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eeab477e-e80f-4da4-90ae-97bc6ffb5c49
2026-04-16 22:44:29,867 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eeab477e-e80f-4da4-90ae-97bc6ffb5c49
2026-04-16 22:44:29,875 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/73240459-2787-4e2c-8919-af8894b7f9bb
2026-04-16 22:44:29,882 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/73240459-2787-4e2c-8919-af8894b7f9bb
2026-04-16 22:44:29,888 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f26b7236-da1b-4350-a1f0-83820f0b153c
2026-04-16 22:44:29,894 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-16 22:44:29,894 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eeab477e-e80f-4da4-90ae-97bc6ffb5c49
2026-04-16 22:44:29,902 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/73240459-2787-4e2c-8919-af8894b7f9bb
2026-04-16 22:44:29,916 - INFO - Verified VN network id 12 for VN eeab477e-e80f-4da4-90ae-97bc6ffb5c49
2026-04-16 22:44:29,916 - INFO - Verifications in API Server for VN ctest-vn-18018965 passed
2026-04-16 22:44:29,916 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eeab477e-e80f-4da4-90ae-97bc6ffb5c49
2026-04-16 22:44:29,925 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/73240459-2787-4e2c-8919-af8894b7f9bb
2026-04-16 22:44:29,932 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/73240459-2787-4e2c-8919-af8894b7f9bb
2026-04-16 22:44:29,939 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f26b7236-da1b-4350-a1f0-83820f0b153c
2026-04-16 22:44:29,951 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89835349:ctest-vn-18018965', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89835349', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17197918212429139364', 'uuid-lslong': '10425437022997666889'}, 'enable': 'true', 'created': '2026-04-16T22:44:27', 'last-modified': '2026-04-16T22:44:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.354137'}
2026-04-16 22:44:29,960 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-16 22:44:29,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18018965 passed
2026-04-16 22:44:29,961 - DEBUG - ====Verifying policy data for ctest-vn-18018965 in API_Server ======
2026-04-16 22:44:29,961 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-16 22:44:29,967 - DEBUG - Requesting: http://10.0.0.22:8082/domain/77199670-2829-4c32-a70b-3f3872e3ae90
2026-04-16 22:44:29,979 - DEBUG - Requesting: http://10.0.0.22:8082/project/9a9df911-540a-438d-8d5a-a2cd472eadd1
2026-04-16 22:44:30,051 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eeab477e-e80f-4da4-90ae-97bc6ffb5c49
2026-04-16 22:44:30,061 - DEBUG - ==>Verifying data for policy with id: 8267b330-924d-4dd4-94d3-1c56a9604891, fqn: ['default-domain', 'ctest-TestBasicPolicy-89835349', 'ctest-policy-allow-all-65635232']
2026-04-16 22:44:30,061 - INFO - VN ctest-vn-18018965 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-16 22:44:30,061 - DEBUG - Verifying the vn in opserver
2026-04-16 22:44:30,061 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89835349:ctest-vn-18018965 virtual network link through opserver 10.0.0.22
2026-04-16 22:44:30,061 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-16 22:44:30,069 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89835349:ctest-vn-18018965', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89835349:ctest-vn-18018965?flat'}
2026-04-16 22:44:30,069 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89835349:ctest-vn-18018965 is found in opserver
2026-04-16 22:44:30,077 - DEBUG - Do not have enough data to verify VN in agent
2026-04-16 22:44:30,082 - DEBUG - VRF ids for VN ctest-vn-18018965: {}
2026-04-16 22:44:30,145 - DEBUG - Services list from nova: [