2026-01-16 14:06:25,134 - INFO - Domain Default found not creating
2026-01-16 14:06:25,330 - INFO - Project ctest-TestBasicPolicy-21751923 not found, creating it
2026-01-16 14:06:25,840 - INFO - Created Project:ctest-TestBasicPolicy-21751923, ID : ec7405d3-070a-4015-81cd-ece2d2465189
2026-01-16 14:06:27,604 - INFO - ================================================================================
2026-01-16 14:06:27,604 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-16 14:06:27,605 - 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-01-16 14:06:27,874 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-01-16 14:06:27,874 - INFO - Initial checks done. Running the testcase now
2026-01-16 14:06:27,874 - INFO -
2026-01-16 14:06:28,505 - DEBUG - Response for create_network : {'network': {'id': '2f6c8eb0-e1f9-4278-92ac-ee9141dcd30b', 'name': 'ctest-vn-93746706', 'tenant_id': 'ec7405d3070a401581cdece2d2465189', 'project_id': 'ec7405d3070a401581cdece2d2465189', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21751923', 'ctest-vn-93746706'], 'port_security_enabled': True, 'description': ''}}
2026-01-16 14:06:28,723 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8b5cc7b-c73f-4556-a1ef-214414c92c41', 'name': '', 'tenant_id': 'ec7405d3070a401581cdece2d2465189', 'network_id': '2f6c8eb0-e1f9-4278-92ac-ee9141dcd30b', 'ip_version': 4, 'cidr': '133.114.114.192/26', 'allocation_pools': [{'start': '133.114.114.194', 'end': '133.114.114.254'}], 'gateway_ip': '133.114.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.114.114.194', 'tags': [], 'project_id': 'ec7405d3070a401581cdece2d2465189'}}
2026-01-16 14:06:28,743 - INFO - Created VN ctest-vn-93746706
2026-01-16 14:06:28,799 - DEBUG - VN ctest-vn-93746706 UUID is 2f6c8eb0-e1f9-4278-92ac-ee9141dcd30b
2026-01-16 14:06:29,135 - DEBUG - Response for create_network : {'network': {'id': 'a68b3644-70c1-4639-bc3b-efb256a530a7', 'name': 'ctest-vn-87832155', 'tenant_id': 'ec7405d3070a401581cdece2d2465189', 'project_id': 'ec7405d3070a401581cdece2d2465189', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21751923', 'ctest-vn-87832155'], 'port_security_enabled': True, 'description': ''}}
2026-01-16 14:06:29,326 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8876bea-e2d4-40c0-803d-634ce4720558', 'name': '', 'tenant_id': 'ec7405d3070a401581cdece2d2465189', 'network_id': 'a68b3644-70c1-4639-bc3b-efb256a530a7', 'ip_version': 4, 'cidr': '113.5.74.128/26', 'allocation_pools': [{'start': '113.5.74.130', 'end': '113.5.74.190'}], 'gateway_ip': '113.5.74.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.5.74.130', 'tags': [], 'project_id': 'ec7405d3070a401581cdece2d2465189'}}
2026-01-16 14:06:29,346 - INFO - Created VN ctest-vn-87832155
2026-01-16 14:06:29,401 - DEBUG - VN ctest-vn-87832155 UUID is a68b3644-70c1-4639-bc3b-efb256a530a7
2026-01-16 14:06:29,524 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21751923:ctest-vn-93746706, 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-21751923:ctest-vn-87832155, 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-01-16 14:06:29,834 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f6c8eb0-e1f9-4278-92ac-ee9141dcd30b', 'name': 'ctest-vn-93746706', 'tenant_id': 'ec7405d3070a401581cdece2d2465189', 'project_id': 'ec7405d3070a401581cdece2d2465189', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8b5cc7b-c73f-4556-a1ef-214414c92c41'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21751923', 'ctest-vn-93746706'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21751923', 'ctest-policy-allow-all-93622627']], 'subnet_ipam': [{'subnet_cidr': '133.114.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-16 14:06:30,066 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a68b3644-70c1-4639-bc3b-efb256a530a7', 'name': 'ctest-vn-87832155', 'tenant_id': 'ec7405d3070a401581cdece2d2465189', 'project_id': 'ec7405d3070a401581cdece2d2465189', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8876bea-e2d4-40c0-803d-634ce4720558'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21751923', 'ctest-vn-87832155'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21751923', 'ctest-policy-allow-all-93622627']], 'subnet_ipam': [{'subnet_cidr': '113.5.74.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-16 14:06:30,213 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-16 14:06:30,585 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-16 14:06:30,627 - DEBUG - Requesting: http://10.0.0.38:8082/domain/37878216-406c-4b26-89ed-6b0e5255b90c
2026-01-16 14:06:30,640 - DEBUG - Requesting: http://10.0.0.38:8082/project/ec7405d3-070a-4015-81cd-ece2d2465189
2026-01-16 14:06:30,719 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f6c8eb0-e1f9-4278-92ac-ee9141dcd30b
2026-01-16 14:06:30,733 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f6c8eb0-e1f9-4278-92ac-ee9141dcd30b
2026-01-16 14:06:30,743 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e396ffd8-fa54-4a8c-936e-c19a084b634a
2026-01-16 14:06:30,751 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e396ffd8-fa54-4a8c-936e-c19a084b634a
2026-01-16 14:06:30,762 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fb046d40-677a-4948-9f43-93ebfb495c13
2026-01-16 14:06:30,770 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-16 14:06:30,770 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f6c8eb0-e1f9-4278-92ac-ee9141dcd30b
2026-01-16 14:06:30,779 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e396ffd8-fa54-4a8c-936e-c19a084b634a
2026-01-16 14:06:30,796 - INFO - Verified VN network id 9 for VN 2f6c8eb0-e1f9-4278-92ac-ee9141dcd30b
2026-01-16 14:06:30,797 - INFO - Verifications in API Server for VN ctest-vn-93746706 passed
2026-01-16 14:06:30,797 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f6c8eb0-e1f9-4278-92ac-ee9141dcd30b
2026-01-16 14:06:30,808 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e396ffd8-fa54-4a8c-936e-c19a084b634a
2026-01-16 14:06:30,817 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e396ffd8-fa54-4a8c-936e-c19a084b634a
2026-01-16 14:06:30,826 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fb046d40-677a-4948-9f43-93ebfb495c13
2026-01-16 14:06:30,839 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21751923:ctest-vn-93746706', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21751923', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3417263107623961208', 'uuid-lslong': '10569084733174371083'}, 'enable': 'true', 'created': '2026-01-16T14:06:28', 'last-modified': '2026-01-16T14:06:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030593'}
2026-01-16 14:06:30,846 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-16 14:06:30,846 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93746706 passed
2026-01-16 14:06:30,846 - DEBUG - ====Verifying policy data for ctest-vn-93746706 in API_Server ======
2026-01-16 14:06:30,846 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-16 14:06:30,852 - DEBUG - Requesting: http://10.0.0.38:8082/domain/37878216-406c-4b26-89ed-6b0e5255b90c
2026-01-16 14:06:30,863 - DEBUG - Requesting: http://10.0.0.38:8082/project/ec7405d3-070a-4015-81cd-ece2d2465189
2026-01-16 14:06:30,939 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f6c8eb0-e1f9-4278-92ac-ee9141dcd30b
2026-01-16 14:06:30,951 - DEBUG - ==>Verifying data for policy with id: 28826cba-aa20-4ae3-b29d-25fee7994432, fqn: ['default-domain', 'ctest-TestBasicPolicy-21751923', 'ctest-policy-allow-all-93622627']
2026-01-16 14:06:30,951 - INFO - VN ctest-vn-93746706 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-16 14:06:30,951 - DEBUG - Verifying the vn in opserver
2026-01-16 14:06:30,951 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21751923:ctest-vn-93746706 virtual network link through opserver 10.0.0.38
2026-01-16 14:06:30,951 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-16 14:06:31,296 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-16 14:06:31,374 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21751923:ctest-vn-93746706', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21751923:ctest-vn-93746706?flat'}
2026-01-16 14:06:31,374 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21751923:ctest-vn-93746706 is found in opserver
2026-01-16 14:06:31,387 - DEBUG - Do not have enough data to verify VN in agent
2026-01-16 14:06:31,392 - DEBUG - VRF ids for VN ctest-vn-93746706: {}
2026-01-16 14:06:31,393 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-16 14:06:31,399 - DEBUG - Requesting: http://10.0.0.38:8082/domain/37878216-406c-4b26-89ed-6b0e5255b90c
2026-01-16 14:06:31,413 - DEBUG - Requesting: http://10.0.0.38:8082/project/ec7405d3-070a-4015-81cd-ece2d2465189
2026-01-16 14:06:31,489 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a68b3644-70c1-4639-bc3b-efb256a530a7
2026-01-16 14:06:31,506 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a68b3644-70c1-4639-bc3b-efb256a530a7
2026-01-16 14:06:31,518 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cde0f984-25ea-4eb8-a812-77ee24c07027
2026-01-16 14:06:31,528 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cde0f984-25ea-4eb8-a812-77ee24c07027
2026-01-16 14:06:31,536 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f4d94360-a306-401c-9a18-176344830618
2026-01-16 14:06:31,545 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-16 14:06:31,545 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a68b3644-70c1-4639-bc3b-efb256a530a7
2026-01-16 14:06:31,557 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cde0f984-25ea-4eb8-a812-77ee24c07027
2026-01-16 14:06:31,576 - INFO - Verified VN network id 10 for VN a68b3644-70c1-4639-bc3b-efb256a530a7
2026-01-16 14:06:31,576 - INFO - Verifications in API Server for VN ctest-vn-87832155 passed
2026-01-16 14:06:31,576 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a68b3644-70c1-4639-bc3b-efb256a530a7
2026-01-16 14:06:31,587 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cde0f984-25ea-4eb8-a812-77ee24c07027
2026-01-16 14:06:31,595 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cde0f984-25ea-4eb8-a812-77ee24c07027
2026-01-16 14:06:31,603 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f4d94360-a306-401c-9a18-176344830618
2026-01-16 14:06:31,618 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21751923:ctest-vn-87832155', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21751923', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12000745299636209209', 'uuid-lslong': '13563698251993264295'}, 'enable': 'true', 'created': '2026-01-16T14:06:29', 'last-modified': '2026-01-16T14:06:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.572307'}
2026-01-16 14:06:31,625 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-16 14:06:31,626 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87832155 passed
2026-01-16 14:06:31,626 - DEBUG - ====Verifying policy data for ctest-vn-87832155 in API_Server ======
2026-01-16 14:06:31,626 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-16 14:06:31,633 - DEBUG - Requesting: http://10.0.0.38:8082/domain/37878216-406c-4b26-89ed-6b0e5255b90c
2026-01-16 14:06:31,646 - DEBUG - Requesting: http://10.0.0.38:8082/project/ec7405d3-070a-4015-81cd-ece2d2465189
2026-01-16 14:06:31,725 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a68b3644-70c1-4639-bc3b-efb256a530a7
2026-01-16 14:06:31,736 - DEBUG - ==>Verifying data for policy with id: 28826cba-aa20-4ae3-b29d-25fee7994432, fqn: ['default-domain', 'ctest-TestBasicPolicy-21751923', 'ctest-policy-allow-all-93622627']
2026-01-16 14:06:31,736 - INFO - VN ctest-vn-87832155 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-16 14:06:31,736 - DEBUG - Verifying the vn in opserver
2026-01-16 14:06:31,736 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21751923:ctest-vn-87832155 virtual network link through opserver 10.0.0.38
2026-01-16 14:06:31,736 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-16 14:06:31,747 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21751923:ctest-vn-87832155', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21751923:ctest-vn-87832155?flat'}
2026-01-16 14:06:31,747 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21751923:ctest-vn-87832155 is found in opserver
2026-01-16 14:06:31,758 - DEBUG - Do not have enough data to verify VN in agent
2026-01-16 14:06:31,762 - DEBUG - VRF ids for VN ctest-vn-87832155: {}
2026-01-16 14:06:31,842 - DEBUG - Services list from nova: [