2025-09-25 19:55:00,043 - INFO - Domain Default found not creating
2025-09-25 19:55:00,168 - INFO - Project ctest-TestBasicPolicy-31787597 not found, creating it
2025-09-25 19:55:00,580 - INFO - Created Project:ctest-TestBasicPolicy-31787597, ID : 822376d4-40fe-4077-aef9-d1e2efd4f782
2025-09-25 19:55:01,892 - INFO - ================================================================================
2025-09-25 19:55:01,892 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-25 19:55:01,892 - 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
2025-09-25 19:55:02,142 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-09-25 19:55:02,142 - INFO - Initial checks done. Running the testcase now
2025-09-25 19:55:02,143 - INFO -
2025-09-25 19:55:02,647 - DEBUG - Response for create_network : {'network': {'id': 'a4b19f13-e0d2-4389-87f6-8791379dcaf0', 'name': 'ctest-vn-73360284', 'tenant_id': '822376d440fe4077aef9d1e2efd4f782', 'project_id': '822376d440fe4077aef9d1e2efd4f782', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31787597', 'ctest-vn-73360284'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 19:55:02,846 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e1101ac-8015-4403-ac33-5731510c3036', 'name': '', 'tenant_id': '822376d440fe4077aef9d1e2efd4f782', 'network_id': 'a4b19f13-e0d2-4389-87f6-8791379dcaf0', 'ip_version': 4, 'cidr': '158.176.218.128/26', 'allocation_pools': [{'start': '158.176.218.130', 'end': '158.176.218.190'}], 'gateway_ip': '158.176.218.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.176.218.130', 'tags': [], 'project_id': '822376d440fe4077aef9d1e2efd4f782'}}
2025-09-25 19:55:02,860 - INFO - Created VN ctest-vn-73360284
2025-09-25 19:55:02,910 - DEBUG - VN ctest-vn-73360284 UUID is a4b19f13-e0d2-4389-87f6-8791379dcaf0
2025-09-25 19:55:03,202 - DEBUG - Response for create_network : {'network': {'id': '03d133d1-ac8c-4cc3-8f8f-fc6c40626b9f', 'name': 'ctest-vn-52849814', 'tenant_id': '822376d440fe4077aef9d1e2efd4f782', 'project_id': '822376d440fe4077aef9d1e2efd4f782', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31787597', 'ctest-vn-52849814'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 19:55:03,405 - DEBUG - Response for create_subnet : {'subnet': {'id': '309ec9a6-9b86-45d8-bfeb-a56fa75618d0', 'name': '', 'tenant_id': '822376d440fe4077aef9d1e2efd4f782', 'network_id': '03d133d1-ac8c-4cc3-8f8f-fc6c40626b9f', 'ip_version': 4, 'cidr': '209.107.243.128/26', 'allocation_pools': [{'start': '209.107.243.130', 'end': '209.107.243.190'}], 'gateway_ip': '209.107.243.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.107.243.130', 'tags': [], 'project_id': '822376d440fe4077aef9d1e2efd4f782'}}
2025-09-25 19:55:03,420 - INFO - Created VN ctest-vn-52849814
2025-09-25 19:55:03,470 - DEBUG - VN ctest-vn-52849814 UUID is 03d133d1-ac8c-4cc3-8f8f-fc6c40626b9f
2025-09-25 19:55:03,614 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31787597:ctest-vn-73360284, 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-31787597:ctest-vn-52849814, 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]
2025-09-25 19:55:03,890 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4b19f13-e0d2-4389-87f6-8791379dcaf0', 'name': 'ctest-vn-73360284', 'tenant_id': '822376d440fe4077aef9d1e2efd4f782', 'project_id': '822376d440fe4077aef9d1e2efd4f782', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1e1101ac-8015-4403-ac33-5731510c3036'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31787597', 'ctest-vn-73360284'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31787597', 'ctest-policy-allow-all-72843767']], 'subnet_ipam': [{'subnet_cidr': '158.176.218.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 19:55:04,102 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03d133d1-ac8c-4cc3-8f8f-fc6c40626b9f', 'name': 'ctest-vn-52849814', 'tenant_id': '822376d440fe4077aef9d1e2efd4f782', 'project_id': '822376d440fe4077aef9d1e2efd4f782', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['309ec9a6-9b86-45d8-bfeb-a56fa75618d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31787597', 'ctest-vn-52849814'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31787597', 'ctest-policy-allow-all-72843767']], 'subnet_ipam': [{'subnet_cidr': '209.107.243.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 19:55:04,254 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-25 19:55:04,542 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-25 19:55:04,565 - DEBUG - Requesting: http://10.0.0.57:8082/domain/acd9d76b-625d-43b1-bfb9-0d48e90947f0
2025-09-25 19:55:04,576 - DEBUG - Requesting: http://10.0.0.57:8082/project/822376d4-40fe-4077-aef9-d1e2efd4f782
2025-09-25 19:55:04,643 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a4b19f13-e0d2-4389-87f6-8791379dcaf0
2025-09-25 19:55:04,653 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a4b19f13-e0d2-4389-87f6-8791379dcaf0
2025-09-25 19:55:04,661 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/63771151-765a-40bd-ae32-42a907514a76
2025-09-25 19:55:04,669 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/63771151-765a-40bd-ae32-42a907514a76
2025-09-25 19:55:04,674 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/9ec6a7ac-d3e6-482b-b824-8927b5b84c34
2025-09-25 19:55:04,679 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 19:55:04,679 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a4b19f13-e0d2-4389-87f6-8791379dcaf0
2025-09-25 19:55:04,686 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/63771151-765a-40bd-ae32-42a907514a76
2025-09-25 19:55:04,696 - INFO - Verified VN network id 12 for VN a4b19f13-e0d2-4389-87f6-8791379dcaf0
2025-09-25 19:55:04,696 - INFO - Verifications in API Server for VN ctest-vn-73360284 passed
2025-09-25 19:55:04,696 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a4b19f13-e0d2-4389-87f6-8791379dcaf0
2025-09-25 19:55:04,703 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/63771151-765a-40bd-ae32-42a907514a76
2025-09-25 19:55:04,708 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/63771151-765a-40bd-ae32-42a907514a76
2025-09-25 19:55:04,714 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/9ec6a7ac-d3e6-482b-b824-8927b5b84c34
2025-09-25 19:55:04,723 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31787597:ctest-vn-73360284', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31787597', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11867441400823038857', 'uuid-lslong': '9797167097164188400'}, 'enable': 'true', 'created': '2025-09-25T19:55:02', 'last-modified': '2025-09-25T19:55:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.855461'}
2025-09-25 19:55:04,728 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 19:55:04,728 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73360284 passed
2025-09-25 19:55:04,728 - DEBUG - ====Verifying policy data for ctest-vn-73360284 in API_Server ======
2025-09-25 19:55:04,728 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-25 19:55:04,733 - DEBUG - Requesting: http://10.0.0.57:8082/domain/acd9d76b-625d-43b1-bfb9-0d48e90947f0
2025-09-25 19:55:04,742 - DEBUG - Requesting: http://10.0.0.57:8082/project/822376d4-40fe-4077-aef9-d1e2efd4f782
2025-09-25 19:55:04,808 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a4b19f13-e0d2-4389-87f6-8791379dcaf0
2025-09-25 19:55:04,816 - DEBUG - ==>Verifying data for policy with id: 2f1ea7ce-e03f-4cdc-97a5-30edf559457c, fqn: ['default-domain', 'ctest-TestBasicPolicy-31787597', 'ctest-policy-allow-all-72843767']
2025-09-25 19:55:04,816 - INFO - VN ctest-vn-73360284 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 19:55:04,816 - DEBUG - Verifying the vn in opserver
2025-09-25 19:55:04,816 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31787597:ctest-vn-73360284 virtual network link through opserver 10.0.0.57
2025-09-25 19:55:04,816 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-25 19:55:05,104 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-25 19:55:05,149 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31787597:ctest-vn-73360284', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31787597:ctest-vn-73360284?flat'}
2025-09-25 19:55:05,149 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31787597:ctest-vn-73360284 is found in opserver
2025-09-25 19:55:05,157 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 19:55:05,162 - DEBUG - VRF ids for VN ctest-vn-73360284: {}
2025-09-25 19:55:05,162 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-25 19:55:05,166 - DEBUG - Requesting: http://10.0.0.57:8082/domain/acd9d76b-625d-43b1-bfb9-0d48e90947f0
2025-09-25 19:55:05,175 - DEBUG - Requesting: http://10.0.0.57:8082/project/822376d4-40fe-4077-aef9-d1e2efd4f782
2025-09-25 19:55:05,240 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/03d133d1-ac8c-4cc3-8f8f-fc6c40626b9f
2025-09-25 19:55:05,249 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/03d133d1-ac8c-4cc3-8f8f-fc6c40626b9f
2025-09-25 19:55:05,256 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e6f219ac-3313-4fb9-ad42-454630f785f1
2025-09-25 19:55:05,261 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e6f219ac-3313-4fb9-ad42-454630f785f1
2025-09-25 19:55:05,266 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/e6e62237-4d7b-496c-9418-a87babbcf78c
2025-09-25 19:55:05,271 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 19:55:05,271 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/03d133d1-ac8c-4cc3-8f8f-fc6c40626b9f
2025-09-25 19:55:05,277 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e6f219ac-3313-4fb9-ad42-454630f785f1
2025-09-25 19:55:05,287 - INFO - Verified VN network id 13 for VN 03d133d1-ac8c-4cc3-8f8f-fc6c40626b9f
2025-09-25 19:55:05,287 - INFO - Verifications in API Server for VN ctest-vn-52849814 passed
2025-09-25 19:55:05,287 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/03d133d1-ac8c-4cc3-8f8f-fc6c40626b9f
2025-09-25 19:55:05,294 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e6f219ac-3313-4fb9-ad42-454630f785f1
2025-09-25 19:55:05,298 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e6f219ac-3313-4fb9-ad42-454630f785f1
2025-09-25 19:55:05,303 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/e6e62237-4d7b-496c-9418-a87babbcf78c
2025-09-25 19:55:05,312 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31787597:ctest-vn-52849814', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31787597', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '275058027882368195', 'uuid-lslong': '10344764410960178079'}, 'enable': 'true', 'created': '2025-09-25T19:55:03', 'last-modified': '2025-09-25T19:55:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.227072'}
2025-09-25 19:55:05,316 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 19:55:05,316 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52849814 passed
2025-09-25 19:55:05,316 - DEBUG - ====Verifying policy data for ctest-vn-52849814 in API_Server ======
2025-09-25 19:55:05,316 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-25 19:55:05,321 - DEBUG - Requesting: http://10.0.0.57:8082/domain/acd9d76b-625d-43b1-bfb9-0d48e90947f0
2025-09-25 19:55:05,329 - DEBUG - Requesting: http://10.0.0.57:8082/project/822376d4-40fe-4077-aef9-d1e2efd4f782
2025-09-25 19:55:05,395 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/03d133d1-ac8c-4cc3-8f8f-fc6c40626b9f
2025-09-25 19:55:05,402 - DEBUG - ==>Verifying data for policy with id: 2f1ea7ce-e03f-4cdc-97a5-30edf559457c, fqn: ['default-domain', 'ctest-TestBasicPolicy-31787597', 'ctest-policy-allow-all-72843767']
2025-09-25 19:55:05,402 - INFO - VN ctest-vn-52849814 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 19:55:05,402 - DEBUG - Verifying the vn in opserver
2025-09-25 19:55:05,402 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31787597:ctest-vn-52849814 virtual network link through opserver 10.0.0.57
2025-09-25 19:55:05,403 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-25 19:55:05,411 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31787597:ctest-vn-52849814', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31787597:ctest-vn-52849814?flat'}
2025-09-25 19:55:05,411 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31787597:ctest-vn-52849814 is found in opserver
2025-09-25 19:55:05,419 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 19:55:05,422 - DEBUG - VRF ids for VN ctest-vn-52849814: {}
2025-09-25 19:55:05,470 - DEBUG - Services list from nova: [