2026-01-13 01:41:15,448 - INFO - Domain Default found not creating
2026-01-13 01:41:15,618 - INFO - Project ctest-TestBasicPolicy-91314895 not found, creating it
2026-01-13 01:41:16,097 - INFO - Created Project:ctest-TestBasicPolicy-91314895, ID : 60d38dbc-09a5-4917-aaba-38e8614d4068
2026-01-13 01:41:17,715 - INFO - ================================================================================
2026-01-13 01:41:17,716 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-13 01:41:17,716 - 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-01-13 01:41:17,982 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-01-13 01:41:17,982 - INFO - Initial checks done. Running the testcase now
2026-01-13 01:41:17,982 - INFO -
2026-01-13 01:41:18,582 - DEBUG - Response for create_network : {'network': {'id': '16caa6e1-7c53-4458-8aff-41e05e47c58f', 'name': 'ctest-vn-21219478', 'tenant_id': '60d38dbc09a54917aaba38e8614d4068', 'project_id': '60d38dbc09a54917aaba38e8614d4068', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91314895', 'ctest-vn-21219478'], 'port_security_enabled': True, 'description': ''}}
2026-01-13 01:41:18,809 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b792e87-4525-4dd7-966b-94a9c7a403ff', 'name': '', 'tenant_id': '60d38dbc09a54917aaba38e8614d4068', 'network_id': '16caa6e1-7c53-4458-8aff-41e05e47c58f', 'ip_version': 4, 'cidr': '136.105.35.128/26', 'allocation_pools': [{'start': '136.105.35.130', 'end': '136.105.35.190'}], 'gateway_ip': '136.105.35.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.105.35.130', 'tags': [], 'project_id': '60d38dbc09a54917aaba38e8614d4068'}}
2026-01-13 01:41:18,829 - INFO - Created VN ctest-vn-21219478
2026-01-13 01:41:18,881 - DEBUG - VN ctest-vn-21219478 UUID is 16caa6e1-7c53-4458-8aff-41e05e47c58f
2026-01-13 01:41:19,207 - DEBUG - Response for create_network : {'network': {'id': 'b2740721-ead5-49fc-8e2a-66a3c8b02232', 'name': 'ctest-vn-36578825', 'tenant_id': '60d38dbc09a54917aaba38e8614d4068', 'project_id': '60d38dbc09a54917aaba38e8614d4068', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91314895', 'ctest-vn-36578825'], 'port_security_enabled': True, 'description': ''}}
2026-01-13 01:41:19,383 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5c72fcb-1e32-467b-acb9-abf3f3ae7254', 'name': '', 'tenant_id': '60d38dbc09a54917aaba38e8614d4068', 'network_id': 'b2740721-ead5-49fc-8e2a-66a3c8b02232', 'ip_version': 4, 'cidr': '21.20.251.64/26', 'allocation_pools': [{'start': '21.20.251.66', 'end': '21.20.251.126'}], 'gateway_ip': '21.20.251.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.20.251.66', 'tags': [], 'project_id': '60d38dbc09a54917aaba38e8614d4068'}}
2026-01-13 01:41:19,406 - INFO - Created VN ctest-vn-36578825
2026-01-13 01:41:19,461 - DEBUG - VN ctest-vn-36578825 UUID is b2740721-ead5-49fc-8e2a-66a3c8b02232
2026-01-13 01:41:19,583 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91314895:ctest-vn-21219478, 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-91314895:ctest-vn-36578825, 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-01-13 01:41:19,876 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16caa6e1-7c53-4458-8aff-41e05e47c58f', 'name': 'ctest-vn-21219478', 'tenant_id': '60d38dbc09a54917aaba38e8614d4068', 'project_id': '60d38dbc09a54917aaba38e8614d4068', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b792e87-4525-4dd7-966b-94a9c7a403ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91314895', 'ctest-vn-21219478'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91314895', 'ctest-policy-allow-all-19533209']], 'subnet_ipam': [{'subnet_cidr': '136.105.35.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-13 01:41:20,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2740721-ead5-49fc-8e2a-66a3c8b02232', 'name': 'ctest-vn-36578825', 'tenant_id': '60d38dbc09a54917aaba38e8614d4068', 'project_id': '60d38dbc09a54917aaba38e8614d4068', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5c72fcb-1e32-467b-acb9-abf3f3ae7254'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91314895', 'ctest-vn-36578825'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91314895', 'ctest-policy-allow-all-19533209']], 'subnet_ipam': [{'subnet_cidr': '21.20.251.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-13 01:41:20,277 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-13 01:41:20,625 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-13 01:41:20,659 - DEBUG - Requesting: http://10.0.0.38:8082/domain/00f30a96-fe3f-43ad-8d72-d378c0e7c2a9
2026-01-13 01:41:20,671 - DEBUG - Requesting: http://10.0.0.38:8082/project/60d38dbc-09a5-4917-aaba-38e8614d4068
2026-01-13 01:41:20,745 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16caa6e1-7c53-4458-8aff-41e05e47c58f
2026-01-13 01:41:20,755 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16caa6e1-7c53-4458-8aff-41e05e47c58f
2026-01-13 01:41:20,764 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0cc2124-e793-4030-967c-999741cb2179
2026-01-13 01:41:20,770 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0cc2124-e793-4030-967c-999741cb2179
2026-01-13 01:41:20,776 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6f380e64-de7c-4b06-ae0c-575229ee213a
2026-01-13 01:41:20,783 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-13 01:41:20,783 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16caa6e1-7c53-4458-8aff-41e05e47c58f
2026-01-13 01:41:20,794 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0cc2124-e793-4030-967c-999741cb2179
2026-01-13 01:41:20,810 - INFO - Verified VN network id 11 for VN 16caa6e1-7c53-4458-8aff-41e05e47c58f
2026-01-13 01:41:20,810 - INFO - Verifications in API Server for VN ctest-vn-21219478 passed
2026-01-13 01:41:20,810 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16caa6e1-7c53-4458-8aff-41e05e47c58f
2026-01-13 01:41:20,820 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0cc2124-e793-4030-967c-999741cb2179
2026-01-13 01:41:20,827 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0cc2124-e793-4030-967c-999741cb2179
2026-01-13 01:41:20,834 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6f380e64-de7c-4b06-ae0c-575229ee213a
2026-01-13 01:41:20,848 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91314895:ctest-vn-21219478', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91314895', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1642308501513651288', 'uuid-lslong': '10015796528205514127'}, 'enable': 'true', 'created': '2026-01-13T01:41:18', 'last-modified': '2026-01-13T01:41:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000013'}
2026-01-13 01:41:20,854 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-13 01:41:20,854 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21219478 passed
2026-01-13 01:41:20,855 - DEBUG - ====Verifying policy data for ctest-vn-21219478 in API_Server ======
2026-01-13 01:41:20,855 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-13 01:41:20,860 - DEBUG - Requesting: http://10.0.0.38:8082/domain/00f30a96-fe3f-43ad-8d72-d378c0e7c2a9
2026-01-13 01:41:20,873 - DEBUG - Requesting: http://10.0.0.38:8082/project/60d38dbc-09a5-4917-aaba-38e8614d4068
2026-01-13 01:41:20,944 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16caa6e1-7c53-4458-8aff-41e05e47c58f
2026-01-13 01:41:20,954 - DEBUG - ==>Verifying data for policy with id: 4c3ef32b-e447-4f6a-921a-a4c2a74abfe1, fqn: ['default-domain', 'ctest-TestBasicPolicy-91314895', 'ctest-policy-allow-all-19533209']
2026-01-13 01:41:20,954 - INFO - VN ctest-vn-21219478 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-13 01:41:20,954 - DEBUG - Verifying the vn in opserver
2026-01-13 01:41:20,954 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91314895:ctest-vn-21219478 virtual network link through opserver 10.0.0.38
2026-01-13 01:41:20,954 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-13 01:41:21,294 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-13 01:41:21,359 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91314895:ctest-vn-21219478', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91314895:ctest-vn-21219478?flat'}
2026-01-13 01:41:21,359 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91314895:ctest-vn-21219478 is found in opserver
2026-01-13 01:41:21,370 - DEBUG - Do not have enough data to verify VN in agent
2026-01-13 01:41:21,374 - DEBUG - VRF ids for VN ctest-vn-21219478: {}
2026-01-13 01:41:21,374 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-13 01:41:21,380 - DEBUG - Requesting: http://10.0.0.38:8082/domain/00f30a96-fe3f-43ad-8d72-d378c0e7c2a9
2026-01-13 01:41:21,391 - DEBUG - Requesting: http://10.0.0.38:8082/project/60d38dbc-09a5-4917-aaba-38e8614d4068
2026-01-13 01:41:21,462 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2740721-ead5-49fc-8e2a-66a3c8b02232
2026-01-13 01:41:21,473 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2740721-ead5-49fc-8e2a-66a3c8b02232
2026-01-13 01:41:21,483 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9139c32b-1001-42eb-93b3-361669a56774
2026-01-13 01:41:21,490 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9139c32b-1001-42eb-93b3-361669a56774
2026-01-13 01:41:21,497 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/882b4b47-fe3e-4b65-80e5-21167e74590a
2026-01-13 01:41:21,504 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-13 01:41:21,504 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2740721-ead5-49fc-8e2a-66a3c8b02232
2026-01-13 01:41:21,512 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9139c32b-1001-42eb-93b3-361669a56774
2026-01-13 01:41:21,526 - INFO - Verified VN network id 12 for VN b2740721-ead5-49fc-8e2a-66a3c8b02232
2026-01-13 01:41:21,526 - INFO - Verifications in API Server for VN ctest-vn-36578825 passed
2026-01-13 01:41:21,527 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2740721-ead5-49fc-8e2a-66a3c8b02232
2026-01-13 01:41:21,537 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9139c32b-1001-42eb-93b3-361669a56774
2026-01-13 01:41:21,544 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9139c32b-1001-42eb-93b3-361669a56774
2026-01-13 01:41:21,550 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/882b4b47-fe3e-4b65-80e5-21167e74590a
2026-01-13 01:41:21,561 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91314895:ctest-vn-36578825', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91314895', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12858910678304770556', 'uuid-lslong': '10244113156040303154'}, 'enable': 'true', 'created': '2026-01-13T01:41:19', 'last-modified': '2026-01-13T01:41:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.478188'}
2026-01-13 01:41:21,569 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-13 01:41:21,569 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36578825 passed
2026-01-13 01:41:21,569 - DEBUG - ====Verifying policy data for ctest-vn-36578825 in API_Server ======
2026-01-13 01:41:21,569 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-13 01:41:21,575 - DEBUG - Requesting: http://10.0.0.38:8082/domain/00f30a96-fe3f-43ad-8d72-d378c0e7c2a9
2026-01-13 01:41:21,586 - DEBUG - Requesting: http://10.0.0.38:8082/project/60d38dbc-09a5-4917-aaba-38e8614d4068
2026-01-13 01:41:21,659 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2740721-ead5-49fc-8e2a-66a3c8b02232
2026-01-13 01:41:21,669 - DEBUG - ==>Verifying data for policy with id: 4c3ef32b-e447-4f6a-921a-a4c2a74abfe1, fqn: ['default-domain', 'ctest-TestBasicPolicy-91314895', 'ctest-policy-allow-all-19533209']
2026-01-13 01:41:21,669 - INFO - VN ctest-vn-36578825 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-13 01:41:21,669 - DEBUG - Verifying the vn in opserver
2026-01-13 01:41:21,669 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91314895:ctest-vn-36578825 virtual network link through opserver 10.0.0.38
2026-01-13 01:41:21,669 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-13 01:41:21,680 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91314895:ctest-vn-36578825', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91314895:ctest-vn-36578825?flat'}
2026-01-13 01:41:21,680 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91314895:ctest-vn-36578825 is found in opserver
2026-01-13 01:41:21,690 - DEBUG - Do not have enough data to verify VN in agent
2026-01-13 01:41:21,694 - DEBUG - VRF ids for VN ctest-vn-36578825: {}
2026-01-13 01:41:21,755 - DEBUG - Services list from nova: [