2025-08-11 15:54:57,902 - INFO - Domain Default found not creating
2025-08-11 15:54:58,025 - INFO - Project ctest-TestBasicPolicy-85268724 not found, creating it
2025-08-11 15:54:58,459 - INFO - Created Project:ctest-TestBasicPolicy-85268724, ID : f4ce786f-c216-44c2-ab63-56efa56ef484
2025-08-11 15:54:59,781 - INFO - ================================================================================
2025-08-11 15:54:59,781 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 15:54:59,781 - 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 15:55:00,037 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with
2025-08-11 15:55:00,037 - INFO - Initial checks done. Running the testcase now
2025-08-11 15:55:00,037 - INFO -
2025-08-11 15:55:00,555 - DEBUG - Response for create_network : {'network': {'id': '47cf212d-dd0b-4c52-a0d8-83edce066e95', 'name': 'ctest-vn-06091246', 'tenant_id': 'f4ce786fc21644c2ab6356efa56ef484', 'project_id': 'f4ce786fc21644c2ab6356efa56ef484', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85268724', 'ctest-vn-06091246'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:55:00,709 - DEBUG - Response for create_subnet : {'subnet': {'id': '401a7568-bf8b-4161-89b0-2b4ca121a7bb', 'name': '', 'tenant_id': 'f4ce786fc21644c2ab6356efa56ef484', 'network_id': '47cf212d-dd0b-4c52-a0d8-83edce066e95', 'ip_version': 4, 'cidr': '92.113.162.192/26', 'allocation_pools': [{'start': '92.113.162.194', 'end': '92.113.162.254'}], 'gateway_ip': '92.113.162.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.113.162.194', 'tags': [], 'project_id': 'f4ce786fc21644c2ab6356efa56ef484'}}
2025-08-11 15:55:00,724 - INFO - Created VN ctest-vn-06091246
2025-08-11 15:55:00,783 - DEBUG - VN ctest-vn-06091246 UUID is 47cf212d-dd0b-4c52-a0d8-83edce066e95
2025-08-11 15:55:01,082 - DEBUG - Response for create_network : {'network': {'id': '71c7e908-5452-4137-92d8-f6aa1a70748a', 'name': 'ctest-vn-51094549', 'tenant_id': 'f4ce786fc21644c2ab6356efa56ef484', 'project_id': 'f4ce786fc21644c2ab6356efa56ef484', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85268724', 'ctest-vn-51094549'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:55:01,278 - DEBUG - Response for create_subnet : {'subnet': {'id': '04b38729-9748-4bac-97e0-dc067e39505c', 'name': '', 'tenant_id': 'f4ce786fc21644c2ab6356efa56ef484', 'network_id': '71c7e908-5452-4137-92d8-f6aa1a70748a', 'ip_version': 4, 'cidr': '211.203.24.64/26', 'allocation_pools': [{'start': '211.203.24.66', 'end': '211.203.24.126'}], 'gateway_ip': '211.203.24.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.203.24.66', 'tags': [], 'project_id': 'f4ce786fc21644c2ab6356efa56ef484'}}
2025-08-11 15:55:01,294 - INFO - Created VN ctest-vn-51094549
2025-08-11 15:55:01,347 - DEBUG - VN ctest-vn-51094549 UUID is 71c7e908-5452-4137-92d8-f6aa1a70748a
2025-08-11 15:55:01,491 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85268724:ctest-vn-06091246, 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-85268724:ctest-vn-51094549, 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 15:55:01,775 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47cf212d-dd0b-4c52-a0d8-83edce066e95', 'name': 'ctest-vn-06091246', 'tenant_id': 'f4ce786fc21644c2ab6356efa56ef484', 'project_id': 'f4ce786fc21644c2ab6356efa56ef484', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['401a7568-bf8b-4161-89b0-2b4ca121a7bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85268724', 'ctest-vn-06091246'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85268724', 'ctest-policy-allow-all-68835938']], 'subnet_ipam': [{'subnet_cidr': '92.113.162.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:55:02,036 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '71c7e908-5452-4137-92d8-f6aa1a70748a', 'name': 'ctest-vn-51094549', 'tenant_id': 'f4ce786fc21644c2ab6356efa56ef484', 'project_id': 'f4ce786fc21644c2ab6356efa56ef484', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04b38729-9748-4bac-97e0-dc067e39505c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85268724', 'ctest-vn-51094549'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85268724', 'ctest-policy-allow-all-68835938']], 'subnet_ipam': [{'subnet_cidr': '211.203.24.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:55:02,187 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 15:55:02,480 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 15:55:02,505 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8e87a2a-62f3-4584-abb6-6cf01af9428d
2025-08-11 15:55:02,517 - DEBUG - Requesting: http://10.0.0.130:8082/project/f4ce786f-c216-44c2-ab63-56efa56ef484
2025-08-11 15:55:02,591 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/47cf212d-dd0b-4c52-a0d8-83edce066e95
2025-08-11 15:55:02,601 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/47cf212d-dd0b-4c52-a0d8-83edce066e95
2025-08-11 15:55:02,609 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/963617f2-0ba6-4146-b21c-bdc66e300655
2025-08-11 15:55:02,616 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/963617f2-0ba6-4146-b21c-bdc66e300655
2025-08-11 15:55:02,622 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/24031c9b-c08e-4d07-af3f-9189eff3f040
2025-08-11 15:55:02,627 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 15:55:02,627 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/47cf212d-dd0b-4c52-a0d8-83edce066e95
2025-08-11 15:55:02,636 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/963617f2-0ba6-4146-b21c-bdc66e300655
2025-08-11 15:55:02,649 - INFO - Verified VN network id 11 for VN 47cf212d-dd0b-4c52-a0d8-83edce066e95
2025-08-11 15:55:02,649 - INFO - Verifications in API Server for VN ctest-vn-06091246 passed
2025-08-11 15:55:02,649 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/47cf212d-dd0b-4c52-a0d8-83edce066e95
2025-08-11 15:55:02,658 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/963617f2-0ba6-4146-b21c-bdc66e300655
2025-08-11 15:55:02,665 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/963617f2-0ba6-4146-b21c-bdc66e300655
2025-08-11 15:55:02,671 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/24031c9b-c08e-4d07-af3f-9189eff3f040
2025-08-11 15:55:02,684 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85268724:ctest-vn-06091246', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85268724', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5174390977737739346', 'uuid-lslong': '11590158698424987285'}, 'enable': 'true', 'created': '2025-08-11T15:55:00', 'last-modified': '2025-08-11T15:55:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.928952'}
2025-08-11 15:55:02,690 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 15:55:02,690 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06091246 passed
2025-08-11 15:55:02,690 - DEBUG - ====Verifying policy data for ctest-vn-06091246 in API_Server ======
2025-08-11 15:55:02,690 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 15:55:02,695 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8e87a2a-62f3-4584-abb6-6cf01af9428d
2025-08-11 15:55:02,705 - DEBUG - Requesting: http://10.0.0.130:8082/project/f4ce786f-c216-44c2-ab63-56efa56ef484
2025-08-11 15:55:02,778 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/47cf212d-dd0b-4c52-a0d8-83edce066e95
2025-08-11 15:55:02,787 - DEBUG - ==>Verifying data for policy with id: 47577ace-4cd5-438e-bae3-784bb61827c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-85268724', 'ctest-policy-allow-all-68835938']
2025-08-11 15:55:02,788 - INFO - VN ctest-vn-06091246 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 15:55:02,788 - DEBUG - Verifying the vn in opserver
2025-08-11 15:55:02,788 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85268724:ctest-vn-06091246 virtual network link through opserver 10.0.0.130
2025-08-11 15:55:02,788 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-11 15:55:03,075 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-11 15:55:03,124 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85268724:ctest-vn-06091246', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85268724:ctest-vn-06091246?flat'}
2025-08-11 15:55:03,124 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85268724:ctest-vn-06091246 is found in opserver
2025-08-11 15:55:03,135 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 15:55:03,140 - DEBUG - VRF ids for VN ctest-vn-06091246: {}
2025-08-11 15:55:03,140 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 15:55:03,145 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8e87a2a-62f3-4584-abb6-6cf01af9428d
2025-08-11 15:55:03,156 - DEBUG - Requesting: http://10.0.0.130:8082/project/f4ce786f-c216-44c2-ab63-56efa56ef484
2025-08-11 15:55:03,224 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/71c7e908-5452-4137-92d8-f6aa1a70748a
2025-08-11 15:55:03,235 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/71c7e908-5452-4137-92d8-f6aa1a70748a
2025-08-11 15:55:03,244 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/ec2f9321-343f-4e9b-83b1-76aa32c9ae0a
2025-08-11 15:55:03,252 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/ec2f9321-343f-4e9b-83b1-76aa32c9ae0a
2025-08-11 15:55:03,258 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/1138d6e1-f657-4494-93e7-6ba355192828
2025-08-11 15:55:03,264 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 15:55:03,264 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/71c7e908-5452-4137-92d8-f6aa1a70748a
2025-08-11 15:55:03,273 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/ec2f9321-343f-4e9b-83b1-76aa32c9ae0a
2025-08-11 15:55:03,285 - INFO - Verified VN network id 12 for VN 71c7e908-5452-4137-92d8-f6aa1a70748a
2025-08-11 15:55:03,285 - INFO - Verifications in API Server for VN ctest-vn-51094549 passed
2025-08-11 15:55:03,285 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/71c7e908-5452-4137-92d8-f6aa1a70748a
2025-08-11 15:55:03,294 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/ec2f9321-343f-4e9b-83b1-76aa32c9ae0a
2025-08-11 15:55:03,300 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/ec2f9321-343f-4e9b-83b1-76aa32c9ae0a
2025-08-11 15:55:03,305 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/1138d6e1-f657-4494-93e7-6ba355192828
2025-08-11 15:55:03,316 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85268724:ctest-vn-51094549', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85268724', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8198777868634964279', 'uuid-lslong': '10581478534955431050'}, 'enable': 'true', 'created': '2025-08-11T15:55:01', 'last-modified': '2025-08-11T15:55:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.341944'}
2025-08-11 15:55:03,322 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 15:55:03,323 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51094549 passed
2025-08-11 15:55:03,323 - DEBUG - ====Verifying policy data for ctest-vn-51094549 in API_Server ======
2025-08-11 15:55:03,323 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 15:55:03,328 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8e87a2a-62f3-4584-abb6-6cf01af9428d
2025-08-11 15:55:03,338 - DEBUG - Requesting: http://10.0.0.130:8082/project/f4ce786f-c216-44c2-ab63-56efa56ef484
2025-08-11 15:55:03,407 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/71c7e908-5452-4137-92d8-f6aa1a70748a
2025-08-11 15:55:03,416 - DEBUG - ==>Verifying data for policy with id: 47577ace-4cd5-438e-bae3-784bb61827c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-85268724', 'ctest-policy-allow-all-68835938']
2025-08-11 15:55:03,416 - INFO - VN ctest-vn-51094549 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 15:55:03,416 - DEBUG - Verifying the vn in opserver
2025-08-11 15:55:03,416 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85268724:ctest-vn-51094549 virtual network link through opserver 10.0.0.130
2025-08-11 15:55:03,416 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-11 15:55:03,426 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85268724:ctest-vn-51094549', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85268724:ctest-vn-51094549?flat'}
2025-08-11 15:55:03,426 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85268724:ctest-vn-51094549 is found in opserver
2025-08-11 15:55:03,436 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 15:55:03,440 - DEBUG - VRF ids for VN ctest-vn-51094549: {}
2025-08-11 15:55:03,490 - DEBUG - Services list from nova: [