2025-07-22 17:42:35,509 - INFO - Domain Default found not creating
2025-07-22 17:42:35,655 - INFO - Project ctest-TestBasicPolicy-26536476 not found, creating it
2025-07-22 17:42:36,111 - INFO - Created Project:ctest-TestBasicPolicy-26536476, ID : 8d4ddbfc-2bce-4df7-a680-977b5db3a301
2025-07-22 17:42:37,518 - INFO - ================================================================================
2025-07-22 17:42:37,518 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-22 17:42:37,518 - 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-22 17:42:37,775 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.129': '0'}} with
2025-07-22 17:42:37,775 - INFO - Initial checks done. Running the testcase now
2025-07-22 17:42:37,775 - INFO -
2025-07-22 17:42:38,302 - DEBUG - Response for create_network : {'network': {'id': '62d27baf-7acc-4fd3-ac3a-b873d979a51d', 'name': 'ctest-vn-13698140', 'tenant_id': '8d4ddbfc2bce4df7a680977b5db3a301', 'project_id': '8d4ddbfc2bce4df7a680977b5db3a301', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26536476', 'ctest-vn-13698140'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 17:42:38,491 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aad70c05-cd2f-49c2-b769-44860de39cf0', 'name': '', 'tenant_id': '8d4ddbfc2bce4df7a680977b5db3a301', 'network_id': '62d27baf-7acc-4fd3-ac3a-b873d979a51d', 'ip_version': 4, 'cidr': '200.251.119.64/26', 'allocation_pools': [{'start': '200.251.119.66', 'end': '200.251.119.126'}], 'gateway_ip': '200.251.119.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.251.119.66', 'tags': [], 'project_id': '8d4ddbfc2bce4df7a680977b5db3a301'}}
2025-07-22 17:42:38,511 - INFO - Created VN ctest-vn-13698140
2025-07-22 17:42:38,565 - DEBUG - VN ctest-vn-13698140 UUID is 62d27baf-7acc-4fd3-ac3a-b873d979a51d
2025-07-22 17:42:38,835 - DEBUG - Response for create_network : {'network': {'id': '483484c1-d070-4411-a7b4-25612c3eb802', 'name': 'ctest-vn-95220751', 'tenant_id': '8d4ddbfc2bce4df7a680977b5db3a301', 'project_id': '8d4ddbfc2bce4df7a680977b5db3a301', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26536476', 'ctest-vn-95220751'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 17:42:39,014 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c1461fe-4ad1-441d-ab6a-320b144e0a12', 'name': '', 'tenant_id': '8d4ddbfc2bce4df7a680977b5db3a301', 'network_id': '483484c1-d070-4411-a7b4-25612c3eb802', 'ip_version': 4, 'cidr': '93.48.100.64/26', 'allocation_pools': [{'start': '93.48.100.66', 'end': '93.48.100.126'}], 'gateway_ip': '93.48.100.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.48.100.66', 'tags': [], 'project_id': '8d4ddbfc2bce4df7a680977b5db3a301'}}
2025-07-22 17:42:39,031 - INFO - Created VN ctest-vn-95220751
2025-07-22 17:42:39,085 - DEBUG - VN ctest-vn-95220751 UUID is 483484c1-d070-4411-a7b4-25612c3eb802
2025-07-22 17:42:39,197 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26536476:ctest-vn-13698140, 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-26536476:ctest-vn-95220751, 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-22 17:42:39,502 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62d27baf-7acc-4fd3-ac3a-b873d979a51d', 'name': 'ctest-vn-13698140', 'tenant_id': '8d4ddbfc2bce4df7a680977b5db3a301', 'project_id': '8d4ddbfc2bce4df7a680977b5db3a301', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aad70c05-cd2f-49c2-b769-44860de39cf0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26536476', 'ctest-vn-13698140'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26536476', 'ctest-policy-allow-all-33331662']], 'subnet_ipam': [{'subnet_cidr': '200.251.119.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 17:42:39,759 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '483484c1-d070-4411-a7b4-25612c3eb802', 'name': 'ctest-vn-95220751', 'tenant_id': '8d4ddbfc2bce4df7a680977b5db3a301', 'project_id': '8d4ddbfc2bce4df7a680977b5db3a301', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c1461fe-4ad1-441d-ab6a-320b144e0a12'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26536476', 'ctest-vn-95220751'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26536476', 'ctest-policy-allow-all-33331662']], 'subnet_ipam': [{'subnet_cidr': '93.48.100.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 17:42:39,917 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-07-22 17:42:40,227 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-07-22 17:42:40,257 - DEBUG - Requesting: http://10.0.0.48:8082/domain/dca9e7f9-668a-4c12-a926-5a40e1c29885
2025-07-22 17:42:40,272 - DEBUG - Requesting: http://10.0.0.48:8082/project/8d4ddbfc-2bce-4df7-a680-977b5db3a301
2025-07-22 17:42:40,349 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/62d27baf-7acc-4fd3-ac3a-b873d979a51d
2025-07-22 17:42:40,362 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/62d27baf-7acc-4fd3-ac3a-b873d979a51d
2025-07-22 17:42:40,372 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0486f7d6-5454-4177-9aae-a6a4fde7251d
2025-07-22 17:42:40,380 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0486f7d6-5454-4177-9aae-a6a4fde7251d
2025-07-22 17:42:40,387 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/23729121-734f-48ad-863c-a394a50d7fc5
2025-07-22 17:42:40,395 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 17:42:40,395 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/62d27baf-7acc-4fd3-ac3a-b873d979a51d
2025-07-22 17:42:40,407 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0486f7d6-5454-4177-9aae-a6a4fde7251d
2025-07-22 17:42:40,423 - INFO - Verified VN network id 12 for VN 62d27baf-7acc-4fd3-ac3a-b873d979a51d
2025-07-22 17:42:40,423 - INFO - Verifications in API Server for VN ctest-vn-13698140 passed
2025-07-22 17:42:40,424 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/62d27baf-7acc-4fd3-ac3a-b873d979a51d
2025-07-22 17:42:40,444 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0486f7d6-5454-4177-9aae-a6a4fde7251d
2025-07-22 17:42:40,451 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0486f7d6-5454-4177-9aae-a6a4fde7251d
2025-07-22 17:42:40,458 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/23729121-734f-48ad-863c-a394a50d7fc5
2025-07-22 17:42:40,469 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26536476:ctest-vn-13698140', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26536476', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7120889954435878867', 'uuid-lslong': '12410434530882200861'}, 'enable': 'true', 'created': '2025-07-22T17:42:38', 'last-modified': '2025-07-22T17:42:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987649'}
2025-07-22 17:42:40,475 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 17:42:40,475 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13698140 passed
2025-07-22 17:42:40,476 - DEBUG - ====Verifying policy data for ctest-vn-13698140 in API_Server ======
2025-07-22 17:42:40,476 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-07-22 17:42:40,481 - DEBUG - Requesting: http://10.0.0.48:8082/domain/dca9e7f9-668a-4c12-a926-5a40e1c29885
2025-07-22 17:42:40,492 - DEBUG - Requesting: http://10.0.0.48:8082/project/8d4ddbfc-2bce-4df7-a680-977b5db3a301
2025-07-22 17:42:40,562 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/62d27baf-7acc-4fd3-ac3a-b873d979a51d
2025-07-22 17:42:40,572 - DEBUG - ==>Verifying data for policy with id: 49afe526-5761-44ab-b3a1-b551b8b0e469, fqn: ['default-domain', 'ctest-TestBasicPolicy-26536476', 'ctest-policy-allow-all-33331662']
2025-07-22 17:42:40,572 - INFO - VN ctest-vn-13698140 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 17:42:40,572 - DEBUG - Verifying the vn in opserver
2025-07-22 17:42:40,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26536476:ctest-vn-13698140 virtual network link through opserver 10.0.0.48
2025-07-22 17:42:40,573 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-07-22 17:42:40,861 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-07-22 17:42:40,922 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26536476:ctest-vn-13698140', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26536476:ctest-vn-13698140?flat'}
2025-07-22 17:42:40,922 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26536476:ctest-vn-13698140 is found in opserver
2025-07-22 17:42:40,934 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 17:42:40,939 - DEBUG - VRF ids for VN ctest-vn-13698140: {}
2025-07-22 17:42:40,939 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-07-22 17:42:40,946 - DEBUG - Requesting: http://10.0.0.48:8082/domain/dca9e7f9-668a-4c12-a926-5a40e1c29885
2025-07-22 17:42:40,957 - DEBUG - Requesting: http://10.0.0.48:8082/project/8d4ddbfc-2bce-4df7-a680-977b5db3a301
2025-07-22 17:42:41,027 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/483484c1-d070-4411-a7b4-25612c3eb802
2025-07-22 17:42:41,038 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/483484c1-d070-4411-a7b4-25612c3eb802
2025-07-22 17:42:41,047 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8e497907-2750-431d-a888-bb58ed15d854
2025-07-22 17:42:41,054 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8e497907-2750-431d-a888-bb58ed15d854
2025-07-22 17:42:41,061 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/32eb3d95-45ae-4fe1-a3de-359bbc398b3c
2025-07-22 17:42:41,068 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 17:42:41,068 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/483484c1-d070-4411-a7b4-25612c3eb802
2025-07-22 17:42:41,077 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8e497907-2750-431d-a888-bb58ed15d854
2025-07-22 17:42:41,092 - INFO - Verified VN network id 13 for VN 483484c1-d070-4411-a7b4-25612c3eb802
2025-07-22 17:42:41,092 - INFO - Verifications in API Server for VN ctest-vn-95220751 passed
2025-07-22 17:42:41,092 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/483484c1-d070-4411-a7b4-25612c3eb802
2025-07-22 17:42:41,101 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8e497907-2750-431d-a888-bb58ed15d854
2025-07-22 17:42:41,109 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8e497907-2750-431d-a888-bb58ed15d854
2025-07-22 17:42:41,116 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/32eb3d95-45ae-4fe1-a3de-359bbc398b3c
2025-07-22 17:42:41,132 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26536476:ctest-vn-95220751', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26536476', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5202929437480338449', 'uuid-lslong': '12084324799426246658'}, 'enable': 'true', 'created': '2025-07-22T17:42:38', 'last-modified': '2025-07-22T17:42:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.410763'}
2025-07-22 17:42:41,140 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 17:42:41,140 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95220751 passed
2025-07-22 17:42:41,140 - DEBUG - ====Verifying policy data for ctest-vn-95220751 in API_Server ======
2025-07-22 17:42:41,140 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-07-22 17:42:41,146 - DEBUG - Requesting: http://10.0.0.48:8082/domain/dca9e7f9-668a-4c12-a926-5a40e1c29885
2025-07-22 17:42:41,158 - DEBUG - Requesting: http://10.0.0.48:8082/project/8d4ddbfc-2bce-4df7-a680-977b5db3a301
2025-07-22 17:42:41,230 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/483484c1-d070-4411-a7b4-25612c3eb802
2025-07-22 17:42:41,240 - DEBUG - ==>Verifying data for policy with id: 49afe526-5761-44ab-b3a1-b551b8b0e469, fqn: ['default-domain', 'ctest-TestBasicPolicy-26536476', 'ctest-policy-allow-all-33331662']
2025-07-22 17:42:41,241 - INFO - VN ctest-vn-95220751 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 17:42:41,241 - DEBUG - Verifying the vn in opserver
2025-07-22 17:42:41,241 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26536476:ctest-vn-95220751 virtual network link through opserver 10.0.0.48
2025-07-22 17:42:41,241 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-07-22 17:42:41,251 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26536476:ctest-vn-95220751', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26536476:ctest-vn-95220751?flat'}
2025-07-22 17:42:41,251 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26536476:ctest-vn-95220751 is found in opserver
2025-07-22 17:42:41,261 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 17:42:41,266 - DEBUG - VRF ids for VN ctest-vn-95220751: {}
2025-07-22 17:42:41,317 - DEBUG - Services list from nova: [