2025-06-18 11:28:37,006 - INFO - Domain Default found not creating
2025-06-18 11:28:37,175 - INFO - Project ctest-TestBasicPolicy-93188170 not found, creating it
2025-06-18 11:28:37,736 - INFO - Created Project:ctest-TestBasicPolicy-93188170, ID : 0b0cf57b-d364-4e3e-8931-71a60d61af91
2025-06-18 11:28:39,302 - INFO - ================================================================================
2025-06-18 11:28:39,302 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-18 11:28:39,302 - 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-18 11:28:39,557 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-18 11:28:39,557 - INFO - Initial checks done. Running the testcase now
2025-06-18 11:28:39,558 - INFO -
2025-06-18 11:28:40,158 - DEBUG - Response for create_network : {'network': {'id': '25faff1f-c689-4eb4-aee1-51268457fc0b', 'name': 'ctest-vn-15619620', 'tenant_id': '0b0cf57bd3644e3e893171a60d61af91', 'project_id': '0b0cf57bd3644e3e893171a60d61af91', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93188170', 'ctest-vn-15619620'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 11:28:40,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '87bd90a6-73f3-47c3-8a6d-778295b5ed55', 'name': '', 'tenant_id': '0b0cf57bd3644e3e893171a60d61af91', 'network_id': '25faff1f-c689-4eb4-aee1-51268457fc0b', 'ip_version': 4, 'cidr': '130.44.12.64/26', 'allocation_pools': [{'start': '130.44.12.66', 'end': '130.44.12.126'}], 'gateway_ip': '130.44.12.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.44.12.66', 'tags': [], 'project_id': '0b0cf57bd3644e3e893171a60d61af91'}}
2025-06-18 11:28:40,411 - INFO - Created VN ctest-vn-15619620
2025-06-18 11:28:40,468 - DEBUG - VN ctest-vn-15619620 UUID is 25faff1f-c689-4eb4-aee1-51268457fc0b
2025-06-18 11:28:40,812 - DEBUG - Response for create_network : {'network': {'id': '53c28eff-e229-443c-b19a-130ad01d75dd', 'name': 'ctest-vn-81586695', 'tenant_id': '0b0cf57bd3644e3e893171a60d61af91', 'project_id': '0b0cf57bd3644e3e893171a60d61af91', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93188170', 'ctest-vn-81586695'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 11:28:40,983 - DEBUG - Response for create_subnet : {'subnet': {'id': '33fa47ed-45f5-4a32-adde-daf76e8ff4be', 'name': '', 'tenant_id': '0b0cf57bd3644e3e893171a60d61af91', 'network_id': '53c28eff-e229-443c-b19a-130ad01d75dd', 'ip_version': 4, 'cidr': '103.173.245.64/26', 'allocation_pools': [{'start': '103.173.245.66', 'end': '103.173.245.126'}], 'gateway_ip': '103.173.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.173.245.66', 'tags': [], 'project_id': '0b0cf57bd3644e3e893171a60d61af91'}}
2025-06-18 11:28:41,002 - INFO - Created VN ctest-vn-81586695
2025-06-18 11:28:41,056 - DEBUG - VN ctest-vn-81586695 UUID is 53c28eff-e229-443c-b19a-130ad01d75dd
2025-06-18 11:28:41,171 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93188170:ctest-vn-15619620, 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-93188170:ctest-vn-81586695, 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-18 11:28:41,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '25faff1f-c689-4eb4-aee1-51268457fc0b', 'name': 'ctest-vn-15619620', 'tenant_id': '0b0cf57bd3644e3e893171a60d61af91', 'project_id': '0b0cf57bd3644e3e893171a60d61af91', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87bd90a6-73f3-47c3-8a6d-778295b5ed55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93188170', 'ctest-vn-15619620'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93188170', 'ctest-policy-allow-all-61692503']], 'subnet_ipam': [{'subnet_cidr': '130.44.12.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 11:28:41,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53c28eff-e229-443c-b19a-130ad01d75dd', 'name': 'ctest-vn-81586695', 'tenant_id': '0b0cf57bd3644e3e893171a60d61af91', 'project_id': '0b0cf57bd3644e3e893171a60d61af91', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33fa47ed-45f5-4a32-adde-daf76e8ff4be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93188170', 'ctest-vn-81586695'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93188170', 'ctest-policy-allow-all-61692503']], 'subnet_ipam': [{'subnet_cidr': '103.173.245.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 11:28:41,896 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 11:28:42,191 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 11:28:42,220 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0bbc921d-4fd2-4d53-a423-40fcf4925ed0
2025-06-18 11:28:42,245 - DEBUG - Requesting: http://10.0.0.254:8082/project/0b0cf57b-d364-4e3e-8931-71a60d61af91
2025-06-18 11:28:42,322 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/25faff1f-c689-4eb4-aee1-51268457fc0b
2025-06-18 11:28:42,333 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/25faff1f-c689-4eb4-aee1-51268457fc0b
2025-06-18 11:28:42,343 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/20822a04-83a4-4ea4-88c6-6ba95fb313b1
2025-06-18 11:28:42,352 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/20822a04-83a4-4ea4-88c6-6ba95fb313b1
2025-06-18 11:28:42,359 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c7f80d57-c4de-43be-975d-5bcca2973ed7
2025-06-18 11:28:42,381 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 11:28:42,381 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/25faff1f-c689-4eb4-aee1-51268457fc0b
2025-06-18 11:28:42,391 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/20822a04-83a4-4ea4-88c6-6ba95fb313b1
2025-06-18 11:28:42,407 - INFO - Verified VN network id 8 for VN 25faff1f-c689-4eb4-aee1-51268457fc0b
2025-06-18 11:28:42,407 - INFO - Verifications in API Server for VN ctest-vn-15619620 passed
2025-06-18 11:28:42,407 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/25faff1f-c689-4eb4-aee1-51268457fc0b
2025-06-18 11:28:42,417 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/20822a04-83a4-4ea4-88c6-6ba95fb313b1
2025-06-18 11:28:42,425 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/20822a04-83a4-4ea4-88c6-6ba95fb313b1
2025-06-18 11:28:42,433 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c7f80d57-c4de-43be-975d-5bcca2973ed7
2025-06-18 11:28:42,447 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93188170:ctest-vn-15619620', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93188170', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2736780235520954036', 'uuid-lslong': '12601442458230324235'}, 'enable': 'true', 'created': '2025-06-18T11:28:40', 'last-modified': '2025-06-18T11:28:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.976817'}
2025-06-18 11:28:42,454 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 11:28:42,455 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15619620 passed
2025-06-18 11:28:42,455 - DEBUG - ====Verifying policy data for ctest-vn-15619620 in API_Server ======
2025-06-18 11:28:42,455 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 11:28:42,462 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0bbc921d-4fd2-4d53-a423-40fcf4925ed0
2025-06-18 11:28:42,476 - DEBUG - Requesting: http://10.0.0.254:8082/project/0b0cf57b-d364-4e3e-8931-71a60d61af91
2025-06-18 11:28:42,546 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/25faff1f-c689-4eb4-aee1-51268457fc0b
2025-06-18 11:28:42,562 - DEBUG - ==>Verifying data for policy with id: cfe7965d-4968-492e-b410-75cdb196ac9b, fqn: ['default-domain', 'ctest-TestBasicPolicy-93188170', 'ctest-policy-allow-all-61692503']
2025-06-18 11:28:42,562 - INFO - VN ctest-vn-15619620 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 11:28:42,562 - DEBUG - Verifying the vn in opserver
2025-06-18 11:28:42,562 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93188170:ctest-vn-15619620 virtual network link through opserver 10.0.0.254
2025-06-18 11:28:42,562 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 11:28:42,858 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 11:28:42,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93188170:ctest-vn-15619620', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93188170:ctest-vn-15619620?flat'}
2025-06-18 11:28:42,915 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93188170:ctest-vn-15619620 is found in opserver
2025-06-18 11:28:42,929 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 11:28:42,935 - DEBUG - VRF ids for VN ctest-vn-15619620: {}
2025-06-18 11:28:42,935 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 11:28:42,941 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0bbc921d-4fd2-4d53-a423-40fcf4925ed0
2025-06-18 11:28:42,954 - DEBUG - Requesting: http://10.0.0.254:8082/project/0b0cf57b-d364-4e3e-8931-71a60d61af91
2025-06-18 11:28:43,030 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/53c28eff-e229-443c-b19a-130ad01d75dd
2025-06-18 11:28:43,043 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/53c28eff-e229-443c-b19a-130ad01d75dd
2025-06-18 11:28:43,053 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7a2e3441-52ed-4c6d-97af-8bd5a31a0162
2025-06-18 11:28:43,061 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7a2e3441-52ed-4c6d-97af-8bd5a31a0162
2025-06-18 11:28:43,069 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9fb857d1-57a7-4dbb-8130-df6bb86170f4
2025-06-18 11:28:43,077 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 11:28:43,077 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/53c28eff-e229-443c-b19a-130ad01d75dd
2025-06-18 11:28:43,090 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7a2e3441-52ed-4c6d-97af-8bd5a31a0162
2025-06-18 11:28:43,108 - INFO - Verified VN network id 9 for VN 53c28eff-e229-443c-b19a-130ad01d75dd
2025-06-18 11:28:43,108 - INFO - Verifications in API Server for VN ctest-vn-81586695 passed
2025-06-18 11:28:43,108 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/53c28eff-e229-443c-b19a-130ad01d75dd
2025-06-18 11:28:43,136 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7a2e3441-52ed-4c6d-97af-8bd5a31a0162
2025-06-18 11:28:43,145 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7a2e3441-52ed-4c6d-97af-8bd5a31a0162
2025-06-18 11:28:43,155 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9fb857d1-57a7-4dbb-8130-df6bb86170f4
2025-06-18 11:28:43,169 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93188170:ctest-vn-81586695', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93188170', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6035543680292045884', 'uuid-lslong': '12797562228288878045'}, 'enable': 'true', 'created': '2025-06-18T11:28:40', 'last-modified': '2025-06-18T11:28:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.463534'}
2025-06-18 11:28:43,177 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 11:28:43,177 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81586695 passed
2025-06-18 11:28:43,177 - DEBUG - ====Verifying policy data for ctest-vn-81586695 in API_Server ======
2025-06-18 11:28:43,177 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 11:28:43,185 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0bbc921d-4fd2-4d53-a423-40fcf4925ed0
2025-06-18 11:28:43,197 - DEBUG - Requesting: http://10.0.0.254:8082/project/0b0cf57b-d364-4e3e-8931-71a60d61af91
2025-06-18 11:28:43,271 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/53c28eff-e229-443c-b19a-130ad01d75dd
2025-06-18 11:28:43,284 - DEBUG - ==>Verifying data for policy with id: cfe7965d-4968-492e-b410-75cdb196ac9b, fqn: ['default-domain', 'ctest-TestBasicPolicy-93188170', 'ctest-policy-allow-all-61692503']
2025-06-18 11:28:43,284 - INFO - VN ctest-vn-81586695 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 11:28:43,284 - DEBUG - Verifying the vn in opserver
2025-06-18 11:28:43,284 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93188170:ctest-vn-81586695 virtual network link through opserver 10.0.0.254
2025-06-18 11:28:43,284 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 11:28:43,295 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93188170:ctest-vn-81586695', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93188170:ctest-vn-81586695?flat'}
2025-06-18 11:28:43,295 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93188170:ctest-vn-81586695 is found in opserver
2025-06-18 11:28:43,306 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 11:28:43,311 - DEBUG - VRF ids for VN ctest-vn-81586695: {}
2025-06-18 11:28:43,373 - DEBUG - Services list from nova: [