2025-06-07 10:21:22,811 - INFO - Domain Default found not creating
2025-06-07 10:21:22,941 - INFO - Project ctest-TestBasicPolicy-96622933 not found, creating it
2025-06-07 10:21:23,469 - INFO - Created Project:ctest-TestBasicPolicy-96622933, ID : 48966b86-e010-4078-b90b-7170956e90f6
2025-06-07 10:21:24,888 - INFO - ================================================================================
2025-06-07 10:21:24,889 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-07 10:21:24,889 - 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-07 10:21:25,148 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.254': '0'}} with
2025-06-07 10:21:25,148 - INFO - Initial checks done. Running the testcase now
2025-06-07 10:21:25,148 - INFO -
2025-06-07 10:21:25,693 - DEBUG - Response for create_network : {'network': {'id': '9b6453a9-2340-4c10-94b5-8715bc3ade48', 'name': 'ctest-vn-37587615', 'tenant_id': '48966b86e0104078b90b7170956e90f6', 'project_id': '48966b86e0104078b90b7170956e90f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96622933', 'ctest-vn-37587615'], 'port_security_enabled': True, 'description': ''}}
2025-06-07 10:21:25,876 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f2ed07d2-0c3c-4738-9f63-4aa9c71aa0f6', 'name': '', 'tenant_id': '48966b86e0104078b90b7170956e90f6', 'network_id': '9b6453a9-2340-4c10-94b5-8715bc3ade48', 'ip_version': 4, 'cidr': '216.85.125.192/26', 'allocation_pools': [{'start': '216.85.125.194', 'end': '216.85.125.254'}], 'gateway_ip': '216.85.125.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.85.125.194', 'tags': [], 'project_id': '48966b86e0104078b90b7170956e90f6'}}
2025-06-07 10:21:25,894 - INFO - Created VN ctest-vn-37587615
2025-06-07 10:21:25,946 - DEBUG - VN ctest-vn-37587615 UUID is 9b6453a9-2340-4c10-94b5-8715bc3ade48
2025-06-07 10:21:26,259 - DEBUG - Response for create_network : {'network': {'id': 'a394c619-b445-4f68-8c75-e15b0f0a98da', 'name': 'ctest-vn-75642507', 'tenant_id': '48966b86e0104078b90b7170956e90f6', 'project_id': '48966b86e0104078b90b7170956e90f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96622933', 'ctest-vn-75642507'], 'port_security_enabled': True, 'description': ''}}
2025-06-07 10:21:26,408 - DEBUG - Response for create_subnet : {'subnet': {'id': '467adac9-34e2-47a6-8d58-de7692fb405f', 'name': '', 'tenant_id': '48966b86e0104078b90b7170956e90f6', 'network_id': 'a394c619-b445-4f68-8c75-e15b0f0a98da', 'ip_version': 4, 'cidr': '136.60.3.192/26', 'allocation_pools': [{'start': '136.60.3.194', 'end': '136.60.3.254'}], 'gateway_ip': '136.60.3.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.60.3.194', 'tags': [], 'project_id': '48966b86e0104078b90b7170956e90f6'}}
2025-06-07 10:21:26,427 - INFO - Created VN ctest-vn-75642507
2025-06-07 10:21:26,478 - DEBUG - VN ctest-vn-75642507 UUID is a394c619-b445-4f68-8c75-e15b0f0a98da
2025-06-07 10:21:26,625 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96622933:ctest-vn-37587615, 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-96622933:ctest-vn-75642507, 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-07 10:21:26,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b6453a9-2340-4c10-94b5-8715bc3ade48', 'name': 'ctest-vn-37587615', 'tenant_id': '48966b86e0104078b90b7170956e90f6', 'project_id': '48966b86e0104078b90b7170956e90f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f2ed07d2-0c3c-4738-9f63-4aa9c71aa0f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96622933', 'ctest-vn-37587615'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96622933', 'ctest-policy-allow-all-24640956']], 'subnet_ipam': [{'subnet_cidr': '216.85.125.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-07 10:21:27,144 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a394c619-b445-4f68-8c75-e15b0f0a98da', 'name': 'ctest-vn-75642507', 'tenant_id': '48966b86e0104078b90b7170956e90f6', 'project_id': '48966b86e0104078b90b7170956e90f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['467adac9-34e2-47a6-8d58-de7692fb405f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96622933', 'ctest-vn-75642507'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96622933', 'ctest-policy-allow-all-24640956']], 'subnet_ipam': [{'subnet_cidr': '136.60.3.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-07 10:21:27,286 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-07 10:21:27,584 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-07 10:21:27,611 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ae0ac6d1-d91d-4618-99a2-722ce96d1502
2025-06-07 10:21:27,624 - DEBUG - Requesting: http://10.0.0.57:8082/project/48966b86-e010-4078-b90b-7170956e90f6
2025-06-07 10:21:27,699 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/9b6453a9-2340-4c10-94b5-8715bc3ade48
2025-06-07 10:21:27,711 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/9b6453a9-2340-4c10-94b5-8715bc3ade48
2025-06-07 10:21:27,722 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d7d55b45-bde8-4648-8039-fc0c7d07bf91
2025-06-07 10:21:27,729 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d7d55b45-bde8-4648-8039-fc0c7d07bf91
2025-06-07 10:21:27,736 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/15f55e4d-146d-4d5c-97d5-6ae35102a774
2025-06-07 10:21:27,743 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-07 10:21:27,743 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/9b6453a9-2340-4c10-94b5-8715bc3ade48
2025-06-07 10:21:27,753 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d7d55b45-bde8-4648-8039-fc0c7d07bf91
2025-06-07 10:21:27,767 - INFO - Verified VN network id 8 for VN 9b6453a9-2340-4c10-94b5-8715bc3ade48
2025-06-07 10:21:27,767 - INFO - Verifications in API Server for VN ctest-vn-37587615 passed
2025-06-07 10:21:27,767 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/9b6453a9-2340-4c10-94b5-8715bc3ade48
2025-06-07 10:21:27,778 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d7d55b45-bde8-4648-8039-fc0c7d07bf91
2025-06-07 10:21:27,785 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d7d55b45-bde8-4648-8039-fc0c7d07bf91
2025-06-07 10:21:27,792 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/15f55e4d-146d-4d5c-97d5-6ae35102a774
2025-06-07 10:21:27,805 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96622933:ctest-vn-37587615', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96622933', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11197166559455890448', 'uuid-lslong': '10715619415820000840'}, 'enable': 'true', 'created': '2025-06-07T10:21:25', 'last-modified': '2025-06-07T10:21:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905718'}
2025-06-07 10:21:27,813 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-07 10:21:27,813 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37587615 passed
2025-06-07 10:21:27,814 - DEBUG - ====Verifying policy data for ctest-vn-37587615 in API_Server ======
2025-06-07 10:21:27,814 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-07 10:21:27,819 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ae0ac6d1-d91d-4618-99a2-722ce96d1502
2025-06-07 10:21:27,831 - DEBUG - Requesting: http://10.0.0.57:8082/project/48966b86-e010-4078-b90b-7170956e90f6
2025-06-07 10:21:27,898 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/9b6453a9-2340-4c10-94b5-8715bc3ade48
2025-06-07 10:21:27,918 - DEBUG - ==>Verifying data for policy with id: d35823d8-ad54-4cab-a49c-689a7495977b, fqn: ['default-domain', 'ctest-TestBasicPolicy-96622933', 'ctest-policy-allow-all-24640956']
2025-06-07 10:21:27,918 - INFO - VN ctest-vn-37587615 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-07 10:21:27,918 - DEBUG - Verifying the vn in opserver
2025-06-07 10:21:27,918 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96622933:ctest-vn-37587615 virtual network link through opserver 10.0.0.57
2025-06-07 10:21:27,918 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-07 10:21:28,219 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-07 10:21:28,272 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96622933:ctest-vn-37587615', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96622933:ctest-vn-37587615?flat'}
2025-06-07 10:21:28,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96622933:ctest-vn-37587615 is found in opserver
2025-06-07 10:21:28,283 - DEBUG - Do not have enough data to verify VN in agent
2025-06-07 10:21:28,288 - DEBUG - VRF ids for VN ctest-vn-37587615: {}
2025-06-07 10:21:28,288 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-07 10:21:28,293 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ae0ac6d1-d91d-4618-99a2-722ce96d1502
2025-06-07 10:21:28,305 - DEBUG - Requesting: http://10.0.0.57:8082/project/48966b86-e010-4078-b90b-7170956e90f6
2025-06-07 10:21:28,380 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a394c619-b445-4f68-8c75-e15b0f0a98da
2025-06-07 10:21:28,392 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a394c619-b445-4f68-8c75-e15b0f0a98da
2025-06-07 10:21:28,411 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c967ca03-59b9-43d9-9152-6ba8ef7f251d
2025-06-07 10:21:28,419 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c967ca03-59b9-43d9-9152-6ba8ef7f251d
2025-06-07 10:21:28,427 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/63f25d12-1d45-4686-9b62-71a206d6e302
2025-06-07 10:21:28,435 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-07 10:21:28,435 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a394c619-b445-4f68-8c75-e15b0f0a98da
2025-06-07 10:21:28,446 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c967ca03-59b9-43d9-9152-6ba8ef7f251d
2025-06-07 10:21:28,461 - INFO - Verified VN network id 9 for VN a394c619-b445-4f68-8c75-e15b0f0a98da
2025-06-07 10:21:28,461 - INFO - Verifications in API Server for VN ctest-vn-75642507 passed
2025-06-07 10:21:28,461 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a394c619-b445-4f68-8c75-e15b0f0a98da
2025-06-07 10:21:28,471 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c967ca03-59b9-43d9-9152-6ba8ef7f251d
2025-06-07 10:21:28,478 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c967ca03-59b9-43d9-9152-6ba8ef7f251d
2025-06-07 10:21:28,484 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/63f25d12-1d45-4686-9b62-71a206d6e302
2025-06-07 10:21:28,497 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96622933:ctest-vn-75642507', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96622933', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11787263938436353896', 'uuid-lslong': '10121243518795684058'}, 'enable': 'true', 'created': '2025-06-07T10:21:26', 'last-modified': '2025-06-07T10:21:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.373029'}
2025-06-07 10:21:28,503 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-07 10:21:28,503 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75642507 passed
2025-06-07 10:21:28,504 - DEBUG - ====Verifying policy data for ctest-vn-75642507 in API_Server ======
2025-06-07 10:21:28,504 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-07 10:21:28,510 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ae0ac6d1-d91d-4618-99a2-722ce96d1502
2025-06-07 10:21:28,522 - DEBUG - Requesting: http://10.0.0.57:8082/project/48966b86-e010-4078-b90b-7170956e90f6
2025-06-07 10:21:28,602 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a394c619-b445-4f68-8c75-e15b0f0a98da
2025-06-07 10:21:28,614 - DEBUG - ==>Verifying data for policy with id: d35823d8-ad54-4cab-a49c-689a7495977b, fqn: ['default-domain', 'ctest-TestBasicPolicy-96622933', 'ctest-policy-allow-all-24640956']
2025-06-07 10:21:28,614 - INFO - VN ctest-vn-75642507 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-07 10:21:28,614 - DEBUG - Verifying the vn in opserver
2025-06-07 10:21:28,614 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96622933:ctest-vn-75642507 virtual network link through opserver 10.0.0.57
2025-06-07 10:21:28,614 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-07 10:21:28,626 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96622933:ctest-vn-75642507', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96622933:ctest-vn-75642507?flat'}
2025-06-07 10:21:28,626 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96622933:ctest-vn-75642507 is found in opserver
2025-06-07 10:21:28,636 - DEBUG - Do not have enough data to verify VN in agent
2025-06-07 10:21:28,642 - DEBUG - VRF ids for VN ctest-vn-75642507: {}
2025-06-07 10:21:28,699 - DEBUG - Services list from nova: [