2025-11-27 02:12:38,179 - INFO - Domain Default found not creating
2025-11-27 02:12:38,376 - INFO - Project ctest-TestBasicPolicy-22400867 not found, creating it
2025-11-27 02:12:38,874 - INFO - Created Project:ctest-TestBasicPolicy-22400867, ID : e5ce9f44-77b7-4c60-b613-6125619d68cc
2025-11-27 02:12:40,795 - INFO - ================================================================================
2025-11-27 02:12:40,795 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-27 02:12:40,795 - 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-11-27 02:12:41,053 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.201': '0'}} with
2025-11-27 02:12:41,053 - INFO - Initial checks done. Running the testcase now
2025-11-27 02:12:41,053 - INFO -
2025-11-27 02:12:41,705 - DEBUG - Response for create_network : {'network': {'id': 'cc50c140-6c7b-4278-84ef-1d6d86374474', 'name': 'ctest-vn-33792744', 'tenant_id': 'e5ce9f4477b74c60b6136125619d68cc', 'project_id': 'e5ce9f4477b74c60b6136125619d68cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22400867', 'ctest-vn-33792744'], 'port_security_enabled': True, 'description': ''}}
2025-11-27 02:12:41,931 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d4b08b6-d3c0-42b7-a0ce-92b91f3df5d0', 'name': '', 'tenant_id': 'e5ce9f4477b74c60b6136125619d68cc', 'network_id': 'cc50c140-6c7b-4278-84ef-1d6d86374474', 'ip_version': 4, 'cidr': '57.250.146.0/26', 'allocation_pools': [{'start': '57.250.146.2', 'end': '57.250.146.62'}], 'gateway_ip': '57.250.146.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.250.146.2', 'tags': [], 'project_id': 'e5ce9f4477b74c60b6136125619d68cc'}}
2025-11-27 02:12:41,951 - INFO - Created VN ctest-vn-33792744
2025-11-27 02:12:42,019 - DEBUG - VN ctest-vn-33792744 UUID is cc50c140-6c7b-4278-84ef-1d6d86374474
2025-11-27 02:12:42,319 - DEBUG - Response for create_network : {'network': {'id': '390aebfb-c195-46f0-9b9d-90c42cdecc41', 'name': 'ctest-vn-69766708', 'tenant_id': 'e5ce9f4477b74c60b6136125619d68cc', 'project_id': 'e5ce9f4477b74c60b6136125619d68cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22400867', 'ctest-vn-69766708'], 'port_security_enabled': True, 'description': ''}}
2025-11-27 02:12:42,514 - DEBUG - Response for create_subnet : {'subnet': {'id': '311a46ea-9a0a-48ed-bd11-17b7b2c1cf9f', 'name': '', 'tenant_id': 'e5ce9f4477b74c60b6136125619d68cc', 'network_id': '390aebfb-c195-46f0-9b9d-90c42cdecc41', 'ip_version': 4, 'cidr': '164.126.176.192/26', 'allocation_pools': [{'start': '164.126.176.194', 'end': '164.126.176.254'}], 'gateway_ip': '164.126.176.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.126.176.194', 'tags': [], 'project_id': 'e5ce9f4477b74c60b6136125619d68cc'}}
2025-11-27 02:12:42,534 - INFO - Created VN ctest-vn-69766708
2025-11-27 02:12:42,587 - DEBUG - VN ctest-vn-69766708 UUID is 390aebfb-c195-46f0-9b9d-90c42cdecc41
2025-11-27 02:12:42,708 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22400867:ctest-vn-33792744, 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-22400867:ctest-vn-69766708, 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-11-27 02:12:43,020 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc50c140-6c7b-4278-84ef-1d6d86374474', 'name': 'ctest-vn-33792744', 'tenant_id': 'e5ce9f4477b74c60b6136125619d68cc', 'project_id': 'e5ce9f4477b74c60b6136125619d68cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d4b08b6-d3c0-42b7-a0ce-92b91f3df5d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22400867', 'ctest-vn-33792744'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22400867', 'ctest-policy-allow-all-19586552']], 'subnet_ipam': [{'subnet_cidr': '57.250.146.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-27 02:12:43,267 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '390aebfb-c195-46f0-9b9d-90c42cdecc41', 'name': 'ctest-vn-69766708', 'tenant_id': 'e5ce9f4477b74c60b6136125619d68cc', 'project_id': 'e5ce9f4477b74c60b6136125619d68cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['311a46ea-9a0a-48ed-bd11-17b7b2c1cf9f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22400867', 'ctest-vn-69766708'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22400867', 'ctest-policy-allow-all-19586552']], 'subnet_ipam': [{'subnet_cidr': '164.126.176.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-27 02:12:43,435 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-27 02:12:43,791 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-27 02:12:43,829 - DEBUG - Requesting: http://10.0.0.65:8082/domain/13de5539-52ea-4986-b539-2c2e71884d64
2025-11-27 02:12:43,841 - DEBUG - Requesting: http://10.0.0.65:8082/project/e5ce9f44-77b7-4c60-b613-6125619d68cc
2025-11-27 02:12:43,915 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/cc50c140-6c7b-4278-84ef-1d6d86374474
2025-11-27 02:12:43,926 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/cc50c140-6c7b-4278-84ef-1d6d86374474
2025-11-27 02:12:43,937 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5fd496ce-dd9f-42e5-8562-1052d14c4793
2025-11-27 02:12:43,945 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5fd496ce-dd9f-42e5-8562-1052d14c4793
2025-11-27 02:12:43,954 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/a291c3b7-978f-438e-b031-9f6be42a0d79
2025-11-27 02:12:43,965 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-27 02:12:43,965 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/cc50c140-6c7b-4278-84ef-1d6d86374474
2025-11-27 02:12:43,974 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5fd496ce-dd9f-42e5-8562-1052d14c4793
2025-11-27 02:12:43,990 - INFO - Verified VN network id 12 for VN cc50c140-6c7b-4278-84ef-1d6d86374474
2025-11-27 02:12:43,990 - INFO - Verifications in API Server for VN ctest-vn-33792744 passed
2025-11-27 02:12:43,990 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/cc50c140-6c7b-4278-84ef-1d6d86374474
2025-11-27 02:12:44,000 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5fd496ce-dd9f-42e5-8562-1052d14c4793
2025-11-27 02:12:44,008 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/5fd496ce-dd9f-42e5-8562-1052d14c4793
2025-11-27 02:12:44,016 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/a291c3b7-978f-438e-b031-9f6be42a0d79
2025-11-27 02:12:44,030 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22400867:ctest-vn-33792744', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22400867', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14722479664316236408', 'uuid-lslong': '9578907288680744052'}, 'enable': 'true', 'created': '2025-11-27T02:12:41', 'last-modified': '2025-11-27T02:12:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.042575'}
2025-11-27 02:12:44,036 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-27 02:12:44,036 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33792744 passed
2025-11-27 02:12:44,037 - DEBUG - ====Verifying policy data for ctest-vn-33792744 in API_Server ======
2025-11-27 02:12:44,037 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-27 02:12:44,043 - DEBUG - Requesting: http://10.0.0.65:8082/domain/13de5539-52ea-4986-b539-2c2e71884d64
2025-11-27 02:12:44,054 - DEBUG - Requesting: http://10.0.0.65:8082/project/e5ce9f44-77b7-4c60-b613-6125619d68cc
2025-11-27 02:12:44,125 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/cc50c140-6c7b-4278-84ef-1d6d86374474
2025-11-27 02:12:44,135 - DEBUG - ==>Verifying data for policy with id: 2e3f879d-b5f2-4467-9ea9-88991781f7c4, fqn: ['default-domain', 'ctest-TestBasicPolicy-22400867', 'ctest-policy-allow-all-19586552']
2025-11-27 02:12:44,136 - INFO - VN ctest-vn-33792744 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-27 02:12:44,136 - DEBUG - Verifying the vn in opserver
2025-11-27 02:12:44,136 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22400867:ctest-vn-33792744 virtual network link through opserver 10.0.0.65
2025-11-27 02:12:44,136 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-27 02:12:44,491 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-27 02:12:44,563 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22400867:ctest-vn-33792744', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22400867:ctest-vn-33792744?flat'}
2025-11-27 02:12:44,563 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22400867:ctest-vn-33792744 is found in opserver
2025-11-27 02:12:44,572 - DEBUG - Do not have enough data to verify VN in agent
2025-11-27 02:12:44,577 - DEBUG - VRF ids for VN ctest-vn-33792744: {}
2025-11-27 02:12:44,577 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-27 02:12:44,583 - DEBUG - Requesting: http://10.0.0.65:8082/domain/13de5539-52ea-4986-b539-2c2e71884d64
2025-11-27 02:12:44,594 - DEBUG - Requesting: http://10.0.0.65:8082/project/e5ce9f44-77b7-4c60-b613-6125619d68cc
2025-11-27 02:12:44,671 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/390aebfb-c195-46f0-9b9d-90c42cdecc41
2025-11-27 02:12:44,686 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/390aebfb-c195-46f0-9b9d-90c42cdecc41
2025-11-27 02:12:44,696 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/6a05c039-de2b-440b-8da5-7d2d54f3f5e6
2025-11-27 02:12:44,703 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/6a05c039-de2b-440b-8da5-7d2d54f3f5e6
2025-11-27 02:12:44,714 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/dc552617-c589-4415-90af-b56d78f0df35
2025-11-27 02:12:44,722 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-27 02:12:44,722 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/390aebfb-c195-46f0-9b9d-90c42cdecc41
2025-11-27 02:12:44,731 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/6a05c039-de2b-440b-8da5-7d2d54f3f5e6
2025-11-27 02:12:44,744 - INFO - Verified VN network id 13 for VN 390aebfb-c195-46f0-9b9d-90c42cdecc41
2025-11-27 02:12:44,744 - INFO - Verifications in API Server for VN ctest-vn-69766708 passed
2025-11-27 02:12:44,744 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/390aebfb-c195-46f0-9b9d-90c42cdecc41
2025-11-27 02:12:44,753 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/6a05c039-de2b-440b-8da5-7d2d54f3f5e6
2025-11-27 02:12:44,760 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/6a05c039-de2b-440b-8da5-7d2d54f3f5e6
2025-11-27 02:12:44,767 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/dc552617-c589-4415-90af-b56d78f0df35
2025-11-27 02:12:44,780 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22400867:ctest-vn-69766708', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22400867', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4110357076446103280', 'uuid-lslong': '11213277819463191617'}, 'enable': 'true', 'created': '2025-11-27T02:12:42', 'last-modified': '2025-11-27T02:12:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.539937'}
2025-11-27 02:12:44,787 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-27 02:12:44,787 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69766708 passed
2025-11-27 02:12:44,787 - DEBUG - ====Verifying policy data for ctest-vn-69766708 in API_Server ======
2025-11-27 02:12:44,787 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-27 02:12:44,793 - DEBUG - Requesting: http://10.0.0.65:8082/domain/13de5539-52ea-4986-b539-2c2e71884d64
2025-11-27 02:12:44,804 - DEBUG - Requesting: http://10.0.0.65:8082/project/e5ce9f44-77b7-4c60-b613-6125619d68cc
2025-11-27 02:12:44,876 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/390aebfb-c195-46f0-9b9d-90c42cdecc41
2025-11-27 02:12:44,886 - DEBUG - ==>Verifying data for policy with id: 2e3f879d-b5f2-4467-9ea9-88991781f7c4, fqn: ['default-domain', 'ctest-TestBasicPolicy-22400867', 'ctest-policy-allow-all-19586552']
2025-11-27 02:12:44,886 - INFO - VN ctest-vn-69766708 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-27 02:12:44,886 - DEBUG - Verifying the vn in opserver
2025-11-27 02:12:44,886 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22400867:ctest-vn-69766708 virtual network link through opserver 10.0.0.65
2025-11-27 02:12:44,886 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-27 02:12:44,896 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22400867:ctest-vn-69766708', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22400867:ctest-vn-69766708?flat'}
2025-11-27 02:12:44,896 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22400867:ctest-vn-69766708 is found in opserver
2025-11-27 02:12:44,907 - DEBUG - Do not have enough data to verify VN in agent
2025-11-27 02:12:44,912 - DEBUG - VRF ids for VN ctest-vn-69766708: {}
2025-11-27 02:12:44,979 - DEBUG - Services list from nova: [