2026-07-05 02:31:37,386 - INFO - Domain Default found not creating
2026-07-05 02:31:37,556 - INFO - Project ctest-TestBasicPolicy-02808415 not found, creating it
2026-07-05 02:31:38,138 - INFO - Created Project:ctest-TestBasicPolicy-02808415, ID : a06e51a4-614d-430c-8c4d-4cc905dd1693
2026-07-05 02:31:39,659 - INFO - ================================================================================
2026-07-05 02:31:39,660 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-05 02:31:39,660 - 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-07-05 02:31:39,913 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-07-05 02:31:39,913 - INFO - Initial checks done. Running the testcase now
2026-07-05 02:31:39,913 - INFO -
2026-07-05 02:31:40,488 - DEBUG - Response for create_network : {'network': {'id': '535f5424-dcb9-49c6-b2a4-8d89d38d74e8', 'name': 'ctest-vn-35847774', 'tenant_id': 'a06e51a4614d430c8c4d4cc905dd1693', 'project_id': 'a06e51a4614d430c8c4d4cc905dd1693', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02808415', 'ctest-vn-35847774'], 'port_security_enabled': True, 'description': ''}}
2026-07-05 02:31:40,676 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee29d79d-ac5e-4f2f-9151-e8d6837ca293', 'name': '', 'tenant_id': 'a06e51a4614d430c8c4d4cc905dd1693', 'network_id': '535f5424-dcb9-49c6-b2a4-8d89d38d74e8', 'ip_version': 4, 'cidr': '54.40.66.192/26', 'allocation_pools': [{'start': '54.40.66.194', 'end': '54.40.66.254'}], 'gateway_ip': '54.40.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.40.66.194', 'tags': [], 'project_id': 'a06e51a4614d430c8c4d4cc905dd1693'}}
2026-07-05 02:31:40,691 - INFO - Created VN ctest-vn-35847774
2026-07-05 02:31:40,740 - DEBUG - VN ctest-vn-35847774 UUID is 535f5424-dcb9-49c6-b2a4-8d89d38d74e8
2026-07-05 02:31:41,042 - DEBUG - Response for create_network : {'network': {'id': '5f960f28-29b2-4423-b794-6a49b964cde9', 'name': 'ctest-vn-98893537', 'tenant_id': 'a06e51a4614d430c8c4d4cc905dd1693', 'project_id': 'a06e51a4614d430c8c4d4cc905dd1693', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02808415', 'ctest-vn-98893537'], 'port_security_enabled': True, 'description': ''}}
2026-07-05 02:31:41,189 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c40da9e1-07e3-4ef0-ad93-4c60e98ab160', 'name': '', 'tenant_id': 'a06e51a4614d430c8c4d4cc905dd1693', 'network_id': '5f960f28-29b2-4423-b794-6a49b964cde9', 'ip_version': 4, 'cidr': '87.227.45.192/26', 'allocation_pools': [{'start': '87.227.45.194', 'end': '87.227.45.254'}], 'gateway_ip': '87.227.45.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.227.45.194', 'tags': [], 'project_id': 'a06e51a4614d430c8c4d4cc905dd1693'}}
2026-07-05 02:31:41,202 - INFO - Created VN ctest-vn-98893537
2026-07-05 02:31:41,252 - DEBUG - VN ctest-vn-98893537 UUID is 5f960f28-29b2-4423-b794-6a49b964cde9
2026-07-05 02:31:41,369 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02808415:ctest-vn-35847774, 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-02808415:ctest-vn-98893537, 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-07-05 02:31:41,657 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '535f5424-dcb9-49c6-b2a4-8d89d38d74e8', 'name': 'ctest-vn-35847774', 'tenant_id': 'a06e51a4614d430c8c4d4cc905dd1693', 'project_id': 'a06e51a4614d430c8c4d4cc905dd1693', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee29d79d-ac5e-4f2f-9151-e8d6837ca293'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02808415', 'ctest-vn-35847774'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02808415', 'ctest-policy-allow-all-58794281']], 'subnet_ipam': [{'subnet_cidr': '54.40.66.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-05 02:31:41,887 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f960f28-29b2-4423-b794-6a49b964cde9', 'name': 'ctest-vn-98893537', 'tenant_id': 'a06e51a4614d430c8c4d4cc905dd1693', 'project_id': 'a06e51a4614d430c8c4d4cc905dd1693', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c40da9e1-07e3-4ef0-ad93-4c60e98ab160'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02808415', 'ctest-vn-98893537'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02808415', 'ctest-policy-allow-all-58794281']], 'subnet_ipam': [{'subnet_cidr': '87.227.45.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-05 02:31:42,040 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-05 02:31:42,376 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-05 02:31:42,704 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b9b5b983-2787-4ca1-b56f-d52598b07a92
2026-07-05 02:31:42,716 - DEBUG - Requesting: http://10.0.0.50:8082/project/a06e51a4-614d-430c-8c4d-4cc905dd1693
2026-07-05 02:31:42,800 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/535f5424-dcb9-49c6-b2a4-8d89d38d74e8
2026-07-05 02:31:42,811 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/535f5424-dcb9-49c6-b2a4-8d89d38d74e8
2026-07-05 02:31:42,819 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acdb1bcc-d3e3-47d8-8614-c7e0ef853116
2026-07-05 02:31:42,826 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acdb1bcc-d3e3-47d8-8614-c7e0ef853116
2026-07-05 02:31:42,832 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/373efd51-97ba-4183-802b-a3551a800f90
2026-07-05 02:31:42,837 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-05 02:31:42,838 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/535f5424-dcb9-49c6-b2a4-8d89d38d74e8
2026-07-05 02:31:42,846 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acdb1bcc-d3e3-47d8-8614-c7e0ef853116
2026-07-05 02:31:42,859 - INFO - Verified VN network id 12 for VN 535f5424-dcb9-49c6-b2a4-8d89d38d74e8
2026-07-05 02:31:42,859 - INFO - Verifications in API Server for VN ctest-vn-35847774 passed
2026-07-05 02:31:42,859 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/535f5424-dcb9-49c6-b2a4-8d89d38d74e8
2026-07-05 02:31:42,868 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acdb1bcc-d3e3-47d8-8614-c7e0ef853116
2026-07-05 02:31:42,874 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acdb1bcc-d3e3-47d8-8614-c7e0ef853116
2026-07-05 02:31:42,880 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/373efd51-97ba-4183-802b-a3551a800f90
2026-07-05 02:31:42,891 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02808415:ctest-vn-35847774', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02808415', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6007612945234217414', 'uuid-lslong': '12872569258031019240'}, 'enable': 'true', 'created': '2026-07-05T02:31:40', 'last-modified': '2026-07-05T02:31:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.260570'}
2026-07-05 02:31:42,896 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-05 02:31:42,896 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35847774 passed
2026-07-05 02:31:42,897 - DEBUG - ====Verifying policy data for ctest-vn-35847774 in API_Server ======
2026-07-05 02:31:42,897 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-05 02:31:42,901 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b9b5b983-2787-4ca1-b56f-d52598b07a92
2026-07-05 02:31:42,911 - DEBUG - Requesting: http://10.0.0.50:8082/project/a06e51a4-614d-430c-8c4d-4cc905dd1693
2026-07-05 02:31:42,983 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/535f5424-dcb9-49c6-b2a4-8d89d38d74e8
2026-07-05 02:31:42,991 - DEBUG - ==>Verifying data for policy with id: 46829de8-49f2-4012-9c75-4560f2b1ecc0, fqn: ['default-domain', 'ctest-TestBasicPolicy-02808415', 'ctest-policy-allow-all-58794281']
2026-07-05 02:31:42,991 - INFO - VN ctest-vn-35847774 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-05 02:31:42,991 - DEBUG - Verifying the vn in opserver
2026-07-05 02:31:42,991 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02808415:ctest-vn-35847774 virtual network link through opserver 10.0.0.50
2026-07-05 02:31:42,991 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-05 02:31:43,389 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-05 02:31:43,450 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02808415:ctest-vn-35847774', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02808415:ctest-vn-35847774?flat'}
2026-07-05 02:31:43,450 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02808415:ctest-vn-35847774 is found in opserver
2026-07-05 02:31:43,459 - DEBUG - Do not have enough data to verify VN in agent
2026-07-05 02:31:43,463 - DEBUG - VRF ids for VN ctest-vn-35847774: {}
2026-07-05 02:31:43,464 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-05 02:31:43,468 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b9b5b983-2787-4ca1-b56f-d52598b07a92
2026-07-05 02:31:43,479 - DEBUG - Requesting: http://10.0.0.50:8082/project/a06e51a4-614d-430c-8c4d-4cc905dd1693
2026-07-05 02:31:43,544 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5f960f28-29b2-4423-b794-6a49b964cde9
2026-07-05 02:31:43,554 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5f960f28-29b2-4423-b794-6a49b964cde9
2026-07-05 02:31:43,563 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24513c44-de37-44b6-980f-828425021e52
2026-07-05 02:31:43,569 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24513c44-de37-44b6-980f-828425021e52
2026-07-05 02:31:43,576 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e899d49e-3af1-4d92-93e1-0469f9655bc9
2026-07-05 02:31:43,582 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-05 02:31:43,582 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5f960f28-29b2-4423-b794-6a49b964cde9
2026-07-05 02:31:43,590 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24513c44-de37-44b6-980f-828425021e52
2026-07-05 02:31:43,603 - INFO - Verified VN network id 13 for VN 5f960f28-29b2-4423-b794-6a49b964cde9
2026-07-05 02:31:43,603 - INFO - Verifications in API Server for VN ctest-vn-98893537 passed
2026-07-05 02:31:43,603 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5f960f28-29b2-4423-b794-6a49b964cde9
2026-07-05 02:31:43,611 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24513c44-de37-44b6-980f-828425021e52
2026-07-05 02:31:43,618 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/24513c44-de37-44b6-980f-828425021e52
2026-07-05 02:31:43,625 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e899d49e-3af1-4d92-93e1-0469f9655bc9
2026-07-05 02:31:43,635 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02808415:ctest-vn-98893537', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02808415', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6887709345282409507', 'uuid-lslong': '13228314870369537513'}, 'enable': 'true', 'created': '2026-07-05T02:31:41', 'last-modified': '2026-07-05T02:31:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.768675'}
2026-07-05 02:31:43,641 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-05 02:31:43,641 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98893537 passed
2026-07-05 02:31:43,641 - DEBUG - ====Verifying policy data for ctest-vn-98893537 in API_Server ======
2026-07-05 02:31:43,641 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-05 02:31:43,648 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b9b5b983-2787-4ca1-b56f-d52598b07a92
2026-07-05 02:31:43,659 - DEBUG - Requesting: http://10.0.0.50:8082/project/a06e51a4-614d-430c-8c4d-4cc905dd1693
2026-07-05 02:31:43,733 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5f960f28-29b2-4423-b794-6a49b964cde9
2026-07-05 02:31:43,742 - DEBUG - ==>Verifying data for policy with id: 46829de8-49f2-4012-9c75-4560f2b1ecc0, fqn: ['default-domain', 'ctest-TestBasicPolicy-02808415', 'ctest-policy-allow-all-58794281']
2026-07-05 02:31:43,742 - INFO - VN ctest-vn-98893537 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-05 02:31:43,742 - DEBUG - Verifying the vn in opserver
2026-07-05 02:31:43,742 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02808415:ctest-vn-98893537 virtual network link through opserver 10.0.0.50
2026-07-05 02:31:43,742 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-05 02:31:43,752 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02808415:ctest-vn-98893537', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02808415:ctest-vn-98893537?flat'}
2026-07-05 02:31:43,752 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02808415:ctest-vn-98893537 is found in opserver
2026-07-05 02:31:43,762 - DEBUG - Do not have enough data to verify VN in agent
2026-07-05 02:31:43,766 - DEBUG - VRF ids for VN ctest-vn-98893537: {}
2026-07-05 02:31:43,831 - DEBUG - Services list from nova: [