2025-06-11 06:13:37,717 - INFO - Domain Default found not creating
2025-06-11 06:13:37,862 - INFO - Project ctest-TestBasicPolicy-52909663 not found, creating it
2025-06-11 06:13:38,344 - INFO - Created Project:ctest-TestBasicPolicy-52909663, ID : 8b44922f-5a57-440c-a796-d3d98a53ec37
2025-06-11 06:13:39,940 - INFO - ================================================================================
2025-06-11 06:13:39,940 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-11 06:13:39,940 - 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-11 06:13:40,198 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.254': '0'}} with
2025-06-11 06:13:40,198 - INFO - Initial checks done. Running the testcase now
2025-06-11 06:13:40,199 - INFO -
2025-06-11 06:13:40,830 - DEBUG - Response for create_network : {'network': {'id': '4cafdffb-495f-47c3-b1c2-779c4142d0cf', 'name': 'ctest-vn-50121573', 'tenant_id': '8b44922f5a57440ca796d3d98a53ec37', 'project_id': '8b44922f5a57440ca796d3d98a53ec37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52909663', 'ctest-vn-50121573'], 'port_security_enabled': True, 'description': ''}}
2025-06-11 06:13:41,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '8051ec98-a68e-45ee-b594-7c3f297f5141', 'name': '', 'tenant_id': '8b44922f5a57440ca796d3d98a53ec37', 'network_id': '4cafdffb-495f-47c3-b1c2-779c4142d0cf', 'ip_version': 4, 'cidr': '217.97.18.128/26', 'allocation_pools': [{'start': '217.97.18.130', 'end': '217.97.18.190'}], 'gateway_ip': '217.97.18.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.97.18.130', 'tags': [], 'project_id': '8b44922f5a57440ca796d3d98a53ec37'}}
2025-06-11 06:13:41,080 - INFO - Created VN ctest-vn-50121573
2025-06-11 06:13:41,135 - DEBUG - VN ctest-vn-50121573 UUID is 4cafdffb-495f-47c3-b1c2-779c4142d0cf
2025-06-11 06:13:41,446 - DEBUG - Response for create_network : {'network': {'id': 'ab2707e4-5a68-46fd-a2c9-8aa376c68725', 'name': 'ctest-vn-03007208', 'tenant_id': '8b44922f5a57440ca796d3d98a53ec37', 'project_id': '8b44922f5a57440ca796d3d98a53ec37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52909663', 'ctest-vn-03007208'], 'port_security_enabled': True, 'description': ''}}
2025-06-11 06:13:41,683 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea8c7d8f-e357-445f-aa2b-b5e4c2dd4e3c', 'name': '', 'tenant_id': '8b44922f5a57440ca796d3d98a53ec37', 'network_id': 'ab2707e4-5a68-46fd-a2c9-8aa376c68725', 'ip_version': 4, 'cidr': '44.241.82.0/26', 'allocation_pools': [{'start': '44.241.82.2', 'end': '44.241.82.62'}], 'gateway_ip': '44.241.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.241.82.2', 'tags': [], 'project_id': '8b44922f5a57440ca796d3d98a53ec37'}}
2025-06-11 06:13:41,701 - INFO - Created VN ctest-vn-03007208
2025-06-11 06:13:41,755 - DEBUG - VN ctest-vn-03007208 UUID is ab2707e4-5a68-46fd-a2c9-8aa376c68725
2025-06-11 06:13:41,911 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52909663:ctest-vn-50121573, 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-52909663:ctest-vn-03007208, 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-11 06:13:42,216 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4cafdffb-495f-47c3-b1c2-779c4142d0cf', 'name': 'ctest-vn-50121573', 'tenant_id': '8b44922f5a57440ca796d3d98a53ec37', 'project_id': '8b44922f5a57440ca796d3d98a53ec37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8051ec98-a68e-45ee-b594-7c3f297f5141'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52909663', 'ctest-vn-50121573'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52909663', 'ctest-policy-allow-all-14143320']], 'subnet_ipam': [{'subnet_cidr': '217.97.18.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-11 06:13:42,459 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab2707e4-5a68-46fd-a2c9-8aa376c68725', 'name': 'ctest-vn-03007208', 'tenant_id': '8b44922f5a57440ca796d3d98a53ec37', 'project_id': '8b44922f5a57440ca796d3d98a53ec37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea8c7d8f-e357-445f-aa2b-b5e4c2dd4e3c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52909663', 'ctest-vn-03007208'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52909663', 'ctest-policy-allow-all-14143320']], 'subnet_ipam': [{'subnet_cidr': '44.241.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-11 06:13:42,631 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-11 06:13:42,980 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-11 06:13:43,012 - DEBUG - Requesting: http://10.0.0.57:8082/domain/974cc0ff-cdf9-4546-ac02-119a95e2ec94
2025-06-11 06:13:43,026 - DEBUG - Requesting: http://10.0.0.57:8082/project/8b44922f-5a57-440c-a796-d3d98a53ec37
2025-06-11 06:13:43,100 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4cafdffb-495f-47c3-b1c2-779c4142d0cf
2025-06-11 06:13:43,112 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4cafdffb-495f-47c3-b1c2-779c4142d0cf
2025-06-11 06:13:43,124 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/50104d0a-d2ba-4376-8009-5eaeaeb369ae
2025-06-11 06:13:43,133 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/50104d0a-d2ba-4376-8009-5eaeaeb369ae
2025-06-11 06:13:43,140 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/cff58f73-23c0-42fa-8710-a53710a064ec
2025-06-11 06:13:43,147 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-11 06:13:43,147 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4cafdffb-495f-47c3-b1c2-779c4142d0cf
2025-06-11 06:13:43,157 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/50104d0a-d2ba-4376-8009-5eaeaeb369ae
2025-06-11 06:13:43,172 - INFO - Verified VN network id 8 for VN 4cafdffb-495f-47c3-b1c2-779c4142d0cf
2025-06-11 06:13:43,172 - INFO - Verifications in API Server for VN ctest-vn-50121573 passed
2025-06-11 06:13:43,172 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4cafdffb-495f-47c3-b1c2-779c4142d0cf
2025-06-11 06:13:43,184 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/50104d0a-d2ba-4376-8009-5eaeaeb369ae
2025-06-11 06:13:43,191 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/50104d0a-d2ba-4376-8009-5eaeaeb369ae
2025-06-11 06:13:43,199 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/cff58f73-23c0-42fa-8710-a53710a064ec
2025-06-11 06:13:43,211 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52909663:ctest-vn-50121573', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52909663', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5525881538167654339', 'uuid-lslong': '12808931803188613327'}, 'enable': 'true', 'created': '2025-06-11T06:13:40', 'last-modified': '2025-06-11T06:13:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.024632'}
2025-06-11 06:13:43,218 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-11 06:13:43,218 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50121573 passed
2025-06-11 06:13:43,218 - DEBUG - ====Verifying policy data for ctest-vn-50121573 in API_Server ======
2025-06-11 06:13:43,218 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-11 06:13:43,224 - DEBUG - Requesting: http://10.0.0.57:8082/domain/974cc0ff-cdf9-4546-ac02-119a95e2ec94
2025-06-11 06:13:43,237 - DEBUG - Requesting: http://10.0.0.57:8082/project/8b44922f-5a57-440c-a796-d3d98a53ec37
2025-06-11 06:13:43,317 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4cafdffb-495f-47c3-b1c2-779c4142d0cf
2025-06-11 06:13:43,332 - DEBUG - ==>Verifying data for policy with id: 6ad5eea5-b678-456d-a5bd-6538cad078b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-52909663', 'ctest-policy-allow-all-14143320']
2025-06-11 06:13:43,332 - INFO - VN ctest-vn-50121573 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-11 06:13:43,332 - DEBUG - Verifying the vn in opserver
2025-06-11 06:13:43,332 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52909663:ctest-vn-50121573 virtual network link through opserver 10.0.0.57
2025-06-11 06:13:43,333 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-11 06:13:43,664 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-11 06:13:43,735 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52909663:ctest-vn-50121573', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52909663:ctest-vn-50121573?flat'}
2025-06-11 06:13:43,735 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52909663:ctest-vn-50121573 is found in opserver
2025-06-11 06:13:43,749 - DEBUG - Do not have enough data to verify VN in agent
2025-06-11 06:13:43,755 - DEBUG - VRF ids for VN ctest-vn-50121573: {}
2025-06-11 06:13:43,755 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-11 06:13:43,762 - DEBUG - Requesting: http://10.0.0.57:8082/domain/974cc0ff-cdf9-4546-ac02-119a95e2ec94
2025-06-11 06:13:43,775 - DEBUG - Requesting: http://10.0.0.57:8082/project/8b44922f-5a57-440c-a796-d3d98a53ec37
2025-06-11 06:13:43,845 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/ab2707e4-5a68-46fd-a2c9-8aa376c68725
2025-06-11 06:13:43,858 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/ab2707e4-5a68-46fd-a2c9-8aa376c68725
2025-06-11 06:13:43,868 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3e5f8084-9d85-4822-9825-1444004d27c2
2025-06-11 06:13:43,876 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3e5f8084-9d85-4822-9825-1444004d27c2
2025-06-11 06:13:43,883 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/b654eca1-ba7a-4c95-8457-a69b33af5d5e
2025-06-11 06:13:43,889 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-11 06:13:43,889 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/ab2707e4-5a68-46fd-a2c9-8aa376c68725
2025-06-11 06:13:43,899 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3e5f8084-9d85-4822-9825-1444004d27c2
2025-06-11 06:13:43,913 - INFO - Verified VN network id 9 for VN ab2707e4-5a68-46fd-a2c9-8aa376c68725
2025-06-11 06:13:43,914 - INFO - Verifications in API Server for VN ctest-vn-03007208 passed
2025-06-11 06:13:43,914 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/ab2707e4-5a68-46fd-a2c9-8aa376c68725
2025-06-11 06:13:43,924 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3e5f8084-9d85-4822-9825-1444004d27c2
2025-06-11 06:13:43,930 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/3e5f8084-9d85-4822-9825-1444004d27c2
2025-06-11 06:13:43,938 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/b654eca1-ba7a-4c95-8457-a69b33af5d5e
2025-06-11 06:13:43,951 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52909663:ctest-vn-03007208', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52909663', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12332834781928113917', 'uuid-lslong': '11730059139140192037'}, 'enable': 'true', 'created': '2025-06-11T06:13:41', 'last-modified': '2025-06-11T06:13:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.516586'}
2025-06-11 06:13:43,957 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-11 06:13:43,957 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03007208 passed
2025-06-11 06:13:43,957 - DEBUG - ====Verifying policy data for ctest-vn-03007208 in API_Server ======
2025-06-11 06:13:43,958 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-11 06:13:43,963 - DEBUG - Requesting: http://10.0.0.57:8082/domain/974cc0ff-cdf9-4546-ac02-119a95e2ec94
2025-06-11 06:13:43,977 - DEBUG - Requesting: http://10.0.0.57:8082/project/8b44922f-5a57-440c-a796-d3d98a53ec37
2025-06-11 06:13:44,051 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/ab2707e4-5a68-46fd-a2c9-8aa376c68725
2025-06-11 06:13:44,062 - DEBUG - ==>Verifying data for policy with id: 6ad5eea5-b678-456d-a5bd-6538cad078b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-52909663', 'ctest-policy-allow-all-14143320']
2025-06-11 06:13:44,063 - INFO - VN ctest-vn-03007208 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-11 06:13:44,063 - DEBUG - Verifying the vn in opserver
2025-06-11 06:13:44,063 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52909663:ctest-vn-03007208 virtual network link through opserver 10.0.0.57
2025-06-11 06:13:44,063 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-11 06:13:44,075 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52909663:ctest-vn-03007208', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52909663:ctest-vn-03007208?flat'}
2025-06-11 06:13:44,075 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52909663:ctest-vn-03007208 is found in opserver
2025-06-11 06:13:44,086 - DEBUG - Do not have enough data to verify VN in agent
2025-06-11 06:13:44,092 - DEBUG - VRF ids for VN ctest-vn-03007208: {}
2025-06-11 06:13:44,153 - DEBUG - Services list from nova: [