2025-10-27 02:26:42,825 - INFO - Domain Default found not creating
2025-10-27 02:26:42,970 - INFO - Project ctest-TestBasicPolicy-25334675 not found, creating it
2025-10-27 02:26:43,416 - INFO - Created Project:ctest-TestBasicPolicy-25334675, ID : e098b65a-c8fe-4aab-b5bb-a3cdc9c67fe5
2025-10-27 02:26:44,986 - INFO - ================================================================================
2025-10-27 02:26:44,987 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 02:26:44,987 - 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-27 02:26:45,240 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.192': '0'}} with
2025-10-27 02:26:45,240 - INFO - Initial checks done. Running the testcase now
2025-10-27 02:26:45,240 - INFO -
2025-10-27 02:26:45,837 - DEBUG - Response for create_network : {'network': {'id': '89e68239-758f-453f-80dd-2c99c9245749', 'name': 'ctest-vn-66256116', 'tenant_id': 'e098b65ac8fe4aabb5bba3cdc9c67fe5', 'project_id': 'e098b65ac8fe4aabb5bba3cdc9c67fe5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25334675', 'ctest-vn-66256116'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 02:26:46,066 - DEBUG - Response for create_subnet : {'subnet': {'id': '647039a1-cf86-4b90-b9fc-5413c6e351ea', 'name': '', 'tenant_id': 'e098b65ac8fe4aabb5bba3cdc9c67fe5', 'network_id': '89e68239-758f-453f-80dd-2c99c9245749', 'ip_version': 4, 'cidr': '207.240.247.0/26', 'allocation_pools': [{'start': '207.240.247.2', 'end': '207.240.247.62'}], 'gateway_ip': '207.240.247.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.240.247.2', 'tags': [], 'project_id': 'e098b65ac8fe4aabb5bba3cdc9c67fe5'}}
2025-10-27 02:26:46,089 - INFO - Created VN ctest-vn-66256116
2025-10-27 02:26:46,143 - DEBUG - VN ctest-vn-66256116 UUID is 89e68239-758f-453f-80dd-2c99c9245749
2025-10-27 02:26:46,467 - DEBUG - Response for create_network : {'network': {'id': '0d128de9-283b-49cf-90cc-1be1f39b3fae', 'name': 'ctest-vn-41408839', 'tenant_id': 'e098b65ac8fe4aabb5bba3cdc9c67fe5', 'project_id': 'e098b65ac8fe4aabb5bba3cdc9c67fe5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25334675', 'ctest-vn-41408839'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 02:26:46,654 - DEBUG - Response for create_subnet : {'subnet': {'id': '176b875b-e998-41b0-a3aa-b77885dd4aca', 'name': '', 'tenant_id': 'e098b65ac8fe4aabb5bba3cdc9c67fe5', 'network_id': '0d128de9-283b-49cf-90cc-1be1f39b3fae', 'ip_version': 4, 'cidr': '73.200.192.192/26', 'allocation_pools': [{'start': '73.200.192.194', 'end': '73.200.192.254'}], 'gateway_ip': '73.200.192.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.200.192.194', 'tags': [], 'project_id': 'e098b65ac8fe4aabb5bba3cdc9c67fe5'}}
2025-10-27 02:26:46,671 - INFO - Created VN ctest-vn-41408839
2025-10-27 02:26:46,723 - DEBUG - VN ctest-vn-41408839 UUID is 0d128de9-283b-49cf-90cc-1be1f39b3fae
2025-10-27 02:26:46,834 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25334675:ctest-vn-66256116, 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-25334675:ctest-vn-41408839, 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-27 02:26:47,130 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89e68239-758f-453f-80dd-2c99c9245749', 'name': 'ctest-vn-66256116', 'tenant_id': 'e098b65ac8fe4aabb5bba3cdc9c67fe5', 'project_id': 'e098b65ac8fe4aabb5bba3cdc9c67fe5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['647039a1-cf86-4b90-b9fc-5413c6e351ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25334675', 'ctest-vn-66256116'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25334675', 'ctest-policy-allow-all-20249980']], 'subnet_ipam': [{'subnet_cidr': '207.240.247.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 02:26:47,346 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d128de9-283b-49cf-90cc-1be1f39b3fae', 'name': 'ctest-vn-41408839', 'tenant_id': 'e098b65ac8fe4aabb5bba3cdc9c67fe5', 'project_id': 'e098b65ac8fe4aabb5bba3cdc9c67fe5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['176b875b-e998-41b0-a3aa-b77885dd4aca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25334675', 'ctest-vn-41408839'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25334675', 'ctest-policy-allow-all-20249980']], 'subnet_ipam': [{'subnet_cidr': '73.200.192.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 02:26:47,515 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-27 02:26:47,858 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-27 02:26:47,885 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c99b2c44-ad08-473a-b2cd-7c69aec9f90b
2025-10-27 02:26:47,897 - DEBUG - Requesting: http://10.0.0.22:8082/project/e098b65a-c8fe-4aab-b5bb-a3cdc9c67fe5
2025-10-27 02:26:47,966 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/89e68239-758f-453f-80dd-2c99c9245749
2025-10-27 02:26:47,976 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/89e68239-758f-453f-80dd-2c99c9245749
2025-10-27 02:26:47,985 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6480727c-6e7e-4cf8-9387-a79cd74fe18a
2025-10-27 02:26:47,991 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6480727c-6e7e-4cf8-9387-a79cd74fe18a
2025-10-27 02:26:47,997 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/4b0bc298-b145-4a46-b8d7-19ee10871bbe
2025-10-27 02:26:48,003 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 02:26:48,003 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/89e68239-758f-453f-80dd-2c99c9245749
2025-10-27 02:26:48,012 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6480727c-6e7e-4cf8-9387-a79cd74fe18a
2025-10-27 02:26:48,025 - INFO - Verified VN network id 11 for VN 89e68239-758f-453f-80dd-2c99c9245749
2025-10-27 02:26:48,025 - INFO - Verifications in API Server for VN ctest-vn-66256116 passed
2025-10-27 02:26:48,025 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/89e68239-758f-453f-80dd-2c99c9245749
2025-10-27 02:26:48,033 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6480727c-6e7e-4cf8-9387-a79cd74fe18a
2025-10-27 02:26:48,039 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6480727c-6e7e-4cf8-9387-a79cd74fe18a
2025-10-27 02:26:48,044 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/4b0bc298-b145-4a46-b8d7-19ee10871bbe
2025-10-27 02:26:48,055 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25334675:ctest-vn-66256116', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25334675', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9936772811136648511', 'uuid-lslong': '9285627045724051273'}, 'enable': 'true', 'created': '2025-10-27T02:26:45', 'last-modified': '2025-10-27T02:26:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947665'}
2025-10-27 02:26:48,063 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 02:26:48,063 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66256116 passed
2025-10-27 02:26:48,063 - DEBUG - ====Verifying policy data for ctest-vn-66256116 in API_Server ======
2025-10-27 02:26:48,063 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-27 02:26:48,069 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c99b2c44-ad08-473a-b2cd-7c69aec9f90b
2025-10-27 02:26:48,079 - DEBUG - Requesting: http://10.0.0.22:8082/project/e098b65a-c8fe-4aab-b5bb-a3cdc9c67fe5
2025-10-27 02:26:48,148 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/89e68239-758f-453f-80dd-2c99c9245749
2025-10-27 02:26:48,156 - DEBUG - ==>Verifying data for policy with id: 40f103af-fd9e-428f-98aa-851d2f2fd37e, fqn: ['default-domain', 'ctest-TestBasicPolicy-25334675', 'ctest-policy-allow-all-20249980']
2025-10-27 02:26:48,156 - INFO - VN ctest-vn-66256116 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 02:26:48,156 - DEBUG - Verifying the vn in opserver
2025-10-27 02:26:48,156 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25334675:ctest-vn-66256116 virtual network link through opserver 10.0.0.22
2025-10-27 02:26:48,156 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-27 02:26:48,489 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-27 02:26:48,544 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25334675:ctest-vn-66256116', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25334675:ctest-vn-66256116?flat'}
2025-10-27 02:26:48,544 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25334675:ctest-vn-66256116 is found in opserver
2025-10-27 02:26:48,553 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 02:26:48,558 - DEBUG - VRF ids for VN ctest-vn-66256116: {}
2025-10-27 02:26:48,558 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-27 02:26:48,564 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c99b2c44-ad08-473a-b2cd-7c69aec9f90b
2025-10-27 02:26:48,575 - DEBUG - Requesting: http://10.0.0.22:8082/project/e098b65a-c8fe-4aab-b5bb-a3cdc9c67fe5
2025-10-27 02:26:48,644 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0d128de9-283b-49cf-90cc-1be1f39b3fae
2025-10-27 02:26:48,654 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0d128de9-283b-49cf-90cc-1be1f39b3fae
2025-10-27 02:26:48,662 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b24eafb8-8ce6-4454-b1d8-16a7b6a2bfd2
2025-10-27 02:26:48,668 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b24eafb8-8ce6-4454-b1d8-16a7b6a2bfd2
2025-10-27 02:26:48,673 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/18b6e8b8-79ab-4d2f-9d33-fcc03e4b2052
2025-10-27 02:26:48,679 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 02:26:48,679 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0d128de9-283b-49cf-90cc-1be1f39b3fae
2025-10-27 02:26:48,687 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b24eafb8-8ce6-4454-b1d8-16a7b6a2bfd2
2025-10-27 02:26:48,698 - INFO - Verified VN network id 12 for VN 0d128de9-283b-49cf-90cc-1be1f39b3fae
2025-10-27 02:26:48,698 - INFO - Verifications in API Server for VN ctest-vn-41408839 passed
2025-10-27 02:26:48,698 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0d128de9-283b-49cf-90cc-1be1f39b3fae
2025-10-27 02:26:48,706 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b24eafb8-8ce6-4454-b1d8-16a7b6a2bfd2
2025-10-27 02:26:48,712 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b24eafb8-8ce6-4454-b1d8-16a7b6a2bfd2
2025-10-27 02:26:48,717 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/18b6e8b8-79ab-4d2f-9d33-fcc03e4b2052
2025-10-27 02:26:48,727 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25334675:ctest-vn-41408839', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25334675', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '941971304615725519', 'uuid-lslong': '10433745093979226030'}, 'enable': 'true', 'created': '2025-10-27T02:26:46', 'last-modified': '2025-10-27T02:26:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.401302'}
2025-10-27 02:26:48,732 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 02:26:48,732 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41408839 passed
2025-10-27 02:26:48,732 - DEBUG - ====Verifying policy data for ctest-vn-41408839 in API_Server ======
2025-10-27 02:26:48,732 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-27 02:26:48,736 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c99b2c44-ad08-473a-b2cd-7c69aec9f90b
2025-10-27 02:26:48,746 - DEBUG - Requesting: http://10.0.0.22:8082/project/e098b65a-c8fe-4aab-b5bb-a3cdc9c67fe5
2025-10-27 02:26:48,811 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0d128de9-283b-49cf-90cc-1be1f39b3fae
2025-10-27 02:26:48,820 - DEBUG - ==>Verifying data for policy with id: 40f103af-fd9e-428f-98aa-851d2f2fd37e, fqn: ['default-domain', 'ctest-TestBasicPolicy-25334675', 'ctest-policy-allow-all-20249980']
2025-10-27 02:26:48,821 - INFO - VN ctest-vn-41408839 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 02:26:48,821 - DEBUG - Verifying the vn in opserver
2025-10-27 02:26:48,821 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25334675:ctest-vn-41408839 virtual network link through opserver 10.0.0.22
2025-10-27 02:26:48,821 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-27 02:26:48,829 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25334675:ctest-vn-41408839', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25334675:ctest-vn-41408839?flat'}
2025-10-27 02:26:48,829 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25334675:ctest-vn-41408839 is found in opserver
2025-10-27 02:26:48,839 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 02:26:48,844 - DEBUG - VRF ids for VN ctest-vn-41408839: {}
2025-10-27 02:26:48,900 - DEBUG - Services list from nova: [