2025-11-15 10:30:36,731 - INFO - Domain Default found not creating
2025-11-15 10:30:37,066 - INFO - Project ctest-TestBasicPolicy-58412296 not found, creating it
2025-11-15 10:30:37,701 - INFO - Created Project:ctest-TestBasicPolicy-58412296, ID : 33a70978-3450-40f4-97bd-1a835ed940ba
2025-11-15 10:30:40,093 - INFO - ================================================================================
2025-11-15 10:30:40,093 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-15 10:30:40,094 - 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-11-15 10:30:40,399 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-15 10:30:40,399 - INFO - Initial checks done. Running the testcase now
2025-11-15 10:30:40,400 - INFO -
2025-11-15 10:30:41,279 - DEBUG - Response for create_network : {'network': {'id': 'fc30940f-49af-40ea-945f-b27d70ced862', 'name': 'ctest-vn-91034824', 'tenant_id': '33a70978345040f497bd1a835ed940ba', 'project_id': '33a70978345040f497bd1a835ed940ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58412296', 'ctest-vn-91034824'], 'port_security_enabled': True, 'description': ''}}
2025-11-15 10:30:41,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '13ac13ff-9ff3-4a28-bcc0-e8ba255843b0', 'name': '', 'tenant_id': '33a70978345040f497bd1a835ed940ba', 'network_id': 'fc30940f-49af-40ea-945f-b27d70ced862', 'ip_version': 4, 'cidr': '52.3.201.64/26', 'allocation_pools': [{'start': '52.3.201.66', 'end': '52.3.201.126'}], 'gateway_ip': '52.3.201.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.3.201.66', 'tags': [], 'project_id': '33a70978345040f497bd1a835ed940ba'}}
2025-11-15 10:30:41,480 - INFO - Created VN ctest-vn-91034824
2025-11-15 10:30:41,541 - DEBUG - VN ctest-vn-91034824 UUID is fc30940f-49af-40ea-945f-b27d70ced862
2025-11-15 10:30:42,000 - DEBUG - Response for create_network : {'network': {'id': 'cf9ce570-8553-4af7-a4a9-d0c50c5d68d7', 'name': 'ctest-vn-00818031', 'tenant_id': '33a70978345040f497bd1a835ed940ba', 'project_id': '33a70978345040f497bd1a835ed940ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58412296', 'ctest-vn-00818031'], 'port_security_enabled': True, 'description': ''}}
2025-11-15 10:30:42,195 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd89b710a-164f-4103-a660-0acf0f354358', 'name': '', 'tenant_id': '33a70978345040f497bd1a835ed940ba', 'network_id': 'cf9ce570-8553-4af7-a4a9-d0c50c5d68d7', 'ip_version': 4, 'cidr': '202.119.244.0/26', 'allocation_pools': [{'start': '202.119.244.2', 'end': '202.119.244.62'}], 'gateway_ip': '202.119.244.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.119.244.2', 'tags': [], 'project_id': '33a70978345040f497bd1a835ed940ba'}}
2025-11-15 10:30:42,219 - INFO - Created VN ctest-vn-00818031
2025-11-15 10:30:42,274 - DEBUG - VN ctest-vn-00818031 UUID is cf9ce570-8553-4af7-a4a9-d0c50c5d68d7
2025-11-15 10:30:42,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58412296:ctest-vn-91034824, 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-58412296:ctest-vn-00818031, 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-11-15 10:30:42,809 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc30940f-49af-40ea-945f-b27d70ced862', 'name': 'ctest-vn-91034824', 'tenant_id': '33a70978345040f497bd1a835ed940ba', 'project_id': '33a70978345040f497bd1a835ed940ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['13ac13ff-9ff3-4a28-bcc0-e8ba255843b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58412296', 'ctest-vn-91034824'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58412296', 'ctest-policy-allow-all-12151427']], 'subnet_ipam': [{'subnet_cidr': '52.3.201.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-15 10:30:43,078 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf9ce570-8553-4af7-a4a9-d0c50c5d68d7', 'name': 'ctest-vn-00818031', 'tenant_id': '33a70978345040f497bd1a835ed940ba', 'project_id': '33a70978345040f497bd1a835ed940ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d89b710a-164f-4103-a660-0acf0f354358'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58412296', 'ctest-vn-00818031'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58412296', 'ctest-policy-allow-all-12151427']], 'subnet_ipam': [{'subnet_cidr': '202.119.244.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-15 10:30:43,226 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-15 10:30:43,556 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-15 10:30:43,603 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1b4e8b25-59df-4c37-be71-c1664cee9893
2025-11-15 10:30:43,630 - DEBUG - Requesting: http://10.0.0.50:8082/project/33a70978-3450-40f4-97bd-1a835ed940ba
2025-11-15 10:30:43,738 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fc30940f-49af-40ea-945f-b27d70ced862
2025-11-15 10:30:43,765 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fc30940f-49af-40ea-945f-b27d70ced862
2025-11-15 10:30:43,793 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f07d15ce-b61b-4df9-b6e5-0ac283c1ccca
2025-11-15 10:30:43,808 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f07d15ce-b61b-4df9-b6e5-0ac283c1ccca
2025-11-15 10:30:43,827 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b1136a23-0e95-4018-a76b-414cd2efd64b
2025-11-15 10:30:43,841 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-15 10:30:43,841 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fc30940f-49af-40ea-945f-b27d70ced862
2025-11-15 10:30:43,861 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f07d15ce-b61b-4df9-b6e5-0ac283c1ccca
2025-11-15 10:30:43,887 - INFO - Verified VN network id 11 for VN fc30940f-49af-40ea-945f-b27d70ced862
2025-11-15 10:30:43,887 - INFO - Verifications in API Server for VN ctest-vn-91034824 passed
2025-11-15 10:30:43,888 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fc30940f-49af-40ea-945f-b27d70ced862
2025-11-15 10:30:43,903 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f07d15ce-b61b-4df9-b6e5-0ac283c1ccca
2025-11-15 10:30:43,914 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f07d15ce-b61b-4df9-b6e5-0ac283c1ccca
2025-11-15 10:30:43,925 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b1136a23-0e95-4018-a76b-414cd2efd64b
2025-11-15 10:30:43,951 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58412296:ctest-vn-91034824', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58412296', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18172187289821593834', 'uuid-lslong': '10691460292234106978'}, 'enable': 'true', 'created': '2025-11-15T10:30:41', 'last-modified': '2025-11-15T10:30:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.169081'}
2025-11-15 10:30:43,966 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-15 10:30:43,966 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91034824 passed
2025-11-15 10:30:43,966 - DEBUG - ====Verifying policy data for ctest-vn-91034824 in API_Server ======
2025-11-15 10:30:43,967 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-15 10:30:43,977 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1b4e8b25-59df-4c37-be71-c1664cee9893
2025-11-15 10:30:44,004 - DEBUG - Requesting: http://10.0.0.50:8082/project/33a70978-3450-40f4-97bd-1a835ed940ba
2025-11-15 10:30:44,088 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fc30940f-49af-40ea-945f-b27d70ced862
2025-11-15 10:30:44,114 - DEBUG - ==>Verifying data for policy with id: 7e3d4dd5-b533-438b-94e7-1f20b812bf2c, fqn: ['default-domain', 'ctest-TestBasicPolicy-58412296', 'ctest-policy-allow-all-12151427']
2025-11-15 10:30:44,114 - INFO - VN ctest-vn-91034824 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-15 10:30:44,114 - DEBUG - Verifying the vn in opserver
2025-11-15 10:30:44,115 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58412296:ctest-vn-91034824 virtual network link through opserver 10.0.0.50
2025-11-15 10:30:44,115 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-15 10:30:44,429 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-15 10:30:44,514 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58412296:ctest-vn-91034824', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58412296:ctest-vn-91034824?flat'}
2025-11-15 10:30:44,514 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58412296:ctest-vn-91034824 is found in opserver
2025-11-15 10:30:44,534 - DEBUG - Do not have enough data to verify VN in agent
2025-11-15 10:30:44,544 - DEBUG - VRF ids for VN ctest-vn-91034824: {}
2025-11-15 10:30:44,545 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-15 10:30:44,552 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1b4e8b25-59df-4c37-be71-c1664cee9893
2025-11-15 10:30:44,566 - DEBUG - Requesting: http://10.0.0.50:8082/project/33a70978-3450-40f4-97bd-1a835ed940ba
2025-11-15 10:30:44,666 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cf9ce570-8553-4af7-a4a9-d0c50c5d68d7
2025-11-15 10:30:44,689 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cf9ce570-8553-4af7-a4a9-d0c50c5d68d7
2025-11-15 10:30:44,711 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6ca7efb3-80a9-4cd3-8f59-f4c0bd339d2f
2025-11-15 10:30:44,726 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6ca7efb3-80a9-4cd3-8f59-f4c0bd339d2f
2025-11-15 10:30:44,742 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/31829e71-2032-4ada-afc5-15a373fc6d40
2025-11-15 10:30:44,760 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-15 10:30:44,760 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cf9ce570-8553-4af7-a4a9-d0c50c5d68d7
2025-11-15 10:30:44,784 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6ca7efb3-80a9-4cd3-8f59-f4c0bd339d2f
2025-11-15 10:30:44,815 - INFO - Verified VN network id 12 for VN cf9ce570-8553-4af7-a4a9-d0c50c5d68d7
2025-11-15 10:30:44,815 - INFO - Verifications in API Server for VN ctest-vn-00818031 passed
2025-11-15 10:30:44,815 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cf9ce570-8553-4af7-a4a9-d0c50c5d68d7
2025-11-15 10:30:44,834 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6ca7efb3-80a9-4cd3-8f59-f4c0bd339d2f
2025-11-15 10:30:44,846 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6ca7efb3-80a9-4cd3-8f59-f4c0bd339d2f
2025-11-15 10:30:44,862 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/31829e71-2032-4ada-afc5-15a373fc6d40
2025-11-15 10:30:44,895 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58412296:ctest-vn-00818031', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58412296', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14960084333653871351', 'uuid-lslong': '11865244238018865367'}, 'enable': 'true', 'created': '2025-11-15T10:30:41', 'last-modified': '2025-11-15T10:30:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.845874'}
2025-11-15 10:30:44,908 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-15 10:30:44,908 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00818031 passed
2025-11-15 10:30:44,909 - DEBUG - ====Verifying policy data for ctest-vn-00818031 in API_Server ======
2025-11-15 10:30:44,909 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-15 10:30:44,924 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1b4e8b25-59df-4c37-be71-c1664cee9893
2025-11-15 10:30:44,949 - DEBUG - Requesting: http://10.0.0.50:8082/project/33a70978-3450-40f4-97bd-1a835ed940ba
2025-11-15 10:30:45,039 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/cf9ce570-8553-4af7-a4a9-d0c50c5d68d7
2025-11-15 10:30:45,053 - DEBUG - ==>Verifying data for policy with id: 7e3d4dd5-b533-438b-94e7-1f20b812bf2c, fqn: ['default-domain', 'ctest-TestBasicPolicy-58412296', 'ctest-policy-allow-all-12151427']
2025-11-15 10:30:45,053 - INFO - VN ctest-vn-00818031 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-15 10:30:45,053 - DEBUG - Verifying the vn in opserver
2025-11-15 10:30:45,053 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58412296:ctest-vn-00818031 virtual network link through opserver 10.0.0.50
2025-11-15 10:30:45,053 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-15 10:30:45,065 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58412296:ctest-vn-00818031', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58412296:ctest-vn-00818031?flat'}
2025-11-15 10:30:45,065 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58412296:ctest-vn-00818031 is found in opserver
2025-11-15 10:30:45,080 - DEBUG - Do not have enough data to verify VN in agent
2025-11-15 10:30:45,087 - DEBUG - VRF ids for VN ctest-vn-00818031: {}
2025-11-15 10:30:45,163 - DEBUG - Services list from nova: [