2025-10-06 16:41:42,492 - INFO - Domain Default found not creating
2025-10-06 16:41:42,624 - INFO - Project ctest-TestBasicPolicy-76369250 not found, creating it
2025-10-06 16:41:43,047 - INFO - Created Project:ctest-TestBasicPolicy-76369250, ID : 763c34d3-24de-4ad6-8f20-276553d7c876
2025-10-06 16:41:44,377 - INFO - ================================================================================
2025-10-06 16:41:44,377 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-06 16:41:44,377 - 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 16:41:44,632 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-06 16:41:44,632 - INFO - Initial checks done. Running the testcase now
2025-10-06 16:41:44,632 - INFO -
2025-10-06 16:41:45,178 - DEBUG - Response for create_network : {'network': {'id': 'dd3c321d-cb5e-4c9f-ad0f-49101665b13a', 'name': 'ctest-vn-31034734', 'tenant_id': '763c34d324de4ad68f20276553d7c876', 'project_id': '763c34d324de4ad68f20276553d7c876', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76369250', 'ctest-vn-31034734'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 16:41:45,361 - DEBUG - Response for create_subnet : {'subnet': {'id': '928aa0a4-7680-4081-90e2-90c439b4e467', 'name': '', 'tenant_id': '763c34d324de4ad68f20276553d7c876', 'network_id': 'dd3c321d-cb5e-4c9f-ad0f-49101665b13a', 'ip_version': 4, 'cidr': '99.150.252.64/26', 'allocation_pools': [{'start': '99.150.252.66', 'end': '99.150.252.126'}], 'gateway_ip': '99.150.252.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.150.252.66', 'tags': [], 'project_id': '763c34d324de4ad68f20276553d7c876'}}
2025-10-06 16:41:45,379 - INFO - Created VN ctest-vn-31034734
2025-10-06 16:41:45,431 - DEBUG - VN ctest-vn-31034734 UUID is dd3c321d-cb5e-4c9f-ad0f-49101665b13a
2025-10-06 16:41:45,728 - DEBUG - Response for create_network : {'network': {'id': '1ebc0c9a-57ae-4be0-96f7-0b0cd93897ae', 'name': 'ctest-vn-78353376', 'tenant_id': '763c34d324de4ad68f20276553d7c876', 'project_id': '763c34d324de4ad68f20276553d7c876', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76369250', 'ctest-vn-78353376'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 16:41:45,923 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ea93c0a-dd9b-4724-b525-a265992c1662', 'name': '', 'tenant_id': '763c34d324de4ad68f20276553d7c876', 'network_id': '1ebc0c9a-57ae-4be0-96f7-0b0cd93897ae', 'ip_version': 4, 'cidr': '88.143.228.192/26', 'allocation_pools': [{'start': '88.143.228.194', 'end': '88.143.228.254'}], 'gateway_ip': '88.143.228.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.143.228.194', 'tags': [], 'project_id': '763c34d324de4ad68f20276553d7c876'}}
2025-10-06 16:41:45,940 - INFO - Created VN ctest-vn-78353376
2025-10-06 16:41:45,991 - DEBUG - VN ctest-vn-78353376 UUID is 1ebc0c9a-57ae-4be0-96f7-0b0cd93897ae
2025-10-06 16:41:46,135 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76369250:ctest-vn-31034734, 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-76369250:ctest-vn-78353376, 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 16:41:46,412 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd3c321d-cb5e-4c9f-ad0f-49101665b13a', 'name': 'ctest-vn-31034734', 'tenant_id': '763c34d324de4ad68f20276553d7c876', 'project_id': '763c34d324de4ad68f20276553d7c876', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['928aa0a4-7680-4081-90e2-90c439b4e467'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76369250', 'ctest-vn-31034734'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76369250', 'ctest-policy-allow-all-48461438']], 'subnet_ipam': [{'subnet_cidr': '99.150.252.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 16:41:46,625 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1ebc0c9a-57ae-4be0-96f7-0b0cd93897ae', 'name': 'ctest-vn-78353376', 'tenant_id': '763c34d324de4ad68f20276553d7c876', 'project_id': '763c34d324de4ad68f20276553d7c876', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ea93c0a-dd9b-4724-b525-a265992c1662'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76369250', 'ctest-vn-78353376'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76369250', 'ctest-policy-allow-all-48461438']], 'subnet_ipam': [{'subnet_cidr': '88.143.228.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 16:41:46,771 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-06 16:41:47,065 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-06 16:41:47,090 - DEBUG - Requesting: http://10.0.0.254:8082/domain/043283a7-7b44-4844-8e63-bce273e74e90
2025-10-06 16:41:47,100 - DEBUG - Requesting: http://10.0.0.254:8082/project/763c34d3-24de-4ad6-8f20-276553d7c876
2025-10-06 16:41:47,167 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd3c321d-cb5e-4c9f-ad0f-49101665b13a
2025-10-06 16:41:47,176 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd3c321d-cb5e-4c9f-ad0f-49101665b13a
2025-10-06 16:41:47,184 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/635d8c96-f3f0-4028-9c8f-c0e666fc6a36
2025-10-06 16:41:47,190 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/635d8c96-f3f0-4028-9c8f-c0e666fc6a36
2025-10-06 16:41:47,195 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c6229a19-7b82-4148-b85c-ebf4b934e321
2025-10-06 16:41:47,200 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 16:41:47,200 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd3c321d-cb5e-4c9f-ad0f-49101665b13a
2025-10-06 16:41:47,208 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/635d8c96-f3f0-4028-9c8f-c0e666fc6a36
2025-10-06 16:41:47,221 - INFO - Verified VN network id 12 for VN dd3c321d-cb5e-4c9f-ad0f-49101665b13a
2025-10-06 16:41:47,221 - INFO - Verifications in API Server for VN ctest-vn-31034734 passed
2025-10-06 16:41:47,221 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd3c321d-cb5e-4c9f-ad0f-49101665b13a
2025-10-06 16:41:47,228 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/635d8c96-f3f0-4028-9c8f-c0e666fc6a36
2025-10-06 16:41:47,234 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/635d8c96-f3f0-4028-9c8f-c0e666fc6a36
2025-10-06 16:41:47,240 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c6229a19-7b82-4148-b85c-ebf4b934e321
2025-10-06 16:41:47,250 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76369250:ctest-vn-31034734', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76369250', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15941671884532108447', 'uuid-lslong': '12470266226656260410'}, 'enable': 'true', 'created': '2025-10-06T16:41:45', 'last-modified': '2025-10-06T16:41:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.859812'}
2025-10-06 16:41:47,255 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 16:41:47,256 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31034734 passed
2025-10-06 16:41:47,256 - DEBUG - ====Verifying policy data for ctest-vn-31034734 in API_Server ======
2025-10-06 16:41:47,256 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-06 16:41:47,261 - DEBUG - Requesting: http://10.0.0.254:8082/domain/043283a7-7b44-4844-8e63-bce273e74e90
2025-10-06 16:41:47,271 - DEBUG - Requesting: http://10.0.0.254:8082/project/763c34d3-24de-4ad6-8f20-276553d7c876
2025-10-06 16:41:47,340 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dd3c321d-cb5e-4c9f-ad0f-49101665b13a
2025-10-06 16:41:47,348 - DEBUG - ==>Verifying data for policy with id: 23d69253-600d-4090-b878-723520247190, fqn: ['default-domain', 'ctest-TestBasicPolicy-76369250', 'ctest-policy-allow-all-48461438']
2025-10-06 16:41:47,348 - INFO - VN ctest-vn-31034734 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 16:41:47,348 - DEBUG - Verifying the vn in opserver
2025-10-06 16:41:47,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76369250:ctest-vn-31034734 virtual network link through opserver 10.0.0.254
2025-10-06 16:41:47,348 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-06 16:41:47,638 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-06 16:41:47,687 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76369250:ctest-vn-31034734', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76369250:ctest-vn-31034734?flat'}
2025-10-06 16:41:47,687 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76369250:ctest-vn-31034734 is found in opserver
2025-10-06 16:41:47,695 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 16:41:47,699 - DEBUG - VRF ids for VN ctest-vn-31034734: {}
2025-10-06 16:41:47,699 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-06 16:41:47,703 - DEBUG - Requesting: http://10.0.0.254:8082/domain/043283a7-7b44-4844-8e63-bce273e74e90
2025-10-06 16:41:47,713 - DEBUG - Requesting: http://10.0.0.254:8082/project/763c34d3-24de-4ad6-8f20-276553d7c876
2025-10-06 16:41:47,789 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1ebc0c9a-57ae-4be0-96f7-0b0cd93897ae
2025-10-06 16:41:47,800 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1ebc0c9a-57ae-4be0-96f7-0b0cd93897ae
2025-10-06 16:41:47,807 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0705d7da-4d25-40d5-aebb-c85470235ba1
2025-10-06 16:41:47,813 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0705d7da-4d25-40d5-aebb-c85470235ba1
2025-10-06 16:41:47,818 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d5ad2700-807e-4f0e-8e43-915a78edacc3
2025-10-06 16:41:47,823 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 16:41:47,823 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1ebc0c9a-57ae-4be0-96f7-0b0cd93897ae
2025-10-06 16:41:47,830 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0705d7da-4d25-40d5-aebb-c85470235ba1
2025-10-06 16:41:47,841 - INFO - Verified VN network id 13 for VN 1ebc0c9a-57ae-4be0-96f7-0b0cd93897ae
2025-10-06 16:41:47,841 - INFO - Verifications in API Server for VN ctest-vn-78353376 passed
2025-10-06 16:41:47,841 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1ebc0c9a-57ae-4be0-96f7-0b0cd93897ae
2025-10-06 16:41:47,848 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0705d7da-4d25-40d5-aebb-c85470235ba1
2025-10-06 16:41:47,853 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0705d7da-4d25-40d5-aebb-c85470235ba1
2025-10-06 16:41:47,859 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d5ad2700-807e-4f0e-8e43-915a78edacc3
2025-10-06 16:41:47,867 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76369250:ctest-vn-78353376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76369250', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2214658973794978784', 'uuid-lslong': '10878175574748600238'}, 'enable': 'true', 'created': '2025-10-06T16:41:45', 'last-modified': '2025-10-06T16:41:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.260824'}
2025-10-06 16:41:47,873 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 16:41:47,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78353376 passed
2025-10-06 16:41:47,873 - DEBUG - ====Verifying policy data for ctest-vn-78353376 in API_Server ======
2025-10-06 16:41:47,874 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-06 16:41:47,878 - DEBUG - Requesting: http://10.0.0.254:8082/domain/043283a7-7b44-4844-8e63-bce273e74e90
2025-10-06 16:41:47,888 - DEBUG - Requesting: http://10.0.0.254:8082/project/763c34d3-24de-4ad6-8f20-276553d7c876
2025-10-06 16:41:47,956 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1ebc0c9a-57ae-4be0-96f7-0b0cd93897ae
2025-10-06 16:41:47,964 - DEBUG - ==>Verifying data for policy with id: 23d69253-600d-4090-b878-723520247190, fqn: ['default-domain', 'ctest-TestBasicPolicy-76369250', 'ctest-policy-allow-all-48461438']
2025-10-06 16:41:47,965 - INFO - VN ctest-vn-78353376 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 16:41:47,965 - DEBUG - Verifying the vn in opserver
2025-10-06 16:41:47,965 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76369250:ctest-vn-78353376 virtual network link through opserver 10.0.0.254
2025-10-06 16:41:47,965 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-06 16:41:47,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76369250:ctest-vn-78353376', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76369250:ctest-vn-78353376?flat'}
2025-10-06 16:41:47,973 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76369250:ctest-vn-78353376 is found in opserver
2025-10-06 16:41:47,980 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 16:41:47,984 - DEBUG - VRF ids for VN ctest-vn-78353376: {}
2025-10-06 16:41:48,035 - DEBUG - Services list from nova: [