2026-03-23 15:24:56,068 - INFO - Domain Default found not creating
2026-03-23 15:24:56,272 - INFO - Project ctest-TestBasicPolicy-08259356 not found, creating it
2026-03-23 15:24:56,778 - INFO - Created Project:ctest-TestBasicPolicy-08259356, ID : 51141d8b-366a-4022-ab2b-4e6492e1f600
2026-03-23 15:24:58,469 - INFO - ================================================================================
2026-03-23 15:24:58,469 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-23 15:24:58,469 - 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-03-23 15:24:58,739 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with
2026-03-23 15:24:58,739 - INFO - Initial checks done. Running the testcase now
2026-03-23 15:24:58,739 - INFO -
2026-03-23 15:24:59,351 - DEBUG - Response for create_network : {'network': {'id': '969c70ce-23de-4790-a194-20028baa9274', 'name': 'ctest-vn-42555693', 'tenant_id': '51141d8b366a4022ab2b4e6492e1f600', 'project_id': '51141d8b366a4022ab2b4e6492e1f600', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08259356', 'ctest-vn-42555693'], 'port_security_enabled': True, 'description': ''}}
2026-03-23 15:24:59,528 - DEBUG - Response for create_subnet : {'subnet': {'id': '2724cbcc-0139-4873-b01e-d7519dcc0d85', 'name': '', 'tenant_id': '51141d8b366a4022ab2b4e6492e1f600', 'network_id': '969c70ce-23de-4790-a194-20028baa9274', 'ip_version': 4, 'cidr': '42.38.86.192/26', 'allocation_pools': [{'start': '42.38.86.194', 'end': '42.38.86.254'}], 'gateway_ip': '42.38.86.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.38.86.194', 'tags': [], 'project_id': '51141d8b366a4022ab2b4e6492e1f600'}}
2026-03-23 15:24:59,551 - INFO - Created VN ctest-vn-42555693
2026-03-23 15:24:59,605 - DEBUG - VN ctest-vn-42555693 UUID is 969c70ce-23de-4790-a194-20028baa9274
2026-03-23 15:24:59,916 - DEBUG - Response for create_network : {'network': {'id': 'ea9d86b7-c61c-4614-a4e4-1c172b28c183', 'name': 'ctest-vn-56728564', 'tenant_id': '51141d8b366a4022ab2b4e6492e1f600', 'project_id': '51141d8b366a4022ab2b4e6492e1f600', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08259356', 'ctest-vn-56728564'], 'port_security_enabled': True, 'description': ''}}
2026-03-23 15:25:00,149 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bf57663-9ac0-49df-9882-42ee6da4ec1c', 'name': '', 'tenant_id': '51141d8b366a4022ab2b4e6492e1f600', 'network_id': 'ea9d86b7-c61c-4614-a4e4-1c172b28c183', 'ip_version': 4, 'cidr': '121.140.128.0/26', 'allocation_pools': [{'start': '121.140.128.2', 'end': '121.140.128.62'}], 'gateway_ip': '121.140.128.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.140.128.2', 'tags': [], 'project_id': '51141d8b366a4022ab2b4e6492e1f600'}}
2026-03-23 15:25:00,170 - INFO - Created VN ctest-vn-56728564
2026-03-23 15:25:00,221 - DEBUG - VN ctest-vn-56728564 UUID is ea9d86b7-c61c-4614-a4e4-1c172b28c183
2026-03-23 15:25:00,350 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08259356:ctest-vn-42555693, 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-08259356:ctest-vn-56728564, 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-03-23 15:25:00,686 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '969c70ce-23de-4790-a194-20028baa9274', 'name': 'ctest-vn-42555693', 'tenant_id': '51141d8b366a4022ab2b4e6492e1f600', 'project_id': '51141d8b366a4022ab2b4e6492e1f600', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2724cbcc-0139-4873-b01e-d7519dcc0d85'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08259356', 'ctest-vn-42555693'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08259356', 'ctest-policy-allow-all-44637259']], 'subnet_ipam': [{'subnet_cidr': '42.38.86.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-23 15:25:00,926 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea9d86b7-c61c-4614-a4e4-1c172b28c183', 'name': 'ctest-vn-56728564', 'tenant_id': '51141d8b366a4022ab2b4e6492e1f600', 'project_id': '51141d8b366a4022ab2b4e6492e1f600', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9bf57663-9ac0-49df-9882-42ee6da4ec1c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08259356', 'ctest-vn-56728564'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08259356', 'ctest-policy-allow-all-44637259']], 'subnet_ipam': [{'subnet_cidr': '121.140.128.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-23 15:25:01,081 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-03-23 15:25:01,397 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-03-23 15:25:01,439 - DEBUG - Requesting: http://10.0.0.129:8082/domain/f58a50db-2309-4908-a98d-de4146216055
2026-03-23 15:25:01,454 - DEBUG - Requesting: http://10.0.0.129:8082/project/51141d8b-366a-4022-ab2b-4e6492e1f600
2026-03-23 15:25:01,533 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/969c70ce-23de-4790-a194-20028baa9274
2026-03-23 15:25:01,547 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/969c70ce-23de-4790-a194-20028baa9274
2026-03-23 15:25:01,558 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c1ffdc97-aaeb-428f-861d-45cd1c59b775
2026-03-23 15:25:01,567 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c1ffdc97-aaeb-428f-861d-45cd1c59b775
2026-03-23 15:25:01,576 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/f6bc2c63-3a8a-428d-8847-a0f349c51271
2026-03-23 15:25:01,584 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-23 15:25:01,585 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/969c70ce-23de-4790-a194-20028baa9274
2026-03-23 15:25:01,596 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c1ffdc97-aaeb-428f-861d-45cd1c59b775
2026-03-23 15:25:01,613 - INFO - Verified VN network id 12 for VN 969c70ce-23de-4790-a194-20028baa9274
2026-03-23 15:25:01,613 - INFO - Verifications in API Server for VN ctest-vn-42555693 passed
2026-03-23 15:25:01,614 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/969c70ce-23de-4790-a194-20028baa9274
2026-03-23 15:25:01,625 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c1ffdc97-aaeb-428f-861d-45cd1c59b775
2026-03-23 15:25:01,634 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c1ffdc97-aaeb-428f-861d-45cd1c59b775
2026-03-23 15:25:01,642 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/f6bc2c63-3a8a-428d-8847-a0f349c51271
2026-03-23 15:25:01,658 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08259356:ctest-vn-42555693', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08259356', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10852673232723396496', 'uuid-lslong': '11642966131964809844'}, 'enable': 'true', 'created': '2026-03-23T15:24:59', 'last-modified': '2026-03-23T15:25:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999539'}
2026-03-23 15:25:01,667 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-23 15:25:01,667 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42555693 passed
2026-03-23 15:25:01,667 - DEBUG - ====Verifying policy data for ctest-vn-42555693 in API_Server ======
2026-03-23 15:25:01,667 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-03-23 15:25:01,675 - DEBUG - Requesting: http://10.0.0.129:8082/domain/f58a50db-2309-4908-a98d-de4146216055
2026-03-23 15:25:01,690 - DEBUG - Requesting: http://10.0.0.129:8082/project/51141d8b-366a-4022-ab2b-4e6492e1f600
2026-03-23 15:25:01,765 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/969c70ce-23de-4790-a194-20028baa9274
2026-03-23 15:25:01,776 - DEBUG - ==>Verifying data for policy with id: 631f546e-23be-4a35-8829-7da49435abca, fqn: ['default-domain', 'ctest-TestBasicPolicy-08259356', 'ctest-policy-allow-all-44637259']
2026-03-23 15:25:01,776 - INFO - VN ctest-vn-42555693 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-23 15:25:01,776 - DEBUG - Verifying the vn in opserver
2026-03-23 15:25:01,776 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08259356:ctest-vn-42555693 virtual network link through opserver 10.0.0.129
2026-03-23 15:25:01,777 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-03-23 15:25:02,092 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-03-23 15:25:02,174 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08259356:ctest-vn-42555693', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08259356:ctest-vn-42555693?flat'}
2026-03-23 15:25:02,174 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08259356:ctest-vn-42555693 is found in opserver
2026-03-23 15:25:02,187 - DEBUG - Do not have enough data to verify VN in agent
2026-03-23 15:25:02,192 - DEBUG - VRF ids for VN ctest-vn-42555693: {}
2026-03-23 15:25:02,192 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-03-23 15:25:02,199 - DEBUG - Requesting: http://10.0.0.129:8082/domain/f58a50db-2309-4908-a98d-de4146216055
2026-03-23 15:25:02,212 - DEBUG - Requesting: http://10.0.0.129:8082/project/51141d8b-366a-4022-ab2b-4e6492e1f600
2026-03-23 15:25:02,289 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ea9d86b7-c61c-4614-a4e4-1c172b28c183
2026-03-23 15:25:02,304 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ea9d86b7-c61c-4614-a4e4-1c172b28c183
2026-03-23 15:25:02,315 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9befddb1-3c78-4484-94fc-0bfd590463d9
2026-03-23 15:25:02,324 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9befddb1-3c78-4484-94fc-0bfd590463d9
2026-03-23 15:25:02,332 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/bfb8e7b6-b9a0-4e77-a5f5-d72372d9a7a7
2026-03-23 15:25:02,341 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-23 15:25:02,341 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ea9d86b7-c61c-4614-a4e4-1c172b28c183
2026-03-23 15:25:02,353 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9befddb1-3c78-4484-94fc-0bfd590463d9
2026-03-23 15:25:02,373 - INFO - Verified VN network id 13 for VN ea9d86b7-c61c-4614-a4e4-1c172b28c183
2026-03-23 15:25:02,373 - INFO - Verifications in API Server for VN ctest-vn-56728564 passed
2026-03-23 15:25:02,373 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ea9d86b7-c61c-4614-a4e4-1c172b28c183
2026-03-23 15:25:02,385 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9befddb1-3c78-4484-94fc-0bfd590463d9
2026-03-23 15:25:02,394 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9befddb1-3c78-4484-94fc-0bfd590463d9
2026-03-23 15:25:02,402 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/bfb8e7b6-b9a0-4e77-a5f5-d72372d9a7a7
2026-03-23 15:25:02,414 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08259356:ctest-vn-56728564', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08259356', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16905816700079588884', 'uuid-lslong': '11881652602744127875'}, 'enable': 'true', 'created': '2026-03-23T15:24:59', 'last-modified': '2026-03-23T15:25:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.509545'}
2026-03-23 15:25:02,420 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-23 15:25:02,421 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56728564 passed
2026-03-23 15:25:02,421 - DEBUG - ====Verifying policy data for ctest-vn-56728564 in API_Server ======
2026-03-23 15:25:02,421 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-03-23 15:25:02,429 - DEBUG - Requesting: http://10.0.0.129:8082/domain/f58a50db-2309-4908-a98d-de4146216055
2026-03-23 15:25:02,441 - DEBUG - Requesting: http://10.0.0.129:8082/project/51141d8b-366a-4022-ab2b-4e6492e1f600
2026-03-23 15:25:02,518 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ea9d86b7-c61c-4614-a4e4-1c172b28c183
2026-03-23 15:25:02,528 - DEBUG - ==>Verifying data for policy with id: 631f546e-23be-4a35-8829-7da49435abca, fqn: ['default-domain', 'ctest-TestBasicPolicy-08259356', 'ctest-policy-allow-all-44637259']
2026-03-23 15:25:02,528 - INFO - VN ctest-vn-56728564 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-23 15:25:02,528 - DEBUG - Verifying the vn in opserver
2026-03-23 15:25:02,528 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08259356:ctest-vn-56728564 virtual network link through opserver 10.0.0.129
2026-03-23 15:25:02,528 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-03-23 15:25:02,540 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08259356:ctest-vn-56728564', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08259356:ctest-vn-56728564?flat'}
2026-03-23 15:25:02,540 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08259356:ctest-vn-56728564 is found in opserver
2026-03-23 15:25:02,553 - DEBUG - Do not have enough data to verify VN in agent
2026-03-23 15:25:02,558 - DEBUG - VRF ids for VN ctest-vn-56728564: {}
2026-03-23 15:25:02,638 - DEBUG - Services list from nova: [