2025-09-19 22:44:18,857 - INFO - Domain Default found not creating
2025-09-19 22:44:18,989 - INFO - Project ctest-TestBasicPolicy-26479521 not found, creating it
2025-09-19 22:44:19,469 - INFO - Created Project:ctest-TestBasicPolicy-26479521, ID : f9960176-27bd-4644-9a09-8023e5aa08ff
2025-09-19 22:44:20,782 - INFO - ================================================================================
2025-09-19 22:44:20,783 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-19 22:44:20,783 - 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-09-19 22:44:21,038 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-09-19 22:44:21,038 - INFO - Initial checks done. Running the testcase now
2025-09-19 22:44:21,038 - INFO -
2025-09-19 22:44:21,549 - DEBUG - Response for create_network : {'network': {'id': '91826c1f-f36c-419d-8cd6-427814c96498', 'name': 'ctest-vn-95943744', 'tenant_id': 'f996017627bd46449a098023e5aa08ff', 'project_id': 'f996017627bd46449a098023e5aa08ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26479521', 'ctest-vn-95943744'], 'port_security_enabled': True, 'description': ''}}
2025-09-19 22:44:21,748 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3c0b104-9095-4474-a7cf-9bd37784cc1e', 'name': '', 'tenant_id': 'f996017627bd46449a098023e5aa08ff', 'network_id': '91826c1f-f36c-419d-8cd6-427814c96498', 'ip_version': 4, 'cidr': '45.90.140.64/26', 'allocation_pools': [{'start': '45.90.140.66', 'end': '45.90.140.126'}], 'gateway_ip': '45.90.140.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.90.140.66', 'tags': [], 'project_id': 'f996017627bd46449a098023e5aa08ff'}}
2025-09-19 22:44:21,764 - INFO - Created VN ctest-vn-95943744
2025-09-19 22:44:21,817 - DEBUG - VN ctest-vn-95943744 UUID is 91826c1f-f36c-419d-8cd6-427814c96498
2025-09-19 22:44:22,120 - DEBUG - Response for create_network : {'network': {'id': '4765647d-ec13-46c1-bad8-df86388565a4', 'name': 'ctest-vn-58427141', 'tenant_id': 'f996017627bd46449a098023e5aa08ff', 'project_id': 'f996017627bd46449a098023e5aa08ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26479521', 'ctest-vn-58427141'], 'port_security_enabled': True, 'description': ''}}
2025-09-19 22:44:22,263 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd733e97-98bd-4ad4-bd76-4addd7539971', 'name': '', 'tenant_id': 'f996017627bd46449a098023e5aa08ff', 'network_id': '4765647d-ec13-46c1-bad8-df86388565a4', 'ip_version': 4, 'cidr': '84.59.89.128/26', 'allocation_pools': [{'start': '84.59.89.130', 'end': '84.59.89.190'}], 'gateway_ip': '84.59.89.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.59.89.130', 'tags': [], 'project_id': 'f996017627bd46449a098023e5aa08ff'}}
2025-09-19 22:44:22,277 - INFO - Created VN ctest-vn-58427141
2025-09-19 22:44:22,325 - DEBUG - VN ctest-vn-58427141 UUID is 4765647d-ec13-46c1-bad8-df86388565a4
2025-09-19 22:44:22,469 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26479521:ctest-vn-95943744, 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-26479521:ctest-vn-58427141, 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-09-19 22:44:22,745 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '91826c1f-f36c-419d-8cd6-427814c96498', 'name': 'ctest-vn-95943744', 'tenant_id': 'f996017627bd46449a098023e5aa08ff', 'project_id': 'f996017627bd46449a098023e5aa08ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3c0b104-9095-4474-a7cf-9bd37784cc1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26479521', 'ctest-vn-95943744'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26479521', 'ctest-policy-allow-all-73437446']], 'subnet_ipam': [{'subnet_cidr': '45.90.140.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-19 22:44:22,996 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4765647d-ec13-46c1-bad8-df86388565a4', 'name': 'ctest-vn-58427141', 'tenant_id': 'f996017627bd46449a098023e5aa08ff', 'project_id': 'f996017627bd46449a098023e5aa08ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd733e97-98bd-4ad4-bd76-4addd7539971'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26479521', 'ctest-vn-58427141'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26479521', 'ctest-policy-allow-all-73437446']], 'subnet_ipam': [{'subnet_cidr': '84.59.89.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-19 22:44:23,137 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 22:44:23,430 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 22:44:23,453 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bf4f4071-db54-434c-bc60-97611e445508
2025-09-19 22:44:23,463 - DEBUG - Requesting: http://10.0.0.38:8082/project/f9960176-27bd-4644-9a09-8023e5aa08ff
2025-09-19 22:44:23,536 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/91826c1f-f36c-419d-8cd6-427814c96498
2025-09-19 22:44:23,544 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/91826c1f-f36c-419d-8cd6-427814c96498
2025-09-19 22:44:23,552 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c4f1f82-8914-4f1d-9d7d-3a178d770113
2025-09-19 22:44:23,557 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c4f1f82-8914-4f1d-9d7d-3a178d770113
2025-09-19 22:44:23,562 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/098f9ff7-1b2a-41ed-9504-2d545da77ac0
2025-09-19 22:44:23,566 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-19 22:44:23,566 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/91826c1f-f36c-419d-8cd6-427814c96498
2025-09-19 22:44:23,573 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c4f1f82-8914-4f1d-9d7d-3a178d770113
2025-09-19 22:44:23,584 - INFO - Verified VN network id 12 for VN 91826c1f-f36c-419d-8cd6-427814c96498
2025-09-19 22:44:23,584 - INFO - Verifications in API Server for VN ctest-vn-95943744 passed
2025-09-19 22:44:23,584 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/91826c1f-f36c-419d-8cd6-427814c96498
2025-09-19 22:44:23,591 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c4f1f82-8914-4f1d-9d7d-3a178d770113
2025-09-19 22:44:23,595 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c4f1f82-8914-4f1d-9d7d-3a178d770113
2025-09-19 22:44:23,600 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/098f9ff7-1b2a-41ed-9504-2d545da77ac0
2025-09-19 22:44:23,608 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26479521:ctest-vn-95943744', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26479521', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10485061766955680157', 'uuid-lslong': '10148371893838242968'}, 'enable': 'true', 'created': '2025-09-19T22:44:21', 'last-modified': '2025-09-19T22:44:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.883249'}
2025-09-19 22:44:23,614 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-19 22:44:23,614 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95943744 passed
2025-09-19 22:44:23,614 - DEBUG - ====Verifying policy data for ctest-vn-95943744 in API_Server ======
2025-09-19 22:44:23,614 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 22:44:23,618 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bf4f4071-db54-434c-bc60-97611e445508
2025-09-19 22:44:23,625 - DEBUG - Requesting: http://10.0.0.38:8082/project/f9960176-27bd-4644-9a09-8023e5aa08ff
2025-09-19 22:44:23,693 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/91826c1f-f36c-419d-8cd6-427814c96498
2025-09-19 22:44:23,700 - DEBUG - ==>Verifying data for policy with id: 6766a3ca-2891-41ff-a1fb-c2d375981de4, fqn: ['default-domain', 'ctest-TestBasicPolicy-26479521', 'ctest-policy-allow-all-73437446']
2025-09-19 22:44:23,700 - INFO - VN ctest-vn-95943744 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-19 22:44:23,700 - DEBUG - Verifying the vn in opserver
2025-09-19 22:44:23,700 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26479521:ctest-vn-95943744 virtual network link through opserver 10.0.0.38
2025-09-19 22:44:23,700 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-19 22:44:23,986 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-19 22:44:24,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26479521:ctest-vn-95943744', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26479521:ctest-vn-95943744?flat'}
2025-09-19 22:44:24,034 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26479521:ctest-vn-95943744 is found in opserver
2025-09-19 22:44:24,041 - DEBUG - Do not have enough data to verify VN in agent
2025-09-19 22:44:24,045 - DEBUG - VRF ids for VN ctest-vn-95943744: {}
2025-09-19 22:44:24,045 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 22:44:24,049 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bf4f4071-db54-434c-bc60-97611e445508
2025-09-19 22:44:24,058 - DEBUG - Requesting: http://10.0.0.38:8082/project/f9960176-27bd-4644-9a09-8023e5aa08ff
2025-09-19 22:44:24,124 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4765647d-ec13-46c1-bad8-df86388565a4
2025-09-19 22:44:24,136 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4765647d-ec13-46c1-bad8-df86388565a4
2025-09-19 22:44:24,145 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dc002658-7809-4a34-89c2-69a3b6e2c43d
2025-09-19 22:44:24,150 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dc002658-7809-4a34-89c2-69a3b6e2c43d
2025-09-19 22:44:24,156 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/137c470c-63fe-4189-aac8-583286da50de
2025-09-19 22:44:24,160 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-19 22:44:24,160 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4765647d-ec13-46c1-bad8-df86388565a4
2025-09-19 22:44:24,167 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dc002658-7809-4a34-89c2-69a3b6e2c43d
2025-09-19 22:44:24,176 - INFO - Verified VN network id 13 for VN 4765647d-ec13-46c1-bad8-df86388565a4
2025-09-19 22:44:24,176 - INFO - Verifications in API Server for VN ctest-vn-58427141 passed
2025-09-19 22:44:24,176 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4765647d-ec13-46c1-bad8-df86388565a4
2025-09-19 22:44:24,183 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dc002658-7809-4a34-89c2-69a3b6e2c43d
2025-09-19 22:44:24,188 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dc002658-7809-4a34-89c2-69a3b6e2c43d
2025-09-19 22:44:24,193 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/137c470c-63fe-4189-aac8-583286da50de
2025-09-19 22:44:24,201 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26479521:ctest-vn-58427141', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26479521', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5144628641335035585', 'uuid-lslong': '13463756853590975908'}, 'enable': 'true', 'created': '2025-09-19T22:44:22', 'last-modified': '2025-09-19T22:44:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.263558'}
2025-09-19 22:44:24,206 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-19 22:44:24,206 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58427141 passed
2025-09-19 22:44:24,207 - DEBUG - ====Verifying policy data for ctest-vn-58427141 in API_Server ======
2025-09-19 22:44:24,207 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 22:44:24,211 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bf4f4071-db54-434c-bc60-97611e445508
2025-09-19 22:44:24,218 - DEBUG - Requesting: http://10.0.0.38:8082/project/f9960176-27bd-4644-9a09-8023e5aa08ff
2025-09-19 22:44:24,287 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4765647d-ec13-46c1-bad8-df86388565a4
2025-09-19 22:44:24,294 - DEBUG - ==>Verifying data for policy with id: 6766a3ca-2891-41ff-a1fb-c2d375981de4, fqn: ['default-domain', 'ctest-TestBasicPolicy-26479521', 'ctest-policy-allow-all-73437446']
2025-09-19 22:44:24,294 - INFO - VN ctest-vn-58427141 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-19 22:44:24,294 - DEBUG - Verifying the vn in opserver
2025-09-19 22:44:24,294 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26479521:ctest-vn-58427141 virtual network link through opserver 10.0.0.38
2025-09-19 22:44:24,294 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-19 22:44:24,302 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26479521:ctest-vn-58427141', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26479521:ctest-vn-58427141?flat'}
2025-09-19 22:44:24,302 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26479521:ctest-vn-58427141 is found in opserver
2025-09-19 22:44:24,309 - DEBUG - Do not have enough data to verify VN in agent
2025-09-19 22:44:24,313 - DEBUG - VRF ids for VN ctest-vn-58427141: {}
2025-09-19 22:44:24,360 - DEBUG - Services list from nova: [