2026-11-06 23:56:54,192 - INFO - Domain Default found not creating
2026-11-06 23:56:54,393 - INFO - Project ctest-TestBasicPolicy-02100552 not found, creating it
2026-11-06 23:56:54,925 - INFO - Created Project:ctest-TestBasicPolicy-02100552, ID : a9129b5c-cf8b-4966-9f63-35175bfbb726
2026-11-06 23:56:56,744 - INFO - ================================================================================
2026-11-06 23:56:56,744 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-06 23:56:56,745 - 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-11-06 23:56:57,017 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with
2026-11-06 23:56:57,017 - INFO - Initial checks done. Running the testcase now
2026-11-06 23:56:57,017 - INFO -
2026-11-06 23:56:57,684 - DEBUG - Response for create_network : {'network': {'id': '091a1e5b-bbcc-4c77-89b8-0cb7c8be712c', 'name': 'ctest-vn-73130179', 'tenant_id': 'a9129b5ccf8b49669f6335175bfbb726', 'project_id': 'a9129b5ccf8b49669f6335175bfbb726', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02100552', 'ctest-vn-73130179'], 'port_security_enabled': True, 'description': ''}}
2026-11-06 23:56:57,868 - DEBUG - Response for create_subnet : {'subnet': {'id': '54ee69e0-28a1-479b-bf1c-c23330be7202', 'name': '', 'tenant_id': 'a9129b5ccf8b49669f6335175bfbb726', 'network_id': '091a1e5b-bbcc-4c77-89b8-0cb7c8be712c', 'ip_version': 4, 'cidr': '170.239.97.192/26', 'allocation_pools': [{'start': '170.239.97.194', 'end': '170.239.97.254'}], 'gateway_ip': '170.239.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.239.97.194', 'tags': [], 'project_id': 'a9129b5ccf8b49669f6335175bfbb726'}}
2026-11-06 23:56:57,893 - INFO - Created VN ctest-vn-73130179
2026-11-06 23:56:57,948 - DEBUG - VN ctest-vn-73130179 UUID is 091a1e5b-bbcc-4c77-89b8-0cb7c8be712c
2026-11-06 23:56:58,271 - DEBUG - Response for create_network : {'network': {'id': 'b7e11d51-5623-4b26-a1d0-de2038f4fe00', 'name': 'ctest-vn-74547659', 'tenant_id': 'a9129b5ccf8b49669f6335175bfbb726', 'project_id': 'a9129b5ccf8b49669f6335175bfbb726', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02100552', 'ctest-vn-74547659'], 'port_security_enabled': True, 'description': ''}}
2026-11-06 23:56:58,445 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ce804f8-f818-403a-bb60-a32a50592fd0', 'name': '', 'tenant_id': 'a9129b5ccf8b49669f6335175bfbb726', 'network_id': 'b7e11d51-5623-4b26-a1d0-de2038f4fe00', 'ip_version': 4, 'cidr': '49.51.66.192/26', 'allocation_pools': [{'start': '49.51.66.194', 'end': '49.51.66.254'}], 'gateway_ip': '49.51.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.51.66.194', 'tags': [], 'project_id': 'a9129b5ccf8b49669f6335175bfbb726'}}
2026-11-06 23:56:58,465 - INFO - Created VN ctest-vn-74547659
2026-11-06 23:56:58,520 - DEBUG - VN ctest-vn-74547659 UUID is b7e11d51-5623-4b26-a1d0-de2038f4fe00
2026-11-06 23:56:58,641 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02100552:ctest-vn-73130179, 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-02100552:ctest-vn-74547659, 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-11-06 23:56:58,973 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '091a1e5b-bbcc-4c77-89b8-0cb7c8be712c', 'name': 'ctest-vn-73130179', 'tenant_id': 'a9129b5ccf8b49669f6335175bfbb726', 'project_id': 'a9129b5ccf8b49669f6335175bfbb726', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['54ee69e0-28a1-479b-bf1c-c23330be7202'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02100552', 'ctest-vn-73130179'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02100552', 'ctest-policy-allow-all-33869407']], 'subnet_ipam': [{'subnet_cidr': '170.239.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-06 23:56:59,212 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7e11d51-5623-4b26-a1d0-de2038f4fe00', 'name': 'ctest-vn-74547659', 'tenant_id': 'a9129b5ccf8b49669f6335175bfbb726', 'project_id': 'a9129b5ccf8b49669f6335175bfbb726', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5ce804f8-f818-403a-bb60-a32a50592fd0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02100552', 'ctest-vn-74547659'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02100552', 'ctest-policy-allow-all-33869407']], 'subnet_ipam': [{'subnet_cidr': '49.51.66.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-06 23:56:59,376 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-06 23:56:59,756 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-06 23:56:59,787 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ce81d6c8-eae9-4b7c-bf98-81cb2e87f0ec
2026-11-06 23:56:59,802 - DEBUG - Requesting: http://10.0.0.161:8082/project/a9129b5c-cf8b-4966-9f63-35175bfbb726
2026-11-06 23:56:59,887 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/091a1e5b-bbcc-4c77-89b8-0cb7c8be712c
2026-11-06 23:56:59,901 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/091a1e5b-bbcc-4c77-89b8-0cb7c8be712c
2026-11-06 23:56:59,913 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2f1f8d70-44bd-4656-9c2f-ee809b1c0a78
2026-11-06 23:56:59,922 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2f1f8d70-44bd-4656-9c2f-ee809b1c0a78
2026-11-06 23:56:59,930 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/d62a8492-45d9-4710-84fc-d09ac87c6c1e
2026-11-06 23:56:59,937 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-06 23:56:59,937 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/091a1e5b-bbcc-4c77-89b8-0cb7c8be712c
2026-11-06 23:56:59,947 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2f1f8d70-44bd-4656-9c2f-ee809b1c0a78
2026-11-06 23:56:59,963 - INFO - Verified VN network id 12 for VN 091a1e5b-bbcc-4c77-89b8-0cb7c8be712c
2026-11-06 23:56:59,963 - INFO - Verifications in API Server for VN ctest-vn-73130179 passed
2026-11-06 23:56:59,964 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/091a1e5b-bbcc-4c77-89b8-0cb7c8be712c
2026-11-06 23:56:59,974 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2f1f8d70-44bd-4656-9c2f-ee809b1c0a78
2026-11-06 23:56:59,983 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2f1f8d70-44bd-4656-9c2f-ee809b1c0a78
2026-11-06 23:56:59,991 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/d62a8492-45d9-4710-84fc-d09ac87c6c1e
2026-11-06 23:57:00,006 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02100552:ctest-vn-73130179', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02100552', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '655870075077414007', 'uuid-lslong': '9923695762397360428'}, 'enable': 'true', 'created': '2026-11-06T23:56:57', 'last-modified': '2026-11-06T23:56:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.056888'}
2026-11-06 23:57:00,014 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-06 23:57:00,015 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73130179 passed
2026-11-06 23:57:00,015 - DEBUG - ====Verifying policy data for ctest-vn-73130179 in API_Server ======
2026-11-06 23:57:00,015 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-06 23:57:00,022 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ce81d6c8-eae9-4b7c-bf98-81cb2e87f0ec
2026-11-06 23:57:00,034 - DEBUG - Requesting: http://10.0.0.161:8082/project/a9129b5c-cf8b-4966-9f63-35175bfbb726
2026-11-06 23:57:00,113 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/091a1e5b-bbcc-4c77-89b8-0cb7c8be712c
2026-11-06 23:57:00,125 - DEBUG - ==>Verifying data for policy with id: db76f01b-972b-4f40-ab8f-9182c53a0535, fqn: ['default-domain', 'ctest-TestBasicPolicy-02100552', 'ctest-policy-allow-all-33869407']
2026-11-06 23:57:00,125 - INFO - VN ctest-vn-73130179 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-06 23:57:00,125 - DEBUG - Verifying the vn in opserver
2026-11-06 23:57:00,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02100552:ctest-vn-73130179 virtual network link through opserver 10.0.0.161
2026-11-06 23:57:00,125 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-11-06 23:57:00,539 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-11-06 23:57:00,602 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02100552:ctest-vn-73130179', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02100552:ctest-vn-73130179?flat'}
2026-11-06 23:57:00,603 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02100552:ctest-vn-73130179 is found in opserver
2026-11-06 23:57:00,619 - DEBUG - Do not have enough data to verify VN in agent
2026-11-06 23:57:00,625 - DEBUG - VRF ids for VN ctest-vn-73130179: {}
2026-11-06 23:57:00,625 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-06 23:57:00,632 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ce81d6c8-eae9-4b7c-bf98-81cb2e87f0ec
2026-11-06 23:57:00,645 - DEBUG - Requesting: http://10.0.0.161:8082/project/a9129b5c-cf8b-4966-9f63-35175bfbb726
2026-11-06 23:57:00,738 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b7e11d51-5623-4b26-a1d0-de2038f4fe00
2026-11-06 23:57:00,759 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b7e11d51-5623-4b26-a1d0-de2038f4fe00
2026-11-06 23:57:00,773 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/e713d844-1c76-40e3-a9a0-034260800a2a
2026-11-06 23:57:00,783 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/e713d844-1c76-40e3-a9a0-034260800a2a
2026-11-06 23:57:00,795 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/44ff0afd-97f2-424e-9994-a7af0c16b7f6
2026-11-06 23:57:00,804 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-06 23:57:00,804 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b7e11d51-5623-4b26-a1d0-de2038f4fe00
2026-11-06 23:57:00,818 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/e713d844-1c76-40e3-a9a0-034260800a2a
2026-11-06 23:57:00,839 - INFO - Verified VN network id 13 for VN b7e11d51-5623-4b26-a1d0-de2038f4fe00
2026-11-06 23:57:00,840 - INFO - Verifications in API Server for VN ctest-vn-74547659 passed
2026-11-06 23:57:00,840 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b7e11d51-5623-4b26-a1d0-de2038f4fe00
2026-11-06 23:57:00,852 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/e713d844-1c76-40e3-a9a0-034260800a2a
2026-11-06 23:57:00,861 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/e713d844-1c76-40e3-a9a0-034260800a2a
2026-11-06 23:57:00,870 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/44ff0afd-97f2-424e-9994-a7af0c16b7f6
2026-11-06 23:57:00,888 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02100552:ctest-vn-74547659', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02100552', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13249903813875419942', 'uuid-lslong': '11660063665238113792'}, 'enable': 'true', 'created': '2026-11-06T23:56:58', 'last-modified': '2026-11-06T23:56:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.703713'}
2026-11-06 23:57:00,897 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-06 23:57:00,897 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74547659 passed
2026-11-06 23:57:00,897 - DEBUG - ====Verifying policy data for ctest-vn-74547659 in API_Server ======
2026-11-06 23:57:00,898 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-06 23:57:00,905 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ce81d6c8-eae9-4b7c-bf98-81cb2e87f0ec
2026-11-06 23:57:00,918 - DEBUG - Requesting: http://10.0.0.161:8082/project/a9129b5c-cf8b-4966-9f63-35175bfbb726
2026-11-06 23:57:00,995 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/b7e11d51-5623-4b26-a1d0-de2038f4fe00
2026-11-06 23:57:01,006 - DEBUG - ==>Verifying data for policy with id: db76f01b-972b-4f40-ab8f-9182c53a0535, fqn: ['default-domain', 'ctest-TestBasicPolicy-02100552', 'ctest-policy-allow-all-33869407']
2026-11-06 23:57:01,006 - INFO - VN ctest-vn-74547659 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-06 23:57:01,006 - DEBUG - Verifying the vn in opserver
2026-11-06 23:57:01,006 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02100552:ctest-vn-74547659 virtual network link through opserver 10.0.0.161
2026-11-06 23:57:01,007 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-11-06 23:57:01,019 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02100552:ctest-vn-74547659', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02100552:ctest-vn-74547659?flat'}
2026-11-06 23:57:01,019 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02100552:ctest-vn-74547659 is found in opserver
2026-11-06 23:57:01,036 - DEBUG - Do not have enough data to verify VN in agent
2026-11-06 23:57:01,044 - DEBUG - VRF ids for VN ctest-vn-74547659: {}
2026-11-06 23:57:01,119 - DEBUG - Services list from nova: [