2025-06-10 15:58:06,318 - INFO - Domain Default found not creating
2025-06-10 15:58:06,456 - INFO - Project ctest-TestBasicPolicy-60825579 not found, creating it
2025-06-10 15:58:06,905 - INFO - Created Project:ctest-TestBasicPolicy-60825579, ID : 119b6144-cce4-42ba-952f-df8a857dee43
2025-06-10 15:58:08,363 - INFO - ================================================================================
2025-06-10 15:58:08,363 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-10 15:58:08,364 - 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-10 15:58:08,628 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0'}} with
2025-06-10 15:58:08,628 - INFO - Initial checks done. Running the testcase now
2025-06-10 15:58:08,628 - INFO -
2025-06-10 15:58:09,167 - DEBUG - Response for create_network : {'network': {'id': 'b35c81ab-f0dc-4195-bdcc-e011fc9d4ad4', 'name': 'ctest-vn-71886544', 'tenant_id': '119b6144cce442ba952fdf8a857dee43', 'project_id': '119b6144cce442ba952fdf8a857dee43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60825579', 'ctest-vn-71886544'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 15:58:09,361 - DEBUG - Response for create_subnet : {'subnet': {'id': '6935eafd-6d3f-420e-97f6-3778f8184ea7', 'name': '', 'tenant_id': '119b6144cce442ba952fdf8a857dee43', 'network_id': 'b35c81ab-f0dc-4195-bdcc-e011fc9d4ad4', 'ip_version': 4, 'cidr': '176.48.252.128/26', 'allocation_pools': [{'start': '176.48.252.130', 'end': '176.48.252.190'}], 'gateway_ip': '176.48.252.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.48.252.130', 'tags': [], 'project_id': '119b6144cce442ba952fdf8a857dee43'}}
2025-06-10 15:58:09,379 - INFO - Created VN ctest-vn-71886544
2025-06-10 15:58:09,435 - DEBUG - VN ctest-vn-71886544 UUID is b35c81ab-f0dc-4195-bdcc-e011fc9d4ad4
2025-06-10 15:58:09,761 - DEBUG - Response for create_network : {'network': {'id': '2d9052bb-ac9b-4f70-91fd-d69ea2b9df46', 'name': 'ctest-vn-80042425', 'tenant_id': '119b6144cce442ba952fdf8a857dee43', 'project_id': '119b6144cce442ba952fdf8a857dee43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60825579', 'ctest-vn-80042425'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 15:58:09,924 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc885bbe-d1db-46ce-92c9-dbac5f00fd68', 'name': '', 'tenant_id': '119b6144cce442ba952fdf8a857dee43', 'network_id': '2d9052bb-ac9b-4f70-91fd-d69ea2b9df46', 'ip_version': 4, 'cidr': '1.203.82.192/26', 'allocation_pools': [{'start': '1.203.82.194', 'end': '1.203.82.254'}], 'gateway_ip': '1.203.82.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.203.82.194', 'tags': [], 'project_id': '119b6144cce442ba952fdf8a857dee43'}}
2025-06-10 15:58:09,943 - INFO - Created VN ctest-vn-80042425
2025-06-10 15:58:09,995 - DEBUG - VN ctest-vn-80042425 UUID is 2d9052bb-ac9b-4f70-91fd-d69ea2b9df46
2025-06-10 15:58:10,111 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60825579:ctest-vn-71886544, 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-60825579:ctest-vn-80042425, 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-10 15:58:10,408 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b35c81ab-f0dc-4195-bdcc-e011fc9d4ad4', 'name': 'ctest-vn-71886544', 'tenant_id': '119b6144cce442ba952fdf8a857dee43', 'project_id': '119b6144cce442ba952fdf8a857dee43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6935eafd-6d3f-420e-97f6-3778f8184ea7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60825579', 'ctest-vn-71886544'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60825579', 'ctest-policy-allow-all-68486887']], 'subnet_ipam': [{'subnet_cidr': '176.48.252.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 15:58:10,647 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d9052bb-ac9b-4f70-91fd-d69ea2b9df46', 'name': 'ctest-vn-80042425', 'tenant_id': '119b6144cce442ba952fdf8a857dee43', 'project_id': '119b6144cce442ba952fdf8a857dee43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc885bbe-d1db-46ce-92c9-dbac5f00fd68'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60825579', 'ctest-vn-80042425'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60825579', 'ctest-policy-allow-all-68486887']], 'subnet_ipam': [{'subnet_cidr': '1.203.82.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 15:58:10,795 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-10 15:58:11,094 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-10 15:58:11,127 - DEBUG - Requesting: http://10.0.0.242:8082/domain/621fb548-b8ea-4281-b316-4cc7d0e34a7e
2025-06-10 15:58:11,141 - DEBUG - Requesting: http://10.0.0.242:8082/project/119b6144-cce4-42ba-952f-df8a857dee43
2025-06-10 15:58:11,219 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b35c81ab-f0dc-4195-bdcc-e011fc9d4ad4
2025-06-10 15:58:11,230 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b35c81ab-f0dc-4195-bdcc-e011fc9d4ad4
2025-06-10 15:58:11,240 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b9643462-b60b-4f89-92a9-1be0622a8052
2025-06-10 15:58:11,247 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b9643462-b60b-4f89-92a9-1be0622a8052
2025-06-10 15:58:11,254 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8b2cb513-739e-482e-bb81-f720a5723e2d
2025-06-10 15:58:11,261 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 15:58:11,261 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b35c81ab-f0dc-4195-bdcc-e011fc9d4ad4
2025-06-10 15:58:11,270 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b9643462-b60b-4f89-92a9-1be0622a8052
2025-06-10 15:58:11,284 - INFO - Verified VN network id 8 for VN b35c81ab-f0dc-4195-bdcc-e011fc9d4ad4
2025-06-10 15:58:11,284 - INFO - Verifications in API Server for VN ctest-vn-71886544 passed
2025-06-10 15:58:11,284 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b35c81ab-f0dc-4195-bdcc-e011fc9d4ad4
2025-06-10 15:58:11,293 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b9643462-b60b-4f89-92a9-1be0622a8052
2025-06-10 15:58:11,300 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b9643462-b60b-4f89-92a9-1be0622a8052
2025-06-10 15:58:11,308 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8b2cb513-739e-482e-bb81-f720a5723e2d
2025-06-10 15:58:11,321 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60825579:ctest-vn-71886544', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60825579', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12924347606126838165', 'uuid-lslong': '13676552536274586324'}, 'enable': 'true', 'created': '2025-06-10T15:58:09', 'last-modified': '2025-06-10T15:58:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935624'}
2025-06-10 15:58:11,328 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 15:58:11,328 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71886544 passed
2025-06-10 15:58:11,328 - DEBUG - ====Verifying policy data for ctest-vn-71886544 in API_Server ======
2025-06-10 15:58:11,328 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-10 15:58:11,335 - DEBUG - Requesting: http://10.0.0.242:8082/domain/621fb548-b8ea-4281-b316-4cc7d0e34a7e
2025-06-10 15:58:11,348 - DEBUG - Requesting: http://10.0.0.242:8082/project/119b6144-cce4-42ba-952f-df8a857dee43
2025-06-10 15:58:11,424 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b35c81ab-f0dc-4195-bdcc-e011fc9d4ad4
2025-06-10 15:58:11,435 - DEBUG - ==>Verifying data for policy with id: 519666ff-6221-44ab-86c5-6eb147b08b58, fqn: ['default-domain', 'ctest-TestBasicPolicy-60825579', 'ctest-policy-allow-all-68486887']
2025-06-10 15:58:11,435 - INFO - VN ctest-vn-71886544 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 15:58:11,436 - DEBUG - Verifying the vn in opserver
2025-06-10 15:58:11,436 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60825579:ctest-vn-71886544 virtual network link through opserver 10.0.0.242
2025-06-10 15:58:11,436 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-10 15:58:11,729 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-10 15:58:11,779 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60825579:ctest-vn-71886544', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60825579:ctest-vn-71886544?flat'}
2025-06-10 15:58:11,780 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60825579:ctest-vn-71886544 is found in opserver
2025-06-10 15:58:11,790 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 15:58:11,796 - DEBUG - VRF ids for VN ctest-vn-71886544: {}
2025-06-10 15:58:11,796 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-10 15:58:11,801 - DEBUG - Requesting: http://10.0.0.242:8082/domain/621fb548-b8ea-4281-b316-4cc7d0e34a7e
2025-06-10 15:58:11,813 - DEBUG - Requesting: http://10.0.0.242:8082/project/119b6144-cce4-42ba-952f-df8a857dee43
2025-06-10 15:58:11,886 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2d9052bb-ac9b-4f70-91fd-d69ea2b9df46
2025-06-10 15:58:11,898 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2d9052bb-ac9b-4f70-91fd-d69ea2b9df46
2025-06-10 15:58:11,907 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ffc95ca0-1e08-4ae9-83b5-ea9e00046cb7
2025-06-10 15:58:11,915 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ffc95ca0-1e08-4ae9-83b5-ea9e00046cb7
2025-06-10 15:58:11,922 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/58ec5e22-e4c8-448e-b542-a1a9957ffb69
2025-06-10 15:58:11,928 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 15:58:11,928 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2d9052bb-ac9b-4f70-91fd-d69ea2b9df46
2025-06-10 15:58:11,937 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ffc95ca0-1e08-4ae9-83b5-ea9e00046cb7
2025-06-10 15:58:11,951 - INFO - Verified VN network id 9 for VN 2d9052bb-ac9b-4f70-91fd-d69ea2b9df46
2025-06-10 15:58:11,951 - INFO - Verifications in API Server for VN ctest-vn-80042425 passed
2025-06-10 15:58:11,951 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2d9052bb-ac9b-4f70-91fd-d69ea2b9df46
2025-06-10 15:58:11,961 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ffc95ca0-1e08-4ae9-83b5-ea9e00046cb7
2025-06-10 15:58:11,968 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ffc95ca0-1e08-4ae9-83b5-ea9e00046cb7
2025-06-10 15:58:11,976 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/58ec5e22-e4c8-448e-b542-a1a9957ffb69
2025-06-10 15:58:11,988 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60825579:ctest-vn-80042425', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60825579', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3283215094361313136', 'uuid-lslong': '10519800281430613830'}, 'enable': 'true', 'created': '2025-06-10T15:58:09', 'last-modified': '2025-06-10T15:58:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.359904'}
2025-06-10 15:58:11,994 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 15:58:11,994 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80042425 passed
2025-06-10 15:58:11,994 - DEBUG - ====Verifying policy data for ctest-vn-80042425 in API_Server ======
2025-06-10 15:58:11,994 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-10 15:58:12,000 - DEBUG - Requesting: http://10.0.0.242:8082/domain/621fb548-b8ea-4281-b316-4cc7d0e34a7e
2025-06-10 15:58:12,013 - DEBUG - Requesting: http://10.0.0.242:8082/project/119b6144-cce4-42ba-952f-df8a857dee43
2025-06-10 15:58:12,089 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2d9052bb-ac9b-4f70-91fd-d69ea2b9df46
2025-06-10 15:58:12,100 - DEBUG - ==>Verifying data for policy with id: 519666ff-6221-44ab-86c5-6eb147b08b58, fqn: ['default-domain', 'ctest-TestBasicPolicy-60825579', 'ctest-policy-allow-all-68486887']
2025-06-10 15:58:12,100 - INFO - VN ctest-vn-80042425 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 15:58:12,100 - DEBUG - Verifying the vn in opserver
2025-06-10 15:58:12,100 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60825579:ctest-vn-80042425 virtual network link through opserver 10.0.0.242
2025-06-10 15:58:12,100 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-10 15:58:12,112 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60825579:ctest-vn-80042425', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60825579:ctest-vn-80042425?flat'}
2025-06-10 15:58:12,112 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60825579:ctest-vn-80042425 is found in opserver
2025-06-10 15:58:12,125 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 15:58:12,129 - DEBUG - VRF ids for VN ctest-vn-80042425: {}
2025-06-10 15:58:12,184 - DEBUG - Services list from nova: [