2026-09-23 16:16:24,102 - INFO - Domain Default found not creating
2026-09-23 16:16:24,312 - INFO - Project ctest-TestBasicPolicy-69009925 not found, creating it
2026-09-23 16:16:24,883 - INFO - Created Project:ctest-TestBasicPolicy-69009925, ID : a9d4de74-c342-4a32-9a82-13cdcba5318a
2026-09-23 16:16:26,913 - INFO - ================================================================================
2026-09-23 16:16:26,913 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-23 16:16:26,913 - 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
2026-09-23 16:16:27,198 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with
2026-09-23 16:16:27,198 - INFO - Initial checks done. Running the testcase now
2026-09-23 16:16:27,198 - INFO -
2026-09-23 16:16:27,962 - DEBUG - Response for create_network : {'network': {'id': 'ce0f3e73-9cb0-4b59-9aea-8075fbb7cca8', 'name': 'ctest-vn-86820887', 'tenant_id': 'a9d4de74c3424a329a8213cdcba5318a', 'project_id': 'a9d4de74c3424a329a8213cdcba5318a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69009925', 'ctest-vn-86820887'], 'port_security_enabled': True, 'description': ''}}
2026-09-23 16:16:28,168 - DEBUG - Response for create_subnet : {'subnet': {'id': '39e629ca-472d-474c-9d09-a4274a1003b5', 'name': '', 'tenant_id': 'a9d4de74c3424a329a8213cdcba5318a', 'network_id': 'ce0f3e73-9cb0-4b59-9aea-8075fbb7cca8', 'ip_version': 4, 'cidr': '62.105.160.64/26', 'allocation_pools': [{'start': '62.105.160.66', 'end': '62.105.160.126'}], 'gateway_ip': '62.105.160.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.105.160.66', 'tags': [], 'project_id': 'a9d4de74c3424a329a8213cdcba5318a'}}
2026-09-23 16:16:28,189 - INFO - Created VN ctest-vn-86820887
2026-09-23 16:16:28,246 - DEBUG - VN ctest-vn-86820887 UUID is ce0f3e73-9cb0-4b59-9aea-8075fbb7cca8
2026-09-23 16:16:28,615 - DEBUG - Response for create_network : {'network': {'id': '56efc738-3a63-4da1-8402-c78cd7709c29', 'name': 'ctest-vn-03892492', 'tenant_id': 'a9d4de74c3424a329a8213cdcba5318a', 'project_id': 'a9d4de74c3424a329a8213cdcba5318a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69009925', 'ctest-vn-03892492'], 'port_security_enabled': True, 'description': ''}}
2026-09-23 16:16:28,844 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f1354e2-ef0a-45e8-a4de-8a0cbcec5b1a', 'name': '', 'tenant_id': 'a9d4de74c3424a329a8213cdcba5318a', 'network_id': '56efc738-3a63-4da1-8402-c78cd7709c29', 'ip_version': 4, 'cidr': '96.229.12.128/26', 'allocation_pools': [{'start': '96.229.12.130', 'end': '96.229.12.190'}], 'gateway_ip': '96.229.12.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.229.12.130', 'tags': [], 'project_id': 'a9d4de74c3424a329a8213cdcba5318a'}}
2026-09-23 16:16:28,870 - INFO - Created VN ctest-vn-03892492
2026-09-23 16:16:28,926 - DEBUG - VN ctest-vn-03892492 UUID is 56efc738-3a63-4da1-8402-c78cd7709c29
2026-09-23 16:16:29,069 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69009925:ctest-vn-86820887, 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-69009925:ctest-vn-03892492, 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]
2026-09-23 16:16:29,447 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce0f3e73-9cb0-4b59-9aea-8075fbb7cca8', 'name': 'ctest-vn-86820887', 'tenant_id': 'a9d4de74c3424a329a8213cdcba5318a', 'project_id': 'a9d4de74c3424a329a8213cdcba5318a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['39e629ca-472d-474c-9d09-a4274a1003b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69009925', 'ctest-vn-86820887'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69009925', 'ctest-policy-allow-all-44434603']], 'subnet_ipam': [{'subnet_cidr': '62.105.160.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-23 16:16:29,716 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '56efc738-3a63-4da1-8402-c78cd7709c29', 'name': 'ctest-vn-03892492', 'tenant_id': 'a9d4de74c3424a329a8213cdcba5318a', 'project_id': 'a9d4de74c3424a329a8213cdcba5318a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5f1354e2-ef0a-45e8-a4de-8a0cbcec5b1a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69009925', 'ctest-vn-03892492'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69009925', 'ctest-policy-allow-all-44434603']], 'subnet_ipam': [{'subnet_cidr': '96.229.12.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-23 16:16:29,886 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-23 16:16:30,278 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-23 16:16:30,322 - DEBUG - Requesting: http://10.0.0.161:8082/domain/7cb63c4d-3c6b-4695-bcf5-c1ba99c4e88d
2026-09-23 16:16:30,340 - DEBUG - Requesting: http://10.0.0.161:8082/project/a9d4de74-c342-4a32-9a82-13cdcba5318a
2026-09-23 16:16:30,488 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/ce0f3e73-9cb0-4b59-9aea-8075fbb7cca8
2026-09-23 16:16:30,552 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/ce0f3e73-9cb0-4b59-9aea-8075fbb7cca8
2026-09-23 16:16:30,574 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ffb76bda-64e8-469b-b0b3-c2a5374a60e7
2026-09-23 16:16:30,587 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ffb76bda-64e8-469b-b0b3-c2a5374a60e7
2026-09-23 16:16:30,599 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/b294cf89-b4ba-4bbb-ba3a-5265f595eac6
2026-09-23 16:16:30,619 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-23 16:16:30,619 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/ce0f3e73-9cb0-4b59-9aea-8075fbb7cca8
2026-09-23 16:16:30,654 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ffb76bda-64e8-469b-b0b3-c2a5374a60e7
2026-09-23 16:16:30,679 - INFO - Verified VN network id 12 for VN ce0f3e73-9cb0-4b59-9aea-8075fbb7cca8
2026-09-23 16:16:30,679 - INFO - Verifications in API Server for VN ctest-vn-86820887 passed
2026-09-23 16:16:30,679 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/ce0f3e73-9cb0-4b59-9aea-8075fbb7cca8
2026-09-23 16:16:30,697 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ffb76bda-64e8-469b-b0b3-c2a5374a60e7
2026-09-23 16:16:30,718 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ffb76bda-64e8-469b-b0b3-c2a5374a60e7
2026-09-23 16:16:30,729 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/b294cf89-b4ba-4bbb-ba3a-5265f595eac6
2026-09-23 16:16:30,754 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69009925:ctest-vn-86820887', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69009925', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14848155162734775129', 'uuid-lslong': '11162875870613851304'}, 'enable': 'true', 'created': '2026-09-23T16:16:27', 'last-modified': '2026-09-23T16:16:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350641'}
2026-09-23 16:16:30,763 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-23 16:16:30,763 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86820887 passed
2026-09-23 16:16:30,763 - DEBUG - ====Verifying policy data for ctest-vn-86820887 in API_Server ======
2026-09-23 16:16:30,763 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-23 16:16:30,783 - DEBUG - Requesting: http://10.0.0.161:8082/domain/7cb63c4d-3c6b-4695-bcf5-c1ba99c4e88d
2026-09-23 16:16:30,805 - DEBUG - Requesting: http://10.0.0.161:8082/project/a9d4de74-c342-4a32-9a82-13cdcba5318a
2026-09-23 16:16:30,897 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/ce0f3e73-9cb0-4b59-9aea-8075fbb7cca8
2026-09-23 16:16:30,912 - DEBUG - ==>Verifying data for policy with id: 286c8e8b-7845-4d55-99fc-8f2daeff7e2c, fqn: ['default-domain', 'ctest-TestBasicPolicy-69009925', 'ctest-policy-allow-all-44434603']
2026-09-23 16:16:30,912 - INFO - VN ctest-vn-86820887 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-23 16:16:30,912 - DEBUG - Verifying the vn in opserver
2026-09-23 16:16:30,912 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69009925:ctest-vn-86820887 virtual network link through opserver 10.0.0.161
2026-09-23 16:16:30,912 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-23 16:16:31,366 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-23 16:16:31,451 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69009925:ctest-vn-86820887', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69009925:ctest-vn-86820887?flat'}
2026-09-23 16:16:31,451 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69009925:ctest-vn-86820887 is found in opserver
2026-09-23 16:16:31,467 - DEBUG - Do not have enough data to verify VN in agent
2026-09-23 16:16:31,474 - DEBUG - VRF ids for VN ctest-vn-86820887: {}
2026-09-23 16:16:31,474 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-23 16:16:31,482 - DEBUG - Requesting: http://10.0.0.161:8082/domain/7cb63c4d-3c6b-4695-bcf5-c1ba99c4e88d
2026-09-23 16:16:31,498 - DEBUG - Requesting: http://10.0.0.161:8082/project/a9d4de74-c342-4a32-9a82-13cdcba5318a
2026-09-23 16:16:31,590 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/56efc738-3a63-4da1-8402-c78cd7709c29
2026-09-23 16:16:31,607 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/56efc738-3a63-4da1-8402-c78cd7709c29
2026-09-23 16:16:31,621 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7810aadb-2783-4079-894e-db376def3fd1
2026-09-23 16:16:31,636 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7810aadb-2783-4079-894e-db376def3fd1
2026-09-23 16:16:31,647 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/f2c22fee-49b6-4265-b8ce-b0d82f90ed8a
2026-09-23 16:16:31,657 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-23 16:16:31,657 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/56efc738-3a63-4da1-8402-c78cd7709c29
2026-09-23 16:16:31,671 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7810aadb-2783-4079-894e-db376def3fd1
2026-09-23 16:16:31,692 - INFO - Verified VN network id 13 for VN 56efc738-3a63-4da1-8402-c78cd7709c29
2026-09-23 16:16:31,692 - INFO - Verifications in API Server for VN ctest-vn-03892492 passed
2026-09-23 16:16:31,693 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/56efc738-3a63-4da1-8402-c78cd7709c29
2026-09-23 16:16:31,705 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7810aadb-2783-4079-894e-db376def3fd1
2026-09-23 16:16:31,715 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7810aadb-2783-4079-894e-db376def3fd1
2026-09-23 16:16:31,725 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/f2c22fee-49b6-4265-b8ce-b0d82f90ed8a
2026-09-23 16:16:31,744 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69009925:ctest-vn-03892492', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69009925', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6264444651007331745', 'uuid-lslong': '9512384770683739177'}, 'enable': 'true', 'created': '2026-09-23T16:16:28', 'last-modified': '2026-09-23T16:16:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.059851'}
2026-09-23 16:16:31,753 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-23 16:16:31,753 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03892492 passed
2026-09-23 16:16:31,753 - DEBUG - ====Verifying policy data for ctest-vn-03892492 in API_Server ======
2026-09-23 16:16:31,753 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-23 16:16:31,760 - DEBUG - Requesting: http://10.0.0.161:8082/domain/7cb63c4d-3c6b-4695-bcf5-c1ba99c4e88d
2026-09-23 16:16:31,775 - DEBUG - Requesting: http://10.0.0.161:8082/project/a9d4de74-c342-4a32-9a82-13cdcba5318a
2026-09-23 16:16:31,864 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/56efc738-3a63-4da1-8402-c78cd7709c29
2026-09-23 16:16:31,878 - DEBUG - ==>Verifying data for policy with id: 286c8e8b-7845-4d55-99fc-8f2daeff7e2c, fqn: ['default-domain', 'ctest-TestBasicPolicy-69009925', 'ctest-policy-allow-all-44434603']
2026-09-23 16:16:31,878 - INFO - VN ctest-vn-03892492 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-23 16:16:31,878 - DEBUG - Verifying the vn in opserver
2026-09-23 16:16:31,878 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69009925:ctest-vn-03892492 virtual network link through opserver 10.0.0.161
2026-09-23 16:16:31,878 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-23 16:16:31,893 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69009925:ctest-vn-03892492', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69009925:ctest-vn-03892492?flat'}
2026-09-23 16:16:31,893 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69009925:ctest-vn-03892492 is found in opserver
2026-09-23 16:16:31,907 - DEBUG - Do not have enough data to verify VN in agent
2026-09-23 16:16:31,916 - DEBUG - VRF ids for VN ctest-vn-03892492: {}
2026-09-23 16:16:31,992 - DEBUG - Services list from nova: [