2025-06-19 13:50:17,682 - INFO - Domain Default found not creating
2025-06-19 13:50:17,853 - INFO - Project ctest-TestBasicPolicy-22142498 not found, creating it
2025-06-19 13:50:18,318 - INFO - Created Project:ctest-TestBasicPolicy-22142498, ID : 8f799d45-89af-432f-8be7-214436857afc
2025-06-19 13:50:19,845 - INFO - ================================================================================
2025-06-19 13:50:19,845 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 13:50:19,845 - 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-06-19 13:50:20,103 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.0.0.242': '0'}} with
2025-06-19 13:50:20,103 - INFO - Initial checks done. Running the testcase now
2025-06-19 13:50:20,103 - INFO -
2025-06-19 13:50:20,646 - DEBUG - Response for create_network : {'network': {'id': 'b331c4d4-1144-49f4-be0c-9bf29bca4a5a', 'name': 'ctest-vn-03872573', 'tenant_id': '8f799d4589af432f8be7214436857afc', 'project_id': '8f799d4589af432f8be7214436857afc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22142498', 'ctest-vn-03872573'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 13:50:20,812 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d7333b3-9f8a-4c20-b53c-d811f5fd31f9', 'name': '', 'tenant_id': '8f799d4589af432f8be7214436857afc', 'network_id': 'b331c4d4-1144-49f4-be0c-9bf29bca4a5a', 'ip_version': 4, 'cidr': '123.121.125.192/26', 'allocation_pools': [{'start': '123.121.125.194', 'end': '123.121.125.254'}], 'gateway_ip': '123.121.125.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.121.125.194', 'tags': [], 'project_id': '8f799d4589af432f8be7214436857afc'}}
2025-06-19 13:50:20,837 - INFO - Created VN ctest-vn-03872573
2025-06-19 13:50:20,890 - DEBUG - VN ctest-vn-03872573 UUID is b331c4d4-1144-49f4-be0c-9bf29bca4a5a
2025-06-19 13:50:21,181 - DEBUG - Response for create_network : {'network': {'id': '4744f227-0438-42f3-babd-1ad628b60c6c', 'name': 'ctest-vn-07479954', 'tenant_id': '8f799d4589af432f8be7214436857afc', 'project_id': '8f799d4589af432f8be7214436857afc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22142498', 'ctest-vn-07479954'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 13:50:21,378 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2f2d1ac-25ff-4f39-a3dd-2b243e38352e', 'name': '', 'tenant_id': '8f799d4589af432f8be7214436857afc', 'network_id': '4744f227-0438-42f3-babd-1ad628b60c6c', 'ip_version': 4, 'cidr': '82.158.178.0/26', 'allocation_pools': [{'start': '82.158.178.2', 'end': '82.158.178.62'}], 'gateway_ip': '82.158.178.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.158.178.2', 'tags': [], 'project_id': '8f799d4589af432f8be7214436857afc'}}
2025-06-19 13:50:21,396 - INFO - Created VN ctest-vn-07479954
2025-06-19 13:50:21,450 - DEBUG - VN ctest-vn-07479954 UUID is 4744f227-0438-42f3-babd-1ad628b60c6c
2025-06-19 13:50:21,606 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22142498:ctest-vn-03872573, 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-22142498:ctest-vn-07479954, 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-06-19 13:50:21,905 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b331c4d4-1144-49f4-be0c-9bf29bca4a5a', 'name': 'ctest-vn-03872573', 'tenant_id': '8f799d4589af432f8be7214436857afc', 'project_id': '8f799d4589af432f8be7214436857afc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7d7333b3-9f8a-4c20-b53c-d811f5fd31f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22142498', 'ctest-vn-03872573'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22142498', 'ctest-policy-allow-all-61895115']], 'subnet_ipam': [{'subnet_cidr': '123.121.125.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 13:50:22,192 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4744f227-0438-42f3-babd-1ad628b60c6c', 'name': 'ctest-vn-07479954', 'tenant_id': '8f799d4589af432f8be7214436857afc', 'project_id': '8f799d4589af432f8be7214436857afc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2f2d1ac-25ff-4f39-a3dd-2b243e38352e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22142498', 'ctest-vn-07479954'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22142498', 'ctest-policy-allow-all-61895115']], 'subnet_ipam': [{'subnet_cidr': '82.158.178.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 13:50:22,342 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-19 13:50:22,635 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-19 13:50:22,663 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9b505aa2-5ebb-47a1-979c-743228f56ca7
2025-06-19 13:50:22,677 - DEBUG - Requesting: http://10.0.0.242:8082/project/8f799d45-89af-432f-8be7-214436857afc
2025-06-19 13:50:22,760 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b331c4d4-1144-49f4-be0c-9bf29bca4a5a
2025-06-19 13:50:22,772 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b331c4d4-1144-49f4-be0c-9bf29bca4a5a
2025-06-19 13:50:22,783 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e7f12e53-3f42-4df8-ba45-abcc7f16d464
2025-06-19 13:50:22,790 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e7f12e53-3f42-4df8-ba45-abcc7f16d464
2025-06-19 13:50:22,797 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/b815b8e8-69bc-4feb-b1eb-39c2a776a4b7
2025-06-19 13:50:22,803 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 13:50:22,803 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b331c4d4-1144-49f4-be0c-9bf29bca4a5a
2025-06-19 13:50:22,813 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e7f12e53-3f42-4df8-ba45-abcc7f16d464
2025-06-19 13:50:22,830 - INFO - Verified VN network id 7 for VN b331c4d4-1144-49f4-be0c-9bf29bca4a5a
2025-06-19 13:50:22,831 - INFO - Verifications in API Server for VN ctest-vn-03872573 passed
2025-06-19 13:50:22,831 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b331c4d4-1144-49f4-be0c-9bf29bca4a5a
2025-06-19 13:50:22,840 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e7f12e53-3f42-4df8-ba45-abcc7f16d464
2025-06-19 13:50:22,846 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e7f12e53-3f42-4df8-ba45-abcc7f16d464
2025-06-19 13:50:22,854 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/b815b8e8-69bc-4feb-b1eb-39c2a776a4b7
2025-06-19 13:50:22,865 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22142498:ctest-vn-03872573', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22142498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12912318021749721588', 'uuid-lslong': '13694492033224952410'}, 'enable': 'true', 'created': '2025-06-19T13:50:20', 'last-modified': '2025-06-19T13:50:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980705'}
2025-06-19 13:50:22,872 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 13:50:22,872 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03872573 passed
2025-06-19 13:50:22,873 - DEBUG - ====Verifying policy data for ctest-vn-03872573 in API_Server ======
2025-06-19 13:50:22,873 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-19 13:50:22,879 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9b505aa2-5ebb-47a1-979c-743228f56ca7
2025-06-19 13:50:22,892 - DEBUG - Requesting: http://10.0.0.242:8082/project/8f799d45-89af-432f-8be7-214436857afc
2025-06-19 13:50:22,960 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b331c4d4-1144-49f4-be0c-9bf29bca4a5a
2025-06-19 13:50:22,968 - DEBUG - ==>Verifying data for policy with id: f1ad12cc-46f9-488d-82c8-88ef61c26608, fqn: ['default-domain', 'ctest-TestBasicPolicy-22142498', 'ctest-policy-allow-all-61895115']
2025-06-19 13:50:22,969 - INFO - VN ctest-vn-03872573 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 13:50:22,969 - DEBUG - Verifying the vn in opserver
2025-06-19 13:50:22,969 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22142498:ctest-vn-03872573 virtual network link through opserver 10.0.0.242
2025-06-19 13:50:22,969 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-19 13:50:23,265 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-19 13:50:26,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22142498:ctest-vn-03872573 virtual network link through opserver 10.0.0.242
2025-06-19 13:50:26,321 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-19 13:50:26,332 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22142498:ctest-vn-03872573', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22142498:ctest-vn-03872573?flat'}
2025-06-19 13:50:26,332 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22142498:ctest-vn-03872573 is found in opserver
2025-06-19 13:50:26,341 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 13:50:26,346 - DEBUG - VRF ids for VN ctest-vn-03872573: {}
2025-06-19 13:50:26,346 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-19 13:50:26,351 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9b505aa2-5ebb-47a1-979c-743228f56ca7
2025-06-19 13:50:26,361 - DEBUG - Requesting: http://10.0.0.242:8082/project/8f799d45-89af-432f-8be7-214436857afc
2025-06-19 13:50:26,431 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4744f227-0438-42f3-babd-1ad628b60c6c
2025-06-19 13:50:26,441 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4744f227-0438-42f3-babd-1ad628b60c6c
2025-06-19 13:50:26,450 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ab3ca017-8328-48f7-93fa-a470c0457f72
2025-06-19 13:50:26,458 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ab3ca017-8328-48f7-93fa-a470c0457f72
2025-06-19 13:50:26,465 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/5d19d895-c7f3-45ae-aa84-fc42ee6c608f
2025-06-19 13:50:26,471 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 13:50:26,472 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4744f227-0438-42f3-babd-1ad628b60c6c
2025-06-19 13:50:26,480 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ab3ca017-8328-48f7-93fa-a470c0457f72
2025-06-19 13:50:26,494 - INFO - Verified VN network id 8 for VN 4744f227-0438-42f3-babd-1ad628b60c6c
2025-06-19 13:50:26,494 - INFO - Verifications in API Server for VN ctest-vn-07479954 passed
2025-06-19 13:50:26,494 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4744f227-0438-42f3-babd-1ad628b60c6c
2025-06-19 13:50:26,503 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ab3ca017-8328-48f7-93fa-a470c0457f72
2025-06-19 13:50:26,509 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ab3ca017-8328-48f7-93fa-a470c0457f72
2025-06-19 13:50:26,516 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/5d19d895-c7f3-45ae-aa84-fc42ee6c608f
2025-06-19 13:50:26,527 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22142498:ctest-vn-07479954', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22142498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5135495724497650419', 'uuid-lslong': '13455940768761252972'}, 'enable': 'true', 'created': '2025-06-19T13:50:21', 'last-modified': '2025-06-19T13:50:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.403211'}
2025-06-19 13:50:26,534 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 13:50:26,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07479954 passed
2025-06-19 13:50:26,534 - DEBUG - ====Verifying policy data for ctest-vn-07479954 in API_Server ======
2025-06-19 13:50:26,534 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-19 13:50:26,540 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9b505aa2-5ebb-47a1-979c-743228f56ca7
2025-06-19 13:50:26,551 - DEBUG - Requesting: http://10.0.0.242:8082/project/8f799d45-89af-432f-8be7-214436857afc
2025-06-19 13:50:26,621 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4744f227-0438-42f3-babd-1ad628b60c6c
2025-06-19 13:50:26,631 - DEBUG - ==>Verifying data for policy with id: f1ad12cc-46f9-488d-82c8-88ef61c26608, fqn: ['default-domain', 'ctest-TestBasicPolicy-22142498', 'ctest-policy-allow-all-61895115']
2025-06-19 13:50:26,631 - INFO - VN ctest-vn-07479954 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 13:50:26,631 - DEBUG - Verifying the vn in opserver
2025-06-19 13:50:26,631 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22142498:ctest-vn-07479954 virtual network link through opserver 10.0.0.242
2025-06-19 13:50:26,631 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-19 13:50:26,643 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22142498:ctest-vn-07479954', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22142498:ctest-vn-07479954?flat'}
2025-06-19 13:50:26,643 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22142498:ctest-vn-07479954 is found in opserver
2025-06-19 13:50:26,656 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 13:50:26,661 - DEBUG - VRF ids for VN ctest-vn-07479954: {}
2025-06-19 13:50:26,725 - DEBUG - Services list from nova: [