2025-11-05 08:21:16,944 - INFO - Domain Default found not creating
2025-11-05 08:21:17,098 - INFO - Project ctest-TestBasicPolicy-44762736 not found, creating it
2025-11-05 08:21:17,552 - INFO - Created Project:ctest-TestBasicPolicy-44762736, ID : bde9de2a-8fa3-4718-99aa-a96cb3346435
2025-11-05 08:21:19,046 - INFO - ================================================================================
2025-11-05 08:21:19,046 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 08:21:19,046 - 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-11-05 08:21:19,299 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with
2025-11-05 08:21:19,300 - INFO - Initial checks done. Running the testcase now
2025-11-05 08:21:19,300 - INFO -
2025-11-05 08:21:19,867 - DEBUG - Response for create_network : {'network': {'id': 'a7210644-79d9-4c1a-8be0-59eaf9473d41', 'name': 'ctest-vn-58013134', 'tenant_id': 'bde9de2a8fa3471899aaa96cb3346435', 'project_id': 'bde9de2a8fa3471899aaa96cb3346435', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44762736', 'ctest-vn-58013134'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:21:20,056 - DEBUG - Response for create_subnet : {'subnet': {'id': '51f2f0ce-0d91-4f07-9fc0-0553805e8407', 'name': '', 'tenant_id': 'bde9de2a8fa3471899aaa96cb3346435', 'network_id': 'a7210644-79d9-4c1a-8be0-59eaf9473d41', 'ip_version': 4, 'cidr': '118.8.200.192/26', 'allocation_pools': [{'start': '118.8.200.194', 'end': '118.8.200.254'}], 'gateway_ip': '118.8.200.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.8.200.194', 'tags': [], 'project_id': 'bde9de2a8fa3471899aaa96cb3346435'}}
2025-11-05 08:21:20,069 - INFO - Created VN ctest-vn-58013134
2025-11-05 08:21:20,122 - DEBUG - VN ctest-vn-58013134 UUID is a7210644-79d9-4c1a-8be0-59eaf9473d41
2025-11-05 08:21:20,435 - DEBUG - Response for create_network : {'network': {'id': 'd1a6fd39-e7d6-449e-9296-ec57562b2f62', 'name': 'ctest-vn-14368012', 'tenant_id': 'bde9de2a8fa3471899aaa96cb3346435', 'project_id': 'bde9de2a8fa3471899aaa96cb3346435', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44762736', 'ctest-vn-14368012'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:21:20,588 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aeb21a40-c63f-40e6-a8a2-c930ded93f5c', 'name': '', 'tenant_id': 'bde9de2a8fa3471899aaa96cb3346435', 'network_id': 'd1a6fd39-e7d6-449e-9296-ec57562b2f62', 'ip_version': 4, 'cidr': '23.24.63.0/26', 'allocation_pools': [{'start': '23.24.63.2', 'end': '23.24.63.62'}], 'gateway_ip': '23.24.63.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.24.63.2', 'tags': [], 'project_id': 'bde9de2a8fa3471899aaa96cb3346435'}}
2025-11-05 08:21:20,606 - INFO - Created VN ctest-vn-14368012
2025-11-05 08:21:20,658 - DEBUG - VN ctest-vn-14368012 UUID is d1a6fd39-e7d6-449e-9296-ec57562b2f62
2025-11-05 08:21:20,806 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44762736:ctest-vn-58013134, 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-44762736:ctest-vn-14368012, 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-11-05 08:21:21,101 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7210644-79d9-4c1a-8be0-59eaf9473d41', 'name': 'ctest-vn-58013134', 'tenant_id': 'bde9de2a8fa3471899aaa96cb3346435', 'project_id': 'bde9de2a8fa3471899aaa96cb3346435', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51f2f0ce-0d91-4f07-9fc0-0553805e8407'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44762736', 'ctest-vn-58013134'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44762736', 'ctest-policy-allow-all-73932739']], 'subnet_ipam': [{'subnet_cidr': '118.8.200.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:21:21,331 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1a6fd39-e7d6-449e-9296-ec57562b2f62', 'name': 'ctest-vn-14368012', 'tenant_id': 'bde9de2a8fa3471899aaa96cb3346435', 'project_id': 'bde9de2a8fa3471899aaa96cb3346435', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aeb21a40-c63f-40e6-a8a2-c930ded93f5c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44762736', 'ctest-vn-14368012'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44762736', 'ctest-policy-allow-all-73932739']], 'subnet_ipam': [{'subnet_cidr': '23.24.63.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:21:21,494 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 08:21:21,804 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 08:21:21,834 - DEBUG - Requesting: http://10.0.0.22:8082/domain/450edf14-d25c-496d-8095-cac6e98aa5a6
2025-11-05 08:21:21,844 - DEBUG - Requesting: http://10.0.0.22:8082/project/bde9de2a-8fa3-4718-99aa-a96cb3346435
2025-11-05 08:21:21,911 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7210644-79d9-4c1a-8be0-59eaf9473d41
2025-11-05 08:21:21,922 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7210644-79d9-4c1a-8be0-59eaf9473d41
2025-11-05 08:21:21,931 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/53cf090f-bb0f-4a89-a3dc-8c54a545fc21
2025-11-05 08:21:21,938 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/53cf090f-bb0f-4a89-a3dc-8c54a545fc21
2025-11-05 08:21:21,943 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9455891c-f2a6-4bbb-aa46-f0c50d398540
2025-11-05 08:21:21,948 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 08:21:21,948 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7210644-79d9-4c1a-8be0-59eaf9473d41
2025-11-05 08:21:21,956 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/53cf090f-bb0f-4a89-a3dc-8c54a545fc21
2025-11-05 08:21:21,968 - INFO - Verified VN network id 11 for VN a7210644-79d9-4c1a-8be0-59eaf9473d41
2025-11-05 08:21:21,968 - INFO - Verifications in API Server for VN ctest-vn-58013134 passed
2025-11-05 08:21:21,968 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7210644-79d9-4c1a-8be0-59eaf9473d41
2025-11-05 08:21:21,976 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/53cf090f-bb0f-4a89-a3dc-8c54a545fc21
2025-11-05 08:21:21,982 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/53cf090f-bb0f-4a89-a3dc-8c54a545fc21
2025-11-05 08:21:21,988 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9455891c-f2a6-4bbb-aa46-f0c50d398540
2025-11-05 08:21:21,999 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44762736:ctest-vn-58013134', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44762736', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12042913769737243674', 'uuid-lslong': '10079154831794584897'}, 'enable': 'true', 'created': '2025-11-05T08:21:19', 'last-modified': '2025-11-05T08:21:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.928769'}
2025-11-05 08:21:22,005 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 08:21:22,005 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58013134 passed
2025-11-05 08:21:22,005 - DEBUG - ====Verifying policy data for ctest-vn-58013134 in API_Server ======
2025-11-05 08:21:22,005 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 08:21:22,010 - DEBUG - Requesting: http://10.0.0.22:8082/domain/450edf14-d25c-496d-8095-cac6e98aa5a6
2025-11-05 08:21:22,020 - DEBUG - Requesting: http://10.0.0.22:8082/project/bde9de2a-8fa3-4718-99aa-a96cb3346435
2025-11-05 08:21:22,089 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7210644-79d9-4c1a-8be0-59eaf9473d41
2025-11-05 08:21:22,097 - DEBUG - ==>Verifying data for policy with id: 0130fe99-d76e-4f2f-be9a-88399eefd34e, fqn: ['default-domain', 'ctest-TestBasicPolicy-44762736', 'ctest-policy-allow-all-73932739']
2025-11-05 08:21:22,097 - INFO - VN ctest-vn-58013134 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 08:21:22,097 - DEBUG - Verifying the vn in opserver
2025-11-05 08:21:22,097 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44762736:ctest-vn-58013134 virtual network link through opserver 10.0.0.22
2025-11-05 08:21:22,097 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-05 08:21:22,417 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-05 08:21:22,494 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44762736:ctest-vn-58013134', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44762736:ctest-vn-58013134?flat'}
2025-11-05 08:21:22,494 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44762736:ctest-vn-58013134 is found in opserver
2025-11-05 08:21:22,503 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 08:21:22,507 - DEBUG - VRF ids for VN ctest-vn-58013134: {}
2025-11-05 08:21:22,508 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 08:21:22,513 - DEBUG - Requesting: http://10.0.0.22:8082/domain/450edf14-d25c-496d-8095-cac6e98aa5a6
2025-11-05 08:21:22,522 - DEBUG - Requesting: http://10.0.0.22:8082/project/bde9de2a-8fa3-4718-99aa-a96cb3346435
2025-11-05 08:21:22,591 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d1a6fd39-e7d6-449e-9296-ec57562b2f62
2025-11-05 08:21:22,602 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d1a6fd39-e7d6-449e-9296-ec57562b2f62
2025-11-05 08:21:22,612 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/49084dec-c621-41a5-8c69-708e057154c9
2025-11-05 08:21:22,618 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/49084dec-c621-41a5-8c69-708e057154c9
2025-11-05 08:21:22,625 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/28ebf504-2378-476e-aeb2-b16b5f6e384c
2025-11-05 08:21:22,630 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 08:21:22,630 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d1a6fd39-e7d6-449e-9296-ec57562b2f62
2025-11-05 08:21:22,638 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/49084dec-c621-41a5-8c69-708e057154c9
2025-11-05 08:21:22,652 - INFO - Verified VN network id 12 for VN d1a6fd39-e7d6-449e-9296-ec57562b2f62
2025-11-05 08:21:22,652 - INFO - Verifications in API Server for VN ctest-vn-14368012 passed
2025-11-05 08:21:22,652 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d1a6fd39-e7d6-449e-9296-ec57562b2f62
2025-11-05 08:21:22,661 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/49084dec-c621-41a5-8c69-708e057154c9
2025-11-05 08:21:22,672 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/49084dec-c621-41a5-8c69-708e057154c9
2025-11-05 08:21:22,678 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/28ebf504-2378-476e-aeb2-b16b5f6e384c
2025-11-05 08:21:22,691 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44762736:ctest-vn-14368012', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44762736', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15107040425205449886', 'uuid-lslong': '10562889835896057698'}, 'enable': 'true', 'created': '2025-11-05T08:21:20', 'last-modified': '2025-11-05T08:21:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.376465'}
2025-11-05 08:21:22,696 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 08:21:22,696 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14368012 passed
2025-11-05 08:21:22,697 - DEBUG - ====Verifying policy data for ctest-vn-14368012 in API_Server ======
2025-11-05 08:21:22,697 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-05 08:21:22,702 - DEBUG - Requesting: http://10.0.0.22:8082/domain/450edf14-d25c-496d-8095-cac6e98aa5a6
2025-11-05 08:21:22,713 - DEBUG - Requesting: http://10.0.0.22:8082/project/bde9de2a-8fa3-4718-99aa-a96cb3346435
2025-11-05 08:21:22,780 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d1a6fd39-e7d6-449e-9296-ec57562b2f62
2025-11-05 08:21:22,789 - DEBUG - ==>Verifying data for policy with id: 0130fe99-d76e-4f2f-be9a-88399eefd34e, fqn: ['default-domain', 'ctest-TestBasicPolicy-44762736', 'ctest-policy-allow-all-73932739']
2025-11-05 08:21:22,789 - INFO - VN ctest-vn-14368012 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 08:21:22,789 - DEBUG - Verifying the vn in opserver
2025-11-05 08:21:22,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44762736:ctest-vn-14368012 virtual network link through opserver 10.0.0.22
2025-11-05 08:21:22,789 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-05 08:21:22,798 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44762736:ctest-vn-14368012', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44762736:ctest-vn-14368012?flat'}
2025-11-05 08:21:22,798 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44762736:ctest-vn-14368012 is found in opserver
2025-11-05 08:21:22,809 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 08:21:22,814 - DEBUG - VRF ids for VN ctest-vn-14368012: {}
2025-11-05 08:21:22,877 - DEBUG - Services list from nova: [