2026-05-20 12:33:40,935 - INFO - Domain Default found not creating
2026-05-20 12:33:41,127 - INFO - Project ctest-TestBasicPolicy-85683705 not found, creating it
2026-05-20 12:33:41,591 - INFO - Created Project:ctest-TestBasicPolicy-85683705, ID : 6db5287d-6682-4ebe-8a59-fe20da5da382
2026-05-20 12:33:43,032 - INFO - ================================================================================
2026-05-20 12:33:43,032 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-20 12:33:43,033 - 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-05-20 12:33:43,291 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2026-05-20 12:33:43,291 - INFO - Initial checks done. Running the testcase now
2026-05-20 12:33:43,291 - INFO -
2026-05-20 12:33:43,847 - DEBUG - Response for create_network : {'network': {'id': 'af25171b-f57b-4cf7-be6e-3e802c9133d2', 'name': 'ctest-vn-04349331', 'tenant_id': '6db5287d66824ebe8a59fe20da5da382', 'project_id': '6db5287d66824ebe8a59fe20da5da382', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85683705', 'ctest-vn-04349331'], 'port_security_enabled': True, 'description': ''}}
2026-05-20 12:33:44,027 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e67534a-aa47-42ae-ab2e-d505fd0db576', 'name': '', 'tenant_id': '6db5287d66824ebe8a59fe20da5da382', 'network_id': 'af25171b-f57b-4cf7-be6e-3e802c9133d2', 'ip_version': 4, 'cidr': '48.37.26.64/26', 'allocation_pools': [{'start': '48.37.26.66', 'end': '48.37.26.126'}], 'gateway_ip': '48.37.26.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.37.26.66', 'tags': [], 'project_id': '6db5287d66824ebe8a59fe20da5da382'}}
2026-05-20 12:33:44,044 - INFO - Created VN ctest-vn-04349331
2026-05-20 12:33:44,097 - DEBUG - VN ctest-vn-04349331 UUID is af25171b-f57b-4cf7-be6e-3e802c9133d2
2026-05-20 12:33:44,407 - DEBUG - Response for create_network : {'network': {'id': '30ae979d-2231-4601-aef7-155728dad296', 'name': 'ctest-vn-52469693', 'tenant_id': '6db5287d66824ebe8a59fe20da5da382', 'project_id': '6db5287d66824ebe8a59fe20da5da382', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85683705', 'ctest-vn-52469693'], 'port_security_enabled': True, 'description': ''}}
2026-05-20 12:33:44,605 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b2dd66e-3334-41f1-b929-cb99aa96ae49', 'name': '', 'tenant_id': '6db5287d66824ebe8a59fe20da5da382', 'network_id': '30ae979d-2231-4601-aef7-155728dad296', 'ip_version': 4, 'cidr': '3.3.145.128/26', 'allocation_pools': [{'start': '3.3.145.130', 'end': '3.3.145.190'}], 'gateway_ip': '3.3.145.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.3.145.130', 'tags': [], 'project_id': '6db5287d66824ebe8a59fe20da5da382'}}
2026-05-20 12:33:44,624 - INFO - Created VN ctest-vn-52469693
2026-05-20 12:33:44,677 - DEBUG - VN ctest-vn-52469693 UUID is 30ae979d-2231-4601-aef7-155728dad296
2026-05-20 12:33:44,829 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85683705:ctest-vn-04349331, 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-85683705:ctest-vn-52469693, 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-05-20 12:33:45,125 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af25171b-f57b-4cf7-be6e-3e802c9133d2', 'name': 'ctest-vn-04349331', 'tenant_id': '6db5287d66824ebe8a59fe20da5da382', 'project_id': '6db5287d66824ebe8a59fe20da5da382', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e67534a-aa47-42ae-ab2e-d505fd0db576'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85683705', 'ctest-vn-04349331'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85683705', 'ctest-policy-allow-all-36210398']], 'subnet_ipam': [{'subnet_cidr': '48.37.26.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-20 12:33:45,354 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30ae979d-2231-4601-aef7-155728dad296', 'name': 'ctest-vn-52469693', 'tenant_id': '6db5287d66824ebe8a59fe20da5da382', 'project_id': '6db5287d66824ebe8a59fe20da5da382', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b2dd66e-3334-41f1-b929-cb99aa96ae49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85683705', 'ctest-vn-52469693'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85683705', 'ctest-policy-allow-all-36210398']], 'subnet_ipam': [{'subnet_cidr': '3.3.145.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-20 12:33:45,521 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-20 12:33:45,815 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-20 12:33:45,847 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a9782170-3914-47e9-9ea4-bc41b6f15807
2026-05-20 12:33:45,860 - DEBUG - Requesting: http://10.0.0.242:8082/project/6db5287d-6682-4ebe-8a59-fe20da5da382
2026-05-20 12:33:45,932 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/af25171b-f57b-4cf7-be6e-3e802c9133d2
2026-05-20 12:33:45,944 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/af25171b-f57b-4cf7-be6e-3e802c9133d2
2026-05-20 12:33:45,955 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/24c61fe9-b16d-4e7a-8f25-8950268f0ba4
2026-05-20 12:33:45,962 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/24c61fe9-b16d-4e7a-8f25-8950268f0ba4
2026-05-20 12:33:45,968 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/08e37a7f-38f1-4a61-8140-9e499f3f4da8
2026-05-20 12:33:45,974 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-20 12:33:45,974 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/af25171b-f57b-4cf7-be6e-3e802c9133d2
2026-05-20 12:33:45,983 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/24c61fe9-b16d-4e7a-8f25-8950268f0ba4
2026-05-20 12:33:45,996 - INFO - Verified VN network id 11 for VN af25171b-f57b-4cf7-be6e-3e802c9133d2
2026-05-20 12:33:45,996 - INFO - Verifications in API Server for VN ctest-vn-04349331 passed
2026-05-20 12:33:45,996 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/af25171b-f57b-4cf7-be6e-3e802c9133d2
2026-05-20 12:33:46,006 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/24c61fe9-b16d-4e7a-8f25-8950268f0ba4
2026-05-20 12:33:46,013 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/24c61fe9-b16d-4e7a-8f25-8950268f0ba4
2026-05-20 12:33:46,021 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/08e37a7f-38f1-4a61-8140-9e499f3f4da8
2026-05-20 12:33:46,033 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85683705:ctest-vn-04349331', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85683705', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12620518939625737463', 'uuid-lslong': '13721973834868929490'}, 'enable': 'true', 'created': '2026-05-20T12:33:43', 'last-modified': '2026-05-20T12:33:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934458'}
2026-05-20 12:33:46,039 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-20 12:33:46,039 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04349331 passed
2026-05-20 12:33:46,039 - DEBUG - ====Verifying policy data for ctest-vn-04349331 in API_Server ======
2026-05-20 12:33:46,040 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-20 12:33:46,045 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a9782170-3914-47e9-9ea4-bc41b6f15807
2026-05-20 12:33:46,056 - DEBUG - Requesting: http://10.0.0.242:8082/project/6db5287d-6682-4ebe-8a59-fe20da5da382
2026-05-20 12:33:46,126 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/af25171b-f57b-4cf7-be6e-3e802c9133d2
2026-05-20 12:33:46,135 - DEBUG - ==>Verifying data for policy with id: 56a281b8-0502-494a-a917-cc59e6d888c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-85683705', 'ctest-policy-allow-all-36210398']
2026-05-20 12:33:46,135 - INFO - VN ctest-vn-04349331 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-20 12:33:46,135 - DEBUG - Verifying the vn in opserver
2026-05-20 12:33:46,135 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85683705:ctest-vn-04349331 virtual network link through opserver 10.0.0.242
2026-05-20 12:33:46,135 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-05-20 12:33:46,425 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-05-20 12:33:46,484 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85683705:ctest-vn-04349331', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85683705:ctest-vn-04349331?flat'}
2026-05-20 12:33:46,484 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85683705:ctest-vn-04349331 is found in opserver
2026-05-20 12:33:46,493 - DEBUG - Do not have enough data to verify VN in agent
2026-05-20 12:33:46,497 - DEBUG - VRF ids for VN ctest-vn-04349331: {}
2026-05-20 12:33:46,497 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-20 12:33:46,502 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a9782170-3914-47e9-9ea4-bc41b6f15807
2026-05-20 12:33:46,513 - DEBUG - Requesting: http://10.0.0.242:8082/project/6db5287d-6682-4ebe-8a59-fe20da5da382
2026-05-20 12:33:46,584 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/30ae979d-2231-4601-aef7-155728dad296
2026-05-20 12:33:46,594 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/30ae979d-2231-4601-aef7-155728dad296
2026-05-20 12:33:46,603 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a0397d08-9e59-4015-bdc3-9d3ae960ae24
2026-05-20 12:33:46,611 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a0397d08-9e59-4015-bdc3-9d3ae960ae24
2026-05-20 12:33:46,618 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9259f764-fa15-471a-b46b-9f41f3d2658f
2026-05-20 12:33:46,624 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-20 12:33:46,624 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/30ae979d-2231-4601-aef7-155728dad296
2026-05-20 12:33:46,634 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a0397d08-9e59-4015-bdc3-9d3ae960ae24
2026-05-20 12:33:46,650 - INFO - Verified VN network id 12 for VN 30ae979d-2231-4601-aef7-155728dad296
2026-05-20 12:33:46,650 - INFO - Verifications in API Server for VN ctest-vn-52469693 passed
2026-05-20 12:33:46,650 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/30ae979d-2231-4601-aef7-155728dad296
2026-05-20 12:33:46,659 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a0397d08-9e59-4015-bdc3-9d3ae960ae24
2026-05-20 12:33:46,667 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a0397d08-9e59-4015-bdc3-9d3ae960ae24
2026-05-20 12:33:46,674 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9259f764-fa15-471a-b46b-9f41f3d2658f
2026-05-20 12:33:46,685 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85683705:ctest-vn-52469693', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85683705', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3507907860907509249', 'uuid-lslong': '12607569145938760342'}, 'enable': 'true', 'created': '2026-05-20T12:33:44', 'last-modified': '2026-05-20T12:33:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.354323'}
2026-05-20 12:33:46,691 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-20 12:33:46,691 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52469693 passed
2026-05-20 12:33:46,691 - DEBUG - ====Verifying policy data for ctest-vn-52469693 in API_Server ======
2026-05-20 12:33:46,691 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-05-20 12:33:46,699 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a9782170-3914-47e9-9ea4-bc41b6f15807
2026-05-20 12:33:46,710 - DEBUG - Requesting: http://10.0.0.242:8082/project/6db5287d-6682-4ebe-8a59-fe20da5da382
2026-05-20 12:33:46,783 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/30ae979d-2231-4601-aef7-155728dad296
2026-05-20 12:33:46,792 - DEBUG - ==>Verifying data for policy with id: 56a281b8-0502-494a-a917-cc59e6d888c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-85683705', 'ctest-policy-allow-all-36210398']
2026-05-20 12:33:46,792 - INFO - VN ctest-vn-52469693 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-20 12:33:46,792 - DEBUG - Verifying the vn in opserver
2026-05-20 12:33:46,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85683705:ctest-vn-52469693 virtual network link through opserver 10.0.0.242
2026-05-20 12:33:46,792 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-05-20 12:33:46,802 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85683705:ctest-vn-52469693', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85683705:ctest-vn-52469693?flat'}
2026-05-20 12:33:46,802 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85683705:ctest-vn-52469693 is found in opserver
2026-05-20 12:33:46,812 - DEBUG - Do not have enough data to verify VN in agent
2026-05-20 12:33:46,817 - DEBUG - VRF ids for VN ctest-vn-52469693: {}
2026-05-20 12:33:46,873 - DEBUG - Services list from nova: [