2025-06-17 10:01:30,118 - INFO - Domain Default found not creating
2025-06-17 10:01:30,315 - INFO - Project ctest-TestBasicPolicy-36557853 not found, creating it
2025-06-17 10:01:30,865 - INFO - Created Project:ctest-TestBasicPolicy-36557853, ID : 6b142867-5322-41e8-aec5-f75d6d257dad
2025-06-17 10:01:32,447 - INFO - ================================================================================
2025-06-17 10:01:32,448 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-17 10:01:32,448 - 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-06-17 10:01:32,718 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-17 10:01:32,718 - INFO - Initial checks done. Running the testcase now
2025-06-17 10:01:32,718 - INFO -
2025-06-17 10:01:33,314 - DEBUG - Response for create_network : {'network': {'id': '96fbaada-0ba4-4f88-bac0-6846575ba86c', 'name': 'ctest-vn-23421524', 'tenant_id': '6b142867532241e8aec5f75d6d257dad', 'project_id': '6b142867532241e8aec5f75d6d257dad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36557853', 'ctest-vn-23421524'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 10:01:33,576 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e5d9aab-037f-42da-8d20-72868f735020', 'name': '', 'tenant_id': '6b142867532241e8aec5f75d6d257dad', 'network_id': '96fbaada-0ba4-4f88-bac0-6846575ba86c', 'ip_version': 4, 'cidr': '13.99.192.0/26', 'allocation_pools': [{'start': '13.99.192.2', 'end': '13.99.192.62'}], 'gateway_ip': '13.99.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.99.192.2', 'tags': [], 'project_id': '6b142867532241e8aec5f75d6d257dad'}}
2025-06-17 10:01:33,598 - INFO - Created VN ctest-vn-23421524
2025-06-17 10:01:33,653 - DEBUG - VN ctest-vn-23421524 UUID is 96fbaada-0ba4-4f88-bac0-6846575ba86c
2025-06-17 10:01:34,028 - DEBUG - Response for create_network : {'network': {'id': '20ce82b5-b280-425b-afc6-1d02dfd38512', 'name': 'ctest-vn-00249427', 'tenant_id': '6b142867532241e8aec5f75d6d257dad', 'project_id': '6b142867532241e8aec5f75d6d257dad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36557853', 'ctest-vn-00249427'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 10:01:34,274 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c509435-0dd8-45c2-a520-eca002f08037', 'name': '', 'tenant_id': '6b142867532241e8aec5f75d6d257dad', 'network_id': '20ce82b5-b280-425b-afc6-1d02dfd38512', 'ip_version': 4, 'cidr': '46.68.130.0/26', 'allocation_pools': [{'start': '46.68.130.2', 'end': '46.68.130.62'}], 'gateway_ip': '46.68.130.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.68.130.2', 'tags': [], 'project_id': '6b142867532241e8aec5f75d6d257dad'}}
2025-06-17 10:01:34,296 - INFO - Created VN ctest-vn-00249427
2025-06-17 10:01:34,353 - DEBUG - VN ctest-vn-00249427 UUID is 20ce82b5-b280-425b-afc6-1d02dfd38512
2025-06-17 10:01:34,476 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36557853:ctest-vn-23421524, 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-36557853:ctest-vn-00249427, 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-06-17 10:01:34,829 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96fbaada-0ba4-4f88-bac0-6846575ba86c', 'name': 'ctest-vn-23421524', 'tenant_id': '6b142867532241e8aec5f75d6d257dad', 'project_id': '6b142867532241e8aec5f75d6d257dad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e5d9aab-037f-42da-8d20-72868f735020'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36557853', 'ctest-vn-23421524'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36557853', 'ctest-policy-allow-all-09029804']], 'subnet_ipam': [{'subnet_cidr': '13.99.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 10:01:35,098 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '20ce82b5-b280-425b-afc6-1d02dfd38512', 'name': 'ctest-vn-00249427', 'tenant_id': '6b142867532241e8aec5f75d6d257dad', 'project_id': '6b142867532241e8aec5f75d6d257dad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c509435-0dd8-45c2-a520-eca002f08037'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36557853', 'ctest-vn-00249427'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36557853', 'ctest-policy-allow-all-09029804']], 'subnet_ipam': [{'subnet_cidr': '46.68.130.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 10:01:35,257 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-17 10:01:35,570 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-17 10:01:35,614 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2f90bdd-b8c3-4094-8599-98de64cbab3e
2025-06-17 10:01:35,631 - DEBUG - Requesting: http://10.0.0.38:8082/project/6b142867-5322-41e8-aec5-f75d6d257dad
2025-06-17 10:01:35,734 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/96fbaada-0ba4-4f88-bac0-6846575ba86c
2025-06-17 10:01:35,751 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/96fbaada-0ba4-4f88-bac0-6846575ba86c
2025-06-17 10:01:35,765 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e62ad4aa-d27b-462e-a838-8545fb5bfc7c
2025-06-17 10:01:35,775 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e62ad4aa-d27b-462e-a838-8545fb5bfc7c
2025-06-17 10:01:35,784 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dc7e789a-069d-4cd3-991e-9f8369e804f5
2025-06-17 10:01:35,793 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 10:01:35,793 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/96fbaada-0ba4-4f88-bac0-6846575ba86c
2025-06-17 10:01:35,809 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e62ad4aa-d27b-462e-a838-8545fb5bfc7c
2025-06-17 10:01:35,834 - INFO - Verified VN network id 9 for VN 96fbaada-0ba4-4f88-bac0-6846575ba86c
2025-06-17 10:01:35,835 - INFO - Verifications in API Server for VN ctest-vn-23421524 passed
2025-06-17 10:01:35,835 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/96fbaada-0ba4-4f88-bac0-6846575ba86c
2025-06-17 10:01:35,849 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e62ad4aa-d27b-462e-a838-8545fb5bfc7c
2025-06-17 10:01:35,859 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e62ad4aa-d27b-462e-a838-8545fb5bfc7c
2025-06-17 10:01:35,870 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dc7e789a-069d-4cd3-991e-9f8369e804f5
2025-06-17 10:01:35,888 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36557853:ctest-vn-23421524', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36557853', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10879477178318475144', 'uuid-lslong': '13456870337905666156'}, 'enable': 'true', 'created': '2025-06-17T10:01:33', 'last-modified': '2025-06-17T10:01:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.112750'}
2025-06-17 10:01:35,897 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 10:01:35,897 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23421524 passed
2025-06-17 10:01:35,898 - DEBUG - ====Verifying policy data for ctest-vn-23421524 in API_Server ======
2025-06-17 10:01:35,898 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-17 10:01:35,907 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2f90bdd-b8c3-4094-8599-98de64cbab3e
2025-06-17 10:01:35,924 - DEBUG - Requesting: http://10.0.0.38:8082/project/6b142867-5322-41e8-aec5-f75d6d257dad
2025-06-17 10:01:36,007 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/96fbaada-0ba4-4f88-bac0-6846575ba86c
2025-06-17 10:01:36,021 - DEBUG - ==>Verifying data for policy with id: a1412b87-1b30-408e-a1c0-ba7859f93612, fqn: ['default-domain', 'ctest-TestBasicPolicy-36557853', 'ctest-policy-allow-all-09029804']
2025-06-17 10:01:36,021 - INFO - VN ctest-vn-23421524 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 10:01:36,022 - DEBUG - Verifying the vn in opserver
2025-06-17 10:01:36,022 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36557853:ctest-vn-23421524 virtual network link through opserver 10.0.0.38
2025-06-17 10:01:36,022 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-17 10:01:36,321 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-17 10:01:36,397 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36557853:ctest-vn-23421524', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36557853:ctest-vn-23421524?flat'}
2025-06-17 10:01:36,397 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36557853:ctest-vn-23421524 is found in opserver
2025-06-17 10:01:36,414 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 10:01:36,421 - DEBUG - VRF ids for VN ctest-vn-23421524: {}
2025-06-17 10:01:36,421 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-17 10:01:36,430 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2f90bdd-b8c3-4094-8599-98de64cbab3e
2025-06-17 10:01:36,446 - DEBUG - Requesting: http://10.0.0.38:8082/project/6b142867-5322-41e8-aec5-f75d6d257dad
2025-06-17 10:01:36,527 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20ce82b5-b280-425b-afc6-1d02dfd38512
2025-06-17 10:01:36,544 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20ce82b5-b280-425b-afc6-1d02dfd38512
2025-06-17 10:01:36,557 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d80a1c09-3fcb-41a4-bc3b-fcd4774947f9
2025-06-17 10:01:36,567 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d80a1c09-3fcb-41a4-bc3b-fcd4774947f9
2025-06-17 10:01:36,579 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7ba0cbce-33e8-449d-bb7e-19232d356639
2025-06-17 10:01:36,588 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 10:01:36,588 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20ce82b5-b280-425b-afc6-1d02dfd38512
2025-06-17 10:01:36,601 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d80a1c09-3fcb-41a4-bc3b-fcd4774947f9
2025-06-17 10:01:36,621 - INFO - Verified VN network id 10 for VN 20ce82b5-b280-425b-afc6-1d02dfd38512
2025-06-17 10:01:36,621 - INFO - Verifications in API Server for VN ctest-vn-00249427 passed
2025-06-17 10:01:36,621 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20ce82b5-b280-425b-afc6-1d02dfd38512
2025-06-17 10:01:36,634 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d80a1c09-3fcb-41a4-bc3b-fcd4774947f9
2025-06-17 10:01:36,643 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d80a1c09-3fcb-41a4-bc3b-fcd4774947f9
2025-06-17 10:01:36,655 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7ba0cbce-33e8-449d-bb7e-19232d356639
2025-06-17 10:01:36,672 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36557853:ctest-vn-00249427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36557853', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2363970571311530587', 'uuid-lslong': '12665842900208420114'}, 'enable': 'true', 'created': '2025-06-17T10:01:33', 'last-modified': '2025-06-17T10:01:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.602550'}
2025-06-17 10:01:36,682 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 10:01:36,682 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00249427 passed
2025-06-17 10:01:36,682 - DEBUG - ====Verifying policy data for ctest-vn-00249427 in API_Server ======
2025-06-17 10:01:36,682 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-17 10:01:36,693 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2f90bdd-b8c3-4094-8599-98de64cbab3e
2025-06-17 10:01:36,713 - DEBUG - Requesting: http://10.0.0.38:8082/project/6b142867-5322-41e8-aec5-f75d6d257dad
2025-06-17 10:01:36,793 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/20ce82b5-b280-425b-afc6-1d02dfd38512
2025-06-17 10:01:36,805 - DEBUG - ==>Verifying data for policy with id: a1412b87-1b30-408e-a1c0-ba7859f93612, fqn: ['default-domain', 'ctest-TestBasicPolicy-36557853', 'ctest-policy-allow-all-09029804']
2025-06-17 10:01:36,805 - INFO - VN ctest-vn-00249427 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 10:01:36,805 - DEBUG - Verifying the vn in opserver
2025-06-17 10:01:36,805 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36557853:ctest-vn-00249427 virtual network link through opserver 10.0.0.38
2025-06-17 10:01:36,805 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-17 10:01:36,818 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36557853:ctest-vn-00249427', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36557853:ctest-vn-00249427?flat'}
2025-06-17 10:01:36,819 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36557853:ctest-vn-00249427 is found in opserver
2025-06-17 10:01:36,834 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 10:01:36,841 - DEBUG - VRF ids for VN ctest-vn-00249427: {}
2025-06-17 10:01:36,915 - DEBUG - Services list from nova: [