2025-10-13 12:52:25,303 - INFO - Domain Default found not creating
2025-10-13 12:52:25,440 - INFO - Project ctest-TestBasicPolicy-72359301 not found, creating it
2025-10-13 12:52:25,872 - INFO - Created Project:ctest-TestBasicPolicy-72359301, ID : 71da95b3-f05a-4de3-9406-05b76ad119cb
2025-10-13 12:52:27,220 - INFO - ================================================================================
2025-10-13 12:52:27,220 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-13 12:52:27,220 - 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
2025-10-13 12:52:27,475 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.193': '0'}} with
2025-10-13 12:52:27,475 - INFO - Initial checks done. Running the testcase now
2025-10-13 12:52:27,475 - INFO -
2025-10-13 12:52:27,993 - DEBUG - Response for create_network : {'network': {'id': '0409ee12-c389-40f2-8d1f-935a528582dd', 'name': 'ctest-vn-97138886', 'tenant_id': '71da95b3f05a4de3940605b76ad119cb', 'project_id': '71da95b3f05a4de3940605b76ad119cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72359301', 'ctest-vn-97138886'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 12:52:28,132 - DEBUG - Response for create_subnet : {'subnet': {'id': '01e3a11a-bbf8-474d-a217-f39ab64e0065', 'name': '', 'tenant_id': '71da95b3f05a4de3940605b76ad119cb', 'network_id': '0409ee12-c389-40f2-8d1f-935a528582dd', 'ip_version': 4, 'cidr': '20.76.145.0/26', 'allocation_pools': [{'start': '20.76.145.2', 'end': '20.76.145.62'}], 'gateway_ip': '20.76.145.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.76.145.2', 'tags': [], 'project_id': '71da95b3f05a4de3940605b76ad119cb'}}
2025-10-13 12:52:28,148 - INFO - Created VN ctest-vn-97138886
2025-10-13 12:52:28,201 - DEBUG - VN ctest-vn-97138886 UUID is 0409ee12-c389-40f2-8d1f-935a528582dd
2025-10-13 12:52:28,495 - DEBUG - Response for create_network : {'network': {'id': '30f532ec-84f8-482f-92af-b83f27fc274e', 'name': 'ctest-vn-38978922', 'tenant_id': '71da95b3f05a4de3940605b76ad119cb', 'project_id': '71da95b3f05a4de3940605b76ad119cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72359301', 'ctest-vn-38978922'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 12:52:28,689 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a12216fd-eb72-4a4b-9beb-b68280e05b60', 'name': '', 'tenant_id': '71da95b3f05a4de3940605b76ad119cb', 'network_id': '30f532ec-84f8-482f-92af-b83f27fc274e', 'ip_version': 4, 'cidr': '56.96.50.64/26', 'allocation_pools': [{'start': '56.96.50.66', 'end': '56.96.50.126'}], 'gateway_ip': '56.96.50.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.96.50.66', 'tags': [], 'project_id': '71da95b3f05a4de3940605b76ad119cb'}}
2025-10-13 12:52:28,705 - INFO - Created VN ctest-vn-38978922
2025-10-13 12:52:28,757 - DEBUG - VN ctest-vn-38978922 UUID is 30f532ec-84f8-482f-92af-b83f27fc274e
2025-10-13 12:52:28,905 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72359301:ctest-vn-97138886, 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-72359301:ctest-vn-38978922, 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]
2025-10-13 12:52:29,189 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0409ee12-c389-40f2-8d1f-935a528582dd', 'name': 'ctest-vn-97138886', 'tenant_id': '71da95b3f05a4de3940605b76ad119cb', 'project_id': '71da95b3f05a4de3940605b76ad119cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01e3a11a-bbf8-474d-a217-f39ab64e0065'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72359301', 'ctest-vn-97138886'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72359301', 'ctest-policy-allow-all-96825929']], 'subnet_ipam': [{'subnet_cidr': '20.76.145.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 12:52:29,402 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30f532ec-84f8-482f-92af-b83f27fc274e', 'name': 'ctest-vn-38978922', 'tenant_id': '71da95b3f05a4de3940605b76ad119cb', 'project_id': '71da95b3f05a4de3940605b76ad119cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a12216fd-eb72-4a4b-9beb-b68280e05b60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72359301', 'ctest-vn-38978922'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72359301', 'ctest-policy-allow-all-96825929']], 'subnet_ipam': [{'subnet_cidr': '56.96.50.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 12:52:29,561 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-13 12:52:29,849 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-13 12:52:29,874 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f7637674-1c0c-4068-a8eb-a862b87635f7
2025-10-13 12:52:29,885 - DEBUG - Requesting: http://10.0.0.137:8082/project/71da95b3-f05a-4de3-9406-05b76ad119cb
2025-10-13 12:52:29,955 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0409ee12-c389-40f2-8d1f-935a528582dd
2025-10-13 12:52:29,965 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0409ee12-c389-40f2-8d1f-935a528582dd
2025-10-13 12:52:29,972 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b9fcea95-7f4b-4284-8c2f-0a4e1f9a680b
2025-10-13 12:52:29,978 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b9fcea95-7f4b-4284-8c2f-0a4e1f9a680b
2025-10-13 12:52:29,984 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/a2fe4b3a-6a38-45f7-a717-b882cf0c23cd
2025-10-13 12:52:29,989 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 12:52:29,989 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0409ee12-c389-40f2-8d1f-935a528582dd
2025-10-13 12:52:29,999 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b9fcea95-7f4b-4284-8c2f-0a4e1f9a680b
2025-10-13 12:52:30,014 - INFO - Verified VN network id 12 for VN 0409ee12-c389-40f2-8d1f-935a528582dd
2025-10-13 12:52:30,015 - INFO - Verifications in API Server for VN ctest-vn-97138886 passed
2025-10-13 12:52:30,015 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0409ee12-c389-40f2-8d1f-935a528582dd
2025-10-13 12:52:30,023 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b9fcea95-7f4b-4284-8c2f-0a4e1f9a680b
2025-10-13 12:52:30,029 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b9fcea95-7f4b-4284-8c2f-0a4e1f9a680b
2025-10-13 12:52:30,035 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/a2fe4b3a-6a38-45f7-a717-b882cf0c23cd
2025-10-13 12:52:30,044 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72359301:ctest-vn-97138886', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72359301', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '291025415299481842', 'uuid-lslong': '10169008499766690525'}, 'enable': 'true', 'created': '2025-10-13T12:52:27', 'last-modified': '2025-10-13T12:52:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.874983'}
2025-10-13 12:52:30,051 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 12:52:30,051 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97138886 passed
2025-10-13 12:52:30,051 - DEBUG - ====Verifying policy data for ctest-vn-97138886 in API_Server ======
2025-10-13 12:52:30,052 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-13 12:52:30,056 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f7637674-1c0c-4068-a8eb-a862b87635f7
2025-10-13 12:52:30,067 - DEBUG - Requesting: http://10.0.0.137:8082/project/71da95b3-f05a-4de3-9406-05b76ad119cb
2025-10-13 12:52:30,135 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0409ee12-c389-40f2-8d1f-935a528582dd
2025-10-13 12:52:30,144 - DEBUG - ==>Verifying data for policy with id: e2337595-f8fd-450d-8a1b-fa590c160657, fqn: ['default-domain', 'ctest-TestBasicPolicy-72359301', 'ctest-policy-allow-all-96825929']
2025-10-13 12:52:30,144 - INFO - VN ctest-vn-97138886 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 12:52:30,144 - DEBUG - Verifying the vn in opserver
2025-10-13 12:52:30,144 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72359301:ctest-vn-97138886 virtual network link through opserver 10.0.0.137
2025-10-13 12:52:30,144 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-13 12:52:30,433 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-13 12:52:30,481 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72359301:ctest-vn-97138886', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72359301:ctest-vn-97138886?flat'}
2025-10-13 12:52:30,481 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72359301:ctest-vn-97138886 is found in opserver
2025-10-13 12:52:30,489 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 12:52:30,494 - DEBUG - VRF ids for VN ctest-vn-97138886: {}
2025-10-13 12:52:30,494 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-13 12:52:30,500 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f7637674-1c0c-4068-a8eb-a862b87635f7
2025-10-13 12:52:30,510 - DEBUG - Requesting: http://10.0.0.137:8082/project/71da95b3-f05a-4de3-9406-05b76ad119cb
2025-10-13 12:52:30,579 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/30f532ec-84f8-482f-92af-b83f27fc274e
2025-10-13 12:52:30,589 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/30f532ec-84f8-482f-92af-b83f27fc274e
2025-10-13 12:52:30,597 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/d8b4e1fa-d983-49b8-b900-0a82af71e542
2025-10-13 12:52:30,603 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/d8b4e1fa-d983-49b8-b900-0a82af71e542
2025-10-13 12:52:30,609 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/715b398c-bb5a-4c55-bb81-695efd62b435
2025-10-13 12:52:30,615 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 12:52:30,615 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/30f532ec-84f8-482f-92af-b83f27fc274e
2025-10-13 12:52:30,623 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/d8b4e1fa-d983-49b8-b900-0a82af71e542
2025-10-13 12:52:30,635 - INFO - Verified VN network id 13 for VN 30f532ec-84f8-482f-92af-b83f27fc274e
2025-10-13 12:52:30,635 - INFO - Verifications in API Server for VN ctest-vn-38978922 passed
2025-10-13 12:52:30,635 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/30f532ec-84f8-482f-92af-b83f27fc274e
2025-10-13 12:52:30,645 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/d8b4e1fa-d983-49b8-b900-0a82af71e542
2025-10-13 12:52:30,652 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/d8b4e1fa-d983-49b8-b900-0a82af71e542
2025-10-13 12:52:30,658 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/715b398c-bb5a-4c55-bb81-695efd62b435
2025-10-13 12:52:30,669 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72359301:ctest-vn-38978922', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72359301', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3527781874539186223', 'uuid-lslong': '10569869431855130446'}, 'enable': 'true', 'created': '2025-10-13T12:52:28', 'last-modified': '2025-10-13T12:52:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.287753'}
2025-10-13 12:52:30,674 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 12:52:30,674 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38978922 passed
2025-10-13 12:52:30,674 - DEBUG - ====Verifying policy data for ctest-vn-38978922 in API_Server ======
2025-10-13 12:52:30,674 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-13 12:52:30,682 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f7637674-1c0c-4068-a8eb-a862b87635f7
2025-10-13 12:52:30,691 - DEBUG - Requesting: http://10.0.0.137:8082/project/71da95b3-f05a-4de3-9406-05b76ad119cb
2025-10-13 12:52:30,756 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/30f532ec-84f8-482f-92af-b83f27fc274e
2025-10-13 12:52:30,764 - DEBUG - ==>Verifying data for policy with id: e2337595-f8fd-450d-8a1b-fa590c160657, fqn: ['default-domain', 'ctest-TestBasicPolicy-72359301', 'ctest-policy-allow-all-96825929']
2025-10-13 12:52:30,764 - INFO - VN ctest-vn-38978922 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 12:52:30,764 - DEBUG - Verifying the vn in opserver
2025-10-13 12:52:30,764 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72359301:ctest-vn-38978922 virtual network link through opserver 10.0.0.137
2025-10-13 12:52:30,764 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-13 12:52:30,773 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72359301:ctest-vn-38978922', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72359301:ctest-vn-38978922?flat'}
2025-10-13 12:52:30,773 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72359301:ctest-vn-38978922 is found in opserver
2025-10-13 12:52:30,781 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 12:52:30,785 - DEBUG - VRF ids for VN ctest-vn-38978922: {}
2025-10-13 12:52:30,834 - DEBUG - Services list from nova: [