2025-10-30 15:28:01,674 - INFO - Domain Default found not creating
2025-10-30 15:28:01,910 - INFO - Project ctest-TestBasicPolicy-40790757 not found, creating it
2025-10-30 15:28:02,501 - INFO - Created Project:ctest-TestBasicPolicy-40790757, ID : c647f396-213c-4783-8cb8-328ad88853e1
2025-10-30 15:28:04,216 - INFO - ================================================================================
2025-10-30 15:28:04,216 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 15:28:04,216 - 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
2025-10-30 15:28:04,501 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-30 15:28:04,501 - INFO - Initial checks done. Running the testcase now
2025-10-30 15:28:04,501 - INFO -
2025-10-30 15:28:05,240 - DEBUG - Response for create_network : {'network': {'id': '9d88cabe-76cb-46ad-aaf5-741a618efbe0', 'name': 'ctest-vn-63532155', 'tenant_id': 'c647f396213c47838cb8328ad88853e1', 'project_id': 'c647f396213c47838cb8328ad88853e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40790757', 'ctest-vn-63532155'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 15:28:05,510 - DEBUG - Response for create_subnet : {'subnet': {'id': '87c592b0-dc6b-454e-ad91-f9ce9a8802cd', 'name': '', 'tenant_id': 'c647f396213c47838cb8328ad88853e1', 'network_id': '9d88cabe-76cb-46ad-aaf5-741a618efbe0', 'ip_version': 4, 'cidr': '51.171.125.64/26', 'allocation_pools': [{'start': '51.171.125.66', 'end': '51.171.125.126'}], 'gateway_ip': '51.171.125.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.171.125.66', 'tags': [], 'project_id': 'c647f396213c47838cb8328ad88853e1'}}
2025-10-30 15:28:05,531 - INFO - Created VN ctest-vn-63532155
2025-10-30 15:28:05,586 - DEBUG - VN ctest-vn-63532155 UUID is 9d88cabe-76cb-46ad-aaf5-741a618efbe0
2025-10-30 15:28:05,947 - DEBUG - Response for create_network : {'network': {'id': '8e8636b6-612d-40c8-8ba9-b2f2a339e1ec', 'name': 'ctest-vn-88077886', 'tenant_id': 'c647f396213c47838cb8328ad88853e1', 'project_id': 'c647f396213c47838cb8328ad88853e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40790757', 'ctest-vn-88077886'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 15:28:06,109 - DEBUG - Response for create_subnet : {'subnet': {'id': '7cf772e3-a541-478c-98b0-6a102975d5de', 'name': '', 'tenant_id': 'c647f396213c47838cb8328ad88853e1', 'network_id': '8e8636b6-612d-40c8-8ba9-b2f2a339e1ec', 'ip_version': 4, 'cidr': '189.154.209.0/26', 'allocation_pools': [{'start': '189.154.209.2', 'end': '189.154.209.62'}], 'gateway_ip': '189.154.209.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.154.209.2', 'tags': [], 'project_id': 'c647f396213c47838cb8328ad88853e1'}}
2025-10-30 15:28:06,128 - INFO - Created VN ctest-vn-88077886
2025-10-30 15:28:06,182 - DEBUG - VN ctest-vn-88077886 UUID is 8e8636b6-612d-40c8-8ba9-b2f2a339e1ec
2025-10-30 15:28:06,315 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40790757:ctest-vn-63532155, 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-40790757:ctest-vn-88077886, 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]
2025-10-30 15:28:06,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d88cabe-76cb-46ad-aaf5-741a618efbe0', 'name': 'ctest-vn-63532155', 'tenant_id': 'c647f396213c47838cb8328ad88853e1', 'project_id': 'c647f396213c47838cb8328ad88853e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87c592b0-dc6b-454e-ad91-f9ce9a8802cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40790757', 'ctest-vn-63532155'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40790757', 'ctest-policy-allow-all-15884216']], 'subnet_ipam': [{'subnet_cidr': '51.171.125.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 15:28:06,935 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8e8636b6-612d-40c8-8ba9-b2f2a339e1ec', 'name': 'ctest-vn-88077886', 'tenant_id': 'c647f396213c47838cb8328ad88853e1', 'project_id': 'c647f396213c47838cb8328ad88853e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7cf772e3-a541-478c-98b0-6a102975d5de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40790757', 'ctest-vn-88077886'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40790757', 'ctest-policy-allow-all-15884216']], 'subnet_ipam': [{'subnet_cidr': '189.154.209.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 15:28:07,102 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-30 15:28:07,408 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-30 15:28:07,458 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f86596b4-702b-490e-9836-c3cee65b9471
2025-10-30 15:28:07,479 - DEBUG - Requesting: http://10.0.0.254:8082/project/c647f396-213c-4783-8cb8-328ad88853e1
2025-10-30 15:28:07,565 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9d88cabe-76cb-46ad-aaf5-741a618efbe0
2025-10-30 15:28:07,580 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9d88cabe-76cb-46ad-aaf5-741a618efbe0
2025-10-30 15:28:07,595 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/267e19df-d2f1-43a0-ad88-003105d4af40
2025-10-30 15:28:07,607 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/267e19df-d2f1-43a0-ad88-003105d4af40
2025-10-30 15:28:07,616 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9210754e-c190-4d86-b308-b0f60ebefe47
2025-10-30 15:28:07,624 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 15:28:07,624 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9d88cabe-76cb-46ad-aaf5-741a618efbe0
2025-10-30 15:28:07,637 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/267e19df-d2f1-43a0-ad88-003105d4af40
2025-10-30 15:28:07,656 - INFO - Verified VN network id 11 for VN 9d88cabe-76cb-46ad-aaf5-741a618efbe0
2025-10-30 15:28:07,656 - INFO - Verifications in API Server for VN ctest-vn-63532155 passed
2025-10-30 15:28:07,656 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9d88cabe-76cb-46ad-aaf5-741a618efbe0
2025-10-30 15:28:07,671 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/267e19df-d2f1-43a0-ad88-003105d4af40
2025-10-30 15:28:07,680 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/267e19df-d2f1-43a0-ad88-003105d4af40
2025-10-30 15:28:07,690 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9210754e-c190-4d86-b308-b0f60ebefe47
2025-10-30 15:28:07,705 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40790757:ctest-vn-63532155', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40790757', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11351545780172965549', 'uuid-lslong': '12318880012396592096'}, 'enable': 'true', 'created': '2025-10-30T15:28:05', 'last-modified': '2025-10-30T15:28:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068913'}
2025-10-30 15:28:07,713 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 15:28:07,714 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63532155 passed
2025-10-30 15:28:07,714 - DEBUG - ====Verifying policy data for ctest-vn-63532155 in API_Server ======
2025-10-30 15:28:07,714 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-30 15:28:07,722 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f86596b4-702b-490e-9836-c3cee65b9471
2025-10-30 15:28:07,736 - DEBUG - Requesting: http://10.0.0.254:8082/project/c647f396-213c-4783-8cb8-328ad88853e1
2025-10-30 15:28:07,812 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9d88cabe-76cb-46ad-aaf5-741a618efbe0
2025-10-30 15:28:07,824 - DEBUG - ==>Verifying data for policy with id: a00a02dc-2006-46a8-b31d-082ef8f543a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-40790757', 'ctest-policy-allow-all-15884216']
2025-10-30 15:28:07,824 - INFO - VN ctest-vn-63532155 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 15:28:07,824 - DEBUG - Verifying the vn in opserver
2025-10-30 15:28:07,824 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40790757:ctest-vn-63532155 virtual network link through opserver 10.0.0.254
2025-10-30 15:28:07,825 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-30 15:28:08,147 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-30 15:28:08,572 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40790757:ctest-vn-63532155', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40790757:ctest-vn-63532155?flat'}
2025-10-30 15:28:08,572 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40790757:ctest-vn-63532155 is found in opserver
2025-10-30 15:28:08,595 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 15:28:08,603 - DEBUG - VRF ids for VN ctest-vn-63532155: {}
2025-10-30 15:28:08,603 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-30 15:28:08,618 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f86596b4-702b-490e-9836-c3cee65b9471
2025-10-30 15:28:08,647 - DEBUG - Requesting: http://10.0.0.254:8082/project/c647f396-213c-4783-8cb8-328ad88853e1
2025-10-30 15:28:08,730 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8e8636b6-612d-40c8-8ba9-b2f2a339e1ec
2025-10-30 15:28:08,744 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8e8636b6-612d-40c8-8ba9-b2f2a339e1ec
2025-10-30 15:28:08,754 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21852c5d-c5fc-4e8d-b26e-c5dbfb34cc66
2025-10-30 15:28:08,763 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21852c5d-c5fc-4e8d-b26e-c5dbfb34cc66
2025-10-30 15:28:08,771 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/df12c218-86aa-4962-89d4-77cc5a9f6dcb
2025-10-30 15:28:08,779 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 15:28:08,779 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8e8636b6-612d-40c8-8ba9-b2f2a339e1ec
2025-10-30 15:28:08,791 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21852c5d-c5fc-4e8d-b26e-c5dbfb34cc66
2025-10-30 15:28:08,810 - INFO - Verified VN network id 12 for VN 8e8636b6-612d-40c8-8ba9-b2f2a339e1ec
2025-10-30 15:28:08,811 - INFO - Verifications in API Server for VN ctest-vn-88077886 passed
2025-10-30 15:28:08,811 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8e8636b6-612d-40c8-8ba9-b2f2a339e1ec
2025-10-30 15:28:08,823 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21852c5d-c5fc-4e8d-b26e-c5dbfb34cc66
2025-10-30 15:28:08,833 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21852c5d-c5fc-4e8d-b26e-c5dbfb34cc66
2025-10-30 15:28:08,840 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/df12c218-86aa-4962-89d4-77cc5a9f6dcb
2025-10-30 15:28:08,855 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40790757:ctest-vn-88077886', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40790757', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10269956157207298248', 'uuid-lslong': '10063771597526393324'}, 'enable': 'true', 'created': '2025-10-30T15:28:05', 'last-modified': '2025-10-30T15:28:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.954225'}
2025-10-30 15:28:08,863 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 15:28:08,863 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88077886 passed
2025-10-30 15:28:08,863 - DEBUG - ====Verifying policy data for ctest-vn-88077886 in API_Server ======
2025-10-30 15:28:08,863 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-30 15:28:08,871 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f86596b4-702b-490e-9836-c3cee65b9471
2025-10-30 15:28:08,885 - DEBUG - Requesting: http://10.0.0.254:8082/project/c647f396-213c-4783-8cb8-328ad88853e1
2025-10-30 15:28:08,969 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8e8636b6-612d-40c8-8ba9-b2f2a339e1ec
2025-10-30 15:28:08,990 - DEBUG - ==>Verifying data for policy with id: a00a02dc-2006-46a8-b31d-082ef8f543a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-40790757', 'ctest-policy-allow-all-15884216']
2025-10-30 15:28:08,990 - INFO - VN ctest-vn-88077886 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 15:28:08,991 - DEBUG - Verifying the vn in opserver
2025-10-30 15:28:08,991 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40790757:ctest-vn-88077886 virtual network link through opserver 10.0.0.254
2025-10-30 15:28:08,991 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-30 15:28:09,006 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40790757:ctest-vn-88077886', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40790757:ctest-vn-88077886?flat'}
2025-10-30 15:28:09,006 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40790757:ctest-vn-88077886 is found in opserver
2025-10-30 15:28:09,019 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 15:28:09,028 - DEBUG - VRF ids for VN ctest-vn-88077886: {}
2025-10-30 15:28:09,116 - DEBUG - Services list from nova: [