2025-08-11 12:15:49,566 - INFO - Domain Default found not creating
2025-08-11 12:15:49,684 - INFO - Project ctest-TestBasicPolicy-38451608 not found, creating it
2025-08-11 12:15:50,131 - INFO - Created Project:ctest-TestBasicPolicy-38451608, ID : 47b549d3-59e9-4356-ab22-88e09539e5d4
2025-08-11 12:15:51,417 - INFO - ================================================================================
2025-08-11 12:15:51,417 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 12:15:51,417 - 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-08-11 12:15:51,672 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2025-08-11 12:15:51,672 - INFO - Initial checks done. Running the testcase now
2025-08-11 12:15:51,672 - INFO -
2025-08-11 12:15:52,175 - DEBUG - Response for create_network : {'network': {'id': 'bd34e568-a89f-44ce-95ff-1efb3f9daa2f', 'name': 'ctest-vn-88273852', 'tenant_id': '47b549d359e94356ab2288e09539e5d4', 'project_id': '47b549d359e94356ab2288e09539e5d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38451608', 'ctest-vn-88273852'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 12:15:52,329 - DEBUG - Response for create_subnet : {'subnet': {'id': '38da78da-26b8-460d-8c84-7db88b657ff3', 'name': '', 'tenant_id': '47b549d359e94356ab2288e09539e5d4', 'network_id': 'bd34e568-a89f-44ce-95ff-1efb3f9daa2f', 'ip_version': 4, 'cidr': '129.207.8.192/26', 'allocation_pools': [{'start': '129.207.8.194', 'end': '129.207.8.254'}], 'gateway_ip': '129.207.8.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.207.8.194', 'tags': [], 'project_id': '47b549d359e94356ab2288e09539e5d4'}}
2025-08-11 12:15:52,343 - INFO - Created VN ctest-vn-88273852
2025-08-11 12:15:52,395 - DEBUG - VN ctest-vn-88273852 UUID is bd34e568-a89f-44ce-95ff-1efb3f9daa2f
2025-08-11 12:15:52,677 - DEBUG - Response for create_network : {'network': {'id': 'ca6e22ab-e427-4675-8544-44552aa83890', 'name': 'ctest-vn-64210593', 'tenant_id': '47b549d359e94356ab2288e09539e5d4', 'project_id': '47b549d359e94356ab2288e09539e5d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38451608', 'ctest-vn-64210593'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 12:15:52,856 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d8474f2-cfb2-43e0-8c3f-59b1e9acf1d8', 'name': '', 'tenant_id': '47b549d359e94356ab2288e09539e5d4', 'network_id': 'ca6e22ab-e427-4675-8544-44552aa83890', 'ip_version': 4, 'cidr': '181.80.239.64/26', 'allocation_pools': [{'start': '181.80.239.66', 'end': '181.80.239.126'}], 'gateway_ip': '181.80.239.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.80.239.66', 'tags': [], 'project_id': '47b549d359e94356ab2288e09539e5d4'}}
2025-08-11 12:15:52,871 - INFO - Created VN ctest-vn-64210593
2025-08-11 12:15:52,923 - DEBUG - VN ctest-vn-64210593 UUID is ca6e22ab-e427-4675-8544-44552aa83890
2025-08-11 12:15:53,063 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38451608:ctest-vn-88273852, 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-38451608:ctest-vn-64210593, 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-08-11 12:15:53,332 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd34e568-a89f-44ce-95ff-1efb3f9daa2f', 'name': 'ctest-vn-88273852', 'tenant_id': '47b549d359e94356ab2288e09539e5d4', 'project_id': '47b549d359e94356ab2288e09539e5d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['38da78da-26b8-460d-8c84-7db88b657ff3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38451608', 'ctest-vn-88273852'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38451608', 'ctest-policy-allow-all-71159431']], 'subnet_ipam': [{'subnet_cidr': '129.207.8.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 12:15:53,543 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca6e22ab-e427-4675-8544-44552aa83890', 'name': 'ctest-vn-64210593', 'tenant_id': '47b549d359e94356ab2288e09539e5d4', 'project_id': '47b549d359e94356ab2288e09539e5d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d8474f2-cfb2-43e0-8c3f-59b1e9acf1d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38451608', 'ctest-vn-64210593'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38451608', 'ctest-policy-allow-all-71159431']], 'subnet_ipam': [{'subnet_cidr': '181.80.239.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 12:15:53,699 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-11 12:15:53,986 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-11 12:15:54,010 - DEBUG - Requesting: http://10.0.0.249:8082/domain/f0993ec5-e211-4fc3-88e7-a27cd3ba1cf8
2025-08-11 12:15:54,021 - DEBUG - Requesting: http://10.0.0.249:8082/project/47b549d3-59e9-4356-ab22-88e09539e5d4
2025-08-11 12:15:54,092 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bd34e568-a89f-44ce-95ff-1efb3f9daa2f
2025-08-11 12:15:54,101 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bd34e568-a89f-44ce-95ff-1efb3f9daa2f
2025-08-11 12:15:54,112 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b69918e8-1ee1-495a-98ff-7caadcc9cad2
2025-08-11 12:15:54,117 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b69918e8-1ee1-495a-98ff-7caadcc9cad2
2025-08-11 12:15:54,123 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8ebf42b1-dbf2-46e4-ad9a-a0f9e9e4f40b
2025-08-11 12:15:54,128 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 12:15:54,128 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bd34e568-a89f-44ce-95ff-1efb3f9daa2f
2025-08-11 12:15:54,136 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b69918e8-1ee1-495a-98ff-7caadcc9cad2
2025-08-11 12:15:54,148 - INFO - Verified VN network id 11 for VN bd34e568-a89f-44ce-95ff-1efb3f9daa2f
2025-08-11 12:15:54,148 - INFO - Verifications in API Server for VN ctest-vn-88273852 passed
2025-08-11 12:15:54,148 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bd34e568-a89f-44ce-95ff-1efb3f9daa2f
2025-08-11 12:15:54,158 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b69918e8-1ee1-495a-98ff-7caadcc9cad2
2025-08-11 12:15:54,163 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b69918e8-1ee1-495a-98ff-7caadcc9cad2
2025-08-11 12:15:54,169 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8ebf42b1-dbf2-46e4-ad9a-a0f9e9e4f40b
2025-08-11 12:15:54,179 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38451608:ctest-vn-88273852', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38451608', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13633774209625703630', 'uuid-lslong': '10808391695165401647'}, 'enable': 'true', 'created': '2025-08-11T12:15:52', 'last-modified': '2025-08-11T12:15:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.859529'}
2025-08-11 12:15:54,185 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 12:15:54,185 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88273852 passed
2025-08-11 12:15:54,186 - DEBUG - ====Verifying policy data for ctest-vn-88273852 in API_Server ======
2025-08-11 12:15:54,186 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-11 12:15:54,190 - DEBUG - Requesting: http://10.0.0.249:8082/domain/f0993ec5-e211-4fc3-88e7-a27cd3ba1cf8
2025-08-11 12:15:54,199 - DEBUG - Requesting: http://10.0.0.249:8082/project/47b549d3-59e9-4356-ab22-88e09539e5d4
2025-08-11 12:15:54,284 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bd34e568-a89f-44ce-95ff-1efb3f9daa2f
2025-08-11 12:15:54,293 - DEBUG - ==>Verifying data for policy with id: bb7e1b86-bbe0-4940-8d20-4230ce47b79b, fqn: ['default-domain', 'ctest-TestBasicPolicy-38451608', 'ctest-policy-allow-all-71159431']
2025-08-11 12:15:54,293 - INFO - VN ctest-vn-88273852 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 12:15:54,293 - DEBUG - Verifying the vn in opserver
2025-08-11 12:15:54,293 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38451608:ctest-vn-88273852 virtual network link through opserver 10.0.0.249
2025-08-11 12:15:54,293 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-11 12:15:54,579 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-11 12:15:54,626 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38451608:ctest-vn-88273852', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38451608:ctest-vn-88273852?flat'}
2025-08-11 12:15:54,626 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38451608:ctest-vn-88273852 is found in opserver
2025-08-11 12:15:54,640 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 12:15:54,645 - DEBUG - VRF ids for VN ctest-vn-88273852: {}
2025-08-11 12:15:54,645 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-11 12:15:54,650 - DEBUG - Requesting: http://10.0.0.249:8082/domain/f0993ec5-e211-4fc3-88e7-a27cd3ba1cf8
2025-08-11 12:15:54,661 - DEBUG - Requesting: http://10.0.0.249:8082/project/47b549d3-59e9-4356-ab22-88e09539e5d4
2025-08-11 12:15:54,730 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ca6e22ab-e427-4675-8544-44552aa83890
2025-08-11 12:15:54,741 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ca6e22ab-e427-4675-8544-44552aa83890
2025-08-11 12:15:54,749 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/dc929bfc-2484-4b82-a139-a7879496f145
2025-08-11 12:15:54,755 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/dc929bfc-2484-4b82-a139-a7879496f145
2025-08-11 12:15:54,761 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/dc560c2f-8b3e-4e02-be48-24f2758395c6
2025-08-11 12:15:54,767 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 12:15:54,767 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ca6e22ab-e427-4675-8544-44552aa83890
2025-08-11 12:15:54,775 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/dc929bfc-2484-4b82-a139-a7879496f145
2025-08-11 12:15:54,787 - INFO - Verified VN network id 12 for VN ca6e22ab-e427-4675-8544-44552aa83890
2025-08-11 12:15:54,787 - INFO - Verifications in API Server for VN ctest-vn-64210593 passed
2025-08-11 12:15:54,788 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ca6e22ab-e427-4675-8544-44552aa83890
2025-08-11 12:15:54,796 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/dc929bfc-2484-4b82-a139-a7879496f145
2025-08-11 12:15:54,801 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/dc929bfc-2484-4b82-a139-a7879496f145
2025-08-11 12:15:54,807 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/dc560c2f-8b3e-4e02-be48-24f2758395c6
2025-08-11 12:15:54,817 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38451608:ctest-vn-64210593', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38451608', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14586634364762146421', 'uuid-lslong': '9602875438039316624'}, 'enable': 'true', 'created': '2025-08-11T12:15:52', 'last-modified': '2025-08-11T12:15:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.295842'}
2025-08-11 12:15:54,823 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 12:15:54,823 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64210593 passed
2025-08-11 12:15:54,823 - DEBUG - ====Verifying policy data for ctest-vn-64210593 in API_Server ======
2025-08-11 12:15:54,823 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-11 12:15:54,828 - DEBUG - Requesting: http://10.0.0.249:8082/domain/f0993ec5-e211-4fc3-88e7-a27cd3ba1cf8
2025-08-11 12:15:54,838 - DEBUG - Requesting: http://10.0.0.249:8082/project/47b549d3-59e9-4356-ab22-88e09539e5d4
2025-08-11 12:15:54,911 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ca6e22ab-e427-4675-8544-44552aa83890
2025-08-11 12:15:54,920 - DEBUG - ==>Verifying data for policy with id: bb7e1b86-bbe0-4940-8d20-4230ce47b79b, fqn: ['default-domain', 'ctest-TestBasicPolicy-38451608', 'ctest-policy-allow-all-71159431']
2025-08-11 12:15:54,920 - INFO - VN ctest-vn-64210593 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 12:15:54,920 - DEBUG - Verifying the vn in opserver
2025-08-11 12:15:54,920 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38451608:ctest-vn-64210593 virtual network link through opserver 10.0.0.249
2025-08-11 12:15:54,920 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-11 12:15:54,929 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38451608:ctest-vn-64210593', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38451608:ctest-vn-64210593?flat'}
2025-08-11 12:15:54,929 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38451608:ctest-vn-64210593 is found in opserver
2025-08-11 12:15:54,938 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 12:15:54,943 - DEBUG - VRF ids for VN ctest-vn-64210593: {}
2025-08-11 12:15:54,990 - DEBUG - Services list from nova: [