2025-08-11 02:05:28,570 - INFO - Domain Default found not creating
2025-08-11 02:05:28,711 - INFO - Project ctest-TestBasicPolicy-43880436 not found, creating it
2025-08-11 02:05:29,189 - INFO - Created Project:ctest-TestBasicPolicy-43880436, ID : 451f8a60-403f-4636-a594-93c597b18948
2025-08-11 02:05:31,477 - INFO - ================================================================================
2025-08-11 02:05:31,477 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 02:05:31,477 - 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-11 02:05:31,739 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with
2025-08-11 02:05:31,739 - INFO - Initial checks done. Running the testcase now
2025-08-11 02:05:31,739 - INFO -
2025-08-11 02:05:32,282 - DEBUG - Response for create_network : {'network': {'id': 'e56c987c-0c1b-42a7-b080-a739ef7c3c78', 'name': 'ctest-vn-06471239', 'tenant_id': '451f8a60403f4636a59493c597b18948', 'project_id': '451f8a60403f4636a59493c597b18948', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43880436', 'ctest-vn-06471239'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:05:32,521 - DEBUG - Response for create_subnet : {'subnet': {'id': '960fa1ea-93f7-45e7-a706-e38259706ab5', 'name': '', 'tenant_id': '451f8a60403f4636a59493c597b18948', 'network_id': 'e56c987c-0c1b-42a7-b080-a739ef7c3c78', 'ip_version': 4, 'cidr': '137.78.7.0/26', 'allocation_pools': [{'start': '137.78.7.2', 'end': '137.78.7.62'}], 'gateway_ip': '137.78.7.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.78.7.2', 'tags': [], 'project_id': '451f8a60403f4636a59493c597b18948'}}
2025-08-11 02:05:32,546 - INFO - Created VN ctest-vn-06471239
2025-08-11 02:05:32,604 - DEBUG - VN ctest-vn-06471239 UUID is e56c987c-0c1b-42a7-b080-a739ef7c3c78
2025-08-11 02:05:32,908 - DEBUG - Response for create_network : {'network': {'id': '2abe5165-b042-45e0-9058-81af1c7f9b63', 'name': 'ctest-vn-50895043', 'tenant_id': '451f8a60403f4636a59493c597b18948', 'project_id': '451f8a60403f4636a59493c597b18948', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43880436', 'ctest-vn-50895043'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:05:33,117 - DEBUG - Response for create_subnet : {'subnet': {'id': '87ad8927-84d3-4abc-9fe7-5246d468ebf5', 'name': '', 'tenant_id': '451f8a60403f4636a59493c597b18948', 'network_id': '2abe5165-b042-45e0-9058-81af1c7f9b63', 'ip_version': 4, 'cidr': '63.129.130.0/26', 'allocation_pools': [{'start': '63.129.130.2', 'end': '63.129.130.62'}], 'gateway_ip': '63.129.130.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.129.130.2', 'tags': [], 'project_id': '451f8a60403f4636a59493c597b18948'}}
2025-08-11 02:05:33,137 - INFO - Created VN ctest-vn-50895043
2025-08-11 02:05:33,192 - DEBUG - VN ctest-vn-50895043 UUID is 2abe5165-b042-45e0-9058-81af1c7f9b63
2025-08-11 02:05:33,324 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43880436:ctest-vn-06471239, 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-43880436:ctest-vn-50895043, 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-11 02:05:33,626 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e56c987c-0c1b-42a7-b080-a739ef7c3c78', 'name': 'ctest-vn-06471239', 'tenant_id': '451f8a60403f4636a59493c597b18948', 'project_id': '451f8a60403f4636a59493c597b18948', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['960fa1ea-93f7-45e7-a706-e38259706ab5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43880436', 'ctest-vn-06471239'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43880436', 'ctest-policy-allow-all-10879737']], 'subnet_ipam': [{'subnet_cidr': '137.78.7.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:05:33,918 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2abe5165-b042-45e0-9058-81af1c7f9b63', 'name': 'ctest-vn-50895043', 'tenant_id': '451f8a60403f4636a59493c597b18948', 'project_id': '451f8a60403f4636a59493c597b18948', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87ad8927-84d3-4abc-9fe7-5246d468ebf5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43880436', 'ctest-vn-50895043'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43880436', 'ctest-policy-allow-all-10879737']], 'subnet_ipam': [{'subnet_cidr': '63.129.130.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:05:34,064 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-11 02:05:34,377 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-11 02:05:34,410 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ae93f2b5-73fa-40cd-bc91-721b233695b8
2025-08-11 02:05:34,425 - DEBUG - Requesting: http://10.0.0.27:8082/project/451f8a60-403f-4636-a594-93c597b18948
2025-08-11 02:05:34,506 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e56c987c-0c1b-42a7-b080-a739ef7c3c78
2025-08-11 02:05:34,520 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e56c987c-0c1b-42a7-b080-a739ef7c3c78
2025-08-11 02:05:34,532 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/caac95cc-d862-47a1-a48e-bdb880ee114d
2025-08-11 02:05:34,541 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/caac95cc-d862-47a1-a48e-bdb880ee114d
2025-08-11 02:05:34,551 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b82cb07d-e457-44e8-a71e-a2635df64e1e
2025-08-11 02:05:34,560 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 02:05:34,560 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e56c987c-0c1b-42a7-b080-a739ef7c3c78
2025-08-11 02:05:34,572 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/caac95cc-d862-47a1-a48e-bdb880ee114d
2025-08-11 02:05:34,591 - INFO - Verified VN network id 10 for VN e56c987c-0c1b-42a7-b080-a739ef7c3c78
2025-08-11 02:05:34,591 - INFO - Verifications in API Server for VN ctest-vn-06471239 passed
2025-08-11 02:05:34,591 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e56c987c-0c1b-42a7-b080-a739ef7c3c78
2025-08-11 02:05:34,606 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/caac95cc-d862-47a1-a48e-bdb880ee114d
2025-08-11 02:05:34,615 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/caac95cc-d862-47a1-a48e-bdb880ee114d
2025-08-11 02:05:34,623 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b82cb07d-e457-44e8-a71e-a2635df64e1e
2025-08-11 02:05:34,637 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43880436:ctest-vn-06471239', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43880436', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16531755990716727975', 'uuid-lslong': '12718349214967151736'}, 'enable': 'true', 'created': '2025-08-11T02:05:32', 'last-modified': '2025-08-11T02:05:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.032458'}
2025-08-11 02:05:34,644 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 02:05:34,644 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06471239 passed
2025-08-11 02:05:34,644 - DEBUG - ====Verifying policy data for ctest-vn-06471239 in API_Server ======
2025-08-11 02:05:34,644 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-11 02:05:34,650 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ae93f2b5-73fa-40cd-bc91-721b233695b8
2025-08-11 02:05:34,662 - DEBUG - Requesting: http://10.0.0.27:8082/project/451f8a60-403f-4636-a594-93c597b18948
2025-08-11 02:05:34,736 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e56c987c-0c1b-42a7-b080-a739ef7c3c78
2025-08-11 02:05:34,747 - DEBUG - ==>Verifying data for policy with id: 5acc9e6c-3678-4783-b6db-a81509321027, fqn: ['default-domain', 'ctest-TestBasicPolicy-43880436', 'ctest-policy-allow-all-10879737']
2025-08-11 02:05:34,747 - INFO - VN ctest-vn-06471239 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 02:05:34,747 - DEBUG - Verifying the vn in opserver
2025-08-11 02:05:34,747 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43880436:ctest-vn-06471239 virtual network link through opserver 10.0.0.27
2025-08-11 02:05:34,747 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-08-11 02:05:35,062 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-08-11 02:05:35,124 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43880436:ctest-vn-06471239', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43880436:ctest-vn-06471239?flat'}
2025-08-11 02:05:35,124 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43880436:ctest-vn-06471239 is found in opserver
2025-08-11 02:05:35,138 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 02:05:35,144 - DEBUG - VRF ids for VN ctest-vn-06471239: {}
2025-08-11 02:05:35,144 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-11 02:05:35,151 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ae93f2b5-73fa-40cd-bc91-721b233695b8
2025-08-11 02:05:35,166 - DEBUG - Requesting: http://10.0.0.27:8082/project/451f8a60-403f-4636-a594-93c597b18948
2025-08-11 02:05:35,241 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2abe5165-b042-45e0-9058-81af1c7f9b63
2025-08-11 02:05:35,258 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2abe5165-b042-45e0-9058-81af1c7f9b63
2025-08-11 02:05:35,270 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2bbd0be7-7c5f-4bc4-b996-574fe2599167
2025-08-11 02:05:35,277 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2bbd0be7-7c5f-4bc4-b996-574fe2599167
2025-08-11 02:05:35,285 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ed5bf0f6-3dee-4bf2-8e53-93309569454d
2025-08-11 02:05:35,292 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 02:05:35,292 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2abe5165-b042-45e0-9058-81af1c7f9b63
2025-08-11 02:05:35,302 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2bbd0be7-7c5f-4bc4-b996-574fe2599167
2025-08-11 02:05:35,325 - INFO - Verified VN network id 11 for VN 2abe5165-b042-45e0-9058-81af1c7f9b63
2025-08-11 02:05:35,325 - INFO - Verifications in API Server for VN ctest-vn-50895043 passed
2025-08-11 02:05:35,326 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2abe5165-b042-45e0-9058-81af1c7f9b63
2025-08-11 02:05:35,336 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2bbd0be7-7c5f-4bc4-b996-574fe2599167
2025-08-11 02:05:35,346 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2bbd0be7-7c5f-4bc4-b996-574fe2599167
2025-08-11 02:05:35,353 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ed5bf0f6-3dee-4bf2-8e53-93309569454d
2025-08-11 02:05:35,366 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43880436:ctest-vn-50895043', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43880436', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3079988692358677984', 'uuid-lslong': '10401205928509545315'}, 'enable': 'true', 'created': '2025-08-11T02:05:32', 'last-modified': '2025-08-11T02:05:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.519489'}
2025-08-11 02:05:35,372 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 02:05:35,372 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50895043 passed
2025-08-11 02:05:35,372 - DEBUG - ====Verifying policy data for ctest-vn-50895043 in API_Server ======
2025-08-11 02:05:35,372 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-11 02:05:35,378 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ae93f2b5-73fa-40cd-bc91-721b233695b8
2025-08-11 02:05:35,390 - DEBUG - Requesting: http://10.0.0.27:8082/project/451f8a60-403f-4636-a594-93c597b18948
2025-08-11 02:05:35,466 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2abe5165-b042-45e0-9058-81af1c7f9b63
2025-08-11 02:05:35,477 - DEBUG - ==>Verifying data for policy with id: 5acc9e6c-3678-4783-b6db-a81509321027, fqn: ['default-domain', 'ctest-TestBasicPolicy-43880436', 'ctest-policy-allow-all-10879737']
2025-08-11 02:05:35,477 - INFO - VN ctest-vn-50895043 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 02:05:35,477 - DEBUG - Verifying the vn in opserver
2025-08-11 02:05:35,478 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43880436:ctest-vn-50895043 virtual network link through opserver 10.0.0.27
2025-08-11 02:05:35,478 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-08-11 02:05:35,491 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43880436:ctest-vn-50895043', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43880436:ctest-vn-50895043?flat'}
2025-08-11 02:05:35,491 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43880436:ctest-vn-50895043 is found in opserver
2025-08-11 02:05:35,505 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 02:05:35,512 - DEBUG - VRF ids for VN ctest-vn-50895043: {}
2025-08-11 02:05:35,579 - DEBUG - Services list from nova: [