2025-11-12 03:25:38,772 - INFO - Domain Default found not creating
2025-11-12 03:25:38,889 - INFO - Project ctest-TestBasicPolicy-61803306 not found, creating it
2025-11-12 03:25:39,360 - INFO - Created Project:ctest-TestBasicPolicy-61803306, ID : a069f617-a410-4697-a118-639fe3de0265
2025-11-12 03:25:40,703 - INFO - ================================================================================
2025-11-12 03:25:40,703 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-12 03:25:40,703 - 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-11-12 03:25:40,959 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-11-12 03:25:40,959 - INFO - Initial checks done. Running the testcase now
2025-11-12 03:25:40,959 - INFO -
2025-11-12 03:25:41,469 - DEBUG - Response for create_network : {'network': {'id': '1d9ad724-2c3c-43a2-935d-d483977df9eb', 'name': 'ctest-vn-77170431', 'tenant_id': 'a069f617a4104697a118639fe3de0265', 'project_id': 'a069f617a4104697a118639fe3de0265', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61803306', 'ctest-vn-77170431'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 03:25:41,642 - DEBUG - Response for create_subnet : {'subnet': {'id': '19a0844b-4c86-42dc-a7c4-4a2e6d5ebe33', 'name': '', 'tenant_id': 'a069f617a4104697a118639fe3de0265', 'network_id': '1d9ad724-2c3c-43a2-935d-d483977df9eb', 'ip_version': 4, 'cidr': '108.37.211.0/26', 'allocation_pools': [{'start': '108.37.211.2', 'end': '108.37.211.62'}], 'gateway_ip': '108.37.211.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.37.211.2', 'tags': [], 'project_id': 'a069f617a4104697a118639fe3de0265'}}
2025-11-12 03:25:41,657 - INFO - Created VN ctest-vn-77170431
2025-11-12 03:25:41,707 - DEBUG - VN ctest-vn-77170431 UUID is 1d9ad724-2c3c-43a2-935d-d483977df9eb
2025-11-12 03:25:41,996 - DEBUG - Response for create_network : {'network': {'id': '44d22b8b-4862-40ef-b5ca-ab35f0a6fc73', 'name': 'ctest-vn-71443215', 'tenant_id': 'a069f617a4104697a118639fe3de0265', 'project_id': 'a069f617a4104697a118639fe3de0265', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61803306', 'ctest-vn-71443215'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 03:25:42,189 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d3aad4d-8ea3-4261-a627-955910f12ee1', 'name': '', 'tenant_id': 'a069f617a4104697a118639fe3de0265', 'network_id': '44d22b8b-4862-40ef-b5ca-ab35f0a6fc73', 'ip_version': 4, 'cidr': '156.0.142.64/26', 'allocation_pools': [{'start': '156.0.142.66', 'end': '156.0.142.126'}], 'gateway_ip': '156.0.142.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.0.142.66', 'tags': [], 'project_id': 'a069f617a4104697a118639fe3de0265'}}
2025-11-12 03:25:42,206 - INFO - Created VN ctest-vn-71443215
2025-11-12 03:25:42,259 - DEBUG - VN ctest-vn-71443215 UUID is 44d22b8b-4862-40ef-b5ca-ab35f0a6fc73
2025-11-12 03:25:42,399 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61803306:ctest-vn-77170431, 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-61803306:ctest-vn-71443215, 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-11-12 03:25:42,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d9ad724-2c3c-43a2-935d-d483977df9eb', 'name': 'ctest-vn-77170431', 'tenant_id': 'a069f617a4104697a118639fe3de0265', 'project_id': 'a069f617a4104697a118639fe3de0265', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19a0844b-4c86-42dc-a7c4-4a2e6d5ebe33'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61803306', 'ctest-vn-77170431'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61803306', 'ctest-policy-allow-all-62939202']], 'subnet_ipam': [{'subnet_cidr': '108.37.211.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 03:25:42,910 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44d22b8b-4862-40ef-b5ca-ab35f0a6fc73', 'name': 'ctest-vn-71443215', 'tenant_id': 'a069f617a4104697a118639fe3de0265', 'project_id': 'a069f617a4104697a118639fe3de0265', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d3aad4d-8ea3-4261-a627-955910f12ee1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61803306', 'ctest-vn-71443215'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61803306', 'ctest-policy-allow-all-62939202']], 'subnet_ipam': [{'subnet_cidr': '156.0.142.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 03:25:43,051 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 03:25:43,342 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 03:25:43,365 - DEBUG - Requesting: http://10.0.0.38:8082/domain/30d59b33-e0b0-49f3-9868-e063f4417af1
2025-11-12 03:25:43,376 - DEBUG - Requesting: http://10.0.0.38:8082/project/a069f617-a410-4697-a118-639fe3de0265
2025-11-12 03:25:43,443 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d9ad724-2c3c-43a2-935d-d483977df9eb
2025-11-12 03:25:43,453 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d9ad724-2c3c-43a2-935d-d483977df9eb
2025-11-12 03:25:43,461 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca1032a-0e85-4f50-ad9f-d84a0a63cc7e
2025-11-12 03:25:43,468 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca1032a-0e85-4f50-ad9f-d84a0a63cc7e
2025-11-12 03:25:43,474 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1ecdc361-5a3b-4280-bf58-b85f5810edba
2025-11-12 03:25:43,478 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 03:25:43,478 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d9ad724-2c3c-43a2-935d-d483977df9eb
2025-11-12 03:25:43,485 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca1032a-0e85-4f50-ad9f-d84a0a63cc7e
2025-11-12 03:25:43,495 - INFO - Verified VN network id 12 for VN 1d9ad724-2c3c-43a2-935d-d483977df9eb
2025-11-12 03:25:43,495 - INFO - Verifications in API Server for VN ctest-vn-77170431 passed
2025-11-12 03:25:43,495 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d9ad724-2c3c-43a2-935d-d483977df9eb
2025-11-12 03:25:43,503 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca1032a-0e85-4f50-ad9f-d84a0a63cc7e
2025-11-12 03:25:43,508 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ca1032a-0e85-4f50-ad9f-d84a0a63cc7e
2025-11-12 03:25:43,513 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1ecdc361-5a3b-4280-bf58-b85f5810edba
2025-11-12 03:25:43,521 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61803306:ctest-vn-77170431', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61803306', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2133253923874292642', 'uuid-lslong': '10618877158056917483'}, 'enable': 'true', 'created': '2025-11-12T03:25:41', 'last-modified': '2025-11-12T03:25:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.871808'}
2025-11-12 03:25:43,527 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 03:25:43,527 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77170431 passed
2025-11-12 03:25:43,527 - DEBUG - ====Verifying policy data for ctest-vn-77170431 in API_Server ======
2025-11-12 03:25:43,527 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 03:25:43,531 - DEBUG - Requesting: http://10.0.0.38:8082/domain/30d59b33-e0b0-49f3-9868-e063f4417af1
2025-11-12 03:25:43,540 - DEBUG - Requesting: http://10.0.0.38:8082/project/a069f617-a410-4697-a118-639fe3de0265
2025-11-12 03:25:43,607 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d9ad724-2c3c-43a2-935d-d483977df9eb
2025-11-12 03:25:43,614 - DEBUG - ==>Verifying data for policy with id: a0c166e9-6316-4c5d-b174-703a25ed351c, fqn: ['default-domain', 'ctest-TestBasicPolicy-61803306', 'ctest-policy-allow-all-62939202']
2025-11-12 03:25:43,615 - INFO - VN ctest-vn-77170431 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 03:25:43,615 - DEBUG - Verifying the vn in opserver
2025-11-12 03:25:43,615 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61803306:ctest-vn-77170431 virtual network link through opserver 10.0.0.38
2025-11-12 03:25:43,615 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-12 03:25:43,902 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-12 03:25:43,953 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61803306:ctest-vn-77170431', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61803306:ctest-vn-77170431?flat'}
2025-11-12 03:25:43,953 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61803306:ctest-vn-77170431 is found in opserver
2025-11-12 03:25:43,961 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 03:25:43,965 - DEBUG - VRF ids for VN ctest-vn-77170431: {}
2025-11-12 03:25:43,965 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 03:25:43,970 - DEBUG - Requesting: http://10.0.0.38:8082/domain/30d59b33-e0b0-49f3-9868-e063f4417af1
2025-11-12 03:25:43,979 - DEBUG - Requesting: http://10.0.0.38:8082/project/a069f617-a410-4697-a118-639fe3de0265
2025-11-12 03:25:44,045 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/44d22b8b-4862-40ef-b5ca-ab35f0a6fc73
2025-11-12 03:25:44,055 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/44d22b8b-4862-40ef-b5ca-ab35f0a6fc73
2025-11-12 03:25:44,063 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aa85a8ee-de87-42ed-826e-40c70ddb7a0c
2025-11-12 03:25:44,070 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aa85a8ee-de87-42ed-826e-40c70ddb7a0c
2025-11-12 03:25:44,076 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/05d8f977-bd9e-45be-bc7c-972204c97587
2025-11-12 03:25:44,082 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 03:25:44,082 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/44d22b8b-4862-40ef-b5ca-ab35f0a6fc73
2025-11-12 03:25:44,090 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aa85a8ee-de87-42ed-826e-40c70ddb7a0c
2025-11-12 03:25:44,102 - INFO - Verified VN network id 13 for VN 44d22b8b-4862-40ef-b5ca-ab35f0a6fc73
2025-11-12 03:25:44,102 - INFO - Verifications in API Server for VN ctest-vn-71443215 passed
2025-11-12 03:25:44,102 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/44d22b8b-4862-40ef-b5ca-ab35f0a6fc73
2025-11-12 03:25:44,110 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aa85a8ee-de87-42ed-826e-40c70ddb7a0c
2025-11-12 03:25:44,116 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aa85a8ee-de87-42ed-826e-40c70ddb7a0c
2025-11-12 03:25:44,122 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/05d8f977-bd9e-45be-bc7c-972204c97587
2025-11-12 03:25:44,133 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61803306:ctest-vn-71443215', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61803306', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4959074016903184623', 'uuid-lslong': '13099470714319600755'}, 'enable': 'true', 'created': '2025-11-12T03:25:41', 'last-modified': '2025-11-12T03:25:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.268710'}
2025-11-12 03:25:44,138 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 03:25:44,138 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71443215 passed
2025-11-12 03:25:44,138 - DEBUG - ====Verifying policy data for ctest-vn-71443215 in API_Server ======
2025-11-12 03:25:44,138 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 03:25:44,143 - DEBUG - Requesting: http://10.0.0.38:8082/domain/30d59b33-e0b0-49f3-9868-e063f4417af1
2025-11-12 03:25:44,154 - DEBUG - Requesting: http://10.0.0.38:8082/project/a069f617-a410-4697-a118-639fe3de0265
2025-11-12 03:25:44,231 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/44d22b8b-4862-40ef-b5ca-ab35f0a6fc73
2025-11-12 03:25:44,239 - DEBUG - ==>Verifying data for policy with id: a0c166e9-6316-4c5d-b174-703a25ed351c, fqn: ['default-domain', 'ctest-TestBasicPolicy-61803306', 'ctest-policy-allow-all-62939202']
2025-11-12 03:25:44,239 - INFO - VN ctest-vn-71443215 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 03:25:44,240 - DEBUG - Verifying the vn in opserver
2025-11-12 03:25:44,240 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61803306:ctest-vn-71443215 virtual network link through opserver 10.0.0.38
2025-11-12 03:25:44,240 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-12 03:25:44,248 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61803306:ctest-vn-71443215', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61803306:ctest-vn-71443215?flat'}
2025-11-12 03:25:44,248 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61803306:ctest-vn-71443215 is found in opserver
2025-11-12 03:25:44,256 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 03:25:44,260 - DEBUG - VRF ids for VN ctest-vn-71443215: {}
2025-11-12 03:25:44,321 - DEBUG - Services list from nova: [