2025-08-21 02:15:09,871 - INFO - Domain Default found not creating
2025-08-21 02:15:10,002 - INFO - Project ctest-TestBasicPolicy-38688001 not found, creating it
2025-08-21 02:15:10,460 - INFO - Created Project:ctest-TestBasicPolicy-38688001, ID : 3bca42c8-e316-4822-86ef-b3fc82ccbb9f
2025-08-21 02:15:11,796 - INFO - ================================================================================
2025-08-21 02:15:11,797 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-21 02:15:11,797 - 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-08-21 02:15:12,052 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.18': '0'}} with
2025-08-21 02:15:12,052 - INFO - Initial checks done. Running the testcase now
2025-08-21 02:15:12,052 - INFO -
2025-08-21 02:15:12,600 - DEBUG - Response for create_network : {'network': {'id': 'd3b018db-3984-4835-a7d9-e94aa81f4cb5', 'name': 'ctest-vn-90411461', 'tenant_id': '3bca42c8e316482286efb3fc82ccbb9f', 'project_id': '3bca42c8e316482286efb3fc82ccbb9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38688001', 'ctest-vn-90411461'], 'port_security_enabled': True, 'description': ''}}
2025-08-21 02:15:12,811 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9b2eb58-37e3-4065-a8bc-8b23298fa1f6', 'name': '', 'tenant_id': '3bca42c8e316482286efb3fc82ccbb9f', 'network_id': 'd3b018db-3984-4835-a7d9-e94aa81f4cb5', 'ip_version': 4, 'cidr': '98.59.109.64/26', 'allocation_pools': [{'start': '98.59.109.66', 'end': '98.59.109.126'}], 'gateway_ip': '98.59.109.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.59.109.66', 'tags': [], 'project_id': '3bca42c8e316482286efb3fc82ccbb9f'}}
2025-08-21 02:15:12,832 - INFO - Created VN ctest-vn-90411461
2025-08-21 02:15:12,883 - DEBUG - VN ctest-vn-90411461 UUID is d3b018db-3984-4835-a7d9-e94aa81f4cb5
2025-08-21 02:15:13,211 - DEBUG - Response for create_network : {'network': {'id': 'c6226cf5-38c2-4cfa-be72-e7f5e4adde13', 'name': 'ctest-vn-00091301', 'tenant_id': '3bca42c8e316482286efb3fc82ccbb9f', 'project_id': '3bca42c8e316482286efb3fc82ccbb9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38688001', 'ctest-vn-00091301'], 'port_security_enabled': True, 'description': ''}}
2025-08-21 02:15:13,398 - DEBUG - Response for create_subnet : {'subnet': {'id': '784aef34-658e-400c-8a49-b820654292bf', 'name': '', 'tenant_id': '3bca42c8e316482286efb3fc82ccbb9f', 'network_id': 'c6226cf5-38c2-4cfa-be72-e7f5e4adde13', 'ip_version': 4, 'cidr': '113.147.59.192/26', 'allocation_pools': [{'start': '113.147.59.194', 'end': '113.147.59.254'}], 'gateway_ip': '113.147.59.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.147.59.194', 'tags': [], 'project_id': '3bca42c8e316482286efb3fc82ccbb9f'}}
2025-08-21 02:15:13,414 - INFO - Created VN ctest-vn-00091301
2025-08-21 02:15:13,467 - DEBUG - VN ctest-vn-00091301 UUID is c6226cf5-38c2-4cfa-be72-e7f5e4adde13
2025-08-21 02:15:13,615 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38688001:ctest-vn-90411461, 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-38688001:ctest-vn-00091301, 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-08-21 02:15:13,916 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3b018db-3984-4835-a7d9-e94aa81f4cb5', 'name': 'ctest-vn-90411461', 'tenant_id': '3bca42c8e316482286efb3fc82ccbb9f', 'project_id': '3bca42c8e316482286efb3fc82ccbb9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9b2eb58-37e3-4065-a8bc-8b23298fa1f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38688001', 'ctest-vn-90411461'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38688001', 'ctest-policy-allow-all-35609576']], 'subnet_ipam': [{'subnet_cidr': '98.59.109.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-21 02:15:14,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6226cf5-38c2-4cfa-be72-e7f5e4adde13', 'name': 'ctest-vn-00091301', 'tenant_id': '3bca42c8e316482286efb3fc82ccbb9f', 'project_id': '3bca42c8e316482286efb3fc82ccbb9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['784aef34-658e-400c-8a49-b820654292bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38688001', 'ctest-vn-00091301'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38688001', 'ctest-policy-allow-all-35609576']], 'subnet_ipam': [{'subnet_cidr': '113.147.59.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-21 02:15:14,351 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-21 02:15:14,648 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-21 02:15:14,677 - DEBUG - Requesting: http://10.0.0.57:8082/domain/fb50318c-3f8c-47ea-811c-581016166294
2025-08-21 02:15:14,692 - DEBUG - Requesting: http://10.0.0.57:8082/project/3bca42c8-e316-4822-86ef-b3fc82ccbb9f
2025-08-21 02:15:14,768 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d3b018db-3984-4835-a7d9-e94aa81f4cb5
2025-08-21 02:15:14,778 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d3b018db-3984-4835-a7d9-e94aa81f4cb5
2025-08-21 02:15:14,785 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5ab81954-8ce7-40bf-9885-1914cb66fce2
2025-08-21 02:15:14,791 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5ab81954-8ce7-40bf-9885-1914cb66fce2
2025-08-21 02:15:14,797 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/55e406b0-72a9-489e-b94a-5f5ffbe6148d
2025-08-21 02:15:14,802 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-21 02:15:14,802 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d3b018db-3984-4835-a7d9-e94aa81f4cb5
2025-08-21 02:15:14,810 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5ab81954-8ce7-40bf-9885-1914cb66fce2
2025-08-21 02:15:14,821 - INFO - Verified VN network id 12 for VN d3b018db-3984-4835-a7d9-e94aa81f4cb5
2025-08-21 02:15:14,821 - INFO - Verifications in API Server for VN ctest-vn-90411461 passed
2025-08-21 02:15:14,822 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d3b018db-3984-4835-a7d9-e94aa81f4cb5
2025-08-21 02:15:14,829 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5ab81954-8ce7-40bf-9885-1914cb66fce2
2025-08-21 02:15:14,834 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/5ab81954-8ce7-40bf-9885-1914cb66fce2
2025-08-21 02:15:14,840 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/55e406b0-72a9-489e-b94a-5f5ffbe6148d
2025-08-21 02:15:14,850 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38688001:ctest-vn-90411461', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38688001', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15253719267745744949', 'uuid-lslong': '12094954781137652917'}, 'enable': 'true', 'created': '2025-08-21T02:15:12', 'last-modified': '2025-08-21T02:15:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965507'}
2025-08-21 02:15:14,856 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-21 02:15:14,856 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90411461 passed
2025-08-21 02:15:14,857 - DEBUG - ====Verifying policy data for ctest-vn-90411461 in API_Server ======
2025-08-21 02:15:14,857 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-21 02:15:14,862 - DEBUG - Requesting: http://10.0.0.57:8082/domain/fb50318c-3f8c-47ea-811c-581016166294
2025-08-21 02:15:14,873 - DEBUG - Requesting: http://10.0.0.57:8082/project/3bca42c8-e316-4822-86ef-b3fc82ccbb9f
2025-08-21 02:15:14,947 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d3b018db-3984-4835-a7d9-e94aa81f4cb5
2025-08-21 02:15:14,955 - DEBUG - ==>Verifying data for policy with id: a813ff5e-4c6c-4a9c-a11e-5c3b43aa9463, fqn: ['default-domain', 'ctest-TestBasicPolicy-38688001', 'ctest-policy-allow-all-35609576']
2025-08-21 02:15:14,955 - INFO - VN ctest-vn-90411461 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-21 02:15:14,955 - DEBUG - Verifying the vn in opserver
2025-08-21 02:15:14,955 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38688001:ctest-vn-90411461 virtual network link through opserver 10.0.0.57
2025-08-21 02:15:14,955 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-21 02:15:15,246 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-21 02:15:15,303 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38688001:ctest-vn-90411461', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38688001:ctest-vn-90411461?flat'}
2025-08-21 02:15:15,303 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38688001:ctest-vn-90411461 is found in opserver
2025-08-21 02:15:15,314 - DEBUG - Do not have enough data to verify VN in agent
2025-08-21 02:15:15,322 - DEBUG - VRF ids for VN ctest-vn-90411461: {}
2025-08-21 02:15:15,322 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-21 02:15:15,328 - DEBUG - Requesting: http://10.0.0.57:8082/domain/fb50318c-3f8c-47ea-811c-581016166294
2025-08-21 02:15:15,340 - DEBUG - Requesting: http://10.0.0.57:8082/project/3bca42c8-e316-4822-86ef-b3fc82ccbb9f
2025-08-21 02:15:15,412 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c6226cf5-38c2-4cfa-be72-e7f5e4adde13
2025-08-21 02:15:15,423 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c6226cf5-38c2-4cfa-be72-e7f5e4adde13
2025-08-21 02:15:15,433 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7aa3c185-e4e7-4b33-9c7a-48129f6cef07
2025-08-21 02:15:15,439 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7aa3c185-e4e7-4b33-9c7a-48129f6cef07
2025-08-21 02:15:15,445 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/febee590-02dc-401d-85fd-80b90d0b33df
2025-08-21 02:15:15,450 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-21 02:15:15,450 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c6226cf5-38c2-4cfa-be72-e7f5e4adde13
2025-08-21 02:15:15,460 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7aa3c185-e4e7-4b33-9c7a-48129f6cef07
2025-08-21 02:15:15,475 - INFO - Verified VN network id 13 for VN c6226cf5-38c2-4cfa-be72-e7f5e4adde13
2025-08-21 02:15:15,475 - INFO - Verifications in API Server for VN ctest-vn-00091301 passed
2025-08-21 02:15:15,475 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c6226cf5-38c2-4cfa-be72-e7f5e4adde13
2025-08-21 02:15:15,485 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7aa3c185-e4e7-4b33-9c7a-48129f6cef07
2025-08-21 02:15:15,492 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7aa3c185-e4e7-4b33-9c7a-48129f6cef07
2025-08-21 02:15:15,499 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/febee590-02dc-401d-85fd-80b90d0b33df
2025-08-21 02:15:15,512 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38688001:ctest-vn-00091301', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38688001', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14277093569192938746', 'uuid-lslong': '13723286057840926227'}, 'enable': 'true', 'created': '2025-08-21T02:15:13', 'last-modified': '2025-08-21T02:15:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.386118'}
2025-08-21 02:15:15,519 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-21 02:15:15,520 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00091301 passed
2025-08-21 02:15:15,520 - DEBUG - ====Verifying policy data for ctest-vn-00091301 in API_Server ======
2025-08-21 02:15:15,520 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-21 02:15:15,528 - DEBUG - Requesting: http://10.0.0.57:8082/domain/fb50318c-3f8c-47ea-811c-581016166294
2025-08-21 02:15:15,540 - DEBUG - Requesting: http://10.0.0.57:8082/project/3bca42c8-e316-4822-86ef-b3fc82ccbb9f
2025-08-21 02:15:15,627 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c6226cf5-38c2-4cfa-be72-e7f5e4adde13
2025-08-21 02:15:15,642 - DEBUG - ==>Verifying data for policy with id: a813ff5e-4c6c-4a9c-a11e-5c3b43aa9463, fqn: ['default-domain', 'ctest-TestBasicPolicy-38688001', 'ctest-policy-allow-all-35609576']
2025-08-21 02:15:15,642 - INFO - VN ctest-vn-00091301 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-21 02:15:15,642 - DEBUG - Verifying the vn in opserver
2025-08-21 02:15:15,642 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38688001:ctest-vn-00091301 virtual network link through opserver 10.0.0.57
2025-08-21 02:15:15,642 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-21 02:15:15,652 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38688001:ctest-vn-00091301', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38688001:ctest-vn-00091301?flat'}
2025-08-21 02:15:15,652 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38688001:ctest-vn-00091301 is found in opserver
2025-08-21 02:15:15,661 - DEBUG - Do not have enough data to verify VN in agent
2025-08-21 02:15:15,666 - DEBUG - VRF ids for VN ctest-vn-00091301: {}
2025-08-21 02:15:15,729 - DEBUG - Services list from nova: [