2026-03-30 03:46:03,049 - INFO - Domain Default found not creating
2026-03-30 03:46:03,237 - INFO - Project ctest-TestBasicPolicy-60552654 not found, creating it
2026-03-30 03:46:03,714 - INFO - Created Project:ctest-TestBasicPolicy-60552654, ID : dcece31d-6850-4858-a12d-f7a1574a6f23
2026-03-30 03:46:05,429 - INFO - ================================================================================
2026-03-30 03:46:05,430 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-30 03:46:05,430 - 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-03-30 03:46:05,685 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.129': '0'}} with
2026-03-30 03:46:05,685 - INFO - Initial checks done. Running the testcase now
2026-03-30 03:46:05,685 - INFO -
2026-03-30 03:46:06,315 - DEBUG - Response for create_network : {'network': {'id': 'a6b570e7-cca7-4197-ada2-eab4261046ff', 'name': 'ctest-vn-28068248', 'tenant_id': 'dcece31d68504858a12df7a1574a6f23', 'project_id': 'dcece31d68504858a12df7a1574a6f23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60552654', 'ctest-vn-28068248'], 'port_security_enabled': True, 'description': ''}}
2026-03-30 03:46:06,560 - DEBUG - Response for create_subnet : {'subnet': {'id': '689be936-6d90-439b-b631-1ba4d882c9ce', 'name': '', 'tenant_id': 'dcece31d68504858a12df7a1574a6f23', 'network_id': 'a6b570e7-cca7-4197-ada2-eab4261046ff', 'ip_version': 4, 'cidr': '161.77.61.128/26', 'allocation_pools': [{'start': '161.77.61.130', 'end': '161.77.61.190'}], 'gateway_ip': '161.77.61.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.77.61.130', 'tags': [], 'project_id': 'dcece31d68504858a12df7a1574a6f23'}}
2026-03-30 03:46:06,584 - INFO - Created VN ctest-vn-28068248
2026-03-30 03:46:06,642 - DEBUG - VN ctest-vn-28068248 UUID is a6b570e7-cca7-4197-ada2-eab4261046ff
2026-03-30 03:46:06,974 - DEBUG - Response for create_network : {'network': {'id': 'c50b3e65-26a2-4dd6-ba66-2f64d43bc5fa', 'name': 'ctest-vn-12842267', 'tenant_id': 'dcece31d68504858a12df7a1574a6f23', 'project_id': 'dcece31d68504858a12df7a1574a6f23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60552654', 'ctest-vn-12842267'], 'port_security_enabled': True, 'description': ''}}
2026-03-30 03:46:07,194 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df989df5-469d-4cda-8872-bfa66edda3d6', 'name': '', 'tenant_id': 'dcece31d68504858a12df7a1574a6f23', 'network_id': 'c50b3e65-26a2-4dd6-ba66-2f64d43bc5fa', 'ip_version': 4, 'cidr': '26.71.110.0/26', 'allocation_pools': [{'start': '26.71.110.2', 'end': '26.71.110.62'}], 'gateway_ip': '26.71.110.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.71.110.2', 'tags': [], 'project_id': 'dcece31d68504858a12df7a1574a6f23'}}
2026-03-30 03:46:07,216 - INFO - Created VN ctest-vn-12842267
2026-03-30 03:46:07,270 - DEBUG - VN ctest-vn-12842267 UUID is c50b3e65-26a2-4dd6-ba66-2f64d43bc5fa
2026-03-30 03:46:07,384 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60552654:ctest-vn-28068248, 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-60552654:ctest-vn-12842267, 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-03-30 03:46:07,685 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6b570e7-cca7-4197-ada2-eab4261046ff', 'name': 'ctest-vn-28068248', 'tenant_id': 'dcece31d68504858a12df7a1574a6f23', 'project_id': 'dcece31d68504858a12df7a1574a6f23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['689be936-6d90-439b-b631-1ba4d882c9ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60552654', 'ctest-vn-28068248'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60552654', 'ctest-policy-allow-all-83124013']], 'subnet_ipam': [{'subnet_cidr': '161.77.61.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-30 03:46:07,959 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c50b3e65-26a2-4dd6-ba66-2f64d43bc5fa', 'name': 'ctest-vn-12842267', 'tenant_id': 'dcece31d68504858a12df7a1574a6f23', 'project_id': 'dcece31d68504858a12df7a1574a6f23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['df989df5-469d-4cda-8872-bfa66edda3d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60552654', 'ctest-vn-12842267'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60552654', 'ctest-policy-allow-all-83124013']], 'subnet_ipam': [{'subnet_cidr': '26.71.110.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-30 03:46:08,118 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-03-30 03:46:08,516 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-03-30 03:46:08,575 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c99256f1-436c-4481-8567-949d809916a8
2026-03-30 03:46:08,641 - DEBUG - Requesting: http://10.0.0.41:8082/project/dcece31d-6850-4858-a12d-f7a1574a6f23
2026-03-30 03:46:08,739 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a6b570e7-cca7-4197-ada2-eab4261046ff
2026-03-30 03:46:08,757 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a6b570e7-cca7-4197-ada2-eab4261046ff
2026-03-30 03:46:08,770 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7b950e5a-22e1-4a52-a62b-1c9190221ba3
2026-03-30 03:46:08,780 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7b950e5a-22e1-4a52-a62b-1c9190221ba3
2026-03-30 03:46:08,792 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/db7da277-9cb6-41dd-aa54-eb2ebcbb5379
2026-03-30 03:46:08,799 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-30 03:46:08,799 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a6b570e7-cca7-4197-ada2-eab4261046ff
2026-03-30 03:46:08,814 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7b950e5a-22e1-4a52-a62b-1c9190221ba3
2026-03-30 03:46:08,832 - INFO - Verified VN network id 12 for VN a6b570e7-cca7-4197-ada2-eab4261046ff
2026-03-30 03:46:08,832 - INFO - Verifications in API Server for VN ctest-vn-28068248 passed
2026-03-30 03:46:08,832 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a6b570e7-cca7-4197-ada2-eab4261046ff
2026-03-30 03:46:08,843 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7b950e5a-22e1-4a52-a62b-1c9190221ba3
2026-03-30 03:46:08,854 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7b950e5a-22e1-4a52-a62b-1c9190221ba3
2026-03-30 03:46:08,862 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/db7da277-9cb6-41dd-aa54-eb2ebcbb5379
2026-03-30 03:46:08,874 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60552654:ctest-vn-28068248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60552654', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12012631721953935767', 'uuid-lslong': '12511820774242273023'}, 'enable': 'true', 'created': '2026-03-30T03:46:06', 'last-modified': '2026-03-30T03:46:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.221462'}
2026-03-30 03:46:08,880 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-30 03:46:08,880 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28068248 passed
2026-03-30 03:46:08,880 - DEBUG - ====Verifying policy data for ctest-vn-28068248 in API_Server ======
2026-03-30 03:46:08,880 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-03-30 03:46:08,886 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c99256f1-436c-4481-8567-949d809916a8
2026-03-30 03:46:08,899 - DEBUG - Requesting: http://10.0.0.41:8082/project/dcece31d-6850-4858-a12d-f7a1574a6f23
2026-03-30 03:46:08,968 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a6b570e7-cca7-4197-ada2-eab4261046ff
2026-03-30 03:46:08,979 - DEBUG - ==>Verifying data for policy with id: e0ff9b05-54b8-4ea3-8890-90dc0ddca4b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-60552654', 'ctest-policy-allow-all-83124013']
2026-03-30 03:46:08,979 - INFO - VN ctest-vn-28068248 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-30 03:46:08,979 - DEBUG - Verifying the vn in opserver
2026-03-30 03:46:08,980 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60552654:ctest-vn-28068248 virtual network link through opserver 10.0.0.41
2026-03-30 03:46:08,980 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-03-30 03:46:09,338 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-03-30 03:46:09,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60552654:ctest-vn-28068248', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60552654:ctest-vn-28068248?flat'}
2026-03-30 03:46:09,408 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60552654:ctest-vn-28068248 is found in opserver
2026-03-30 03:46:09,417 - DEBUG - Do not have enough data to verify VN in agent
2026-03-30 03:46:09,422 - DEBUG - VRF ids for VN ctest-vn-28068248: {}
2026-03-30 03:46:09,422 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-03-30 03:46:09,427 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c99256f1-436c-4481-8567-949d809916a8
2026-03-30 03:46:09,438 - DEBUG - Requesting: http://10.0.0.41:8082/project/dcece31d-6850-4858-a12d-f7a1574a6f23
2026-03-30 03:46:09,519 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c50b3e65-26a2-4dd6-ba66-2f64d43bc5fa
2026-03-30 03:46:09,531 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c50b3e65-26a2-4dd6-ba66-2f64d43bc5fa
2026-03-30 03:46:09,542 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/380f45a1-dd18-4b2c-ac50-aeabb013fb4b
2026-03-30 03:46:09,550 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/380f45a1-dd18-4b2c-ac50-aeabb013fb4b
2026-03-30 03:46:09,558 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/d8a8c7f9-b571-4c7d-a855-2b6d169b058e
2026-03-30 03:46:09,565 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-30 03:46:09,565 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c50b3e65-26a2-4dd6-ba66-2f64d43bc5fa
2026-03-30 03:46:09,576 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/380f45a1-dd18-4b2c-ac50-aeabb013fb4b
2026-03-30 03:46:09,593 - INFO - Verified VN network id 13 for VN c50b3e65-26a2-4dd6-ba66-2f64d43bc5fa
2026-03-30 03:46:09,593 - INFO - Verifications in API Server for VN ctest-vn-12842267 passed
2026-03-30 03:46:09,593 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c50b3e65-26a2-4dd6-ba66-2f64d43bc5fa
2026-03-30 03:46:09,606 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/380f45a1-dd18-4b2c-ac50-aeabb013fb4b
2026-03-30 03:46:09,615 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/380f45a1-dd18-4b2c-ac50-aeabb013fb4b
2026-03-30 03:46:09,630 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/d8a8c7f9-b571-4c7d-a855-2b6d169b058e
2026-03-30 03:46:09,643 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60552654:ctest-vn-12842267', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60552654', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14198510854376410582', 'uuid-lslong': '13431475048783005178'}, 'enable': 'true', 'created': '2026-03-30T03:46:06', 'last-modified': '2026-03-30T03:46:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.754808'}
2026-03-30 03:46:09,649 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-30 03:46:09,649 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12842267 passed
2026-03-30 03:46:09,649 - DEBUG - ====Verifying policy data for ctest-vn-12842267 in API_Server ======
2026-03-30 03:46:09,649 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-03-30 03:46:09,655 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c99256f1-436c-4481-8567-949d809916a8
2026-03-30 03:46:09,666 - DEBUG - Requesting: http://10.0.0.41:8082/project/dcece31d-6850-4858-a12d-f7a1574a6f23
2026-03-30 03:46:09,740 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c50b3e65-26a2-4dd6-ba66-2f64d43bc5fa
2026-03-30 03:46:09,750 - DEBUG - ==>Verifying data for policy with id: e0ff9b05-54b8-4ea3-8890-90dc0ddca4b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-60552654', 'ctest-policy-allow-all-83124013']
2026-03-30 03:46:09,750 - INFO - VN ctest-vn-12842267 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-30 03:46:09,750 - DEBUG - Verifying the vn in opserver
2026-03-30 03:46:09,750 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60552654:ctest-vn-12842267 virtual network link through opserver 10.0.0.41
2026-03-30 03:46:09,750 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-03-30 03:46:09,761 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60552654:ctest-vn-12842267', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60552654:ctest-vn-12842267?flat'}
2026-03-30 03:46:09,761 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60552654:ctest-vn-12842267 is found in opserver
2026-03-30 03:46:09,772 - DEBUG - Do not have enough data to verify VN in agent
2026-03-30 03:46:09,777 - DEBUG - VRF ids for VN ctest-vn-12842267: {}
2026-03-30 03:46:09,838 - DEBUG - Services list from nova: [