2025-10-15 19:39:18,896 - INFO - Domain Default found not creating
2025-10-15 19:39:19,078 - INFO - Project ctest-TestBasicPolicy-84616433 not found, creating it
2025-10-15 19:39:19,565 - INFO - Created Project:ctest-TestBasicPolicy-84616433, ID : cce6d35a-2357-46bc-92fb-c01d8e510407
2025-10-15 19:39:21,065 - INFO - ================================================================================
2025-10-15 19:39:21,065 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-15 19:39:21,065 - 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-15 19:39:21,339 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with
2025-10-15 19:39:21,339 - INFO - Initial checks done. Running the testcase now
2025-10-15 19:39:21,339 - INFO -
2025-10-15 19:39:21,925 - DEBUG - Response for create_network : {'network': {'id': 'c9ee6bdb-6f37-40f0-9a24-2f1cc5c1645c', 'name': 'ctest-vn-90226665', 'tenant_id': 'cce6d35a235746bc92fbc01d8e510407', 'project_id': 'cce6d35a235746bc92fbc01d8e510407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84616433', 'ctest-vn-90226665'], 'port_security_enabled': True, 'description': ''}}
2025-10-15 19:39:22,141 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c679d1e5-44b8-4969-9bf6-903387d531b2', 'name': '', 'tenant_id': 'cce6d35a235746bc92fbc01d8e510407', 'network_id': 'c9ee6bdb-6f37-40f0-9a24-2f1cc5c1645c', 'ip_version': 4, 'cidr': '35.100.67.128/26', 'allocation_pools': [{'start': '35.100.67.130', 'end': '35.100.67.190'}], 'gateway_ip': '35.100.67.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.100.67.130', 'tags': [], 'project_id': 'cce6d35a235746bc92fbc01d8e510407'}}
2025-10-15 19:39:22,160 - INFO - Created VN ctest-vn-90226665
2025-10-15 19:39:22,214 - DEBUG - VN ctest-vn-90226665 UUID is c9ee6bdb-6f37-40f0-9a24-2f1cc5c1645c
2025-10-15 19:39:22,510 - DEBUG - Response for create_network : {'network': {'id': 'b438fe84-027e-4d7f-9966-8df891095280', 'name': 'ctest-vn-39446505', 'tenant_id': 'cce6d35a235746bc92fbc01d8e510407', 'project_id': 'cce6d35a235746bc92fbc01d8e510407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84616433', 'ctest-vn-39446505'], 'port_security_enabled': True, 'description': ''}}
2025-10-15 19:39:22,734 - DEBUG - Response for create_subnet : {'subnet': {'id': '9691b9c7-08be-4f9c-ba0b-be92ff1a9383', 'name': '', 'tenant_id': 'cce6d35a235746bc92fbc01d8e510407', 'network_id': 'b438fe84-027e-4d7f-9966-8df891095280', 'ip_version': 4, 'cidr': '217.179.179.64/26', 'allocation_pools': [{'start': '217.179.179.66', 'end': '217.179.179.126'}], 'gateway_ip': '217.179.179.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.179.179.66', 'tags': [], 'project_id': 'cce6d35a235746bc92fbc01d8e510407'}}
2025-10-15 19:39:22,753 - INFO - Created VN ctest-vn-39446505
2025-10-15 19:39:22,810 - DEBUG - VN ctest-vn-39446505 UUID is b438fe84-027e-4d7f-9966-8df891095280
2025-10-15 19:39:22,932 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84616433:ctest-vn-90226665, 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-84616433:ctest-vn-39446505, 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-15 19:39:23,248 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9ee6bdb-6f37-40f0-9a24-2f1cc5c1645c', 'name': 'ctest-vn-90226665', 'tenant_id': 'cce6d35a235746bc92fbc01d8e510407', 'project_id': 'cce6d35a235746bc92fbc01d8e510407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c679d1e5-44b8-4969-9bf6-903387d531b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84616433', 'ctest-vn-90226665'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84616433', 'ctest-policy-allow-all-49411728']], 'subnet_ipam': [{'subnet_cidr': '35.100.67.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-15 19:39:23,528 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b438fe84-027e-4d7f-9966-8df891095280', 'name': 'ctest-vn-39446505', 'tenant_id': 'cce6d35a235746bc92fbc01d8e510407', 'project_id': 'cce6d35a235746bc92fbc01d8e510407', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9691b9c7-08be-4f9c-ba0b-be92ff1a9383'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84616433', 'ctest-vn-39446505'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84616433', 'ctest-policy-allow-all-49411728']], 'subnet_ipam': [{'subnet_cidr': '217.179.179.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-15 19:39:23,690 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-15 19:39:23,990 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-15 19:39:24,020 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd71de06-90f0-40c9-b923-2a3d6bfa1e51
2025-10-15 19:39:24,033 - DEBUG - Requesting: http://10.0.0.22:8082/project/cce6d35a-2357-46bc-92fb-c01d8e510407
2025-10-15 19:39:24,110 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c9ee6bdb-6f37-40f0-9a24-2f1cc5c1645c
2025-10-15 19:39:24,120 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c9ee6bdb-6f37-40f0-9a24-2f1cc5c1645c
2025-10-15 19:39:24,129 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1b506cf1-3d7f-4d18-bbc6-17da985f0b32
2025-10-15 19:39:24,137 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1b506cf1-3d7f-4d18-bbc6-17da985f0b32
2025-10-15 19:39:24,144 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f4d6753c-742f-490c-888c-6b7b4c19ba6f
2025-10-15 19:39:24,150 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-15 19:39:24,150 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c9ee6bdb-6f37-40f0-9a24-2f1cc5c1645c
2025-10-15 19:39:24,158 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1b506cf1-3d7f-4d18-bbc6-17da985f0b32
2025-10-15 19:39:24,171 - INFO - Verified VN network id 11 for VN c9ee6bdb-6f37-40f0-9a24-2f1cc5c1645c
2025-10-15 19:39:24,171 - INFO - Verifications in API Server for VN ctest-vn-90226665 passed
2025-10-15 19:39:24,171 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c9ee6bdb-6f37-40f0-9a24-2f1cc5c1645c
2025-10-15 19:39:24,180 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1b506cf1-3d7f-4d18-bbc6-17da985f0b32
2025-10-15 19:39:24,187 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1b506cf1-3d7f-4d18-bbc6-17da985f0b32
2025-10-15 19:39:24,194 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f4d6753c-742f-490c-888c-6b7b4c19ba6f
2025-10-15 19:39:24,206 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84616433:ctest-vn-90226665', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84616433', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14550686036288553200', 'uuid-lslong': '11107054381625861212'}, 'enable': 'true', 'created': '2025-10-15T19:39:21', 'last-modified': '2025-10-15T19:39:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988884'}
2025-10-15 19:39:24,212 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-15 19:39:24,212 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90226665 passed
2025-10-15 19:39:24,213 - DEBUG - ====Verifying policy data for ctest-vn-90226665 in API_Server ======
2025-10-15 19:39:24,213 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-15 19:39:24,217 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd71de06-90f0-40c9-b923-2a3d6bfa1e51
2025-10-15 19:39:24,227 - DEBUG - Requesting: http://10.0.0.22:8082/project/cce6d35a-2357-46bc-92fb-c01d8e510407
2025-10-15 19:39:24,301 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c9ee6bdb-6f37-40f0-9a24-2f1cc5c1645c
2025-10-15 19:39:24,310 - DEBUG - ==>Verifying data for policy with id: 19d6eff7-3a18-4289-a649-95e84c58ed93, fqn: ['default-domain', 'ctest-TestBasicPolicy-84616433', 'ctest-policy-allow-all-49411728']
2025-10-15 19:39:24,310 - INFO - VN ctest-vn-90226665 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-15 19:39:24,310 - DEBUG - Verifying the vn in opserver
2025-10-15 19:39:24,310 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84616433:ctest-vn-90226665 virtual network link through opserver 10.0.0.22
2025-10-15 19:39:24,311 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-15 19:39:24,605 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-15 19:39:24,668 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84616433:ctest-vn-90226665', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84616433:ctest-vn-90226665?flat'}
2025-10-15 19:39:24,668 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84616433:ctest-vn-90226665 is found in opserver
2025-10-15 19:39:24,677 - DEBUG - Do not have enough data to verify VN in agent
2025-10-15 19:39:24,681 - DEBUG - VRF ids for VN ctest-vn-90226665: {}
2025-10-15 19:39:24,681 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-15 19:39:24,686 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd71de06-90f0-40c9-b923-2a3d6bfa1e51
2025-10-15 19:39:24,697 - DEBUG - Requesting: http://10.0.0.22:8082/project/cce6d35a-2357-46bc-92fb-c01d8e510407
2025-10-15 19:39:24,778 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b438fe84-027e-4d7f-9966-8df891095280
2025-10-15 19:39:24,791 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b438fe84-027e-4d7f-9966-8df891095280
2025-10-15 19:39:24,801 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5405f2fc-5c15-4786-a8e0-d502d308ea89
2025-10-15 19:39:24,812 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5405f2fc-5c15-4786-a8e0-d502d308ea89
2025-10-15 19:39:24,819 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2edaf056-e794-417d-8b58-5eb51511eed6
2025-10-15 19:39:24,828 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-15 19:39:24,828 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b438fe84-027e-4d7f-9966-8df891095280
2025-10-15 19:39:24,838 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5405f2fc-5c15-4786-a8e0-d502d308ea89
2025-10-15 19:39:24,853 - INFO - Verified VN network id 12 for VN b438fe84-027e-4d7f-9966-8df891095280
2025-10-15 19:39:24,853 - INFO - Verifications in API Server for VN ctest-vn-39446505 passed
2025-10-15 19:39:24,854 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b438fe84-027e-4d7f-9966-8df891095280
2025-10-15 19:39:24,863 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5405f2fc-5c15-4786-a8e0-d502d308ea89
2025-10-15 19:39:24,870 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5405f2fc-5c15-4786-a8e0-d502d308ea89
2025-10-15 19:39:24,877 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2edaf056-e794-417d-8b58-5eb51511eed6
2025-10-15 19:39:24,889 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84616433:ctest-vn-39446505', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84616433', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12986409368453795199', 'uuid-lslong': '11053678434152174208'}, 'enable': 'true', 'created': '2025-10-15T19:39:22', 'last-modified': '2025-10-15T19:39:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.426614'}
2025-10-15 19:39:24,894 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-15 19:39:24,894 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39446505 passed
2025-10-15 19:39:24,894 - DEBUG - ====Verifying policy data for ctest-vn-39446505 in API_Server ======
2025-10-15 19:39:24,894 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-15 19:39:24,902 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd71de06-90f0-40c9-b923-2a3d6bfa1e51
2025-10-15 19:39:24,915 - DEBUG - Requesting: http://10.0.0.22:8082/project/cce6d35a-2357-46bc-92fb-c01d8e510407
2025-10-15 19:39:24,988 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b438fe84-027e-4d7f-9966-8df891095280
2025-10-15 19:39:24,998 - DEBUG - ==>Verifying data for policy with id: 19d6eff7-3a18-4289-a649-95e84c58ed93, fqn: ['default-domain', 'ctest-TestBasicPolicy-84616433', 'ctest-policy-allow-all-49411728']
2025-10-15 19:39:24,998 - INFO - VN ctest-vn-39446505 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-15 19:39:24,998 - DEBUG - Verifying the vn in opserver
2025-10-15 19:39:24,998 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84616433:ctest-vn-39446505 virtual network link through opserver 10.0.0.22
2025-10-15 19:39:24,998 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-15 19:39:25,009 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84616433:ctest-vn-39446505', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84616433:ctest-vn-39446505?flat'}
2025-10-15 19:39:25,009 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84616433:ctest-vn-39446505 is found in opserver
2025-10-15 19:39:25,019 - DEBUG - Do not have enough data to verify VN in agent
2025-10-15 19:39:25,023 - DEBUG - VRF ids for VN ctest-vn-39446505: {}
2025-10-15 19:39:25,087 - DEBUG - Services list from nova: [