2025-07-16 14:56:40,736 - INFO - Domain Default found not creating
2025-07-16 14:56:40,888 - INFO - Project ctest-TestBasicPolicy-30879079 not found, creating it
2025-07-16 14:56:41,369 - INFO - Created Project:ctest-TestBasicPolicy-30879079, ID : 8b2607c7-f681-409a-9dbc-69e7b55aba97
2025-07-16 14:56:42,865 - INFO - ================================================================================
2025-07-16 14:56:42,866 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-16 14:56:42,866 - 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-07-16 14:56:43,120 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.129': '0'}} with
2025-07-16 14:56:43,120 - INFO - Initial checks done. Running the testcase now
2025-07-16 14:56:43,120 - INFO -
2025-07-16 14:56:43,660 - DEBUG - Response for create_network : {'network': {'id': 'e3a0ecf6-5734-4f92-b5cb-0c89464df35d', 'name': 'ctest-vn-78502594', 'tenant_id': '8b2607c7f681409a9dbc69e7b55aba97', 'project_id': '8b2607c7f681409a9dbc69e7b55aba97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30879079', 'ctest-vn-78502594'], 'port_security_enabled': True, 'description': ''}}
2025-07-16 14:56:43,825 - DEBUG - Response for create_subnet : {'subnet': {'id': '09703549-a5e5-44f6-bd58-fb7453a3941e', 'name': '', 'tenant_id': '8b2607c7f681409a9dbc69e7b55aba97', 'network_id': 'e3a0ecf6-5734-4f92-b5cb-0c89464df35d', 'ip_version': 4, 'cidr': '211.4.221.0/26', 'allocation_pools': [{'start': '211.4.221.2', 'end': '211.4.221.62'}], 'gateway_ip': '211.4.221.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.4.221.2', 'tags': [], 'project_id': '8b2607c7f681409a9dbc69e7b55aba97'}}
2025-07-16 14:56:43,844 - INFO - Created VN ctest-vn-78502594
2025-07-16 14:56:43,897 - DEBUG - VN ctest-vn-78502594 UUID is e3a0ecf6-5734-4f92-b5cb-0c89464df35d
2025-07-16 14:56:44,183 - DEBUG - Response for create_network : {'network': {'id': '4a9a4f3e-b9dd-4f04-98d2-436a7a5b382f', 'name': 'ctest-vn-66722608', 'tenant_id': '8b2607c7f681409a9dbc69e7b55aba97', 'project_id': '8b2607c7f681409a9dbc69e7b55aba97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30879079', 'ctest-vn-66722608'], 'port_security_enabled': True, 'description': ''}}
2025-07-16 14:56:44,356 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0e7539d-3321-45f6-af18-4d555983a80e', 'name': '', 'tenant_id': '8b2607c7f681409a9dbc69e7b55aba97', 'network_id': '4a9a4f3e-b9dd-4f04-98d2-436a7a5b382f', 'ip_version': 4, 'cidr': '166.115.186.64/26', 'allocation_pools': [{'start': '166.115.186.66', 'end': '166.115.186.126'}], 'gateway_ip': '166.115.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.115.186.66', 'tags': [], 'project_id': '8b2607c7f681409a9dbc69e7b55aba97'}}
2025-07-16 14:56:44,374 - INFO - Created VN ctest-vn-66722608
2025-07-16 14:56:44,424 - DEBUG - VN ctest-vn-66722608 UUID is 4a9a4f3e-b9dd-4f04-98d2-436a7a5b382f
2025-07-16 14:56:44,581 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30879079:ctest-vn-78502594, 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-30879079:ctest-vn-66722608, 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-07-16 14:56:44,881 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e3a0ecf6-5734-4f92-b5cb-0c89464df35d', 'name': 'ctest-vn-78502594', 'tenant_id': '8b2607c7f681409a9dbc69e7b55aba97', 'project_id': '8b2607c7f681409a9dbc69e7b55aba97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['09703549-a5e5-44f6-bd58-fb7453a3941e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30879079', 'ctest-vn-78502594'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30879079', 'ctest-policy-allow-all-12852228']], 'subnet_ipam': [{'subnet_cidr': '211.4.221.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-16 14:56:45,122 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a9a4f3e-b9dd-4f04-98d2-436a7a5b382f', 'name': 'ctest-vn-66722608', 'tenant_id': '8b2607c7f681409a9dbc69e7b55aba97', 'project_id': '8b2607c7f681409a9dbc69e7b55aba97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0e7539d-3321-45f6-af18-4d555983a80e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30879079', 'ctest-vn-66722608'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30879079', 'ctest-policy-allow-all-12852228']], 'subnet_ipam': [{'subnet_cidr': '166.115.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-16 14:56:45,269 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-16 14:56:45,570 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-16 14:56:45,601 - DEBUG - Requesting: http://10.0.0.241:8082/domain/3385aff5-66d5-4b33-8fdf-d0833f7e68e0
2025-07-16 14:56:45,615 - DEBUG - Requesting: http://10.0.0.241:8082/project/8b2607c7-f681-409a-9dbc-69e7b55aba97
2025-07-16 14:56:45,688 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/e3a0ecf6-5734-4f92-b5cb-0c89464df35d
2025-07-16 14:56:45,700 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/e3a0ecf6-5734-4f92-b5cb-0c89464df35d
2025-07-16 14:56:45,712 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d44addb1-a7d0-4383-84a0-e02dfbfe90a4
2025-07-16 14:56:45,720 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d44addb1-a7d0-4383-84a0-e02dfbfe90a4
2025-07-16 14:56:45,727 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/74261456-7723-4c65-8772-f882a0c57fcf
2025-07-16 14:56:45,734 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-16 14:56:45,735 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/e3a0ecf6-5734-4f92-b5cb-0c89464df35d
2025-07-16 14:56:45,745 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d44addb1-a7d0-4383-84a0-e02dfbfe90a4
2025-07-16 14:56:45,761 - INFO - Verified VN network id 8 for VN e3a0ecf6-5734-4f92-b5cb-0c89464df35d
2025-07-16 14:56:45,761 - INFO - Verifications in API Server for VN ctest-vn-78502594 passed
2025-07-16 14:56:45,761 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/e3a0ecf6-5734-4f92-b5cb-0c89464df35d
2025-07-16 14:56:45,771 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d44addb1-a7d0-4383-84a0-e02dfbfe90a4
2025-07-16 14:56:45,780 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d44addb1-a7d0-4383-84a0-e02dfbfe90a4
2025-07-16 14:56:45,787 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/74261456-7723-4c65-8772-f882a0c57fcf
2025-07-16 14:56:45,802 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30879079:ctest-vn-78502594', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30879079', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16402370385652502418', 'uuid-lslong': '13099577724866786141'}, 'enable': 'true', 'created': '2025-07-16T14:56:43', 'last-modified': '2025-07-16T14:56:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943604'}
2025-07-16 14:56:45,809 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-16 14:56:45,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78502594 passed
2025-07-16 14:56:45,809 - DEBUG - ====Verifying policy data for ctest-vn-78502594 in API_Server ======
2025-07-16 14:56:45,809 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-16 14:56:45,815 - DEBUG - Requesting: http://10.0.0.241:8082/domain/3385aff5-66d5-4b33-8fdf-d0833f7e68e0
2025-07-16 14:56:45,827 - DEBUG - Requesting: http://10.0.0.241:8082/project/8b2607c7-f681-409a-9dbc-69e7b55aba97
2025-07-16 14:56:45,904 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/e3a0ecf6-5734-4f92-b5cb-0c89464df35d
2025-07-16 14:56:45,915 - DEBUG - ==>Verifying data for policy with id: ed33b7eb-6cd4-45a1-9419-fcac6e9e8fd6, fqn: ['default-domain', 'ctest-TestBasicPolicy-30879079', 'ctest-policy-allow-all-12852228']
2025-07-16 14:56:45,915 - INFO - VN ctest-vn-78502594 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-16 14:56:45,915 - DEBUG - Verifying the vn in opserver
2025-07-16 14:56:45,915 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30879079:ctest-vn-78502594 virtual network link through opserver 10.0.0.241
2025-07-16 14:56:45,916 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-07-16 14:56:46,219 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-07-16 14:56:46,275 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30879079:ctest-vn-78502594', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30879079:ctest-vn-78502594?flat'}
2025-07-16 14:56:46,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30879079:ctest-vn-78502594 is found in opserver
2025-07-16 14:56:46,286 - DEBUG - Do not have enough data to verify VN in agent
2025-07-16 14:56:46,292 - DEBUG - VRF ids for VN ctest-vn-78502594: {}
2025-07-16 14:56:46,292 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-16 14:56:46,297 - DEBUG - Requesting: http://10.0.0.241:8082/domain/3385aff5-66d5-4b33-8fdf-d0833f7e68e0
2025-07-16 14:56:46,310 - DEBUG - Requesting: http://10.0.0.241:8082/project/8b2607c7-f681-409a-9dbc-69e7b55aba97
2025-07-16 14:56:46,393 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4a9a4f3e-b9dd-4f04-98d2-436a7a5b382f
2025-07-16 14:56:46,407 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4a9a4f3e-b9dd-4f04-98d2-436a7a5b382f
2025-07-16 14:56:46,420 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d7ec20bd-e903-435a-b8d4-0b252981109f
2025-07-16 14:56:46,428 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d7ec20bd-e903-435a-b8d4-0b252981109f
2025-07-16 14:56:46,436 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/c2ee487d-bb17-4e6e-84d9-ed81d97af3d6
2025-07-16 14:56:46,445 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-16 14:56:46,445 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4a9a4f3e-b9dd-4f04-98d2-436a7a5b382f
2025-07-16 14:56:46,457 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d7ec20bd-e903-435a-b8d4-0b252981109f
2025-07-16 14:56:46,475 - INFO - Verified VN network id 9 for VN 4a9a4f3e-b9dd-4f04-98d2-436a7a5b382f
2025-07-16 14:56:46,475 - INFO - Verifications in API Server for VN ctest-vn-66722608 passed
2025-07-16 14:56:46,476 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4a9a4f3e-b9dd-4f04-98d2-436a7a5b382f
2025-07-16 14:56:46,488 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d7ec20bd-e903-435a-b8d4-0b252981109f
2025-07-16 14:56:46,498 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d7ec20bd-e903-435a-b8d4-0b252981109f
2025-07-16 14:56:46,507 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/c2ee487d-bb17-4e6e-84d9-ed81d97af3d6
2025-07-16 14:56:46,523 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30879079:ctest-vn-66722608', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30879079', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5375696236044963588', 'uuid-lslong': '11011938163472676911'}, 'enable': 'true', 'created': '2025-07-16T14:56:44', 'last-modified': '2025-07-16T14:56:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.413771'}
2025-07-16 14:56:46,533 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-16 14:56:46,533 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66722608 passed
2025-07-16 14:56:46,533 - DEBUG - ====Verifying policy data for ctest-vn-66722608 in API_Server ======
2025-07-16 14:56:46,533 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-16 14:56:46,542 - DEBUG - Requesting: http://10.0.0.241:8082/domain/3385aff5-66d5-4b33-8fdf-d0833f7e68e0
2025-07-16 14:56:46,558 - DEBUG - Requesting: http://10.0.0.241:8082/project/8b2607c7-f681-409a-9dbc-69e7b55aba97
2025-07-16 14:56:46,631 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4a9a4f3e-b9dd-4f04-98d2-436a7a5b382f
2025-07-16 14:56:46,644 - DEBUG - ==>Verifying data for policy with id: ed33b7eb-6cd4-45a1-9419-fcac6e9e8fd6, fqn: ['default-domain', 'ctest-TestBasicPolicy-30879079', 'ctest-policy-allow-all-12852228']
2025-07-16 14:56:46,644 - INFO - VN ctest-vn-66722608 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-16 14:56:46,644 - DEBUG - Verifying the vn in opserver
2025-07-16 14:56:46,644 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30879079:ctest-vn-66722608 virtual network link through opserver 10.0.0.241
2025-07-16 14:56:46,644 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-07-16 14:56:46,655 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30879079:ctest-vn-66722608', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30879079:ctest-vn-66722608?flat'}
2025-07-16 14:56:46,655 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30879079:ctest-vn-66722608 is found in opserver
2025-07-16 14:56:46,671 - DEBUG - Do not have enough data to verify VN in agent
2025-07-16 14:56:46,678 - DEBUG - VRF ids for VN ctest-vn-66722608: {}
2025-07-16 14:56:46,736 - DEBUG - Services list from nova: [