2025-12-17 19:03:44,673 - INFO - Domain Default found not creating
2025-12-17 19:03:44,834 - INFO - Project ctest-TestBasicPolicy-79519136 not found, creating it
2025-12-17 19:03:45,303 - INFO - Created Project:ctest-TestBasicPolicy-79519136, ID : 83aa0a74-9793-4b98-b251-f652f90c095f
2025-12-17 19:03:46,820 - INFO - ================================================================================
2025-12-17 19:03:46,820 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-17 19:03:46,820 - 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-12-17 19:03:47,077 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-12-17 19:03:47,078 - INFO - Initial checks done. Running the testcase now
2025-12-17 19:03:47,078 - INFO -
2025-12-17 19:03:47,646 - DEBUG - Response for create_network : {'network': {'id': '345e691b-2656-464e-9a56-989a7391d057', 'name': 'ctest-vn-62047156', 'tenant_id': '83aa0a7497934b98b251f652f90c095f', 'project_id': '83aa0a7497934b98b251f652f90c095f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79519136', 'ctest-vn-62047156'], 'port_security_enabled': True, 'description': ''}}
2025-12-17 19:03:47,835 - DEBUG - Response for create_subnet : {'subnet': {'id': '981a57a4-a885-4c0f-9539-d9ea402b7a5a', 'name': '', 'tenant_id': '83aa0a7497934b98b251f652f90c095f', 'network_id': '345e691b-2656-464e-9a56-989a7391d057', 'ip_version': 4, 'cidr': '99.7.191.64/26', 'allocation_pools': [{'start': '99.7.191.66', 'end': '99.7.191.126'}], 'gateway_ip': '99.7.191.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.7.191.66', 'tags': [], 'project_id': '83aa0a7497934b98b251f652f90c095f'}}
2025-12-17 19:03:47,855 - INFO - Created VN ctest-vn-62047156
2025-12-17 19:03:47,907 - DEBUG - VN ctest-vn-62047156 UUID is 345e691b-2656-464e-9a56-989a7391d057
2025-12-17 19:03:48,193 - DEBUG - Response for create_network : {'network': {'id': 'f91a9a69-585d-4472-89a9-3abe37808589', 'name': 'ctest-vn-59379455', 'tenant_id': '83aa0a7497934b98b251f652f90c095f', 'project_id': '83aa0a7497934b98b251f652f90c095f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79519136', 'ctest-vn-59379455'], 'port_security_enabled': True, 'description': ''}}
2025-12-17 19:03:48,346 - DEBUG - Response for create_subnet : {'subnet': {'id': '554f9c1e-dbc9-4617-a2b1-6e4e3f20ab94', 'name': '', 'tenant_id': '83aa0a7497934b98b251f652f90c095f', 'network_id': 'f91a9a69-585d-4472-89a9-3abe37808589', 'ip_version': 4, 'cidr': '62.33.203.0/26', 'allocation_pools': [{'start': '62.33.203.2', 'end': '62.33.203.62'}], 'gateway_ip': '62.33.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.33.203.2', 'tags': [], 'project_id': '83aa0a7497934b98b251f652f90c095f'}}
2025-12-17 19:03:48,364 - INFO - Created VN ctest-vn-59379455
2025-12-17 19:03:48,415 - DEBUG - VN ctest-vn-59379455 UUID is f91a9a69-585d-4472-89a9-3abe37808589
2025-12-17 19:03:48,571 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79519136:ctest-vn-62047156, 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-79519136:ctest-vn-59379455, 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-12-17 19:03:48,874 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '345e691b-2656-464e-9a56-989a7391d057', 'name': 'ctest-vn-62047156', 'tenant_id': '83aa0a7497934b98b251f652f90c095f', 'project_id': '83aa0a7497934b98b251f652f90c095f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['981a57a4-a885-4c0f-9539-d9ea402b7a5a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79519136', 'ctest-vn-62047156'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79519136', 'ctest-policy-allow-all-92081537']], 'subnet_ipam': [{'subnet_cidr': '99.7.191.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-17 19:03:49,102 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f91a9a69-585d-4472-89a9-3abe37808589', 'name': 'ctest-vn-59379455', 'tenant_id': '83aa0a7497934b98b251f652f90c095f', 'project_id': '83aa0a7497934b98b251f652f90c095f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['554f9c1e-dbc9-4617-a2b1-6e4e3f20ab94'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79519136', 'ctest-vn-59379455'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79519136', 'ctest-policy-allow-all-92081537']], 'subnet_ipam': [{'subnet_cidr': '62.33.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-17 19:03:49,267 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-17 19:03:49,561 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-17 19:03:49,594 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d07efacc-620b-4f1c-9875-9cf04f425a79
2025-12-17 19:03:49,606 - DEBUG - Requesting: http://10.0.0.50:8082/project/83aa0a74-9793-4b98-b251-f652f90c095f
2025-12-17 19:03:49,677 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/345e691b-2656-464e-9a56-989a7391d057
2025-12-17 19:03:49,688 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/345e691b-2656-464e-9a56-989a7391d057
2025-12-17 19:03:49,697 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f672875e-0806-4e1a-9b16-5d79491d4974
2025-12-17 19:03:49,705 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f672875e-0806-4e1a-9b16-5d79491d4974
2025-12-17 19:03:49,712 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5a3b912d-3844-4cc9-a5b4-b5cb16c0b901
2025-12-17 19:03:49,719 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-17 19:03:49,719 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/345e691b-2656-464e-9a56-989a7391d057
2025-12-17 19:03:49,728 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f672875e-0806-4e1a-9b16-5d79491d4974
2025-12-17 19:03:49,742 - INFO - Verified VN network id 11 for VN 345e691b-2656-464e-9a56-989a7391d057
2025-12-17 19:03:49,742 - INFO - Verifications in API Server for VN ctest-vn-62047156 passed
2025-12-17 19:03:49,742 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/345e691b-2656-464e-9a56-989a7391d057
2025-12-17 19:03:49,751 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f672875e-0806-4e1a-9b16-5d79491d4974
2025-12-17 19:03:49,758 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f672875e-0806-4e1a-9b16-5d79491d4974
2025-12-17 19:03:49,764 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5a3b912d-3844-4cc9-a5b4-b5cb16c0b901
2025-12-17 19:03:49,776 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79519136:ctest-vn-62047156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79519136', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3773569103111276110', 'uuid-lslong': '11121244118969339991'}, 'enable': 'true', 'created': '2025-12-17T19:03:47', 'last-modified': '2025-12-17T19:03:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921850'}
2025-12-17 19:03:49,783 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-17 19:03:49,783 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62047156 passed
2025-12-17 19:03:49,783 - DEBUG - ====Verifying policy data for ctest-vn-62047156 in API_Server ======
2025-12-17 19:03:49,783 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-17 19:03:49,790 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d07efacc-620b-4f1c-9875-9cf04f425a79
2025-12-17 19:03:49,802 - DEBUG - Requesting: http://10.0.0.50:8082/project/83aa0a74-9793-4b98-b251-f652f90c095f
2025-12-17 19:03:49,870 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/345e691b-2656-464e-9a56-989a7391d057
2025-12-17 19:03:49,879 - DEBUG - ==>Verifying data for policy with id: bd926ba6-d011-483f-955f-2e0b8dcd6001, fqn: ['default-domain', 'ctest-TestBasicPolicy-79519136', 'ctest-policy-allow-all-92081537']
2025-12-17 19:03:49,879 - INFO - VN ctest-vn-62047156 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-17 19:03:49,880 - DEBUG - Verifying the vn in opserver
2025-12-17 19:03:49,880 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79519136:ctest-vn-62047156 virtual network link through opserver 10.0.0.50
2025-12-17 19:03:49,880 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-12-17 19:03:50,173 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-12-17 19:03:50,237 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79519136:ctest-vn-62047156', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79519136:ctest-vn-62047156?flat'}
2025-12-17 19:03:50,237 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79519136:ctest-vn-62047156 is found in opserver
2025-12-17 19:03:50,247 - DEBUG - Do not have enough data to verify VN in agent
2025-12-17 19:03:50,251 - DEBUG - VRF ids for VN ctest-vn-62047156: {}
2025-12-17 19:03:50,251 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-17 19:03:50,257 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d07efacc-620b-4f1c-9875-9cf04f425a79
2025-12-17 19:03:50,268 - DEBUG - Requesting: http://10.0.0.50:8082/project/83aa0a74-9793-4b98-b251-f652f90c095f
2025-12-17 19:03:50,333 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f91a9a69-585d-4472-89a9-3abe37808589
2025-12-17 19:03:50,345 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f91a9a69-585d-4472-89a9-3abe37808589
2025-12-17 19:03:50,355 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/db29cadd-8f6d-4c9d-8687-3915636f7b3d
2025-12-17 19:03:50,362 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/db29cadd-8f6d-4c9d-8687-3915636f7b3d
2025-12-17 19:03:50,370 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/39e01162-fa6c-4b1f-8d5b-9a90da30e2d2
2025-12-17 19:03:50,378 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-17 19:03:50,378 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f91a9a69-585d-4472-89a9-3abe37808589
2025-12-17 19:03:50,388 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/db29cadd-8f6d-4c9d-8687-3915636f7b3d
2025-12-17 19:03:50,403 - INFO - Verified VN network id 12 for VN f91a9a69-585d-4472-89a9-3abe37808589
2025-12-17 19:03:50,404 - INFO - Verifications in API Server for VN ctest-vn-59379455 passed
2025-12-17 19:03:50,404 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f91a9a69-585d-4472-89a9-3abe37808589
2025-12-17 19:03:50,413 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/db29cadd-8f6d-4c9d-8687-3915636f7b3d
2025-12-17 19:03:50,420 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/db29cadd-8f6d-4c9d-8687-3915636f7b3d
2025-12-17 19:03:50,427 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/39e01162-fa6c-4b1f-8d5b-9a90da30e2d2
2025-12-17 19:03:50,439 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79519136:ctest-vn-59379455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79519136', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17949829042083284082', 'uuid-lslong': '9919524242909595017'}, 'enable': 'true', 'created': '2025-12-17T19:03:48', 'last-modified': '2025-12-17T19:03:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.358243'}
2025-12-17 19:03:50,445 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-17 19:03:50,445 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59379455 passed
2025-12-17 19:03:50,445 - DEBUG - ====Verifying policy data for ctest-vn-59379455 in API_Server ======
2025-12-17 19:03:50,445 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-17 19:03:50,451 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d07efacc-620b-4f1c-9875-9cf04f425a79
2025-12-17 19:03:50,461 - DEBUG - Requesting: http://10.0.0.50:8082/project/83aa0a74-9793-4b98-b251-f652f90c095f
2025-12-17 19:03:50,529 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f91a9a69-585d-4472-89a9-3abe37808589
2025-12-17 19:03:50,537 - DEBUG - ==>Verifying data for policy with id: bd926ba6-d011-483f-955f-2e0b8dcd6001, fqn: ['default-domain', 'ctest-TestBasicPolicy-79519136', 'ctest-policy-allow-all-92081537']
2025-12-17 19:03:50,538 - INFO - VN ctest-vn-59379455 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-17 19:03:50,538 - DEBUG - Verifying the vn in opserver
2025-12-17 19:03:50,538 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79519136:ctest-vn-59379455 virtual network link through opserver 10.0.0.50
2025-12-17 19:03:50,538 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-12-17 19:03:50,548 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79519136:ctest-vn-59379455', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79519136:ctest-vn-59379455?flat'}
2025-12-17 19:03:50,548 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79519136:ctest-vn-59379455 is found in opserver
2025-12-17 19:03:50,557 - DEBUG - Do not have enough data to verify VN in agent
2025-12-17 19:03:50,562 - DEBUG - VRF ids for VN ctest-vn-59379455: {}
2025-12-17 19:03:50,622 - DEBUG - Services list from nova: [