2025-09-13 17:10:24,504 - INFO - Domain Default found not creating
2025-09-13 17:10:24,675 - INFO - Project ctest-TestBasicPolicy-29837806 not found, creating it
2025-09-13 17:10:25,155 - INFO - Created Project:ctest-TestBasicPolicy-29837806, ID : 6bd8e5ee-20e0-4826-b7da-c582dd329a02
2025-09-13 17:10:26,642 - INFO - ================================================================================
2025-09-13 17:10:26,642 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-13 17:10:26,642 - 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-09-13 17:10:26,905 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-09-13 17:10:26,906 - INFO - Initial checks done. Running the testcase now
2025-09-13 17:10:26,906 - INFO -
2025-09-13 17:10:27,499 - DEBUG - Response for create_network : {'network': {'id': 'deb899f1-bea4-4bbc-bf86-a6a7f83af3b9', 'name': 'ctest-vn-12035645', 'tenant_id': '6bd8e5ee20e04826b7dac582dd329a02', 'project_id': '6bd8e5ee20e04826b7dac582dd329a02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-vn-12035645'], 'port_security_enabled': True, 'description': ''}}
2025-09-13 17:10:27,667 - DEBUG - Response for create_subnet : {'subnet': {'id': '2da016c2-d8d2-42be-b807-da35fc31ff84', 'name': '', 'tenant_id': '6bd8e5ee20e04826b7dac582dd329a02', 'network_id': 'deb899f1-bea4-4bbc-bf86-a6a7f83af3b9', 'ip_version': 4, 'cidr': '204.152.206.0/26', 'allocation_pools': [{'start': '204.152.206.2', 'end': '204.152.206.62'}], 'gateway_ip': '204.152.206.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.152.206.2', 'tags': [], 'project_id': '6bd8e5ee20e04826b7dac582dd329a02'}}
2025-09-13 17:10:27,688 - INFO - Created VN ctest-vn-12035645
2025-09-13 17:10:27,741 - DEBUG - VN ctest-vn-12035645 UUID is deb899f1-bea4-4bbc-bf86-a6a7f83af3b9
2025-09-13 17:10:28,058 - DEBUG - Response for create_network : {'network': {'id': 'f96372fd-c8aa-425a-a0f0-1c218249612c', 'name': 'ctest-vn-46177022', 'tenant_id': '6bd8e5ee20e04826b7dac582dd329a02', 'project_id': '6bd8e5ee20e04826b7dac582dd329a02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-vn-46177022'], 'port_security_enabled': True, 'description': ''}}
2025-09-13 17:10:28,233 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4acb9d2-57ae-480d-b053-3d94e0e57fdd', 'name': '', 'tenant_id': '6bd8e5ee20e04826b7dac582dd329a02', 'network_id': 'f96372fd-c8aa-425a-a0f0-1c218249612c', 'ip_version': 4, 'cidr': '95.206.201.0/26', 'allocation_pools': [{'start': '95.206.201.2', 'end': '95.206.201.62'}], 'gateway_ip': '95.206.201.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.206.201.2', 'tags': [], 'project_id': '6bd8e5ee20e04826b7dac582dd329a02'}}
2025-09-13 17:10:28,253 - INFO - Created VN ctest-vn-46177022
2025-09-13 17:10:28,305 - DEBUG - VN ctest-vn-46177022 UUID is f96372fd-c8aa-425a-a0f0-1c218249612c
2025-09-13 17:10:28,433 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645, 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-29837806:ctest-vn-46177022, 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-09-13 17:10:28,729 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'deb899f1-bea4-4bbc-bf86-a6a7f83af3b9', 'name': 'ctest-vn-12035645', 'tenant_id': '6bd8e5ee20e04826b7dac582dd329a02', 'project_id': '6bd8e5ee20e04826b7dac582dd329a02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2da016c2-d8d2-42be-b807-da35fc31ff84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-vn-12035645'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-policy-allow-all-77696674']], 'subnet_ipam': [{'subnet_cidr': '204.152.206.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-13 17:10:28,970 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f96372fd-c8aa-425a-a0f0-1c218249612c', 'name': 'ctest-vn-46177022', 'tenant_id': '6bd8e5ee20e04826b7dac582dd329a02', 'project_id': '6bd8e5ee20e04826b7dac582dd329a02', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a4acb9d2-57ae-480d-b053-3d94e0e57fdd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-vn-46177022'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-policy-allow-all-77696674']], 'subnet_ipam': [{'subnet_cidr': '95.206.201.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-13 17:10:29,121 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 17:10:29,450 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 17:10:29,482 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df
2025-09-13 17:10:29,495 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bd8e5ee-20e0-4826-b7da-c582dd329a02
2025-09-13 17:10:29,570 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/deb899f1-bea4-4bbc-bf86-a6a7f83af3b9
2025-09-13 17:10:29,580 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/deb899f1-bea4-4bbc-bf86-a6a7f83af3b9
2025-09-13 17:10:29,589 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c192b818-d39d-4398-a9ae-523e2cc04ad7
2025-09-13 17:10:29,596 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c192b818-d39d-4398-a9ae-523e2cc04ad7
2025-09-13 17:10:29,602 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/246813e4-3fca-4582-8a42-a4904d89fc0e
2025-09-13 17:10:29,611 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-13 17:10:29,611 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/deb899f1-bea4-4bbc-bf86-a6a7f83af3b9
2025-09-13 17:10:29,623 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c192b818-d39d-4398-a9ae-523e2cc04ad7
2025-09-13 17:10:29,639 - INFO - Verified VN network id 11 for VN deb899f1-bea4-4bbc-bf86-a6a7f83af3b9
2025-09-13 17:10:29,639 - INFO - Verifications in API Server for VN ctest-vn-12035645 passed
2025-09-13 17:10:29,639 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/deb899f1-bea4-4bbc-bf86-a6a7f83af3b9
2025-09-13 17:10:29,649 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c192b818-d39d-4398-a9ae-523e2cc04ad7
2025-09-13 17:10:29,656 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c192b818-d39d-4398-a9ae-523e2cc04ad7
2025-09-13 17:10:29,663 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/246813e4-3fca-4582-8a42-a4904d89fc0e
2025-09-13 17:10:29,677 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29837806', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16048746535699368892', 'uuid-lslong': '13800901348477825977'}, 'enable': 'true', 'created': '2025-09-13T17:10:27', 'last-modified': '2025-09-13T17:10:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968609'}
2025-09-13 17:10:29,684 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-13 17:10:29,684 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12035645 passed
2025-09-13 17:10:29,684 - DEBUG - ====Verifying policy data for ctest-vn-12035645 in API_Server ======
2025-09-13 17:10:29,684 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 17:10:29,690 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df
2025-09-13 17:10:29,702 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bd8e5ee-20e0-4826-b7da-c582dd329a02
2025-09-13 17:10:29,775 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/deb899f1-bea4-4bbc-bf86-a6a7f83af3b9
2025-09-13 17:10:29,789 - DEBUG - ==>Verifying data for policy with id: 3abfc0aa-23d6-4db2-b571-a8bbf297b4ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-policy-allow-all-77696674']
2025-09-13 17:10:29,789 - INFO - VN ctest-vn-12035645 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-13 17:10:29,789 - DEBUG - Verifying the vn in opserver
2025-09-13 17:10:29,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645 virtual network link through opserver 10.0.0.22
2025-09-13 17:10:29,789 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-13 17:10:30,119 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-13 17:10:30,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645?flat'}
2025-09-13 17:10:30,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-12035645 is found in opserver
2025-09-13 17:10:30,195 - DEBUG - Do not have enough data to verify VN in agent
2025-09-13 17:10:30,199 - DEBUG - VRF ids for VN ctest-vn-12035645: {}
2025-09-13 17:10:30,199 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 17:10:30,204 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df
2025-09-13 17:10:30,215 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bd8e5ee-20e0-4826-b7da-c582dd329a02
2025-09-13 17:10:30,286 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f96372fd-c8aa-425a-a0f0-1c218249612c
2025-09-13 17:10:30,297 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f96372fd-c8aa-425a-a0f0-1c218249612c
2025-09-13 17:10:30,306 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/26defab2-0127-47ae-8668-0e3350aa2c84
2025-09-13 17:10:30,312 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/26defab2-0127-47ae-8668-0e3350aa2c84
2025-09-13 17:10:30,318 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7d1a803e-625a-4c60-b5ab-c4f55ee3fcc1
2025-09-13 17:10:30,325 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-13 17:10:30,325 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f96372fd-c8aa-425a-a0f0-1c218249612c
2025-09-13 17:10:30,333 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/26defab2-0127-47ae-8668-0e3350aa2c84
2025-09-13 17:10:30,346 - INFO - Verified VN network id 12 for VN f96372fd-c8aa-425a-a0f0-1c218249612c
2025-09-13 17:10:30,346 - INFO - Verifications in API Server for VN ctest-vn-46177022 passed
2025-09-13 17:10:30,346 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f96372fd-c8aa-425a-a0f0-1c218249612c
2025-09-13 17:10:30,354 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/26defab2-0127-47ae-8668-0e3350aa2c84
2025-09-13 17:10:30,361 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/26defab2-0127-47ae-8668-0e3350aa2c84
2025-09-13 17:10:30,369 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7d1a803e-625a-4c60-b5ab-c4f55ee3fcc1
2025-09-13 17:10:30,379 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-46177022', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29837806', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17970333372457304666', 'uuid-lslong': '11596799970724372780'}, 'enable': 'true', 'created': '2025-09-13T17:10:28', 'last-modified': '2025-09-13T17:10:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.433276'}
2025-09-13 17:10:30,385 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-13 17:10:30,385 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46177022 passed
2025-09-13 17:10:30,385 - DEBUG - ====Verifying policy data for ctest-vn-46177022 in API_Server ======
2025-09-13 17:10:30,385 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 17:10:30,392 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df
2025-09-13 17:10:30,403 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bd8e5ee-20e0-4826-b7da-c582dd329a02
2025-09-13 17:10:30,473 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f96372fd-c8aa-425a-a0f0-1c218249612c
2025-09-13 17:10:30,481 - DEBUG - ==>Verifying data for policy with id: 3abfc0aa-23d6-4db2-b571-a8bbf297b4ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-29837806', 'ctest-policy-allow-all-77696674']
2025-09-13 17:10:30,481 - INFO - VN ctest-vn-46177022 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-13 17:10:30,481 - DEBUG - Verifying the vn in opserver
2025-09-13 17:10:30,481 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-46177022 virtual network link through opserver 10.0.0.22
2025-09-13 17:10:30,481 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-13 17:10:30,490 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-46177022', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-46177022?flat'}
2025-09-13 17:10:30,490 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29837806:ctest-vn-46177022 is found in opserver
2025-09-13 17:10:30,500 - DEBUG - Do not have enough data to verify VN in agent
2025-09-13 17:10:30,505 - DEBUG - VRF ids for VN ctest-vn-46177022: {}
2025-09-13 17:10:30,562 - DEBUG - Services list from nova: [