2025-08-14 09:59:13,365 - INFO - Domain Default found not creating
2025-08-14 09:59:13,501 - INFO - Project ctest-TestBasicPolicy-58123757 not found, creating it
2025-08-14 09:59:13,941 - INFO - Created Project:ctest-TestBasicPolicy-58123757, ID : 53162d52-95a9-4631-9375-54a570a63de9
2025-08-14 09:59:15,437 - INFO - ================================================================================
2025-08-14 09:59:15,437 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-14 09:59:15,437 - 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-14 09:59:15,695 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-14 09:59:15,696 - INFO - Initial checks done. Running the testcase now
2025-08-14 09:59:15,696 - INFO -
2025-08-14 09:59:16,241 - DEBUG - Response for create_network : {'network': {'id': '05846147-6eae-4ef5-bfb1-535fe14ce8d9', 'name': 'ctest-vn-01098622', 'tenant_id': '53162d5295a94631937554a570a63de9', 'project_id': '53162d5295a94631937554a570a63de9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58123757', 'ctest-vn-01098622'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 09:59:16,395 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6f448b8-d49b-4d7b-8bd4-1a629b4d6237', 'name': '', 'tenant_id': '53162d5295a94631937554a570a63de9', 'network_id': '05846147-6eae-4ef5-bfb1-535fe14ce8d9', 'ip_version': 4, 'cidr': '28.170.252.0/26', 'allocation_pools': [{'start': '28.170.252.2', 'end': '28.170.252.62'}], 'gateway_ip': '28.170.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.170.252.2', 'tags': [], 'project_id': '53162d5295a94631937554a570a63de9'}}
2025-08-14 09:59:16,411 - INFO - Created VN ctest-vn-01098622
2025-08-14 09:59:16,463 - DEBUG - VN ctest-vn-01098622 UUID is 05846147-6eae-4ef5-bfb1-535fe14ce8d9
2025-08-14 09:59:16,745 - DEBUG - Response for create_network : {'network': {'id': 'b4a242c4-44c7-48b7-9f3a-198b9c76bc66', 'name': 'ctest-vn-88675086', 'tenant_id': '53162d5295a94631937554a570a63de9', 'project_id': '53162d5295a94631937554a570a63de9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58123757', 'ctest-vn-88675086'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 09:59:16,947 - DEBUG - Response for create_subnet : {'subnet': {'id': 'facff68f-8c7d-4c94-bf36-3873f70f348f', 'name': '', 'tenant_id': '53162d5295a94631937554a570a63de9', 'network_id': 'b4a242c4-44c7-48b7-9f3a-198b9c76bc66', 'ip_version': 4, 'cidr': '174.196.85.64/26', 'allocation_pools': [{'start': '174.196.85.66', 'end': '174.196.85.126'}], 'gateway_ip': '174.196.85.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.196.85.66', 'tags': [], 'project_id': '53162d5295a94631937554a570a63de9'}}
2025-08-14 09:59:16,967 - INFO - Created VN ctest-vn-88675086
2025-08-14 09:59:17,019 - DEBUG - VN ctest-vn-88675086 UUID is b4a242c4-44c7-48b7-9f3a-198b9c76bc66
2025-08-14 09:59:17,167 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58123757:ctest-vn-01098622, 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-58123757:ctest-vn-88675086, 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-14 09:59:17,476 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05846147-6eae-4ef5-bfb1-535fe14ce8d9', 'name': 'ctest-vn-01098622', 'tenant_id': '53162d5295a94631937554a570a63de9', 'project_id': '53162d5295a94631937554a570a63de9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6f448b8-d49b-4d7b-8bd4-1a629b4d6237'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58123757', 'ctest-vn-01098622'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58123757', 'ctest-policy-allow-all-67511030']], 'subnet_ipam': [{'subnet_cidr': '28.170.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 09:59:17,757 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4a242c4-44c7-48b7-9f3a-198b9c76bc66', 'name': 'ctest-vn-88675086', 'tenant_id': '53162d5295a94631937554a570a63de9', 'project_id': '53162d5295a94631937554a570a63de9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['facff68f-8c7d-4c94-bf36-3873f70f348f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58123757', 'ctest-vn-88675086'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58123757', 'ctest-policy-allow-all-67511030']], 'subnet_ipam': [{'subnet_cidr': '174.196.85.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 09:59:17,911 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-14 09:59:18,208 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-14 09:59:18,235 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2e8d1ecb-fc33-4d5f-b929-2386a4c282ff
2025-08-14 09:59:18,247 - DEBUG - Requesting: http://10.0.0.38:8082/project/53162d52-95a9-4631-9375-54a570a63de9
2025-08-14 09:59:18,319 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/05846147-6eae-4ef5-bfb1-535fe14ce8d9
2025-08-14 09:59:18,331 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/05846147-6eae-4ef5-bfb1-535fe14ce8d9
2025-08-14 09:59:18,341 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eb0b3145-1b04-4cc7-8edc-ab92d98fd28e
2025-08-14 09:59:18,349 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eb0b3145-1b04-4cc7-8edc-ab92d98fd28e
2025-08-14 09:59:18,356 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c13ff6ce-f979-4a61-8bc6-e20b02b87b70
2025-08-14 09:59:18,365 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 09:59:18,365 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/05846147-6eae-4ef5-bfb1-535fe14ce8d9
2025-08-14 09:59:18,375 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eb0b3145-1b04-4cc7-8edc-ab92d98fd28e
2025-08-14 09:59:18,389 - INFO - Verified VN network id 12 for VN 05846147-6eae-4ef5-bfb1-535fe14ce8d9
2025-08-14 09:59:18,389 - INFO - Verifications in API Server for VN ctest-vn-01098622 passed
2025-08-14 09:59:18,389 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/05846147-6eae-4ef5-bfb1-535fe14ce8d9
2025-08-14 09:59:18,399 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eb0b3145-1b04-4cc7-8edc-ab92d98fd28e
2025-08-14 09:59:18,406 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eb0b3145-1b04-4cc7-8edc-ab92d98fd28e
2025-08-14 09:59:18,414 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c13ff6ce-f979-4a61-8bc6-e20b02b87b70
2025-08-14 09:59:18,426 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58123757:ctest-vn-01098622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58123757', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '397549626542935797', 'uuid-lslong': '13812913203388934361'}, 'enable': 'true', 'created': '2025-08-14T09:59:16', 'last-modified': '2025-08-14T09:59:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972013'}
2025-08-14 09:59:18,433 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 09:59:18,433 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01098622 passed
2025-08-14 09:59:18,433 - DEBUG - ====Verifying policy data for ctest-vn-01098622 in API_Server ======
2025-08-14 09:59:18,433 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-14 09:59:18,439 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2e8d1ecb-fc33-4d5f-b929-2386a4c282ff
2025-08-14 09:59:18,450 - DEBUG - Requesting: http://10.0.0.38:8082/project/53162d52-95a9-4631-9375-54a570a63de9
2025-08-14 09:59:18,523 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/05846147-6eae-4ef5-bfb1-535fe14ce8d9
2025-08-14 09:59:18,535 - DEBUG - ==>Verifying data for policy with id: c03a6dee-b2c5-4c6e-b02a-6a7c6efa6840, fqn: ['default-domain', 'ctest-TestBasicPolicy-58123757', 'ctest-policy-allow-all-67511030']
2025-08-14 09:59:18,535 - INFO - VN ctest-vn-01098622 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 09:59:18,535 - DEBUG - Verifying the vn in opserver
2025-08-14 09:59:18,535 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58123757:ctest-vn-01098622 virtual network link through opserver 10.0.0.38
2025-08-14 09:59:18,535 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-14 09:59:18,830 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-14 09:59:18,884 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58123757:ctest-vn-01098622', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58123757:ctest-vn-01098622?flat'}
2025-08-14 09:59:18,884 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58123757:ctest-vn-01098622 is found in opserver
2025-08-14 09:59:18,895 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 09:59:18,900 - DEBUG - VRF ids for VN ctest-vn-01098622: {}
2025-08-14 09:59:18,900 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-14 09:59:18,905 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2e8d1ecb-fc33-4d5f-b929-2386a4c282ff
2025-08-14 09:59:18,916 - DEBUG - Requesting: http://10.0.0.38:8082/project/53162d52-95a9-4631-9375-54a570a63de9
2025-08-14 09:59:18,991 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b4a242c4-44c7-48b7-9f3a-198b9c76bc66
2025-08-14 09:59:19,002 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b4a242c4-44c7-48b7-9f3a-198b9c76bc66
2025-08-14 09:59:19,011 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efc2bb8d-efe8-483d-8cfc-5db013344bcf
2025-08-14 09:59:19,019 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efc2bb8d-efe8-483d-8cfc-5db013344bcf
2025-08-14 09:59:19,025 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8572a38c-9e7b-488f-a484-e0a9b13be8e3
2025-08-14 09:59:19,031 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 09:59:19,031 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b4a242c4-44c7-48b7-9f3a-198b9c76bc66
2025-08-14 09:59:19,041 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efc2bb8d-efe8-483d-8cfc-5db013344bcf
2025-08-14 09:59:19,054 - INFO - Verified VN network id 13 for VN b4a242c4-44c7-48b7-9f3a-198b9c76bc66
2025-08-14 09:59:19,054 - INFO - Verifications in API Server for VN ctest-vn-88675086 passed
2025-08-14 09:59:19,055 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b4a242c4-44c7-48b7-9f3a-198b9c76bc66
2025-08-14 09:59:19,064 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efc2bb8d-efe8-483d-8cfc-5db013344bcf
2025-08-14 09:59:19,071 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/efc2bb8d-efe8-483d-8cfc-5db013344bcf
2025-08-14 09:59:19,077 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8572a38c-9e7b-488f-a484-e0a9b13be8e3
2025-08-14 09:59:19,089 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58123757:ctest-vn-88675086', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58123757', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13016039283789088951', 'uuid-lslong': '11473511088095935590'}, 'enable': 'true', 'created': '2025-08-14T09:59:16', 'last-modified': '2025-08-14T09:59:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.395061'}
2025-08-14 09:59:19,095 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 09:59:19,095 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88675086 passed
2025-08-14 09:59:19,095 - DEBUG - ====Verifying policy data for ctest-vn-88675086 in API_Server ======
2025-08-14 09:59:19,095 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-14 09:59:19,100 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2e8d1ecb-fc33-4d5f-b929-2386a4c282ff
2025-08-14 09:59:19,111 - DEBUG - Requesting: http://10.0.0.38:8082/project/53162d52-95a9-4631-9375-54a570a63de9
2025-08-14 09:59:19,179 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b4a242c4-44c7-48b7-9f3a-198b9c76bc66
2025-08-14 09:59:19,190 - DEBUG - ==>Verifying data for policy with id: c03a6dee-b2c5-4c6e-b02a-6a7c6efa6840, fqn: ['default-domain', 'ctest-TestBasicPolicy-58123757', 'ctest-policy-allow-all-67511030']
2025-08-14 09:59:19,190 - INFO - VN ctest-vn-88675086 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 09:59:19,190 - DEBUG - Verifying the vn in opserver
2025-08-14 09:59:19,190 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58123757:ctest-vn-88675086 virtual network link through opserver 10.0.0.38
2025-08-14 09:59:19,190 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-14 09:59:19,200 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58123757:ctest-vn-88675086', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58123757:ctest-vn-88675086?flat'}
2025-08-14 09:59:19,200 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58123757:ctest-vn-88675086 is found in opserver
2025-08-14 09:59:19,210 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 09:59:19,215 - DEBUG - VRF ids for VN ctest-vn-88675086: {}
2025-08-14 09:59:19,266 - DEBUG - Services list from nova: [