2025-10-06 17:33:31,027 - INFO - Domain Default found not creating
2025-10-06 17:33:31,174 - INFO - Project ctest-TestBasicPolicy-88445465 not found, creating it
2025-10-06 17:33:31,614 - INFO - Created Project:ctest-TestBasicPolicy-88445465, ID : 57c35a37-9458-4a3e-8bc1-805f38577c7f
2025-10-06 17:33:33,034 - INFO - ================================================================================
2025-10-06 17:33:33,034 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-06 17:33:33,034 - 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-10-06 17:33:33,303 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-06 17:33:33,303 - INFO - Initial checks done. Running the testcase now
2025-10-06 17:33:33,303 - INFO -
2025-10-06 17:33:33,902 - DEBUG - Response for create_network : {'network': {'id': '47be6248-84d1-485a-9ff7-b5a7cbe3d4f6', 'name': 'ctest-vn-30370603', 'tenant_id': '57c35a3794584a3e8bc1805f38577c7f', 'project_id': '57c35a3794584a3e8bc1805f38577c7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88445465', 'ctest-vn-30370603'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 17:33:34,072 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e972ae40-3be4-4c25-808c-d2d6ff100068', 'name': '', 'tenant_id': '57c35a3794584a3e8bc1805f38577c7f', 'network_id': '47be6248-84d1-485a-9ff7-b5a7cbe3d4f6', 'ip_version': 4, 'cidr': '175.134.148.128/26', 'allocation_pools': [{'start': '175.134.148.130', 'end': '175.134.148.190'}], 'gateway_ip': '175.134.148.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.134.148.130', 'tags': [], 'project_id': '57c35a3794584a3e8bc1805f38577c7f'}}
2025-10-06 17:33:34,090 - INFO - Created VN ctest-vn-30370603
2025-10-06 17:33:34,142 - DEBUG - VN ctest-vn-30370603 UUID is 47be6248-84d1-485a-9ff7-b5a7cbe3d4f6
2025-10-06 17:33:34,425 - DEBUG - Response for create_network : {'network': {'id': 'b840a753-d2f3-420c-ae96-a37225dfea9c', 'name': 'ctest-vn-62992154', 'tenant_id': '57c35a3794584a3e8bc1805f38577c7f', 'project_id': '57c35a3794584a3e8bc1805f38577c7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88445465', 'ctest-vn-62992154'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 17:33:34,587 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a15f643-2226-4801-a76e-33f862870a1b', 'name': '', 'tenant_id': '57c35a3794584a3e8bc1805f38577c7f', 'network_id': 'b840a753-d2f3-420c-ae96-a37225dfea9c', 'ip_version': 4, 'cidr': '177.106.12.128/26', 'allocation_pools': [{'start': '177.106.12.130', 'end': '177.106.12.190'}], 'gateway_ip': '177.106.12.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.106.12.130', 'tags': [], 'project_id': '57c35a3794584a3e8bc1805f38577c7f'}}
2025-10-06 17:33:34,608 - INFO - Created VN ctest-vn-62992154
2025-10-06 17:33:34,662 - DEBUG - VN ctest-vn-62992154 UUID is b840a753-d2f3-420c-ae96-a37225dfea9c
2025-10-06 17:33:34,775 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88445465:ctest-vn-30370603, 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-88445465:ctest-vn-62992154, 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-10-06 17:33:35,065 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47be6248-84d1-485a-9ff7-b5a7cbe3d4f6', 'name': 'ctest-vn-30370603', 'tenant_id': '57c35a3794584a3e8bc1805f38577c7f', 'project_id': '57c35a3794584a3e8bc1805f38577c7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e972ae40-3be4-4c25-808c-d2d6ff100068'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88445465', 'ctest-vn-30370603'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88445465', 'ctest-policy-allow-all-61034816']], 'subnet_ipam': [{'subnet_cidr': '175.134.148.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 17:33:35,293 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b840a753-d2f3-420c-ae96-a37225dfea9c', 'name': 'ctest-vn-62992154', 'tenant_id': '57c35a3794584a3e8bc1805f38577c7f', 'project_id': '57c35a3794584a3e8bc1805f38577c7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a15f643-2226-4801-a76e-33f862870a1b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88445465', 'ctest-vn-62992154'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88445465', 'ctest-policy-allow-all-61034816']], 'subnet_ipam': [{'subnet_cidr': '177.106.12.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 17:33:35,438 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-06 17:33:35,736 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-06 17:33:35,764 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7f817de8-b23f-4b83-abab-a6631a29eef2
2025-10-06 17:33:35,777 - DEBUG - Requesting: http://10.0.0.254:8082/project/57c35a37-9458-4a3e-8bc1-805f38577c7f
2025-10-06 17:33:35,859 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/47be6248-84d1-485a-9ff7-b5a7cbe3d4f6
2025-10-06 17:33:35,869 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/47be6248-84d1-485a-9ff7-b5a7cbe3d4f6
2025-10-06 17:33:35,877 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4446baa-8796-4a3e-aa7e-00d48e59a77c
2025-10-06 17:33:35,883 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4446baa-8796-4a3e-aa7e-00d48e59a77c
2025-10-06 17:33:35,888 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9f98ca2d-cae5-443e-9625-2aaae2c2d4ba
2025-10-06 17:33:35,893 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 17:33:35,893 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/47be6248-84d1-485a-9ff7-b5a7cbe3d4f6
2025-10-06 17:33:35,900 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4446baa-8796-4a3e-aa7e-00d48e59a77c
2025-10-06 17:33:35,911 - INFO - Verified VN network id 11 for VN 47be6248-84d1-485a-9ff7-b5a7cbe3d4f6
2025-10-06 17:33:35,912 - INFO - Verifications in API Server for VN ctest-vn-30370603 passed
2025-10-06 17:33:35,912 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/47be6248-84d1-485a-9ff7-b5a7cbe3d4f6
2025-10-06 17:33:35,919 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4446baa-8796-4a3e-aa7e-00d48e59a77c
2025-10-06 17:33:35,926 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4446baa-8796-4a3e-aa7e-00d48e59a77c
2025-10-06 17:33:35,932 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9f98ca2d-cae5-443e-9625-2aaae2c2d4ba
2025-10-06 17:33:35,942 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88445465:ctest-vn-30370603', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88445465', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5169677485873383514', 'uuid-lslong': '11526881503562945782'}, 'enable': 'true', 'created': '2025-10-06T17:33:33', 'last-modified': '2025-10-06T17:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.898768'}
2025-10-06 17:33:35,947 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 17:33:35,947 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30370603 passed
2025-10-06 17:33:35,947 - DEBUG - ====Verifying policy data for ctest-vn-30370603 in API_Server ======
2025-10-06 17:33:35,947 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-06 17:33:35,955 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7f817de8-b23f-4b83-abab-a6631a29eef2
2025-10-06 17:33:35,966 - DEBUG - Requesting: http://10.0.0.254:8082/project/57c35a37-9458-4a3e-8bc1-805f38577c7f
2025-10-06 17:33:36,035 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/47be6248-84d1-485a-9ff7-b5a7cbe3d4f6
2025-10-06 17:33:36,043 - DEBUG - ==>Verifying data for policy with id: c5546885-4e7b-4841-b536-985e13acba09, fqn: ['default-domain', 'ctest-TestBasicPolicy-88445465', 'ctest-policy-allow-all-61034816']
2025-10-06 17:33:36,043 - INFO - VN ctest-vn-30370603 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 17:33:36,043 - DEBUG - Verifying the vn in opserver
2025-10-06 17:33:36,043 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88445465:ctest-vn-30370603 virtual network link through opserver 10.0.0.254
2025-10-06 17:33:36,043 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-06 17:33:36,332 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-06 17:33:36,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88445465:ctest-vn-30370603', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88445465:ctest-vn-30370603?flat'}
2025-10-06 17:33:36,385 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88445465:ctest-vn-30370603 is found in opserver
2025-10-06 17:33:36,402 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 17:33:36,434 - DEBUG - VRF ids for VN ctest-vn-30370603: {}
2025-10-06 17:33:36,434 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-06 17:33:36,440 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7f817de8-b23f-4b83-abab-a6631a29eef2
2025-10-06 17:33:36,452 - DEBUG - Requesting: http://10.0.0.254:8082/project/57c35a37-9458-4a3e-8bc1-805f38577c7f
2025-10-06 17:33:36,517 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b840a753-d2f3-420c-ae96-a37225dfea9c
2025-10-06 17:33:36,527 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b840a753-d2f3-420c-ae96-a37225dfea9c
2025-10-06 17:33:36,535 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/944d8766-b793-4b13-a7c4-cc8603b4ead3
2025-10-06 17:33:36,542 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/944d8766-b793-4b13-a7c4-cc8603b4ead3
2025-10-06 17:33:36,548 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/86c7e925-d5d6-40d8-84e7-8e7a7e5f0a54
2025-10-06 17:33:36,555 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 17:33:36,555 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b840a753-d2f3-420c-ae96-a37225dfea9c
2025-10-06 17:33:36,564 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/944d8766-b793-4b13-a7c4-cc8603b4ead3
2025-10-06 17:33:36,576 - INFO - Verified VN network id 12 for VN b840a753-d2f3-420c-ae96-a37225dfea9c
2025-10-06 17:33:36,577 - INFO - Verifications in API Server for VN ctest-vn-62992154 passed
2025-10-06 17:33:36,577 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b840a753-d2f3-420c-ae96-a37225dfea9c
2025-10-06 17:33:36,585 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/944d8766-b793-4b13-a7c4-cc8603b4ead3
2025-10-06 17:33:36,592 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/944d8766-b793-4b13-a7c4-cc8603b4ead3
2025-10-06 17:33:36,599 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/86c7e925-d5d6-40d8-84e7-8e7a7e5f0a54
2025-10-06 17:33:36,609 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88445465:ctest-vn-62992154', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88445465', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13276795679951503884', 'uuid-lslong': '12580422319763090076'}, 'enable': 'true', 'created': '2025-10-06T17:33:34', 'last-modified': '2025-10-06T17:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.345127'}
2025-10-06 17:33:36,615 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 17:33:36,615 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62992154 passed
2025-10-06 17:33:36,615 - DEBUG - ====Verifying policy data for ctest-vn-62992154 in API_Server ======
2025-10-06 17:33:36,615 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-06 17:33:36,621 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7f817de8-b23f-4b83-abab-a6631a29eef2
2025-10-06 17:33:36,631 - DEBUG - Requesting: http://10.0.0.254:8082/project/57c35a37-9458-4a3e-8bc1-805f38577c7f
2025-10-06 17:33:36,698 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b840a753-d2f3-420c-ae96-a37225dfea9c
2025-10-06 17:33:36,708 - DEBUG - ==>Verifying data for policy with id: c5546885-4e7b-4841-b536-985e13acba09, fqn: ['default-domain', 'ctest-TestBasicPolicy-88445465', 'ctest-policy-allow-all-61034816']
2025-10-06 17:33:36,708 - INFO - VN ctest-vn-62992154 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 17:33:36,708 - DEBUG - Verifying the vn in opserver
2025-10-06 17:33:36,708 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88445465:ctest-vn-62992154 virtual network link through opserver 10.0.0.254
2025-10-06 17:33:36,708 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-06 17:33:36,718 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88445465:ctest-vn-62992154', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88445465:ctest-vn-62992154?flat'}
2025-10-06 17:33:36,718 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88445465:ctest-vn-62992154 is found in opserver
2025-10-06 17:33:36,727 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 17:33:36,730 - DEBUG - VRF ids for VN ctest-vn-62992154: {}
2025-10-06 17:33:36,783 - DEBUG - Services list from nova: [