2025-10-14 18:15:42,458 - INFO - Domain Default found not creating
2025-10-14 18:15:42,656 - INFO - Project ctest-TestBasicPolicy-20729150 not found, creating it
2025-10-14 18:15:43,107 - INFO - Created Project:ctest-TestBasicPolicy-20729150, ID : ab9fc745-a282-494d-8a5e-067554314a66
2025-10-14 18:15:44,550 - INFO - ================================================================================
2025-10-14 18:15:44,551 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-14 18:15:44,551 - 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-14 18:15:44,806 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-10-14 18:15:44,806 - INFO - Initial checks done. Running the testcase now
2025-10-14 18:15:44,806 - INFO -
2025-10-14 18:15:45,365 - DEBUG - Response for create_network : {'network': {'id': 'd0702138-36ea-484c-bfa4-442e2cc97851', 'name': 'ctest-vn-48553963', 'tenant_id': 'ab9fc745a282494d8a5e067554314a66', 'project_id': 'ab9fc745a282494d8a5e067554314a66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20729150', 'ctest-vn-48553963'], 'port_security_enabled': True, 'description': ''}}
2025-10-14 18:15:45,585 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bf26c33-8ea5-444a-a051-0ab4006e8c53', 'name': '', 'tenant_id': 'ab9fc745a282494d8a5e067554314a66', 'network_id': 'd0702138-36ea-484c-bfa4-442e2cc97851', 'ip_version': 4, 'cidr': '117.73.253.64/26', 'allocation_pools': [{'start': '117.73.253.66', 'end': '117.73.253.126'}], 'gateway_ip': '117.73.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.73.253.66', 'tags': [], 'project_id': 'ab9fc745a282494d8a5e067554314a66'}}
2025-10-14 18:15:45,600 - INFO - Created VN ctest-vn-48553963
2025-10-14 18:15:45,652 - DEBUG - VN ctest-vn-48553963 UUID is d0702138-36ea-484c-bfa4-442e2cc97851
2025-10-14 18:15:45,967 - DEBUG - Response for create_network : {'network': {'id': '83f542a2-c8a8-4905-aa4e-adec4927005f', 'name': 'ctest-vn-42178553', 'tenant_id': 'ab9fc745a282494d8a5e067554314a66', 'project_id': 'ab9fc745a282494d8a5e067554314a66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20729150', 'ctest-vn-42178553'], 'port_security_enabled': True, 'description': ''}}
2025-10-14 18:15:46,151 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bce70cc0-1fcd-4f0e-bc55-5dfc7ba20ebf', 'name': '', 'tenant_id': 'ab9fc745a282494d8a5e067554314a66', 'network_id': '83f542a2-c8a8-4905-aa4e-adec4927005f', 'ip_version': 4, 'cidr': '70.126.25.64/26', 'allocation_pools': [{'start': '70.126.25.66', 'end': '70.126.25.126'}], 'gateway_ip': '70.126.25.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.126.25.66', 'tags': [], 'project_id': 'ab9fc745a282494d8a5e067554314a66'}}
2025-10-14 18:15:46,168 - INFO - Created VN ctest-vn-42178553
2025-10-14 18:15:46,220 - DEBUG - VN ctest-vn-42178553 UUID is 83f542a2-c8a8-4905-aa4e-adec4927005f
2025-10-14 18:15:46,368 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20729150:ctest-vn-48553963, 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-20729150:ctest-vn-42178553, 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-14 18:15:46,657 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0702138-36ea-484c-bfa4-442e2cc97851', 'name': 'ctest-vn-48553963', 'tenant_id': 'ab9fc745a282494d8a5e067554314a66', 'project_id': 'ab9fc745a282494d8a5e067554314a66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9bf26c33-8ea5-444a-a051-0ab4006e8c53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20729150', 'ctest-vn-48553963'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20729150', 'ctest-policy-allow-all-48441960']], 'subnet_ipam': [{'subnet_cidr': '117.73.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-14 18:15:46,893 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83f542a2-c8a8-4905-aa4e-adec4927005f', 'name': 'ctest-vn-42178553', 'tenant_id': 'ab9fc745a282494d8a5e067554314a66', 'project_id': 'ab9fc745a282494d8a5e067554314a66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bce70cc0-1fcd-4f0e-bc55-5dfc7ba20ebf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20729150', 'ctest-vn-42178553'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20729150', 'ctest-policy-allow-all-48441960']], 'subnet_ipam': [{'subnet_cidr': '70.126.25.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-14 18:15:47,048 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-14 18:15:47,358 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-14 18:15:47,665 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6ca03870-1883-4af4-a992-1e6a9d75f549
2025-10-14 18:15:47,677 - DEBUG - Requesting: http://10.0.0.50:8082/project/ab9fc745-a282-494d-8a5e-067554314a66
2025-10-14 18:15:47,745 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0702138-36ea-484c-bfa4-442e2cc97851
2025-10-14 18:15:47,755 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0702138-36ea-484c-bfa4-442e2cc97851
2025-10-14 18:15:47,763 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/290419b5-177e-400e-844f-9873d37de8fb
2025-10-14 18:15:47,769 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/290419b5-177e-400e-844f-9873d37de8fb
2025-10-14 18:15:47,775 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/99c0eec8-6b45-48b2-9190-61d8ada8f35a
2025-10-14 18:15:47,781 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-14 18:15:47,781 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0702138-36ea-484c-bfa4-442e2cc97851
2025-10-14 18:15:47,788 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/290419b5-177e-400e-844f-9873d37de8fb
2025-10-14 18:15:47,802 - INFO - Verified VN network id 11 for VN d0702138-36ea-484c-bfa4-442e2cc97851
2025-10-14 18:15:47,802 - INFO - Verifications in API Server for VN ctest-vn-48553963 passed
2025-10-14 18:15:47,802 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0702138-36ea-484c-bfa4-442e2cc97851
2025-10-14 18:15:47,811 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/290419b5-177e-400e-844f-9873d37de8fb
2025-10-14 18:15:47,818 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/290419b5-177e-400e-844f-9873d37de8fb
2025-10-14 18:15:47,825 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/99c0eec8-6b45-48b2-9190-61d8ada8f35a
2025-10-14 18:15:47,837 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20729150:ctest-vn-48553963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20729150', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15019541282603812940', 'uuid-lslong': '13809237322535368785'}, 'enable': 'true', 'created': '2025-10-14T18:15:45', 'last-modified': '2025-10-14T18:15:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.200401'}
2025-10-14 18:15:47,844 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-14 18:15:47,845 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48553963 passed
2025-10-14 18:15:47,845 - DEBUG - ====Verifying policy data for ctest-vn-48553963 in API_Server ======
2025-10-14 18:15:47,846 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-14 18:15:47,851 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6ca03870-1883-4af4-a992-1e6a9d75f549
2025-10-14 18:15:47,861 - DEBUG - Requesting: http://10.0.0.50:8082/project/ab9fc745-a282-494d-8a5e-067554314a66
2025-10-14 18:15:47,934 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0702138-36ea-484c-bfa4-442e2cc97851
2025-10-14 18:15:47,951 - DEBUG - ==>Verifying data for policy with id: e4709ad1-4895-4d43-8c69-58752fbbcf7b, fqn: ['default-domain', 'ctest-TestBasicPolicy-20729150', 'ctest-policy-allow-all-48441960']
2025-10-14 18:15:47,951 - INFO - VN ctest-vn-48553963 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-14 18:15:47,951 - DEBUG - Verifying the vn in opserver
2025-10-14 18:15:47,951 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20729150:ctest-vn-48553963 virtual network link through opserver 10.0.0.50
2025-10-14 18:15:47,951 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-14 18:15:48,276 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-14 18:15:48,347 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20729150:ctest-vn-48553963', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20729150:ctest-vn-48553963?flat'}
2025-10-14 18:15:48,347 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20729150:ctest-vn-48553963 is found in opserver
2025-10-14 18:15:48,357 - DEBUG - Do not have enough data to verify VN in agent
2025-10-14 18:15:48,360 - DEBUG - VRF ids for VN ctest-vn-48553963: {}
2025-10-14 18:15:48,361 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-14 18:15:48,366 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6ca03870-1883-4af4-a992-1e6a9d75f549
2025-10-14 18:15:48,376 - DEBUG - Requesting: http://10.0.0.50:8082/project/ab9fc745-a282-494d-8a5e-067554314a66
2025-10-14 18:15:48,446 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/83f542a2-c8a8-4905-aa4e-adec4927005f
2025-10-14 18:15:48,457 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/83f542a2-c8a8-4905-aa4e-adec4927005f
2025-10-14 18:15:48,466 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/75044e9b-0452-4609-b055-778f482c7fa7
2025-10-14 18:15:48,473 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/75044e9b-0452-4609-b055-778f482c7fa7
2025-10-14 18:15:48,480 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e37fb862-bdb9-4bf7-a3dd-28ed14435bd7
2025-10-14 18:15:48,487 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-14 18:15:48,487 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/83f542a2-c8a8-4905-aa4e-adec4927005f
2025-10-14 18:15:48,495 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/75044e9b-0452-4609-b055-778f482c7fa7
2025-10-14 18:15:48,508 - INFO - Verified VN network id 12 for VN 83f542a2-c8a8-4905-aa4e-adec4927005f
2025-10-14 18:15:48,508 - INFO - Verifications in API Server for VN ctest-vn-42178553 passed
2025-10-14 18:15:48,508 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/83f542a2-c8a8-4905-aa4e-adec4927005f
2025-10-14 18:15:48,519 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/75044e9b-0452-4609-b055-778f482c7fa7
2025-10-14 18:15:48,527 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/75044e9b-0452-4609-b055-778f482c7fa7
2025-10-14 18:15:48,534 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e37fb862-bdb9-4bf7-a3dd-28ed14435bd7
2025-10-14 18:15:48,545 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20729150:ctest-vn-42178553', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20729150', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9508579455181277445', 'uuid-lslong': '12271937264982360159'}, 'enable': 'true', 'created': '2025-10-14T18:15:45', 'last-modified': '2025-10-14T18:15:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.682883'}
2025-10-14 18:15:48,551 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-14 18:15:48,551 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42178553 passed
2025-10-14 18:15:48,551 - DEBUG - ====Verifying policy data for ctest-vn-42178553 in API_Server ======
2025-10-14 18:15:48,551 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-14 18:15:48,556 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6ca03870-1883-4af4-a992-1e6a9d75f549
2025-10-14 18:15:48,567 - DEBUG - Requesting: http://10.0.0.50:8082/project/ab9fc745-a282-494d-8a5e-067554314a66
2025-10-14 18:15:48,638 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/83f542a2-c8a8-4905-aa4e-adec4927005f
2025-10-14 18:15:48,646 - DEBUG - ==>Verifying data for policy with id: e4709ad1-4895-4d43-8c69-58752fbbcf7b, fqn: ['default-domain', 'ctest-TestBasicPolicy-20729150', 'ctest-policy-allow-all-48441960']
2025-10-14 18:15:48,646 - INFO - VN ctest-vn-42178553 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-14 18:15:48,646 - DEBUG - Verifying the vn in opserver
2025-10-14 18:15:48,646 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20729150:ctest-vn-42178553 virtual network link through opserver 10.0.0.50
2025-10-14 18:15:48,646 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-14 18:15:48,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20729150:ctest-vn-42178553', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20729150:ctest-vn-42178553?flat'}
2025-10-14 18:15:48,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20729150:ctest-vn-42178553 is found in opserver
2025-10-14 18:15:48,665 - DEBUG - Do not have enough data to verify VN in agent
2025-10-14 18:15:48,671 - DEBUG - VRF ids for VN ctest-vn-42178553: {}
2025-10-14 18:15:48,723 - DEBUG - Services list from nova: [