2026-01-28 21:03:57,491 - INFO - Domain Default found not creating
2026-01-28 21:03:57,680 - INFO - Project ctest-TestBasicPolicy-29965246 not found, creating it
2026-01-28 21:03:58,168 - INFO - Created Project:ctest-TestBasicPolicy-29965246, ID : 46de7b24-358e-4cf3-a4f7-107a8ba9c0e8
2026-01-28 21:03:59,854 - INFO - ================================================================================
2026-01-28 21:03:59,855 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 21:03:59,855 - 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-28 21:04:00,112 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-01-28 21:04:00,112 - INFO - Initial checks done. Running the testcase now
2026-01-28 21:04:00,112 - INFO -
2026-01-28 21:04:00,764 - DEBUG - Response for create_network : {'network': {'id': '3ee19731-e52a-4bb9-b97e-9ac9bd66d3dd', 'name': 'ctest-vn-56718082', 'tenant_id': '46de7b24358e4cf3a4f7107a8ba9c0e8', 'project_id': '46de7b24358e4cf3a4f7107a8ba9c0e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29965246', 'ctest-vn-56718082'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 21:04:00,982 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bb30fac-6d00-41b4-a5fe-b047c1b7342c', 'name': '', 'tenant_id': '46de7b24358e4cf3a4f7107a8ba9c0e8', 'network_id': '3ee19731-e52a-4bb9-b97e-9ac9bd66d3dd', 'ip_version': 4, 'cidr': '116.137.118.192/26', 'allocation_pools': [{'start': '116.137.118.194', 'end': '116.137.118.254'}], 'gateway_ip': '116.137.118.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.137.118.194', 'tags': [], 'project_id': '46de7b24358e4cf3a4f7107a8ba9c0e8'}}
2026-01-28 21:04:01,002 - INFO - Created VN ctest-vn-56718082
2026-01-28 21:04:01,057 - DEBUG - VN ctest-vn-56718082 UUID is 3ee19731-e52a-4bb9-b97e-9ac9bd66d3dd
2026-01-28 21:04:01,375 - DEBUG - Response for create_network : {'network': {'id': 'af7d763f-f580-45f2-a094-8e36246fe4ff', 'name': 'ctest-vn-75647906', 'tenant_id': '46de7b24358e4cf3a4f7107a8ba9c0e8', 'project_id': '46de7b24358e4cf3a4f7107a8ba9c0e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29965246', 'ctest-vn-75647906'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 21:04:01,556 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd63fedac-9940-484d-ad00-0b3872b1588f', 'name': '', 'tenant_id': '46de7b24358e4cf3a4f7107a8ba9c0e8', 'network_id': 'af7d763f-f580-45f2-a094-8e36246fe4ff', 'ip_version': 4, 'cidr': '4.65.178.128/26', 'allocation_pools': [{'start': '4.65.178.130', 'end': '4.65.178.190'}], 'gateway_ip': '4.65.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.65.178.130', 'tags': [], 'project_id': '46de7b24358e4cf3a4f7107a8ba9c0e8'}}
2026-01-28 21:04:01,576 - INFO - Created VN ctest-vn-75647906
2026-01-28 21:04:01,629 - DEBUG - VN ctest-vn-75647906 UUID is af7d763f-f580-45f2-a094-8e36246fe4ff
2026-01-28 21:04:01,747 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29965246:ctest-vn-56718082, 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-29965246:ctest-vn-75647906, 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-28 21:04:02,058 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ee19731-e52a-4bb9-b97e-9ac9bd66d3dd', 'name': 'ctest-vn-56718082', 'tenant_id': '46de7b24358e4cf3a4f7107a8ba9c0e8', 'project_id': '46de7b24358e4cf3a4f7107a8ba9c0e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2bb30fac-6d00-41b4-a5fe-b047c1b7342c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29965246', 'ctest-vn-56718082'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29965246', 'ctest-policy-allow-all-45322952']], 'subnet_ipam': [{'subnet_cidr': '116.137.118.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 21:04:02,304 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af7d763f-f580-45f2-a094-8e36246fe4ff', 'name': 'ctest-vn-75647906', 'tenant_id': '46de7b24358e4cf3a4f7107a8ba9c0e8', 'project_id': '46de7b24358e4cf3a4f7107a8ba9c0e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d63fedac-9940-484d-ad00-0b3872b1588f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29965246', 'ctest-vn-75647906'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29965246', 'ctest-policy-allow-all-45322952']], 'subnet_ipam': [{'subnet_cidr': '4.65.178.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 21:04:02,453 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-28 21:04:02,798 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-28 21:04:02,833 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d536af28-4a2e-4f55-8d01-a8dceff6911e
2026-01-28 21:04:02,847 - DEBUG - Requesting: http://10.0.0.22:8082/project/46de7b24-358e-4cf3-a4f7-107a8ba9c0e8
2026-01-28 21:04:02,925 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3ee19731-e52a-4bb9-b97e-9ac9bd66d3dd
2026-01-28 21:04:02,936 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3ee19731-e52a-4bb9-b97e-9ac9bd66d3dd
2026-01-28 21:04:02,946 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/61193143-7193-4cc4-a4af-55fd62c78748
2026-01-28 21:04:02,955 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/61193143-7193-4cc4-a4af-55fd62c78748
2026-01-28 21:04:02,962 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/dcafb1e4-0266-4c69-a169-1b7aec32e0a3
2026-01-28 21:04:02,969 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 21:04:02,970 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3ee19731-e52a-4bb9-b97e-9ac9bd66d3dd
2026-01-28 21:04:02,980 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/61193143-7193-4cc4-a4af-55fd62c78748
2026-01-28 21:04:02,996 - INFO - Verified VN network id 12 for VN 3ee19731-e52a-4bb9-b97e-9ac9bd66d3dd
2026-01-28 21:04:02,996 - INFO - Verifications in API Server for VN ctest-vn-56718082 passed
2026-01-28 21:04:02,996 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3ee19731-e52a-4bb9-b97e-9ac9bd66d3dd
2026-01-28 21:04:03,006 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/61193143-7193-4cc4-a4af-55fd62c78748
2026-01-28 21:04:03,015 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/61193143-7193-4cc4-a4af-55fd62c78748
2026-01-28 21:04:03,023 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/dcafb1e4-0266-4c69-a169-1b7aec32e0a3
2026-01-28 21:04:03,036 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29965246:ctest-vn-56718082', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29965246', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4531068940665375673', 'uuid-lslong': '13366290935338947549'}, 'enable': 'true', 'created': '2026-01-28T21:04:00', 'last-modified': '2026-01-28T21:04:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001557'}
2026-01-28 21:04:03,043 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 21:04:03,043 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56718082 passed
2026-01-28 21:04:03,044 - DEBUG - ====Verifying policy data for ctest-vn-56718082 in API_Server ======
2026-01-28 21:04:03,044 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-28 21:04:03,051 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d536af28-4a2e-4f55-8d01-a8dceff6911e
2026-01-28 21:04:03,063 - DEBUG - Requesting: http://10.0.0.22:8082/project/46de7b24-358e-4cf3-a4f7-107a8ba9c0e8
2026-01-28 21:04:03,134 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3ee19731-e52a-4bb9-b97e-9ac9bd66d3dd
2026-01-28 21:04:03,145 - DEBUG - ==>Verifying data for policy with id: acae92a4-b9e6-435c-8d1f-d3f3c28e0c10, fqn: ['default-domain', 'ctest-TestBasicPolicy-29965246', 'ctest-policy-allow-all-45322952']
2026-01-28 21:04:03,145 - INFO - VN ctest-vn-56718082 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 21:04:03,146 - DEBUG - Verifying the vn in opserver
2026-01-28 21:04:03,146 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29965246:ctest-vn-56718082 virtual network link through opserver 10.0.0.22
2026-01-28 21:04:03,146 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-28 21:04:03,488 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-28 21:04:03,559 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29965246:ctest-vn-56718082', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29965246:ctest-vn-56718082?flat'}
2026-01-28 21:04:03,559 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29965246:ctest-vn-56718082 is found in opserver
2026-01-28 21:04:03,573 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 21:04:03,578 - DEBUG - VRF ids for VN ctest-vn-56718082: {}
2026-01-28 21:04:03,578 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-28 21:04:03,585 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d536af28-4a2e-4f55-8d01-a8dceff6911e
2026-01-28 21:04:03,599 - DEBUG - Requesting: http://10.0.0.22:8082/project/46de7b24-358e-4cf3-a4f7-107a8ba9c0e8
2026-01-28 21:04:03,674 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/af7d763f-f580-45f2-a094-8e36246fe4ff
2026-01-28 21:04:03,689 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/af7d763f-f580-45f2-a094-8e36246fe4ff
2026-01-28 21:04:03,702 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4816abbd-c530-48fb-8bf9-d2dca9a2a19d
2026-01-28 21:04:03,712 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4816abbd-c530-48fb-8bf9-d2dca9a2a19d
2026-01-28 21:04:03,721 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6e449efb-7b4a-4609-a7ee-3f6cac7a097d
2026-01-28 21:04:03,729 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 21:04:03,729 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/af7d763f-f580-45f2-a094-8e36246fe4ff
2026-01-28 21:04:03,739 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4816abbd-c530-48fb-8bf9-d2dca9a2a19d
2026-01-28 21:04:03,758 - INFO - Verified VN network id 13 for VN af7d763f-f580-45f2-a094-8e36246fe4ff
2026-01-28 21:04:03,759 - INFO - Verifications in API Server for VN ctest-vn-75647906 passed
2026-01-28 21:04:03,759 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/af7d763f-f580-45f2-a094-8e36246fe4ff
2026-01-28 21:04:03,770 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4816abbd-c530-48fb-8bf9-d2dca9a2a19d
2026-01-28 21:04:03,777 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4816abbd-c530-48fb-8bf9-d2dca9a2a19d
2026-01-28 21:04:03,786 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6e449efb-7b4a-4609-a7ee-3f6cac7a097d
2026-01-28 21:04:03,799 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29965246:ctest-vn-75647906', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29965246', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12645393345800062450', 'uuid-lslong': '11571029705812337919'}, 'enable': 'true', 'created': '2026-01-28T21:04:01', 'last-modified': '2026-01-28T21:04:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.526471'}
2026-01-28 21:04:03,806 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 21:04:03,806 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75647906 passed
2026-01-28 21:04:03,806 - DEBUG - ====Verifying policy data for ctest-vn-75647906 in API_Server ======
2026-01-28 21:04:03,806 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-28 21:04:03,813 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d536af28-4a2e-4f55-8d01-a8dceff6911e
2026-01-28 21:04:03,827 - DEBUG - Requesting: http://10.0.0.22:8082/project/46de7b24-358e-4cf3-a4f7-107a8ba9c0e8
2026-01-28 21:04:03,906 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/af7d763f-f580-45f2-a094-8e36246fe4ff
2026-01-28 21:04:03,919 - DEBUG - ==>Verifying data for policy with id: acae92a4-b9e6-435c-8d1f-d3f3c28e0c10, fqn: ['default-domain', 'ctest-TestBasicPolicy-29965246', 'ctest-policy-allow-all-45322952']
2026-01-28 21:04:03,919 - INFO - VN ctest-vn-75647906 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 21:04:03,919 - DEBUG - Verifying the vn in opserver
2026-01-28 21:04:03,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29965246:ctest-vn-75647906 virtual network link through opserver 10.0.0.22
2026-01-28 21:04:03,919 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-28 21:04:03,930 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29965246:ctest-vn-75647906', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29965246:ctest-vn-75647906?flat'}
2026-01-28 21:04:03,930 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29965246:ctest-vn-75647906 is found in opserver
2026-01-28 21:04:03,941 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 21:04:03,946 - DEBUG - VRF ids for VN ctest-vn-75647906: {}
2026-01-28 21:04:04,013 - DEBUG - Services list from nova: [