2025-08-13 15:24:40,740 - INFO - Domain Default found not creating
2025-08-13 15:24:40,871 - INFO - Project ctest-TestBasicPolicy-47576496 not found, creating it
2025-08-13 15:24:41,306 - INFO - Created Project:ctest-TestBasicPolicy-47576496, ID : 8a200b8f-0eca-4424-bfd3-b5175c105e62
2025-08-13 15:24:42,876 - INFO - ================================================================================
2025-08-13 15:24:42,876 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-13 15:24:42,876 - 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-13 15:24:43,139 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.254': '0'}} with
2025-08-13 15:24:43,139 - INFO - Initial checks done. Running the testcase now
2025-08-13 15:24:43,139 - INFO -
2025-08-13 15:24:43,650 - DEBUG - Response for create_network : {'network': {'id': 'e4ae44e1-ceb9-4eff-b2b6-de8fb903efac', 'name': 'ctest-vn-41608391', 'tenant_id': '8a200b8f0eca4424bfd3b5175c105e62', 'project_id': '8a200b8f0eca4424bfd3b5175c105e62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47576496', 'ctest-vn-41608391'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 15:24:43,832 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9bedf33-f706-430d-b287-691edcd84350', 'name': '', 'tenant_id': '8a200b8f0eca4424bfd3b5175c105e62', 'network_id': 'e4ae44e1-ceb9-4eff-b2b6-de8fb903efac', 'ip_version': 4, 'cidr': '101.255.93.128/26', 'allocation_pools': [{'start': '101.255.93.130', 'end': '101.255.93.190'}], 'gateway_ip': '101.255.93.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.255.93.130', 'tags': [], 'project_id': '8a200b8f0eca4424bfd3b5175c105e62'}}
2025-08-13 15:24:43,848 - INFO - Created VN ctest-vn-41608391
2025-08-13 15:24:43,901 - DEBUG - VN ctest-vn-41608391 UUID is e4ae44e1-ceb9-4eff-b2b6-de8fb903efac
2025-08-13 15:24:44,197 - DEBUG - Response for create_network : {'network': {'id': 'ac94d17f-c619-4d2d-895e-e3067cf15936', 'name': 'ctest-vn-52353884', 'tenant_id': '8a200b8f0eca4424bfd3b5175c105e62', 'project_id': '8a200b8f0eca4424bfd3b5175c105e62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47576496', 'ctest-vn-52353884'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 15:24:44,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '67126064-7ebf-4349-b617-d2adc4aac806', 'name': '', 'tenant_id': '8a200b8f0eca4424bfd3b5175c105e62', 'network_id': 'ac94d17f-c619-4d2d-895e-e3067cf15936', 'ip_version': 4, 'cidr': '192.199.195.0/26', 'allocation_pools': [{'start': '192.199.195.2', 'end': '192.199.195.62'}], 'gateway_ip': '192.199.195.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.199.195.2', 'tags': [], 'project_id': '8a200b8f0eca4424bfd3b5175c105e62'}}
2025-08-13 15:24:44,402 - INFO - Created VN ctest-vn-52353884
2025-08-13 15:24:44,452 - DEBUG - VN ctest-vn-52353884 UUID is ac94d17f-c619-4d2d-895e-e3067cf15936
2025-08-13 15:24:44,600 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47576496:ctest-vn-41608391, 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-47576496:ctest-vn-52353884, 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-13 15:24:44,896 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4ae44e1-ceb9-4eff-b2b6-de8fb903efac', 'name': 'ctest-vn-41608391', 'tenant_id': '8a200b8f0eca4424bfd3b5175c105e62', 'project_id': '8a200b8f0eca4424bfd3b5175c105e62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9bedf33-f706-430d-b287-691edcd84350'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47576496', 'ctest-vn-41608391'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47576496', 'ctest-policy-allow-all-26372647']], 'subnet_ipam': [{'subnet_cidr': '101.255.93.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 15:24:45,134 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac94d17f-c619-4d2d-895e-e3067cf15936', 'name': 'ctest-vn-52353884', 'tenant_id': '8a200b8f0eca4424bfd3b5175c105e62', 'project_id': '8a200b8f0eca4424bfd3b5175c105e62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['67126064-7ebf-4349-b617-d2adc4aac806'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47576496', 'ctest-vn-52353884'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47576496', 'ctest-policy-allow-all-26372647']], 'subnet_ipam': [{'subnet_cidr': '192.199.195.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 15:24:45,277 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-08-13 15:24:45,574 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-08-13 15:24:45,601 - DEBUG - Requesting: http://10.0.0.133:8082/domain/3b9be72d-044d-4b1e-bb10-908d4343a849
2025-08-13 15:24:45,615 - DEBUG - Requesting: http://10.0.0.133:8082/project/8a200b8f-0eca-4424-bfd3-b5175c105e62
2025-08-13 15:24:45,694 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/e4ae44e1-ceb9-4eff-b2b6-de8fb903efac
2025-08-13 15:24:45,706 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/e4ae44e1-ceb9-4eff-b2b6-de8fb903efac
2025-08-13 15:24:45,715 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/25f8d8af-73a7-4b6c-a1cf-44861bc0e7ea
2025-08-13 15:24:45,723 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/25f8d8af-73a7-4b6c-a1cf-44861bc0e7ea
2025-08-13 15:24:45,730 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/cbea534a-3ee1-4509-b950-0c69ab329d86
2025-08-13 15:24:45,738 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 15:24:45,738 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/e4ae44e1-ceb9-4eff-b2b6-de8fb903efac
2025-08-13 15:24:45,750 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/25f8d8af-73a7-4b6c-a1cf-44861bc0e7ea
2025-08-13 15:24:45,765 - INFO - Verified VN network id 9 for VN e4ae44e1-ceb9-4eff-b2b6-de8fb903efac
2025-08-13 15:24:45,765 - INFO - Verifications in API Server for VN ctest-vn-41608391 passed
2025-08-13 15:24:45,765 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/e4ae44e1-ceb9-4eff-b2b6-de8fb903efac
2025-08-13 15:24:45,775 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/25f8d8af-73a7-4b6c-a1cf-44861bc0e7ea
2025-08-13 15:24:45,782 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/25f8d8af-73a7-4b6c-a1cf-44861bc0e7ea
2025-08-13 15:24:45,789 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/cbea534a-3ee1-4509-b950-0c69ab329d86
2025-08-13 15:24:45,801 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47576496:ctest-vn-41608391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47576496', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16478183823221804799', 'uuid-lslong': '12877724893378244524'}, 'enable': 'true', 'created': '2025-08-13T15:24:43', 'last-modified': '2025-08-13T15:24:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927624'}
2025-08-13 15:24:45,808 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 15:24:45,808 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41608391 passed
2025-08-13 15:24:45,808 - DEBUG - ====Verifying policy data for ctest-vn-41608391 in API_Server ======
2025-08-13 15:24:45,808 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-08-13 15:24:45,819 - DEBUG - Requesting: http://10.0.0.133:8082/domain/3b9be72d-044d-4b1e-bb10-908d4343a849
2025-08-13 15:24:45,831 - DEBUG - Requesting: http://10.0.0.133:8082/project/8a200b8f-0eca-4424-bfd3-b5175c105e62
2025-08-13 15:24:45,905 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/e4ae44e1-ceb9-4eff-b2b6-de8fb903efac
2025-08-13 15:24:45,915 - DEBUG - ==>Verifying data for policy with id: 610acde7-934a-4959-8fc5-5dc922f36fca, fqn: ['default-domain', 'ctest-TestBasicPolicy-47576496', 'ctest-policy-allow-all-26372647']
2025-08-13 15:24:45,915 - INFO - VN ctest-vn-41608391 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 15:24:45,915 - DEBUG - Verifying the vn in opserver
2025-08-13 15:24:45,915 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47576496:ctest-vn-41608391 virtual network link through opserver 10.0.0.133
2025-08-13 15:24:45,915 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks
2025-08-13 15:24:46,206 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks
2025-08-13 15:24:46,260 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47576496:ctest-vn-41608391', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47576496:ctest-vn-41608391?flat'}
2025-08-13 15:24:46,260 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47576496:ctest-vn-41608391 is found in opserver
2025-08-13 15:24:46,271 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 15:24:46,276 - DEBUG - VRF ids for VN ctest-vn-41608391: {}
2025-08-13 15:24:46,276 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-08-13 15:24:46,282 - DEBUG - Requesting: http://10.0.0.133:8082/domain/3b9be72d-044d-4b1e-bb10-908d4343a849
2025-08-13 15:24:46,293 - DEBUG - Requesting: http://10.0.0.133:8082/project/8a200b8f-0eca-4424-bfd3-b5175c105e62
2025-08-13 15:24:46,365 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/ac94d17f-c619-4d2d-895e-e3067cf15936
2025-08-13 15:24:46,376 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/ac94d17f-c619-4d2d-895e-e3067cf15936
2025-08-13 15:24:46,385 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/bfd23fc3-79f5-4ead-bb57-aede905a43da
2025-08-13 15:24:46,392 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/bfd23fc3-79f5-4ead-bb57-aede905a43da
2025-08-13 15:24:46,399 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/9c66361a-88a0-43e2-a038-426f92208ccc
2025-08-13 15:24:46,405 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 15:24:46,405 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/ac94d17f-c619-4d2d-895e-e3067cf15936
2025-08-13 15:24:46,414 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/bfd23fc3-79f5-4ead-bb57-aede905a43da
2025-08-13 15:24:46,427 - INFO - Verified VN network id 10 for VN ac94d17f-c619-4d2d-895e-e3067cf15936
2025-08-13 15:24:46,427 - INFO - Verifications in API Server for VN ctest-vn-52353884 passed
2025-08-13 15:24:46,427 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/ac94d17f-c619-4d2d-895e-e3067cf15936
2025-08-13 15:24:46,436 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/bfd23fc3-79f5-4ead-bb57-aede905a43da
2025-08-13 15:24:46,442 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/bfd23fc3-79f5-4ead-bb57-aede905a43da
2025-08-13 15:24:46,448 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/9c66361a-88a0-43e2-a038-426f92208ccc
2025-08-13 15:24:46,459 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47576496:ctest-vn-52353884', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47576496', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12435794817791380781', 'uuid-lslong': '9898598648012429622'}, 'enable': 'true', 'created': '2025-08-13T15:24:44', 'last-modified': '2025-08-13T15:24:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.348143'}
2025-08-13 15:24:46,465 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 15:24:46,465 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52353884 passed
2025-08-13 15:24:46,466 - DEBUG - ====Verifying policy data for ctest-vn-52353884 in API_Server ======
2025-08-13 15:24:46,466 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-08-13 15:24:46,471 - DEBUG - Requesting: http://10.0.0.133:8082/domain/3b9be72d-044d-4b1e-bb10-908d4343a849
2025-08-13 15:24:46,481 - DEBUG - Requesting: http://10.0.0.133:8082/project/8a200b8f-0eca-4424-bfd3-b5175c105e62
2025-08-13 15:24:46,552 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/ac94d17f-c619-4d2d-895e-e3067cf15936
2025-08-13 15:24:46,561 - DEBUG - ==>Verifying data for policy with id: 610acde7-934a-4959-8fc5-5dc922f36fca, fqn: ['default-domain', 'ctest-TestBasicPolicy-47576496', 'ctest-policy-allow-all-26372647']
2025-08-13 15:24:46,561 - INFO - VN ctest-vn-52353884 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 15:24:46,562 - DEBUG - Verifying the vn in opserver
2025-08-13 15:24:46,562 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47576496:ctest-vn-52353884 virtual network link through opserver 10.0.0.133
2025-08-13 15:24:46,562 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks
2025-08-13 15:24:46,572 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47576496:ctest-vn-52353884', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47576496:ctest-vn-52353884?flat'}
2025-08-13 15:24:46,572 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47576496:ctest-vn-52353884 is found in opserver
2025-08-13 15:24:46,588 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 15:24:46,594 - DEBUG - VRF ids for VN ctest-vn-52353884: {}
2025-08-13 15:24:46,647 - DEBUG - Services list from nova: [