2025-10-23 06:08:55,801 - INFO - Domain Default found not creating
2025-10-23 06:08:55,983 - INFO - Project ctest-TestBasicPolicy-99188742 not found, creating it
2025-10-23 06:08:56,459 - INFO - Created Project:ctest-TestBasicPolicy-99188742, ID : e7b5b67d-e00a-477f-9a2e-b1605921ebab
2025-10-23 06:08:58,042 - INFO - ================================================================================
2025-10-23 06:08:58,042 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 06:08:58,042 - 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-23 06:08:58,311 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-23 06:08:58,311 - INFO - Initial checks done. Running the testcase now
2025-10-23 06:08:58,312 - INFO -
2025-10-23 06:08:58,898 - DEBUG - Response for create_network : {'network': {'id': 'c19adc8c-26fc-4abc-89cf-28d938bd0716', 'name': 'ctest-vn-73829862', 'tenant_id': 'e7b5b67de00a477f9a2eb1605921ebab', 'project_id': 'e7b5b67de00a477f9a2eb1605921ebab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99188742', 'ctest-vn-73829862'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 06:08:59,077 - DEBUG - Response for create_subnet : {'subnet': {'id': '68a699c0-c381-4460-bd82-18029774bc50', 'name': '', 'tenant_id': 'e7b5b67de00a477f9a2eb1605921ebab', 'network_id': 'c19adc8c-26fc-4abc-89cf-28d938bd0716', 'ip_version': 4, 'cidr': '1.36.23.0/26', 'allocation_pools': [{'start': '1.36.23.2', 'end': '1.36.23.62'}], 'gateway_ip': '1.36.23.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.36.23.2', 'tags': [], 'project_id': 'e7b5b67de00a477f9a2eb1605921ebab'}}
2025-10-23 06:08:59,096 - INFO - Created VN ctest-vn-73829862
2025-10-23 06:08:59,149 - DEBUG - VN ctest-vn-73829862 UUID is c19adc8c-26fc-4abc-89cf-28d938bd0716
2025-10-23 06:08:59,463 - DEBUG - Response for create_network : {'network': {'id': '7704c6d3-5145-481c-9aa9-b158d43a1038', 'name': 'ctest-vn-88617725', 'tenant_id': 'e7b5b67de00a477f9a2eb1605921ebab', 'project_id': 'e7b5b67de00a477f9a2eb1605921ebab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99188742', 'ctest-vn-88617725'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 06:08:59,626 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8310389-80de-490b-b52b-e7e9439b5186', 'name': '', 'tenant_id': 'e7b5b67de00a477f9a2eb1605921ebab', 'network_id': '7704c6d3-5145-481c-9aa9-b158d43a1038', 'ip_version': 4, 'cidr': '55.80.114.0/26', 'allocation_pools': [{'start': '55.80.114.2', 'end': '55.80.114.62'}], 'gateway_ip': '55.80.114.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.80.114.2', 'tags': [], 'project_id': 'e7b5b67de00a477f9a2eb1605921ebab'}}
2025-10-23 06:08:59,644 - INFO - Created VN ctest-vn-88617725
2025-10-23 06:08:59,697 - DEBUG - VN ctest-vn-88617725 UUID is 7704c6d3-5145-481c-9aa9-b158d43a1038
2025-10-23 06:08:59,832 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99188742:ctest-vn-73829862, 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-99188742:ctest-vn-88617725, 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-23 06:09:00,173 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c19adc8c-26fc-4abc-89cf-28d938bd0716', 'name': 'ctest-vn-73829862', 'tenant_id': 'e7b5b67de00a477f9a2eb1605921ebab', 'project_id': 'e7b5b67de00a477f9a2eb1605921ebab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68a699c0-c381-4460-bd82-18029774bc50'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99188742', 'ctest-vn-73829862'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99188742', 'ctest-policy-allow-all-43253458']], 'subnet_ipam': [{'subnet_cidr': '1.36.23.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 06:09:00,439 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7704c6d3-5145-481c-9aa9-b158d43a1038', 'name': 'ctest-vn-88617725', 'tenant_id': 'e7b5b67de00a477f9a2eb1605921ebab', 'project_id': 'e7b5b67de00a477f9a2eb1605921ebab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e8310389-80de-490b-b52b-e7e9439b5186'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99188742', 'ctest-vn-88617725'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99188742', 'ctest-policy-allow-all-43253458']], 'subnet_ipam': [{'subnet_cidr': '55.80.114.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 06:09:00,604 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 06:09:00,915 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 06:09:00,956 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0cd7756f-200e-4216-8aae-3b741f6fa611
2025-10-23 06:09:00,972 - DEBUG - Requesting: http://10.0.0.254:8082/project/e7b5b67d-e00a-477f-9a2e-b1605921ebab
2025-10-23 06:09:01,048 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c19adc8c-26fc-4abc-89cf-28d938bd0716
2025-10-23 06:09:01,060 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c19adc8c-26fc-4abc-89cf-28d938bd0716
2025-10-23 06:09:01,071 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59de80eb-2d49-41f4-b552-1290a586f545
2025-10-23 06:09:01,080 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59de80eb-2d49-41f4-b552-1290a586f545
2025-10-23 06:09:01,089 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/083770fe-f995-401b-88b4-650f1f9f8742
2025-10-23 06:09:01,096 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 06:09:01,096 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c19adc8c-26fc-4abc-89cf-28d938bd0716
2025-10-23 06:09:01,108 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59de80eb-2d49-41f4-b552-1290a586f545
2025-10-23 06:09:01,124 - INFO - Verified VN network id 11 for VN c19adc8c-26fc-4abc-89cf-28d938bd0716
2025-10-23 06:09:01,124 - INFO - Verifications in API Server for VN ctest-vn-73829862 passed
2025-10-23 06:09:01,124 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c19adc8c-26fc-4abc-89cf-28d938bd0716
2025-10-23 06:09:01,133 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59de80eb-2d49-41f4-b552-1290a586f545
2025-10-23 06:09:01,141 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59de80eb-2d49-41f4-b552-1290a586f545
2025-10-23 06:09:01,152 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/083770fe-f995-401b-88b4-650f1f9f8742
2025-10-23 06:09:01,165 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99188742:ctest-vn-73829862', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99188742', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13950705290241133244', 'uuid-lslong': '9930200616800159510'}, 'enable': 'true', 'created': '2025-10-23T06:08:58', 'last-modified': '2025-10-23T06:09:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028930'}
2025-10-23 06:09:01,173 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 06:09:01,173 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73829862 passed
2025-10-23 06:09:01,173 - DEBUG - ====Verifying policy data for ctest-vn-73829862 in API_Server ======
2025-10-23 06:09:01,173 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 06:09:01,180 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0cd7756f-200e-4216-8aae-3b741f6fa611
2025-10-23 06:09:01,190 - DEBUG - Requesting: http://10.0.0.254:8082/project/e7b5b67d-e00a-477f-9a2e-b1605921ebab
2025-10-23 06:09:01,260 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c19adc8c-26fc-4abc-89cf-28d938bd0716
2025-10-23 06:09:01,270 - DEBUG - ==>Verifying data for policy with id: 8f56f82a-1c38-429e-a81e-f7bbfdfde93c, fqn: ['default-domain', 'ctest-TestBasicPolicy-99188742', 'ctest-policy-allow-all-43253458']
2025-10-23 06:09:01,270 - INFO - VN ctest-vn-73829862 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 06:09:01,270 - DEBUG - Verifying the vn in opserver
2025-10-23 06:09:01,270 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99188742:ctest-vn-73829862 virtual network link through opserver 10.0.0.254
2025-10-23 06:09:01,270 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 06:09:01,574 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 06:09:01,639 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99188742:ctest-vn-73829862', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99188742:ctest-vn-73829862?flat'}
2025-10-23 06:09:01,639 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99188742:ctest-vn-73829862 is found in opserver
2025-10-23 06:09:01,649 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 06:09:01,655 - DEBUG - VRF ids for VN ctest-vn-73829862: {}
2025-10-23 06:09:01,655 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 06:09:01,661 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0cd7756f-200e-4216-8aae-3b741f6fa611
2025-10-23 06:09:01,674 - DEBUG - Requesting: http://10.0.0.254:8082/project/e7b5b67d-e00a-477f-9a2e-b1605921ebab
2025-10-23 06:09:01,753 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7704c6d3-5145-481c-9aa9-b158d43a1038
2025-10-23 06:09:01,767 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7704c6d3-5145-481c-9aa9-b158d43a1038
2025-10-23 06:09:01,777 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8fd4b360-f77d-4fb8-8c83-1e9d609166d2
2025-10-23 06:09:01,784 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8fd4b360-f77d-4fb8-8c83-1e9d609166d2
2025-10-23 06:09:01,792 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/994da608-8039-4fa8-a720-de04a53998de
2025-10-23 06:09:01,799 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 06:09:01,799 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7704c6d3-5145-481c-9aa9-b158d43a1038
2025-10-23 06:09:01,809 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8fd4b360-f77d-4fb8-8c83-1e9d609166d2
2025-10-23 06:09:01,824 - INFO - Verified VN network id 12 for VN 7704c6d3-5145-481c-9aa9-b158d43a1038
2025-10-23 06:09:01,824 - INFO - Verifications in API Server for VN ctest-vn-88617725 passed
2025-10-23 06:09:01,825 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7704c6d3-5145-481c-9aa9-b158d43a1038
2025-10-23 06:09:01,834 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8fd4b360-f77d-4fb8-8c83-1e9d609166d2
2025-10-23 06:09:01,842 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8fd4b360-f77d-4fb8-8c83-1e9d609166d2
2025-10-23 06:09:01,850 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/994da608-8039-4fa8-a720-de04a53998de
2025-10-23 06:09:01,865 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99188742:ctest-vn-88617725', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99188742', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8576198201324161052', 'uuid-lslong': '11144633747980816440'}, 'enable': 'true', 'created': '2025-10-23T06:08:59', 'last-modified': '2025-10-23T06:09:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.456880'}
2025-10-23 06:09:01,873 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 06:09:01,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88617725 passed
2025-10-23 06:09:01,874 - DEBUG - ====Verifying policy data for ctest-vn-88617725 in API_Server ======
2025-10-23 06:09:01,874 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 06:09:01,880 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0cd7756f-200e-4216-8aae-3b741f6fa611
2025-10-23 06:09:01,891 - DEBUG - Requesting: http://10.0.0.254:8082/project/e7b5b67d-e00a-477f-9a2e-b1605921ebab
2025-10-23 06:09:01,978 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7704c6d3-5145-481c-9aa9-b158d43a1038
2025-10-23 06:09:01,990 - DEBUG - ==>Verifying data for policy with id: 8f56f82a-1c38-429e-a81e-f7bbfdfde93c, fqn: ['default-domain', 'ctest-TestBasicPolicy-99188742', 'ctest-policy-allow-all-43253458']
2025-10-23 06:09:01,990 - INFO - VN ctest-vn-88617725 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 06:09:01,991 - DEBUG - Verifying the vn in opserver
2025-10-23 06:09:01,991 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99188742:ctest-vn-88617725 virtual network link through opserver 10.0.0.254
2025-10-23 06:09:01,991 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 06:09:02,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99188742:ctest-vn-88617725', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99188742:ctest-vn-88617725?flat'}
2025-10-23 06:09:02,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99188742:ctest-vn-88617725 is found in opserver
2025-10-23 06:09:02,014 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 06:09:02,020 - DEBUG - VRF ids for VN ctest-vn-88617725: {}
2025-10-23 06:09:02,082 - DEBUG - Services list from nova: [