2025-10-22 21:18:10,337 - INFO - Domain Default found not creating
2025-10-22 21:18:10,480 - INFO - Project ctest-TestBasicPolicy-54411425 not found, creating it
2025-10-22 21:18:10,968 - INFO - Created Project:ctest-TestBasicPolicy-54411425, ID : 6cf40f9a-1ed0-40bb-b2a9-57f1ae6c5435 
2025-10-22 21:18:12,456 - INFO - ================================================================================
2025-10-22 21:18:12,456 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-22 21:18:12,456 - 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-22 21:18:12,714 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-22 21:18:12,714 - INFO - Initial checks done. Running the testcase now
2025-10-22 21:18:12,714 - INFO - 
2025-10-22 21:18:13,261 - DEBUG - Response for create_network : {'network': {'id': 'd3087375-7d1b-4486-8277-2167932a3d87', 'name': 'ctest-vn-90727163', 'tenant_id': '6cf40f9a1ed040bbb2a957f1ae6c5435', 'project_id': '6cf40f9a1ed040bbb2a957f1ae6c5435', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54411425', 'ctest-vn-90727163'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 21:18:13,449 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0fb1754-3623-476a-ad4a-b0618e6b11e0', 'name': '', 'tenant_id': '6cf40f9a1ed040bbb2a957f1ae6c5435', 'network_id': 'd3087375-7d1b-4486-8277-2167932a3d87', 'ip_version': 4, 'cidr': '152.79.122.128/26', 'allocation_pools': [{'start': '152.79.122.130', 'end': '152.79.122.190'}], 'gateway_ip': '152.79.122.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.79.122.130', 'tags': [], 'project_id': '6cf40f9a1ed040bbb2a957f1ae6c5435'}}
2025-10-22 21:18:13,470 - INFO - Created VN ctest-vn-90727163
2025-10-22 21:18:13,522 - DEBUG - VN ctest-vn-90727163 UUID is d3087375-7d1b-4486-8277-2167932a3d87
2025-10-22 21:18:13,828 - DEBUG - Response for create_network : {'network': {'id': '6a5fdf3f-1a5c-49f4-8a02-d596247f0826', 'name': 'ctest-vn-66122209', 'tenant_id': '6cf40f9a1ed040bbb2a957f1ae6c5435', 'project_id': '6cf40f9a1ed040bbb2a957f1ae6c5435', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54411425', 'ctest-vn-66122209'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 21:18:13,991 - DEBUG - Response for create_subnet : {'subnet': {'id': '88e64754-3406-4918-a5b0-84a60147933c', 'name': '', 'tenant_id': '6cf40f9a1ed040bbb2a957f1ae6c5435', 'network_id': '6a5fdf3f-1a5c-49f4-8a02-d596247f0826', 'ip_version': 4, 'cidr': '106.143.8.128/26', 'allocation_pools': [{'start': '106.143.8.130', 'end': '106.143.8.190'}], 'gateway_ip': '106.143.8.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.143.8.130', 'tags': [], 'project_id': '6cf40f9a1ed040bbb2a957f1ae6c5435'}}
2025-10-22 21:18:14,012 - INFO - Created VN ctest-vn-66122209
2025-10-22 21:18:14,065 - DEBUG - VN ctest-vn-66122209 UUID is 6a5fdf3f-1a5c-49f4-8a02-d596247f0826
2025-10-22 21:18:14,191 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54411425:ctest-vn-90727163, 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-54411425:ctest-vn-66122209, 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-22 21:18:14,511 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3087375-7d1b-4486-8277-2167932a3d87', 'name': 'ctest-vn-90727163', 'tenant_id': '6cf40f9a1ed040bbb2a957f1ae6c5435', 'project_id': '6cf40f9a1ed040bbb2a957f1ae6c5435', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0fb1754-3623-476a-ad4a-b0618e6b11e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54411425', 'ctest-vn-90727163'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54411425', 'ctest-policy-allow-all-41163198']], 'subnet_ipam': [{'subnet_cidr': '152.79.122.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 21:18:14,728 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a5fdf3f-1a5c-49f4-8a02-d596247f0826', 'name': 'ctest-vn-66122209', 'tenant_id': '6cf40f9a1ed040bbb2a957f1ae6c5435', 'project_id': '6cf40f9a1ed040bbb2a957f1ae6c5435', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['88e64754-3406-4918-a5b0-84a60147933c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54411425', 'ctest-vn-66122209'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54411425', 'ctest-policy-allow-all-41163198']], 'subnet_ipam': [{'subnet_cidr': '106.143.8.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 21:18:14,881 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 21:18:15,182 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 21:18:15,215 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d7513584-b509-4864-bf70-fcc357d5381a
2025-10-22 21:18:15,227 - DEBUG - Requesting: http://10.0.0.254:8082/project/6cf40f9a-1ed0-40bb-b2a9-57f1ae6c5435
2025-10-22 21:18:15,304 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d3087375-7d1b-4486-8277-2167932a3d87
2025-10-22 21:18:15,316 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d3087375-7d1b-4486-8277-2167932a3d87
2025-10-22 21:18:15,328 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26d138ac-56f4-469c-ad3a-319f41f2146a
2025-10-22 21:18:15,336 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26d138ac-56f4-469c-ad3a-319f41f2146a
2025-10-22 21:18:15,344 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4ac26278-72b7-40ef-9ca2-d6fb975dd0c5
2025-10-22 21:18:15,352 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 21:18:15,352 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d3087375-7d1b-4486-8277-2167932a3d87
2025-10-22 21:18:15,364 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26d138ac-56f4-469c-ad3a-319f41f2146a
2025-10-22 21:18:15,380 - INFO - Verified VN network id 10 for VN d3087375-7d1b-4486-8277-2167932a3d87
2025-10-22 21:18:15,380 - INFO - Verifications in API Server for VN ctest-vn-90727163 passed
2025-10-22 21:18:15,381 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d3087375-7d1b-4486-8277-2167932a3d87
2025-10-22 21:18:15,392 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26d138ac-56f4-469c-ad3a-319f41f2146a
2025-10-22 21:18:15,400 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26d138ac-56f4-469c-ad3a-319f41f2146a
2025-10-22 21:18:15,409 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4ac26278-72b7-40ef-9ca2-d6fb975dd0c5
2025-10-22 21:18:15,423 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54411425:ctest-vn-90727163', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54411425', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15206531090263786630', 'uuid-lslong': '9401019475893566855'}, 'enable': 'true', 'created': '2025-10-22T21:18:13', 'last-modified': '2025-10-22T21:18:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.938224'}
2025-10-22 21:18:15,431 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 21:18:15,431 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90727163 passed
2025-10-22 21:18:15,431 - DEBUG - ====Verifying policy data for ctest-vn-90727163 in API_Server ======
2025-10-22 21:18:15,431 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 21:18:15,438 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d7513584-b509-4864-bf70-fcc357d5381a
2025-10-22 21:18:15,453 - DEBUG - Requesting: http://10.0.0.254:8082/project/6cf40f9a-1ed0-40bb-b2a9-57f1ae6c5435
2025-10-22 21:18:15,522 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d3087375-7d1b-4486-8277-2167932a3d87
2025-10-22 21:18:15,531 - DEBUG - ==>Verifying data for policy with id: b2cdadec-6159-4c24-8976-03c543cde05f, fqn: ['default-domain', 'ctest-TestBasicPolicy-54411425', 'ctest-policy-allow-all-41163198']
2025-10-22 21:18:15,531 - INFO - VN ctest-vn-90727163 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 21:18:15,531 - DEBUG - Verifying the vn in opserver
2025-10-22 21:18:15,531 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54411425:ctest-vn-90727163 virtual network link  through opserver 10.0.0.254
2025-10-22 21:18:15,531 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-22 21:18:15,830 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-22 21:18:15,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54411425:ctest-vn-90727163', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54411425:ctest-vn-90727163?flat'}
2025-10-22 21:18:15,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54411425:ctest-vn-90727163 is found in opserver
2025-10-22 21:18:15,902 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 21:18:15,907 - DEBUG - VRF ids for VN ctest-vn-90727163: {}
2025-10-22 21:18:15,907 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 21:18:15,913 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d7513584-b509-4864-bf70-fcc357d5381a
2025-10-22 21:18:15,924 - DEBUG - Requesting: http://10.0.0.254:8082/project/6cf40f9a-1ed0-40bb-b2a9-57f1ae6c5435
2025-10-22 21:18:15,992 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a5fdf3f-1a5c-49f4-8a02-d596247f0826
2025-10-22 21:18:16,006 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a5fdf3f-1a5c-49f4-8a02-d596247f0826
2025-10-22 21:18:16,015 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66a2b710-fa71-45fe-a8ac-a24a29dc23a7
2025-10-22 21:18:16,022 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66a2b710-fa71-45fe-a8ac-a24a29dc23a7
2025-10-22 21:18:16,029 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4300881d-ba7f-44ea-86e7-6d3a422e3e36
2025-10-22 21:18:16,035 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 21:18:16,035 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a5fdf3f-1a5c-49f4-8a02-d596247f0826
2025-10-22 21:18:16,045 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66a2b710-fa71-45fe-a8ac-a24a29dc23a7
2025-10-22 21:18:16,059 - INFO - Verified VN network id 11 for VN 6a5fdf3f-1a5c-49f4-8a02-d596247f0826
2025-10-22 21:18:16,059 - INFO - Verifications in API Server for VN ctest-vn-66122209 passed
2025-10-22 21:18:16,059 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a5fdf3f-1a5c-49f4-8a02-d596247f0826
2025-10-22 21:18:16,069 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66a2b710-fa71-45fe-a8ac-a24a29dc23a7
2025-10-22 21:18:16,075 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/66a2b710-fa71-45fe-a8ac-a24a29dc23a7
2025-10-22 21:18:16,082 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4300881d-ba7f-44ea-86e7-6d3a422e3e36
2025-10-22 21:18:16,094 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54411425:ctest-vn-66122209', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54411425', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7665090552926063092', 'uuid-lslong': '9944745768021592102'}, 'enable': 'true', 'created': '2025-10-22T21:18:13', 'last-modified': '2025-10-22T21:18:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.388412'}
2025-10-22 21:18:16,099 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 21:18:16,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66122209 passed
2025-10-22 21:18:16,100 - DEBUG - ====Verifying policy data for ctest-vn-66122209 in API_Server ======
2025-10-22 21:18:16,100 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 21:18:16,106 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d7513584-b509-4864-bf70-fcc357d5381a
2025-10-22 21:18:16,117 - DEBUG - Requesting: http://10.0.0.254:8082/project/6cf40f9a-1ed0-40bb-b2a9-57f1ae6c5435
2025-10-22 21:18:16,194 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6a5fdf3f-1a5c-49f4-8a02-d596247f0826
2025-10-22 21:18:16,205 - DEBUG - ==>Verifying data for policy with id: b2cdadec-6159-4c24-8976-03c543cde05f, fqn: ['default-domain', 'ctest-TestBasicPolicy-54411425', 'ctest-policy-allow-all-41163198']
2025-10-22 21:18:16,205 - INFO - VN ctest-vn-66122209 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 21:18:16,205 - DEBUG - Verifying the vn in opserver
2025-10-22 21:18:16,205 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54411425:ctest-vn-66122209 virtual network link  through opserver 10.0.0.254
2025-10-22 21:18:16,205 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-22 21:18:16,215 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54411425:ctest-vn-66122209', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54411425:ctest-vn-66122209?flat'}
2025-10-22 21:18:16,215 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54411425:ctest-vn-66122209 is found in opserver
2025-10-22 21:18:16,226 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 21:18:16,230 - DEBUG - VRF ids for VN ctest-vn-66122209: {}
2025-10-22 21:18:16,292 - DEBUG - Services list from nova: [