2026-01-30 11:17:05,083 - INFO - Domain Default found not creating
2026-01-30 11:17:05,278 - INFO - Project ctest-TestBasicPolicy-41988816 not found, creating it
2026-01-30 11:17:05,777 - INFO - Created Project:ctest-TestBasicPolicy-41988816, ID : 81d9eaff-bdec-433d-a023-84e4ee78194b
2026-01-30 11:17:07,269 - INFO - ================================================================================
2026-01-30 11:17:07,269 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-30 11:17:07,269 - 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-30 11:17:07,522 - DEBUG - Nothing to compare xmpp stats {'10.0.0.152': {'10.20.0.17': '0'}} with
2026-01-30 11:17:07,522 - INFO - Initial checks done. Running the testcase now
2026-01-30 11:17:07,522 - INFO -
2026-01-30 11:17:08,079 - DEBUG - Response for create_network : {'network': {'id': '3c8499c3-efa5-433a-a3ba-e8439ce9cd48', 'name': 'ctest-vn-37003921', 'tenant_id': '81d9eaffbdec433da02384e4ee78194b', 'project_id': '81d9eaffbdec433da02384e4ee78194b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41988816', 'ctest-vn-37003921'], 'port_security_enabled': True, 'description': ''}}
2026-01-30 11:17:08,245 - DEBUG - Response for create_subnet : {'subnet': {'id': '69f5d515-5e83-4a8f-9411-a06d1f76d102', 'name': '', 'tenant_id': '81d9eaffbdec433da02384e4ee78194b', 'network_id': '3c8499c3-efa5-433a-a3ba-e8439ce9cd48', 'ip_version': 4, 'cidr': '79.192.224.192/26', 'allocation_pools': [{'start': '79.192.224.194', 'end': '79.192.224.254'}], 'gateway_ip': '79.192.224.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.192.224.194', 'tags': [], 'project_id': '81d9eaffbdec433da02384e4ee78194b'}}
2026-01-30 11:17:08,263 - INFO - Created VN ctest-vn-37003921
2026-01-30 11:17:08,316 - DEBUG - VN ctest-vn-37003921 UUID is 3c8499c3-efa5-433a-a3ba-e8439ce9cd48
2026-01-30 11:17:08,858 - DEBUG - Response for create_network : {'network': {'id': '4f043e22-29c9-4c70-a761-359e23e49a09', 'name': 'ctest-vn-12809980', 'tenant_id': '81d9eaffbdec433da02384e4ee78194b', 'project_id': '81d9eaffbdec433da02384e4ee78194b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41988816', 'ctest-vn-12809980'], 'port_security_enabled': True, 'description': ''}}
2026-01-30 11:17:09,182 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d7fdd1e-7ac3-4aec-a58f-07d83e24d1fc', 'name': '', 'tenant_id': '81d9eaffbdec433da02384e4ee78194b', 'network_id': '4f043e22-29c9-4c70-a761-359e23e49a09', 'ip_version': 4, 'cidr': '131.6.56.0/26', 'allocation_pools': [{'start': '131.6.56.2', 'end': '131.6.56.62'}], 'gateway_ip': '131.6.56.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.6.56.2', 'tags': [], 'project_id': '81d9eaffbdec433da02384e4ee78194b'}}
2026-01-30 11:17:09,201 - INFO - Created VN ctest-vn-12809980
2026-01-30 11:17:09,256 - DEBUG - VN ctest-vn-12809980 UUID is 4f043e22-29c9-4c70-a761-359e23e49a09
2026-01-30 11:17:09,412 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41988816:ctest-vn-37003921, 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-41988816:ctest-vn-12809980, 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-30 11:17:09,696 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c8499c3-efa5-433a-a3ba-e8439ce9cd48', 'name': 'ctest-vn-37003921', 'tenant_id': '81d9eaffbdec433da02384e4ee78194b', 'project_id': '81d9eaffbdec433da02384e4ee78194b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['69f5d515-5e83-4a8f-9411-a06d1f76d102'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41988816', 'ctest-vn-37003921'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41988816', 'ctest-policy-allow-all-78786511']], 'subnet_ipam': [{'subnet_cidr': '79.192.224.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-30 11:17:09,969 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f043e22-29c9-4c70-a761-359e23e49a09', 'name': 'ctest-vn-12809980', 'tenant_id': '81d9eaffbdec433da02384e4ee78194b', 'project_id': '81d9eaffbdec433da02384e4ee78194b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d7fdd1e-7ac3-4aec-a58f-07d83e24d1fc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41988816', 'ctest-vn-12809980'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41988816', 'ctest-policy-allow-all-78786511']], 'subnet_ipam': [{'subnet_cidr': '131.6.56.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-30 11:17:10,113 - DEBUG - Requesting: http://10.0.0.152:8082/domains
2026-01-30 11:17:10,420 - DEBUG - Requesting: http://10.0.0.152:8082/domains
2026-01-30 11:17:10,449 - DEBUG - Requesting: http://10.0.0.152:8082/domain/17af5ad7-091d-4686-b5b9-c1b22be15218
2026-01-30 11:17:10,460 - DEBUG - Requesting: http://10.0.0.152:8082/project/81d9eaff-bdec-433d-a023-84e4ee78194b
2026-01-30 11:17:10,530 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/3c8499c3-efa5-433a-a3ba-e8439ce9cd48
2026-01-30 11:17:10,540 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/3c8499c3-efa5-433a-a3ba-e8439ce9cd48
2026-01-30 11:17:10,548 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/5e8363cb-7760-442c-9d38-0918ccac7874
2026-01-30 11:17:10,555 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/5e8363cb-7760-442c-9d38-0918ccac7874
2026-01-30 11:17:10,561 - DEBUG - Requesting: http://10.0.0.152:8082/route-target/37857c50-3dd5-4605-b7d1-abae15386c27
2026-01-30 11:17:10,567 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-30 11:17:10,568 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/3c8499c3-efa5-433a-a3ba-e8439ce9cd48
2026-01-30 11:17:10,575 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/5e8363cb-7760-442c-9d38-0918ccac7874
2026-01-30 11:17:10,590 - INFO - Verified VN network id 12 for VN 3c8499c3-efa5-433a-a3ba-e8439ce9cd48
2026-01-30 11:17:10,590 - INFO - Verifications in API Server for VN ctest-vn-37003921 passed
2026-01-30 11:17:10,590 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/3c8499c3-efa5-433a-a3ba-e8439ce9cd48
2026-01-30 11:17:10,599 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/5e8363cb-7760-442c-9d38-0918ccac7874
2026-01-30 11:17:10,607 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/5e8363cb-7760-442c-9d38-0918ccac7874
2026-01-30 11:17:10,613 - DEBUG - Requesting: http://10.0.0.152:8082/route-target/37857c50-3dd5-4605-b7d1-abae15386c27
2026-01-30 11:17:10,624 - DEBUG - Control-node 10.0.0.152 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41988816:ctest-vn-37003921', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41988816', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4360779406019740474', 'uuid-lslong': '11797997550943456584'}, 'enable': 'true', 'created': '2026-01-30T11:17:08', 'last-modified': '2026-01-30T11:17:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943483'}
2026-01-30 11:17:10,630 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-30 11:17:10,630 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37003921 passed
2026-01-30 11:17:10,630 - DEBUG - ====Verifying policy data for ctest-vn-37003921 in API_Server ======
2026-01-30 11:17:10,630 - DEBUG - Requesting: http://10.0.0.152:8082/domains
2026-01-30 11:17:10,636 - DEBUG - Requesting: http://10.0.0.152:8082/domain/17af5ad7-091d-4686-b5b9-c1b22be15218
2026-01-30 11:17:10,646 - DEBUG - Requesting: http://10.0.0.152:8082/project/81d9eaff-bdec-433d-a023-84e4ee78194b
2026-01-30 11:17:10,730 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/3c8499c3-efa5-433a-a3ba-e8439ce9cd48
2026-01-30 11:17:10,738 - DEBUG - ==>Verifying data for policy with id: a0aaafd5-ffb5-41df-a489-13aa418af68e, fqn: ['default-domain', 'ctest-TestBasicPolicy-41988816', 'ctest-policy-allow-all-78786511']
2026-01-30 11:17:10,738 - INFO - VN ctest-vn-37003921 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-30 11:17:10,739 - DEBUG - Verifying the vn in opserver
2026-01-30 11:17:10,739 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41988816:ctest-vn-37003921 virtual network link through opserver 10.0.0.152
2026-01-30 11:17:10,739 - DEBUG - Requesting: http://10.0.0.152:8081/analytics/uves/virtual-networks
2026-01-30 11:17:11,032 - DEBUG - Requesting: http://10.0.0.152:8081/analytics/uves/virtual-networks
2026-01-30 11:17:11,096 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41988816:ctest-vn-37003921', 'href': 'http://10.0.0.152:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41988816:ctest-vn-37003921?flat'}
2026-01-30 11:17:11,096 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41988816:ctest-vn-37003921 is found in opserver
2026-01-30 11:17:11,106 - DEBUG - Do not have enough data to verify VN in agent
2026-01-30 11:17:11,111 - DEBUG - VRF ids for VN ctest-vn-37003921: {}
2026-01-30 11:17:11,111 - DEBUG - Requesting: http://10.0.0.152:8082/domains
2026-01-30 11:17:11,116 - DEBUG - Requesting: http://10.0.0.152:8082/domain/17af5ad7-091d-4686-b5b9-c1b22be15218
2026-01-30 11:17:11,126 - DEBUG - Requesting: http://10.0.0.152:8082/project/81d9eaff-bdec-433d-a023-84e4ee78194b
2026-01-30 11:17:11,194 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/4f043e22-29c9-4c70-a761-359e23e49a09
2026-01-30 11:17:11,204 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/4f043e22-29c9-4c70-a761-359e23e49a09
2026-01-30 11:17:11,212 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/5b486aa3-df67-4e03-92e8-652681cc3080
2026-01-30 11:17:11,219 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/5b486aa3-df67-4e03-92e8-652681cc3080
2026-01-30 11:17:11,225 - DEBUG - Requesting: http://10.0.0.152:8082/route-target/e2ee30d5-36c6-4f42-b378-6aeecc50e508
2026-01-30 11:17:11,231 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-30 11:17:11,231 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/4f043e22-29c9-4c70-a761-359e23e49a09
2026-01-30 11:17:11,240 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/5b486aa3-df67-4e03-92e8-652681cc3080
2026-01-30 11:17:11,252 - INFO - Verified VN network id 13 for VN 4f043e22-29c9-4c70-a761-359e23e49a09
2026-01-30 11:17:11,253 - INFO - Verifications in API Server for VN ctest-vn-12809980 passed
2026-01-30 11:17:11,253 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/4f043e22-29c9-4c70-a761-359e23e49a09
2026-01-30 11:17:11,261 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/5b486aa3-df67-4e03-92e8-652681cc3080
2026-01-30 11:17:11,267 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/5b486aa3-df67-4e03-92e8-652681cc3080
2026-01-30 11:17:11,274 - DEBUG - Requesting: http://10.0.0.152:8082/route-target/e2ee30d5-36c6-4f42-b378-6aeecc50e508
2026-01-30 11:17:11,285 - DEBUG - Control-node 10.0.0.152 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41988816:ctest-vn-12809980', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41988816', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5693744145354017904', 'uuid-lslong': '12060980230398188041'}, 'enable': 'true', 'created': '2026-01-30T11:17:08', 'last-modified': '2026-01-30T11:17:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.378389'}
2026-01-30 11:17:11,291 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-30 11:17:11,292 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12809980 passed
2026-01-30 11:17:11,293 - DEBUG - ====Verifying policy data for ctest-vn-12809980 in API_Server ======
2026-01-30 11:17:11,293 - DEBUG - Requesting: http://10.0.0.152:8082/domains
2026-01-30 11:17:11,299 - DEBUG - Requesting: http://10.0.0.152:8082/domain/17af5ad7-091d-4686-b5b9-c1b22be15218
2026-01-30 11:17:11,311 - DEBUG - Requesting: http://10.0.0.152:8082/project/81d9eaff-bdec-433d-a023-84e4ee78194b
2026-01-30 11:17:11,384 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/4f043e22-29c9-4c70-a761-359e23e49a09
2026-01-30 11:17:11,394 - DEBUG - ==>Verifying data for policy with id: a0aaafd5-ffb5-41df-a489-13aa418af68e, fqn: ['default-domain', 'ctest-TestBasicPolicy-41988816', 'ctest-policy-allow-all-78786511']
2026-01-30 11:17:11,394 - INFO - VN ctest-vn-12809980 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-30 11:17:11,394 - DEBUG - Verifying the vn in opserver
2026-01-30 11:17:11,394 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41988816:ctest-vn-12809980 virtual network link through opserver 10.0.0.152
2026-01-30 11:17:11,394 - DEBUG - Requesting: http://10.0.0.152:8081/analytics/uves/virtual-networks
2026-01-30 11:17:11,403 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41988816:ctest-vn-12809980', 'href': 'http://10.0.0.152:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41988816:ctest-vn-12809980?flat'}
2026-01-30 11:17:11,403 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41988816:ctest-vn-12809980 is found in opserver
2026-01-30 11:17:11,414 - DEBUG - Do not have enough data to verify VN in agent
2026-01-30 11:17:11,419 - DEBUG - VRF ids for VN ctest-vn-12809980: {}
2026-01-30 11:17:11,476 - DEBUG - Services list from nova: [