2026-01-03 03:48:45,682 - INFO - Domain Default found not creating
2026-01-03 03:48:45,846 - INFO - Project ctest-TestBasicPolicy-27211321 not found, creating it
2026-01-03 03:48:46,311 - INFO - Created Project:ctest-TestBasicPolicy-27211321, ID : cde07c88-543c-4c62-95f4-6f3788e47884
2026-01-03 03:48:47,899 - INFO - ================================================================================
2026-01-03 03:48:47,899 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-03 03:48:47,899 - 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-03 03:48:48,157 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2026-01-03 03:48:48,157 - INFO - Initial checks done. Running the testcase now
2026-01-03 03:48:48,157 - INFO -
2026-01-03 03:48:48,738 - DEBUG - Response for create_network : {'network': {'id': '4d89463d-9d2a-428d-9d8e-59e786e9cb8a', 'name': 'ctest-vn-65677746', 'tenant_id': 'cde07c88543c4c6295f46f3788e47884', 'project_id': 'cde07c88543c4c6295f46f3788e47884', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27211321', 'ctest-vn-65677746'], 'port_security_enabled': True, 'description': ''}}
2026-01-03 03:48:48,903 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c62560c-e4da-4160-bedf-c9cc7c4068a8', 'name': '', 'tenant_id': 'cde07c88543c4c6295f46f3788e47884', 'network_id': '4d89463d-9d2a-428d-9d8e-59e786e9cb8a', 'ip_version': 4, 'cidr': '151.210.45.64/26', 'allocation_pools': [{'start': '151.210.45.66', 'end': '151.210.45.126'}], 'gateway_ip': '151.210.45.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.210.45.66', 'tags': [], 'project_id': 'cde07c88543c4c6295f46f3788e47884'}}
2026-01-03 03:48:48,922 - INFO - Created VN ctest-vn-65677746
2026-01-03 03:48:48,976 - DEBUG - VN ctest-vn-65677746 UUID is 4d89463d-9d2a-428d-9d8e-59e786e9cb8a
2026-01-03 03:48:49,256 - DEBUG - Response for create_network : {'network': {'id': 'f618446e-40bd-4185-a00b-c3dfe6e20595', 'name': 'ctest-vn-37616910', 'tenant_id': 'cde07c88543c4c6295f46f3788e47884', 'project_id': 'cde07c88543c4c6295f46f3788e47884', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27211321', 'ctest-vn-37616910'], 'port_security_enabled': True, 'description': ''}}
2026-01-03 03:48:49,472 - DEBUG - Response for create_subnet : {'subnet': {'id': '17de74c7-450c-47de-9ea4-76845622c0f9', 'name': '', 'tenant_id': 'cde07c88543c4c6295f46f3788e47884', 'network_id': 'f618446e-40bd-4185-a00b-c3dfe6e20595', 'ip_version': 4, 'cidr': '177.255.141.64/26', 'allocation_pools': [{'start': '177.255.141.66', 'end': '177.255.141.126'}], 'gateway_ip': '177.255.141.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.255.141.66', 'tags': [], 'project_id': 'cde07c88543c4c6295f46f3788e47884'}}
2026-01-03 03:48:49,491 - INFO - Created VN ctest-vn-37616910
2026-01-03 03:48:49,543 - DEBUG - VN ctest-vn-37616910 UUID is f618446e-40bd-4185-a00b-c3dfe6e20595
2026-01-03 03:48:49,664 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27211321:ctest-vn-65677746, 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-27211321:ctest-vn-37616910, 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-03 03:48:49,960 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d89463d-9d2a-428d-9d8e-59e786e9cb8a', 'name': 'ctest-vn-65677746', 'tenant_id': 'cde07c88543c4c6295f46f3788e47884', 'project_id': 'cde07c88543c4c6295f46f3788e47884', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c62560c-e4da-4160-bedf-c9cc7c4068a8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27211321', 'ctest-vn-65677746'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27211321', 'ctest-policy-allow-all-57932468']], 'subnet_ipam': [{'subnet_cidr': '151.210.45.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-03 03:48:50,251 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f618446e-40bd-4185-a00b-c3dfe6e20595', 'name': 'ctest-vn-37616910', 'tenant_id': 'cde07c88543c4c6295f46f3788e47884', 'project_id': 'cde07c88543c4c6295f46f3788e47884', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17de74c7-450c-47de-9ea4-76845622c0f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27211321', 'ctest-vn-37616910'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27211321', 'ctest-policy-allow-all-57932468']], 'subnet_ipam': [{'subnet_cidr': '177.255.141.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-03 03:48:50,400 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-03 03:48:50,753 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-03 03:48:50,790 - DEBUG - Requesting: http://10.0.0.38:8082/domain/040713c8-3282-4beb-9a7a-58465f8bde45
2026-01-03 03:48:50,803 - DEBUG - Requesting: http://10.0.0.38:8082/project/cde07c88-543c-4c62-95f4-6f3788e47884
2026-01-03 03:48:50,874 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4d89463d-9d2a-428d-9d8e-59e786e9cb8a
2026-01-03 03:48:50,886 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4d89463d-9d2a-428d-9d8e-59e786e9cb8a
2026-01-03 03:48:50,896 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/702cc706-ce43-4b88-aae7-89c1778aeea0
2026-01-03 03:48:50,903 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/702cc706-ce43-4b88-aae7-89c1778aeea0
2026-01-03 03:48:50,910 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2842fa85-ba53-4245-925a-81f13fe68474
2026-01-03 03:48:50,916 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-03 03:48:50,916 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4d89463d-9d2a-428d-9d8e-59e786e9cb8a
2026-01-03 03:48:50,925 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/702cc706-ce43-4b88-aae7-89c1778aeea0
2026-01-03 03:48:50,939 - INFO - Verified VN network id 11 for VN 4d89463d-9d2a-428d-9d8e-59e786e9cb8a
2026-01-03 03:48:50,939 - INFO - Verifications in API Server for VN ctest-vn-65677746 passed
2026-01-03 03:48:50,939 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4d89463d-9d2a-428d-9d8e-59e786e9cb8a
2026-01-03 03:48:50,949 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/702cc706-ce43-4b88-aae7-89c1778aeea0
2026-01-03 03:48:50,956 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/702cc706-ce43-4b88-aae7-89c1778aeea0
2026-01-03 03:48:50,962 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2842fa85-ba53-4245-925a-81f13fe68474
2026-01-03 03:48:50,973 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27211321:ctest-vn-65677746', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27211321', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5587074043173552781', 'uuid-lslong': '11353110561583385482'}, 'enable': 'true', 'created': '2026-01-03T03:48:48', 'last-modified': '2026-01-03T03:48:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.032388'}
2026-01-03 03:48:50,979 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-03 03:48:50,979 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65677746 passed
2026-01-03 03:48:50,979 - DEBUG - ====Verifying policy data for ctest-vn-65677746 in API_Server ======
2026-01-03 03:48:50,980 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-03 03:48:50,985 - DEBUG - Requesting: http://10.0.0.38:8082/domain/040713c8-3282-4beb-9a7a-58465f8bde45
2026-01-03 03:48:50,996 - DEBUG - Requesting: http://10.0.0.38:8082/project/cde07c88-543c-4c62-95f4-6f3788e47884
2026-01-03 03:48:51,062 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4d89463d-9d2a-428d-9d8e-59e786e9cb8a
2026-01-03 03:48:51,071 - DEBUG - ==>Verifying data for policy with id: 83f8dafd-809c-4319-8ae1-f7afa8630543, fqn: ['default-domain', 'ctest-TestBasicPolicy-27211321', 'ctest-policy-allow-all-57932468']
2026-01-03 03:48:51,071 - INFO - VN ctest-vn-65677746 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-03 03:48:51,071 - DEBUG - Verifying the vn in opserver
2026-01-03 03:48:51,071 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27211321:ctest-vn-65677746 virtual network link through opserver 10.0.0.38
2026-01-03 03:48:51,072 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-03 03:48:51,407 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-03 03:48:51,474 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27211321:ctest-vn-65677746', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27211321:ctest-vn-65677746?flat'}
2026-01-03 03:48:51,474 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27211321:ctest-vn-65677746 is found in opserver
2026-01-03 03:48:51,486 - DEBUG - Do not have enough data to verify VN in agent
2026-01-03 03:48:51,490 - DEBUG - VRF ids for VN ctest-vn-65677746: {}
2026-01-03 03:48:51,491 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-03 03:48:51,496 - DEBUG - Requesting: http://10.0.0.38:8082/domain/040713c8-3282-4beb-9a7a-58465f8bde45
2026-01-03 03:48:51,509 - DEBUG - Requesting: http://10.0.0.38:8082/project/cde07c88-543c-4c62-95f4-6f3788e47884
2026-01-03 03:48:51,576 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f618446e-40bd-4185-a00b-c3dfe6e20595
2026-01-03 03:48:51,588 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f618446e-40bd-4185-a00b-c3dfe6e20595
2026-01-03 03:48:51,598 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/054dcc8f-fb33-45e8-acc6-4ab17eb0ad99
2026-01-03 03:48:51,606 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/054dcc8f-fb33-45e8-acc6-4ab17eb0ad99
2026-01-03 03:48:51,612 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f77ce288-145c-4253-9762-3ac56eb816dd
2026-01-03 03:48:51,618 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-03 03:48:51,618 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f618446e-40bd-4185-a00b-c3dfe6e20595
2026-01-03 03:48:51,626 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/054dcc8f-fb33-45e8-acc6-4ab17eb0ad99
2026-01-03 03:48:51,647 - INFO - Verified VN network id 12 for VN f618446e-40bd-4185-a00b-c3dfe6e20595
2026-01-03 03:48:51,647 - INFO - Verifications in API Server for VN ctest-vn-37616910 passed
2026-01-03 03:48:51,647 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f618446e-40bd-4185-a00b-c3dfe6e20595
2026-01-03 03:48:51,657 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/054dcc8f-fb33-45e8-acc6-4ab17eb0ad99
2026-01-03 03:48:51,663 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/054dcc8f-fb33-45e8-acc6-4ab17eb0ad99
2026-01-03 03:48:51,669 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f77ce288-145c-4253-9762-3ac56eb816dd
2026-01-03 03:48:51,679 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27211321:ctest-vn-37616910', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27211321', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17732998773094564229', 'uuid-lslong': '11532526637230982549'}, 'enable': 'true', 'created': '2026-01-03T03:48:49', 'last-modified': '2026-01-03T03:48:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.494790'}
2026-01-03 03:48:51,685 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-03 03:48:51,685 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37616910 passed
2026-01-03 03:48:51,685 - DEBUG - ====Verifying policy data for ctest-vn-37616910 in API_Server ======
2026-01-03 03:48:51,685 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-03 03:48:51,690 - DEBUG - Requesting: http://10.0.0.38:8082/domain/040713c8-3282-4beb-9a7a-58465f8bde45
2026-01-03 03:48:51,701 - DEBUG - Requesting: http://10.0.0.38:8082/project/cde07c88-543c-4c62-95f4-6f3788e47884
2026-01-03 03:48:51,768 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f618446e-40bd-4185-a00b-c3dfe6e20595
2026-01-03 03:48:51,777 - DEBUG - ==>Verifying data for policy with id: 83f8dafd-809c-4319-8ae1-f7afa8630543, fqn: ['default-domain', 'ctest-TestBasicPolicy-27211321', 'ctest-policy-allow-all-57932468']
2026-01-03 03:48:51,777 - INFO - VN ctest-vn-37616910 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-03 03:48:51,778 - DEBUG - Verifying the vn in opserver
2026-01-03 03:48:51,778 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27211321:ctest-vn-37616910 virtual network link through opserver 10.0.0.38
2026-01-03 03:48:51,778 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-03 03:48:51,787 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27211321:ctest-vn-37616910', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27211321:ctest-vn-37616910?flat'}
2026-01-03 03:48:51,787 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27211321:ctest-vn-37616910 is found in opserver
2026-01-03 03:48:51,796 - DEBUG - Do not have enough data to verify VN in agent
2026-01-03 03:48:51,800 - DEBUG - VRF ids for VN ctest-vn-37616910: {}
2026-01-03 03:48:51,857 - DEBUG - Services list from nova: [