2026-02-03 15:38:50,845 - INFO - Domain Default found not creating
2026-02-03 15:38:51,033 - INFO - Project ctest-TestBasicPolicy-13000232 not found, creating it
2026-02-03 15:38:51,542 - INFO - Created Project:ctest-TestBasicPolicy-13000232, ID : c4860900-f75d-4578-b3e2-c9b3ab67723b
2026-02-03 15:38:53,705 - INFO - ================================================================================
2026-02-03 15:38:53,705 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-03 15:38:53,705 - 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-02-03 15:38:53,964 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-02-03 15:38:53,965 - INFO - Initial checks done. Running the testcase now
2026-02-03 15:38:53,965 - INFO -
2026-02-03 15:38:54,517 - DEBUG - Response for create_network : {'network': {'id': 'f0db6fd3-014d-45ef-8374-898282a7a069', 'name': 'ctest-vn-16343125', 'tenant_id': 'c4860900f75d4578b3e2c9b3ab67723b', 'project_id': 'c4860900f75d4578b3e2c9b3ab67723b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13000232', 'ctest-vn-16343125'], 'port_security_enabled': True, 'description': ''}}
2026-02-03 15:38:54,676 - DEBUG - Response for create_subnet : {'subnet': {'id': '433b8352-f170-459e-a69d-38a40a15713b', 'name': '', 'tenant_id': 'c4860900f75d4578b3e2c9b3ab67723b', 'network_id': 'f0db6fd3-014d-45ef-8374-898282a7a069', 'ip_version': 4, 'cidr': '4.39.123.192/26', 'allocation_pools': [{'start': '4.39.123.194', 'end': '4.39.123.254'}], 'gateway_ip': '4.39.123.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.39.123.194', 'tags': [], 'project_id': 'c4860900f75d4578b3e2c9b3ab67723b'}}
2026-02-03 15:38:54,696 - INFO - Created VN ctest-vn-16343125
2026-02-03 15:38:54,751 - DEBUG - VN ctest-vn-16343125 UUID is f0db6fd3-014d-45ef-8374-898282a7a069
2026-02-03 15:38:55,026 - DEBUG - Response for create_network : {'network': {'id': 'b880333e-68f3-4902-909d-836d9a5302a1', 'name': 'ctest-vn-35030596', 'tenant_id': 'c4860900f75d4578b3e2c9b3ab67723b', 'project_id': 'c4860900f75d4578b3e2c9b3ab67723b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13000232', 'ctest-vn-35030596'], 'port_security_enabled': True, 'description': ''}}
2026-02-03 15:38:55,183 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6aba677-2f31-4e97-80c9-2949bf8037b7', 'name': '', 'tenant_id': 'c4860900f75d4578b3e2c9b3ab67723b', 'network_id': 'b880333e-68f3-4902-909d-836d9a5302a1', 'ip_version': 4, 'cidr': '17.108.225.0/26', 'allocation_pools': [{'start': '17.108.225.2', 'end': '17.108.225.62'}], 'gateway_ip': '17.108.225.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.108.225.2', 'tags': [], 'project_id': 'c4860900f75d4578b3e2c9b3ab67723b'}}
2026-02-03 15:38:55,202 - INFO - Created VN ctest-vn-35030596
2026-02-03 15:38:55,255 - DEBUG - VN ctest-vn-35030596 UUID is b880333e-68f3-4902-909d-836d9a5302a1
2026-02-03 15:38:55,411 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13000232:ctest-vn-16343125, 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-13000232:ctest-vn-35030596, 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-02-03 15:38:55,716 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f0db6fd3-014d-45ef-8374-898282a7a069', 'name': 'ctest-vn-16343125', 'tenant_id': 'c4860900f75d4578b3e2c9b3ab67723b', 'project_id': 'c4860900f75d4578b3e2c9b3ab67723b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['433b8352-f170-459e-a69d-38a40a15713b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13000232', 'ctest-vn-16343125'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13000232', 'ctest-policy-allow-all-22458721']], 'subnet_ipam': [{'subnet_cidr': '4.39.123.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-03 15:38:55,993 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b880333e-68f3-4902-909d-836d9a5302a1', 'name': 'ctest-vn-35030596', 'tenant_id': 'c4860900f75d4578b3e2c9b3ab67723b', 'project_id': 'c4860900f75d4578b3e2c9b3ab67723b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6aba677-2f31-4e97-80c9-2949bf8037b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13000232', 'ctest-vn-35030596'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13000232', 'ctest-policy-allow-all-22458721']], 'subnet_ipam': [{'subnet_cidr': '17.108.225.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-03 15:38:56,143 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-03 15:38:56,445 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-03 15:38:56,477 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cf93840d-45cc-4e09-838b-5c89f252fa18
2026-02-03 15:38:56,489 - DEBUG - Requesting: http://10.0.0.22:8082/project/c4860900-f75d-4578-b3e2-c9b3ab67723b
2026-02-03 15:38:56,563 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f0db6fd3-014d-45ef-8374-898282a7a069
2026-02-03 15:38:56,574 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f0db6fd3-014d-45ef-8374-898282a7a069
2026-02-03 15:38:56,584 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ec31a171-67a6-4093-a803-e44294905589
2026-02-03 15:38:56,593 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ec31a171-67a6-4093-a803-e44294905589
2026-02-03 15:38:56,600 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/300d6baf-c5fe-4953-a3de-82f531ba17ed
2026-02-03 15:38:56,608 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-03 15:38:56,608 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f0db6fd3-014d-45ef-8374-898282a7a069
2026-02-03 15:38:56,618 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ec31a171-67a6-4093-a803-e44294905589
2026-02-03 15:38:56,633 - INFO - Verified VN network id 10 for VN f0db6fd3-014d-45ef-8374-898282a7a069
2026-02-03 15:38:56,633 - INFO - Verifications in API Server for VN ctest-vn-16343125 passed
2026-02-03 15:38:56,633 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f0db6fd3-014d-45ef-8374-898282a7a069
2026-02-03 15:38:56,643 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ec31a171-67a6-4093-a803-e44294905589
2026-02-03 15:38:56,650 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ec31a171-67a6-4093-a803-e44294905589
2026-02-03 15:38:56,657 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/300d6baf-c5fe-4953-a3de-82f531ba17ed
2026-02-03 15:38:56,670 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13000232:ctest-vn-16343125', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13000232', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17355588541052962287', 'uuid-lslong': '9472347109897773161'}, 'enable': 'true', 'created': '2026-02-03T15:38:54', 'last-modified': '2026-02-03T15:38:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982768'}
2026-02-03 15:38:56,676 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-03 15:38:56,676 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16343125 passed
2026-02-03 15:38:56,676 - DEBUG - ====Verifying policy data for ctest-vn-16343125 in API_Server ======
2026-02-03 15:38:56,676 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-03 15:38:56,682 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cf93840d-45cc-4e09-838b-5c89f252fa18
2026-02-03 15:38:56,698 - DEBUG - Requesting: http://10.0.0.22:8082/project/c4860900-f75d-4578-b3e2-c9b3ab67723b
2026-02-03 15:38:56,778 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f0db6fd3-014d-45ef-8374-898282a7a069
2026-02-03 15:38:56,787 - DEBUG - ==>Verifying data for policy with id: 4a874ab0-4b59-4790-b75a-c8735d482c22, fqn: ['default-domain', 'ctest-TestBasicPolicy-13000232', 'ctest-policy-allow-all-22458721']
2026-02-03 15:38:56,787 - INFO - VN ctest-vn-16343125 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-03 15:38:56,787 - DEBUG - Verifying the vn in opserver
2026-02-03 15:38:56,787 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13000232:ctest-vn-16343125 virtual network link through opserver 10.0.0.22
2026-02-03 15:38:56,788 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-03 15:38:57,082 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-03 15:38:57,139 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13000232:ctest-vn-16343125', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13000232:ctest-vn-16343125?flat'}
2026-02-03 15:38:57,139 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13000232:ctest-vn-16343125 is found in opserver
2026-02-03 15:38:57,148 - DEBUG - Do not have enough data to verify VN in agent
2026-02-03 15:38:57,153 - DEBUG - VRF ids for VN ctest-vn-16343125: {}
2026-02-03 15:38:57,153 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-03 15:38:57,158 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cf93840d-45cc-4e09-838b-5c89f252fa18
2026-02-03 15:38:57,170 - DEBUG - Requesting: http://10.0.0.22:8082/project/c4860900-f75d-4578-b3e2-c9b3ab67723b
2026-02-03 15:38:57,241 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b880333e-68f3-4902-909d-836d9a5302a1
2026-02-03 15:38:57,252 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b880333e-68f3-4902-909d-836d9a5302a1
2026-02-03 15:38:57,261 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a1422002-07ae-41ac-85a1-165c38f66842
2026-02-03 15:38:57,268 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a1422002-07ae-41ac-85a1-165c38f66842
2026-02-03 15:38:57,275 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/55918f9a-30d4-4077-8a1a-1e26f5bc609c
2026-02-03 15:38:57,282 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-03 15:38:57,282 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b880333e-68f3-4902-909d-836d9a5302a1
2026-02-03 15:38:57,291 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a1422002-07ae-41ac-85a1-165c38f66842
2026-02-03 15:38:57,305 - INFO - Verified VN network id 11 for VN b880333e-68f3-4902-909d-836d9a5302a1
2026-02-03 15:38:57,305 - INFO - Verifications in API Server for VN ctest-vn-35030596 passed
2026-02-03 15:38:57,305 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b880333e-68f3-4902-909d-836d9a5302a1
2026-02-03 15:38:57,314 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a1422002-07ae-41ac-85a1-165c38f66842
2026-02-03 15:38:57,320 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a1422002-07ae-41ac-85a1-165c38f66842
2026-02-03 15:38:57,327 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/55918f9a-30d4-4077-8a1a-1e26f5bc609c
2026-02-03 15:38:57,338 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13000232:ctest-vn-35030596', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13000232', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13294682443139467522', 'uuid-lslong': '10420629619569001121'}, 'enable': 'true', 'created': '2026-02-03T15:38:55', 'last-modified': '2026-02-03T15:38:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.415877'}
2026-02-03 15:38:57,345 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-03 15:38:57,345 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35030596 passed
2026-02-03 15:38:57,345 - DEBUG - ====Verifying policy data for ctest-vn-35030596 in API_Server ======
2026-02-03 15:38:57,345 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-03 15:38:57,351 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cf93840d-45cc-4e09-838b-5c89f252fa18
2026-02-03 15:38:57,361 - DEBUG - Requesting: http://10.0.0.22:8082/project/c4860900-f75d-4578-b3e2-c9b3ab67723b
2026-02-03 15:38:57,432 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b880333e-68f3-4902-909d-836d9a5302a1
2026-02-03 15:38:57,441 - DEBUG - ==>Verifying data for policy with id: 4a874ab0-4b59-4790-b75a-c8735d482c22, fqn: ['default-domain', 'ctest-TestBasicPolicy-13000232', 'ctest-policy-allow-all-22458721']
2026-02-03 15:38:57,441 - INFO - VN ctest-vn-35030596 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-03 15:38:57,441 - DEBUG - Verifying the vn in opserver
2026-02-03 15:38:57,441 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13000232:ctest-vn-35030596 virtual network link through opserver 10.0.0.22
2026-02-03 15:38:57,441 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-03 15:38:57,451 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13000232:ctest-vn-35030596', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13000232:ctest-vn-35030596?flat'}
2026-02-03 15:38:57,451 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13000232:ctest-vn-35030596 is found in opserver
2026-02-03 15:38:57,460 - DEBUG - Do not have enough data to verify VN in agent
2026-02-03 15:38:57,464 - DEBUG - VRF ids for VN ctest-vn-35030596: {}
2026-02-03 15:38:57,525 - DEBUG - Services list from nova: [