2025-11-17 16:13:38,494 - INFO - Domain Default found not creating
2025-11-17 16:13:38,665 - INFO - Project ctest-TestBasicPolicy-88414855 not found, creating it
2025-11-17 16:13:39,137 - INFO - Created Project:ctest-TestBasicPolicy-88414855, ID : 399e0fc1-b1bf-4e1a-8373-4a5c957a469a
2025-11-17 16:13:40,790 - INFO - ================================================================================
2025-11-17 16:13:40,790 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-17 16:13:40,790 - 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-17 16:13:41,050 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2025-11-17 16:13:41,050 - INFO - Initial checks done. Running the testcase now
2025-11-17 16:13:41,050 - INFO -
2025-11-17 16:13:41,645 - DEBUG - Response for create_network : {'network': {'id': 'd576a529-e40e-45b6-b71c-e5bdbdf1af2c', 'name': 'ctest-vn-87782892', 'tenant_id': '399e0fc1b1bf4e1a83734a5c957a469a', 'project_id': '399e0fc1b1bf4e1a83734a5c957a469a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88414855', 'ctest-vn-87782892'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 16:13:41,869 - DEBUG - Response for create_subnet : {'subnet': {'id': '608b0d5a-ae42-42e4-a353-7d2c5fe4293c', 'name': '', 'tenant_id': '399e0fc1b1bf4e1a83734a5c957a469a', 'network_id': 'd576a529-e40e-45b6-b71c-e5bdbdf1af2c', 'ip_version': 4, 'cidr': '137.134.125.0/26', 'allocation_pools': [{'start': '137.134.125.2', 'end': '137.134.125.62'}], 'gateway_ip': '137.134.125.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.134.125.2', 'tags': [], 'project_id': '399e0fc1b1bf4e1a83734a5c957a469a'}}
2025-11-17 16:13:41,891 - INFO - Created VN ctest-vn-87782892
2025-11-17 16:13:41,944 - DEBUG - VN ctest-vn-87782892 UUID is d576a529-e40e-45b6-b71c-e5bdbdf1af2c
2025-11-17 16:13:42,234 - DEBUG - Response for create_network : {'network': {'id': 'e91143d6-bdf9-4dea-bc0c-46c361edc77e', 'name': 'ctest-vn-21505361', 'tenant_id': '399e0fc1b1bf4e1a83734a5c957a469a', 'project_id': '399e0fc1b1bf4e1a83734a5c957a469a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88414855', 'ctest-vn-21505361'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 16:13:42,387 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e87a8e6d-6ad2-416d-b30b-bb669e802647', 'name': '', 'tenant_id': '399e0fc1b1bf4e1a83734a5c957a469a', 'network_id': 'e91143d6-bdf9-4dea-bc0c-46c361edc77e', 'ip_version': 4, 'cidr': '121.209.90.192/26', 'allocation_pools': [{'start': '121.209.90.194', 'end': '121.209.90.254'}], 'gateway_ip': '121.209.90.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.209.90.194', 'tags': [], 'project_id': '399e0fc1b1bf4e1a83734a5c957a469a'}}
2025-11-17 16:13:42,405 - INFO - Created VN ctest-vn-21505361
2025-11-17 16:13:42,456 - DEBUG - VN ctest-vn-21505361 UUID is e91143d6-bdf9-4dea-bc0c-46c361edc77e
2025-11-17 16:13:42,611 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88414855:ctest-vn-87782892, 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-88414855:ctest-vn-21505361, 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-17 16:13:42,912 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd576a529-e40e-45b6-b71c-e5bdbdf1af2c', 'name': 'ctest-vn-87782892', 'tenant_id': '399e0fc1b1bf4e1a83734a5c957a469a', 'project_id': '399e0fc1b1bf4e1a83734a5c957a469a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['608b0d5a-ae42-42e4-a353-7d2c5fe4293c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88414855', 'ctest-vn-87782892'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88414855', 'ctest-policy-allow-all-40197275']], 'subnet_ipam': [{'subnet_cidr': '137.134.125.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 16:13:43,198 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e91143d6-bdf9-4dea-bc0c-46c361edc77e', 'name': 'ctest-vn-21505361', 'tenant_id': '399e0fc1b1bf4e1a83734a5c957a469a', 'project_id': '399e0fc1b1bf4e1a83734a5c957a469a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e87a8e6d-6ad2-416d-b30b-bb669e802647'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88414855', 'ctest-vn-21505361'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88414855', 'ctest-policy-allow-all-40197275']], 'subnet_ipam': [{'subnet_cidr': '121.209.90.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 16:13:43,344 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-17 16:13:43,687 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-17 16:13:43,718 - DEBUG - Requesting: http://10.0.0.141:8082/domain/191752d0-7efd-4a41-89be-cca21d8fe230
2025-11-17 16:13:43,731 - DEBUG - Requesting: http://10.0.0.141:8082/project/399e0fc1-b1bf-4e1a-8373-4a5c957a469a
2025-11-17 16:13:43,806 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d576a529-e40e-45b6-b71c-e5bdbdf1af2c
2025-11-17 16:13:43,817 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d576a529-e40e-45b6-b71c-e5bdbdf1af2c
2025-11-17 16:13:43,825 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c2136498-a565-45d0-bce2-919e8a7272c6
2025-11-17 16:13:43,833 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c2136498-a565-45d0-bce2-919e8a7272c6
2025-11-17 16:13:43,840 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/30d4a695-ff2a-46d6-a878-ebae773577fa
2025-11-17 16:13:43,846 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 16:13:43,846 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d576a529-e40e-45b6-b71c-e5bdbdf1af2c
2025-11-17 16:13:43,854 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c2136498-a565-45d0-bce2-919e8a7272c6
2025-11-17 16:13:43,868 - INFO - Verified VN network id 11 for VN d576a529-e40e-45b6-b71c-e5bdbdf1af2c
2025-11-17 16:13:43,868 - INFO - Verifications in API Server for VN ctest-vn-87782892 passed
2025-11-17 16:13:43,868 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d576a529-e40e-45b6-b71c-e5bdbdf1af2c
2025-11-17 16:13:43,876 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c2136498-a565-45d0-bce2-919e8a7272c6
2025-11-17 16:13:43,882 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c2136498-a565-45d0-bce2-919e8a7272c6
2025-11-17 16:13:43,888 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/30d4a695-ff2a-46d6-a878-ebae773577fa
2025-11-17 16:13:43,899 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88414855:ctest-vn-87782892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88414855', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15381663176668890550', 'uuid-lslong': '13194673611387023148'}, 'enable': 'true', 'created': '2025-11-17T16:13:41', 'last-modified': '2025-11-17T16:13:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011955'}
2025-11-17 16:13:43,906 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 16:13:43,906 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87782892 passed
2025-11-17 16:13:43,906 - DEBUG - ====Verifying policy data for ctest-vn-87782892 in API_Server ======
2025-11-17 16:13:43,906 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-17 16:13:43,911 - DEBUG - Requesting: http://10.0.0.141:8082/domain/191752d0-7efd-4a41-89be-cca21d8fe230
2025-11-17 16:13:43,923 - DEBUG - Requesting: http://10.0.0.141:8082/project/399e0fc1-b1bf-4e1a-8373-4a5c957a469a
2025-11-17 16:13:43,999 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d576a529-e40e-45b6-b71c-e5bdbdf1af2c
2025-11-17 16:13:44,010 - DEBUG - ==>Verifying data for policy with id: 91544c56-ad9b-4c5b-a39e-0f00e3b64ee5, fqn: ['default-domain', 'ctest-TestBasicPolicy-88414855', 'ctest-policy-allow-all-40197275']
2025-11-17 16:13:44,010 - INFO - VN ctest-vn-87782892 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 16:13:44,010 - DEBUG - Verifying the vn in opserver
2025-11-17 16:13:44,011 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88414855:ctest-vn-87782892 virtual network link through opserver 10.0.0.141
2025-11-17 16:13:44,011 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-17 16:13:44,351 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-17 16:13:44,422 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88414855:ctest-vn-87782892', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88414855:ctest-vn-87782892?flat'}
2025-11-17 16:13:44,422 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88414855:ctest-vn-87782892 is found in opserver
2025-11-17 16:13:44,435 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 16:13:44,440 - DEBUG - VRF ids for VN ctest-vn-87782892: {}
2025-11-17 16:13:44,440 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-17 16:13:44,446 - DEBUG - Requesting: http://10.0.0.141:8082/domain/191752d0-7efd-4a41-89be-cca21d8fe230
2025-11-17 16:13:44,459 - DEBUG - Requesting: http://10.0.0.141:8082/project/399e0fc1-b1bf-4e1a-8373-4a5c957a469a
2025-11-17 16:13:44,530 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e91143d6-bdf9-4dea-bc0c-46c361edc77e
2025-11-17 16:13:44,541 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e91143d6-bdf9-4dea-bc0c-46c361edc77e
2025-11-17 16:13:44,551 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b594a72e-46b7-4622-b1f6-8f0df1c7f235
2025-11-17 16:13:44,558 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b594a72e-46b7-4622-b1f6-8f0df1c7f235
2025-11-17 16:13:44,565 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c0abde5d-9512-4107-b077-1e3da843732b
2025-11-17 16:13:44,571 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 16:13:44,571 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e91143d6-bdf9-4dea-bc0c-46c361edc77e
2025-11-17 16:13:44,580 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b594a72e-46b7-4622-b1f6-8f0df1c7f235
2025-11-17 16:13:44,594 - INFO - Verified VN network id 12 for VN e91143d6-bdf9-4dea-bc0c-46c361edc77e
2025-11-17 16:13:44,594 - INFO - Verifications in API Server for VN ctest-vn-21505361 passed
2025-11-17 16:13:44,594 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e91143d6-bdf9-4dea-bc0c-46c361edc77e
2025-11-17 16:13:44,603 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b594a72e-46b7-4622-b1f6-8f0df1c7f235
2025-11-17 16:13:44,610 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b594a72e-46b7-4622-b1f6-8f0df1c7f235
2025-11-17 16:13:44,617 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c0abde5d-9512-4107-b077-1e3da843732b
2025-11-17 16:13:44,629 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88414855:ctest-vn-21505361', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88414855', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16794279075030584810', 'uuid-lslong': '13550283183826519934'}, 'enable': 'true', 'created': '2025-11-17T16:13:42', 'last-modified': '2025-11-17T16:13:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.504589'}
2025-11-17 16:13:44,635 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 16:13:44,635 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21505361 passed
2025-11-17 16:13:44,635 - DEBUG - ====Verifying policy data for ctest-vn-21505361 in API_Server ======
2025-11-17 16:13:44,635 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-17 16:13:44,641 - DEBUG - Requesting: http://10.0.0.141:8082/domain/191752d0-7efd-4a41-89be-cca21d8fe230
2025-11-17 16:13:44,651 - DEBUG - Requesting: http://10.0.0.141:8082/project/399e0fc1-b1bf-4e1a-8373-4a5c957a469a
2025-11-17 16:13:44,725 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e91143d6-bdf9-4dea-bc0c-46c361edc77e
2025-11-17 16:13:44,737 - DEBUG - ==>Verifying data for policy with id: 91544c56-ad9b-4c5b-a39e-0f00e3b64ee5, fqn: ['default-domain', 'ctest-TestBasicPolicy-88414855', 'ctest-policy-allow-all-40197275']
2025-11-17 16:13:44,737 - INFO - VN ctest-vn-21505361 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 16:13:44,737 - DEBUG - Verifying the vn in opserver
2025-11-17 16:13:44,737 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88414855:ctest-vn-21505361 virtual network link through opserver 10.0.0.141
2025-11-17 16:13:44,737 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-17 16:13:44,747 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88414855:ctest-vn-21505361', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88414855:ctest-vn-21505361?flat'}
2025-11-17 16:13:44,747 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88414855:ctest-vn-21505361 is found in opserver
2025-11-17 16:13:44,757 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 16:13:44,762 - DEBUG - VRF ids for VN ctest-vn-21505361: {}
2025-11-17 16:13:44,827 - DEBUG - Services list from nova: [