2025-10-30 02:17:07,180 - INFO - Domain Default found not creating
2025-10-30 02:17:07,307 - INFO - Project ctest-TestBasicPolicy-98860340 not found, creating it
2025-10-30 02:17:07,722 - INFO - Created Project:ctest-TestBasicPolicy-98860340, ID : dad63246-882b-433a-b13c-05a7190c145d
2025-10-30 02:17:09,062 - INFO - ================================================================================
2025-10-30 02:17:09,062 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 02:17:09,062 - 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-10-30 02:17:09,316 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.249': '0'}} with
2025-10-30 02:17:09,316 - INFO - Initial checks done. Running the testcase now
2025-10-30 02:17:09,316 - INFO -
2025-10-30 02:17:09,847 - DEBUG - Response for create_network : {'network': {'id': '0831209e-5671-4a0c-823a-d0074aaed298', 'name': 'ctest-vn-32776038', 'tenant_id': 'dad63246882b433ab13c05a7190c145d', 'project_id': 'dad63246882b433ab13c05a7190c145d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98860340', 'ctest-vn-32776038'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 02:17:10,003 - DEBUG - Response for create_subnet : {'subnet': {'id': '42ce3cb3-72ca-4625-8eed-5fc8314d7a62', 'name': '', 'tenant_id': 'dad63246882b433ab13c05a7190c145d', 'network_id': '0831209e-5671-4a0c-823a-d0074aaed298', 'ip_version': 4, 'cidr': '132.131.19.192/26', 'allocation_pools': [{'start': '132.131.19.194', 'end': '132.131.19.254'}], 'gateway_ip': '132.131.19.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.131.19.194', 'tags': [], 'project_id': 'dad63246882b433ab13c05a7190c145d'}}
2025-10-30 02:17:10,018 - INFO - Created VN ctest-vn-32776038
2025-10-30 02:17:10,071 - DEBUG - VN ctest-vn-32776038 UUID is 0831209e-5671-4a0c-823a-d0074aaed298
2025-10-30 02:17:10,361 - DEBUG - Response for create_network : {'network': {'id': 'bad20ed2-87a5-44fb-8967-33dd84411385', 'name': 'ctest-vn-71540606', 'tenant_id': 'dad63246882b433ab13c05a7190c145d', 'project_id': 'dad63246882b433ab13c05a7190c145d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98860340', 'ctest-vn-71540606'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 02:17:10,548 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf4ca0b2-04f3-4ebc-9d16-a2d1ae5ec6a0', 'name': '', 'tenant_id': 'dad63246882b433ab13c05a7190c145d', 'network_id': 'bad20ed2-87a5-44fb-8967-33dd84411385', 'ip_version': 4, 'cidr': '112.137.91.0/26', 'allocation_pools': [{'start': '112.137.91.2', 'end': '112.137.91.62'}], 'gateway_ip': '112.137.91.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.137.91.2', 'tags': [], 'project_id': 'dad63246882b433ab13c05a7190c145d'}}
2025-10-30 02:17:10,565 - INFO - Created VN ctest-vn-71540606
2025-10-30 02:17:10,615 - DEBUG - VN ctest-vn-71540606 UUID is bad20ed2-87a5-44fb-8967-33dd84411385
2025-10-30 02:17:10,759 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98860340:ctest-vn-32776038, 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-98860340:ctest-vn-71540606, 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-10-30 02:17:11,042 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0831209e-5671-4a0c-823a-d0074aaed298', 'name': 'ctest-vn-32776038', 'tenant_id': 'dad63246882b433ab13c05a7190c145d', 'project_id': 'dad63246882b433ab13c05a7190c145d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42ce3cb3-72ca-4625-8eed-5fc8314d7a62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98860340', 'ctest-vn-32776038'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98860340', 'ctest-policy-allow-all-02667615']], 'subnet_ipam': [{'subnet_cidr': '132.131.19.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 02:17:11,304 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bad20ed2-87a5-44fb-8967-33dd84411385', 'name': 'ctest-vn-71540606', 'tenant_id': 'dad63246882b433ab13c05a7190c145d', 'project_id': 'dad63246882b433ab13c05a7190c145d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf4ca0b2-04f3-4ebc-9d16-a2d1ae5ec6a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98860340', 'ctest-vn-71540606'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98860340', 'ctest-policy-allow-all-02667615']], 'subnet_ipam': [{'subnet_cidr': '112.137.91.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 02:17:11,455 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-30 02:17:11,753 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-30 02:17:11,778 - DEBUG - Requesting: http://10.0.0.33:8082/domain/72a583dd-0632-4162-9b76-43bf94529bc6
2025-10-30 02:17:11,789 - DEBUG - Requesting: http://10.0.0.33:8082/project/dad63246-882b-433a-b13c-05a7190c145d
2025-10-30 02:17:11,857 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0831209e-5671-4a0c-823a-d0074aaed298
2025-10-30 02:17:11,867 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0831209e-5671-4a0c-823a-d0074aaed298
2025-10-30 02:17:11,875 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bfef852d-bb8a-47f7-839d-92355667ddcb
2025-10-30 02:17:11,880 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bfef852d-bb8a-47f7-839d-92355667ddcb
2025-10-30 02:17:11,885 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b9986979-8383-4a39-ae60-56ed6542324d
2025-10-30 02:17:11,890 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 02:17:11,890 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0831209e-5671-4a0c-823a-d0074aaed298
2025-10-30 02:17:11,897 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bfef852d-bb8a-47f7-839d-92355667ddcb
2025-10-30 02:17:11,907 - INFO - Verified VN network id 12 for VN 0831209e-5671-4a0c-823a-d0074aaed298
2025-10-30 02:17:11,907 - INFO - Verifications in API Server for VN ctest-vn-32776038 passed
2025-10-30 02:17:11,907 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0831209e-5671-4a0c-823a-d0074aaed298
2025-10-30 02:17:11,915 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bfef852d-bb8a-47f7-839d-92355667ddcb
2025-10-30 02:17:11,921 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bfef852d-bb8a-47f7-839d-92355667ddcb
2025-10-30 02:17:11,926 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b9986979-8383-4a39-ae60-56ed6542324d
2025-10-30 02:17:11,936 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98860340:ctest-vn-32776038', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98860340', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '590288890589432332', 'uuid-lslong': '9384041503316169368'}, 'enable': 'true', 'created': '2025-10-30T02:17:09', 'last-modified': '2025-10-30T02:17:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914337'}
2025-10-30 02:17:11,943 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 02:17:11,943 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32776038 passed
2025-10-30 02:17:11,943 - DEBUG - ====Verifying policy data for ctest-vn-32776038 in API_Server ======
2025-10-30 02:17:11,943 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-30 02:17:11,948 - DEBUG - Requesting: http://10.0.0.33:8082/domain/72a583dd-0632-4162-9b76-43bf94529bc6
2025-10-30 02:17:11,959 - DEBUG - Requesting: http://10.0.0.33:8082/project/dad63246-882b-433a-b13c-05a7190c145d
2025-10-30 02:17:12,028 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0831209e-5671-4a0c-823a-d0074aaed298
2025-10-30 02:17:12,035 - DEBUG - ==>Verifying data for policy with id: 9eca5ce4-ac3f-4d4b-8c19-3321a566137e, fqn: ['default-domain', 'ctest-TestBasicPolicy-98860340', 'ctest-policy-allow-all-02667615']
2025-10-30 02:17:12,035 - INFO - VN ctest-vn-32776038 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 02:17:12,035 - DEBUG - Verifying the vn in opserver
2025-10-30 02:17:12,035 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98860340:ctest-vn-32776038 virtual network link through opserver 10.0.0.33
2025-10-30 02:17:12,036 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-30 02:17:12,325 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-30 02:17:12,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98860340:ctest-vn-32776038', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98860340:ctest-vn-32776038?flat'}
2025-10-30 02:17:12,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98860340:ctest-vn-32776038 is found in opserver
2025-10-30 02:17:12,380 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 02:17:12,384 - DEBUG - VRF ids for VN ctest-vn-32776038: {}
2025-10-30 02:17:12,384 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-30 02:17:12,388 - DEBUG - Requesting: http://10.0.0.33:8082/domain/72a583dd-0632-4162-9b76-43bf94529bc6
2025-10-30 02:17:12,397 - DEBUG - Requesting: http://10.0.0.33:8082/project/dad63246-882b-433a-b13c-05a7190c145d
2025-10-30 02:17:12,463 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bad20ed2-87a5-44fb-8967-33dd84411385
2025-10-30 02:17:12,473 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bad20ed2-87a5-44fb-8967-33dd84411385
2025-10-30 02:17:12,480 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1ae56944-48c0-4617-9323-933652e3958a
2025-10-30 02:17:12,485 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1ae56944-48c0-4617-9323-933652e3958a
2025-10-30 02:17:12,490 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a395c668-d8d6-47b0-a2b6-fd279fdb0800
2025-10-30 02:17:12,496 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 02:17:12,496 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bad20ed2-87a5-44fb-8967-33dd84411385
2025-10-30 02:17:12,503 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1ae56944-48c0-4617-9323-933652e3958a
2025-10-30 02:17:12,515 - INFO - Verified VN network id 13 for VN bad20ed2-87a5-44fb-8967-33dd84411385
2025-10-30 02:17:12,515 - INFO - Verifications in API Server for VN ctest-vn-71540606 passed
2025-10-30 02:17:12,515 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bad20ed2-87a5-44fb-8967-33dd84411385
2025-10-30 02:17:12,522 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1ae56944-48c0-4617-9323-933652e3958a
2025-10-30 02:17:12,527 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1ae56944-48c0-4617-9323-933652e3958a
2025-10-30 02:17:12,532 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a395c668-d8d6-47b0-a2b6-fd279fdb0800
2025-10-30 02:17:12,541 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98860340:ctest-vn-71540606', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98860340', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13461838533545510139', 'uuid-lslong': '9900939332296971141'}, 'enable': 'true', 'created': '2025-10-30T02:17:10', 'last-modified': '2025-10-30T02:17:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.297218'}
2025-10-30 02:17:12,547 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 02:17:12,548 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71540606 passed
2025-10-30 02:17:12,548 - DEBUG - ====Verifying policy data for ctest-vn-71540606 in API_Server ======
2025-10-30 02:17:12,548 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-30 02:17:12,552 - DEBUG - Requesting: http://10.0.0.33:8082/domain/72a583dd-0632-4162-9b76-43bf94529bc6
2025-10-30 02:17:12,560 - DEBUG - Requesting: http://10.0.0.33:8082/project/dad63246-882b-433a-b13c-05a7190c145d
2025-10-30 02:17:12,628 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bad20ed2-87a5-44fb-8967-33dd84411385
2025-10-30 02:17:12,636 - DEBUG - ==>Verifying data for policy with id: 9eca5ce4-ac3f-4d4b-8c19-3321a566137e, fqn: ['default-domain', 'ctest-TestBasicPolicy-98860340', 'ctest-policy-allow-all-02667615']
2025-10-30 02:17:12,636 - INFO - VN ctest-vn-71540606 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 02:17:12,636 - DEBUG - Verifying the vn in opserver
2025-10-30 02:17:12,636 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98860340:ctest-vn-71540606 virtual network link through opserver 10.0.0.33
2025-10-30 02:17:12,636 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-30 02:17:12,644 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98860340:ctest-vn-71540606', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98860340:ctest-vn-71540606?flat'}
2025-10-30 02:17:12,644 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98860340:ctest-vn-71540606 is found in opserver
2025-10-30 02:17:12,653 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 02:17:12,658 - DEBUG - VRF ids for VN ctest-vn-71540606: {}
2025-10-30 02:17:12,714 - DEBUG - Services list from nova: [