2025-08-07 14:23:48,828 - INFO - Domain Default found not creating
2025-08-07 14:23:48,989 - INFO - Project ctest-TestBasicPolicy-71819323 not found, creating it
2025-08-07 14:23:49,459 - INFO - Created Project:ctest-TestBasicPolicy-71819323, ID : c8be8ba1-0f7a-4c7f-8046-bd4302155391
2025-08-07 14:23:50,954 - INFO - ================================================================================
2025-08-07 14:23:50,954 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-07 14:23:50,954 - 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-07 14:23:51,211 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-08-07 14:23:51,211 - INFO - Initial checks done. Running the testcase now
2025-08-07 14:23:51,211 - INFO -
2025-08-07 14:23:51,744 - DEBUG - Response for create_network : {'network': {'id': '59f94b69-2b5b-46db-862d-cc198703d8ca', 'name': 'ctest-vn-27681876', 'tenant_id': 'c8be8ba10f7a4c7f8046bd4302155391', 'project_id': 'c8be8ba10f7a4c7f8046bd4302155391', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71819323', 'ctest-vn-27681876'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 14:23:52,108 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b71b565f-6d72-4537-99c4-9f19e98211c6', 'name': '', 'tenant_id': 'c8be8ba10f7a4c7f8046bd4302155391', 'network_id': '59f94b69-2b5b-46db-862d-cc198703d8ca', 'ip_version': 4, 'cidr': '73.89.241.64/26', 'allocation_pools': [{'start': '73.89.241.66', 'end': '73.89.241.126'}], 'gateway_ip': '73.89.241.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.89.241.66', 'tags': [], 'project_id': 'c8be8ba10f7a4c7f8046bd4302155391'}}
2025-08-07 14:23:52,135 - INFO - Created VN ctest-vn-27681876
2025-08-07 14:23:52,198 - DEBUG - VN ctest-vn-27681876 UUID is 59f94b69-2b5b-46db-862d-cc198703d8ca
2025-08-07 14:23:52,636 - DEBUG - Response for create_network : {'network': {'id': 'c37c7254-f94e-4e10-bceb-33e0075ef9fc', 'name': 'ctest-vn-50645336', 'tenant_id': 'c8be8ba10f7a4c7f8046bd4302155391', 'project_id': 'c8be8ba10f7a4c7f8046bd4302155391', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71819323', 'ctest-vn-50645336'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 14:23:52,840 - DEBUG - Response for create_subnet : {'subnet': {'id': 'deec6d7e-c590-428f-b58f-1e53772948a9', 'name': '', 'tenant_id': 'c8be8ba10f7a4c7f8046bd4302155391', 'network_id': 'c37c7254-f94e-4e10-bceb-33e0075ef9fc', 'ip_version': 4, 'cidr': '49.124.241.0/26', 'allocation_pools': [{'start': '49.124.241.2', 'end': '49.124.241.62'}], 'gateway_ip': '49.124.241.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.124.241.2', 'tags': [], 'project_id': 'c8be8ba10f7a4c7f8046bd4302155391'}}
2025-08-07 14:23:52,856 - INFO - Created VN ctest-vn-50645336
2025-08-07 14:23:52,914 - DEBUG - VN ctest-vn-50645336 UUID is c37c7254-f94e-4e10-bceb-33e0075ef9fc
2025-08-07 14:23:53,066 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71819323:ctest-vn-27681876, 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-71819323:ctest-vn-50645336, 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-07 14:23:53,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '59f94b69-2b5b-46db-862d-cc198703d8ca', 'name': 'ctest-vn-27681876', 'tenant_id': 'c8be8ba10f7a4c7f8046bd4302155391', 'project_id': 'c8be8ba10f7a4c7f8046bd4302155391', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b71b565f-6d72-4537-99c4-9f19e98211c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71819323', 'ctest-vn-27681876'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71819323', 'ctest-policy-allow-all-97678725']], 'subnet_ipam': [{'subnet_cidr': '73.89.241.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 14:23:53,625 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c37c7254-f94e-4e10-bceb-33e0075ef9fc', 'name': 'ctest-vn-50645336', 'tenant_id': 'c8be8ba10f7a4c7f8046bd4302155391', 'project_id': 'c8be8ba10f7a4c7f8046bd4302155391', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['deec6d7e-c590-428f-b58f-1e53772948a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71819323', 'ctest-vn-50645336'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71819323', 'ctest-policy-allow-all-97678725']], 'subnet_ipam': [{'subnet_cidr': '49.124.241.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 14:23:53,786 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-07 14:23:54,083 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-07 14:23:54,127 - DEBUG - Requesting: http://10.0.0.254:8082/domain/135ffd21-72fb-4f0d-9b21-1128999ff790
2025-08-07 14:23:54,141 - DEBUG - Requesting: http://10.0.0.254:8082/project/c8be8ba1-0f7a-4c7f-8046-bd4302155391
2025-08-07 14:23:54,218 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/59f94b69-2b5b-46db-862d-cc198703d8ca
2025-08-07 14:23:54,229 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/59f94b69-2b5b-46db-862d-cc198703d8ca
2025-08-07 14:23:54,239 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bcc31a84-a7e0-4a95-82e2-d345cc5d3e65
2025-08-07 14:23:54,246 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bcc31a84-a7e0-4a95-82e2-d345cc5d3e65
2025-08-07 14:23:54,253 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/354531f7-386d-4ad6-b4cb-ab41484a1904
2025-08-07 14:23:54,260 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 14:23:54,260 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/59f94b69-2b5b-46db-862d-cc198703d8ca
2025-08-07 14:23:54,270 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bcc31a84-a7e0-4a95-82e2-d345cc5d3e65
2025-08-07 14:23:54,286 - INFO - Verified VN network id 9 for VN 59f94b69-2b5b-46db-862d-cc198703d8ca
2025-08-07 14:23:54,286 - INFO - Verifications in API Server for VN ctest-vn-27681876 passed
2025-08-07 14:23:54,286 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/59f94b69-2b5b-46db-862d-cc198703d8ca
2025-08-07 14:23:54,297 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bcc31a84-a7e0-4a95-82e2-d345cc5d3e65
2025-08-07 14:23:54,305 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bcc31a84-a7e0-4a95-82e2-d345cc5d3e65
2025-08-07 14:23:54,312 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/354531f7-386d-4ad6-b4cb-ab41484a1904
2025-08-07 14:23:54,326 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71819323:ctest-vn-27681876', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71819323', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6483296053647591131', 'uuid-lslong': '9668608385045747914'}, 'enable': 'true', 'created': '2025-08-07T14:23:51', 'last-modified': '2025-08-07T14:23:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971572'}
2025-08-07 14:23:54,334 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 14:23:54,334 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27681876 passed
2025-08-07 14:23:54,334 - DEBUG - ====Verifying policy data for ctest-vn-27681876 in API_Server ======
2025-08-07 14:23:54,334 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-07 14:23:54,341 - DEBUG - Requesting: http://10.0.0.254:8082/domain/135ffd21-72fb-4f0d-9b21-1128999ff790
2025-08-07 14:23:54,355 - DEBUG - Requesting: http://10.0.0.254:8082/project/c8be8ba1-0f7a-4c7f-8046-bd4302155391
2025-08-07 14:23:54,435 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/59f94b69-2b5b-46db-862d-cc198703d8ca
2025-08-07 14:23:54,449 - DEBUG - ==>Verifying data for policy with id: c01cfd9e-e2a5-4ddd-a0dc-98f149c3433c, fqn: ['default-domain', 'ctest-TestBasicPolicy-71819323', 'ctest-policy-allow-all-97678725']
2025-08-07 14:23:54,449 - INFO - VN ctest-vn-27681876 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 14:23:54,449 - DEBUG - Verifying the vn in opserver
2025-08-07 14:23:54,449 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71819323:ctest-vn-27681876 virtual network link through opserver 10.0.0.254
2025-08-07 14:23:54,449 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-07 14:23:54,739 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-07 14:23:54,813 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71819323:ctest-vn-27681876', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71819323:ctest-vn-27681876?flat'}
2025-08-07 14:23:54,813 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71819323:ctest-vn-27681876 is found in opserver
2025-08-07 14:23:54,825 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 14:23:54,831 - DEBUG - VRF ids for VN ctest-vn-27681876: {}
2025-08-07 14:23:54,831 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-07 14:23:54,837 - DEBUG - Requesting: http://10.0.0.254:8082/domain/135ffd21-72fb-4f0d-9b21-1128999ff790
2025-08-07 14:23:54,848 - DEBUG - Requesting: http://10.0.0.254:8082/project/c8be8ba1-0f7a-4c7f-8046-bd4302155391
2025-08-07 14:23:54,921 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c37c7254-f94e-4e10-bceb-33e0075ef9fc
2025-08-07 14:23:54,947 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c37c7254-f94e-4e10-bceb-33e0075ef9fc
2025-08-07 14:23:54,956 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5f3ed33-9170-4c5b-9ee3-0d6559ec3e25
2025-08-07 14:23:54,963 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5f3ed33-9170-4c5b-9ee3-0d6559ec3e25
2025-08-07 14:23:54,970 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/126e4235-cded-4a55-8f6b-6e29b73a25dc
2025-08-07 14:23:54,978 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 14:23:54,978 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c37c7254-f94e-4e10-bceb-33e0075ef9fc
2025-08-07 14:23:54,987 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5f3ed33-9170-4c5b-9ee3-0d6559ec3e25
2025-08-07 14:23:55,002 - INFO - Verified VN network id 10 for VN c37c7254-f94e-4e10-bceb-33e0075ef9fc
2025-08-07 14:23:55,002 - INFO - Verifications in API Server for VN ctest-vn-50645336 passed
2025-08-07 14:23:55,002 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c37c7254-f94e-4e10-bceb-33e0075ef9fc
2025-08-07 14:23:55,012 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5f3ed33-9170-4c5b-9ee3-0d6559ec3e25
2025-08-07 14:23:55,020 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5f3ed33-9170-4c5b-9ee3-0d6559ec3e25
2025-08-07 14:23:55,031 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/126e4235-cded-4a55-8f6b-6e29b73a25dc
2025-08-07 14:23:55,045 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71819323:ctest-vn-50645336', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71819323', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14086259443793546768', 'uuid-lslong': '13613031335946811900'}, 'enable': 'true', 'created': '2025-08-07T14:23:52', 'last-modified': '2025-08-07T14:23:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.453410'}
2025-08-07 14:23:55,052 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 14:23:55,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50645336 passed
2025-08-07 14:23:55,053 - DEBUG - ====Verifying policy data for ctest-vn-50645336 in API_Server ======
2025-08-07 14:23:55,053 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-07 14:23:55,059 - DEBUG - Requesting: http://10.0.0.254:8082/domain/135ffd21-72fb-4f0d-9b21-1128999ff790
2025-08-07 14:23:55,071 - DEBUG - Requesting: http://10.0.0.254:8082/project/c8be8ba1-0f7a-4c7f-8046-bd4302155391
2025-08-07 14:23:55,149 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c37c7254-f94e-4e10-bceb-33e0075ef9fc
2025-08-07 14:23:55,160 - DEBUG - ==>Verifying data for policy with id: c01cfd9e-e2a5-4ddd-a0dc-98f149c3433c, fqn: ['default-domain', 'ctest-TestBasicPolicy-71819323', 'ctest-policy-allow-all-97678725']
2025-08-07 14:23:55,160 - INFO - VN ctest-vn-50645336 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 14:23:55,160 - DEBUG - Verifying the vn in opserver
2025-08-07 14:23:55,160 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71819323:ctest-vn-50645336 virtual network link through opserver 10.0.0.254
2025-08-07 14:23:55,160 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-07 14:23:55,171 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71819323:ctest-vn-50645336', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71819323:ctest-vn-50645336?flat'}
2025-08-07 14:23:55,171 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71819323:ctest-vn-50645336 is found in opserver
2025-08-07 14:23:55,184 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 14:23:55,188 - DEBUG - VRF ids for VN ctest-vn-50645336: {}
2025-08-07 14:23:55,245 - DEBUG - Services list from nova: [