2025-10-23 11:47:01,518 - INFO - Domain Default found not creating
2025-10-23 11:47:01,647 - INFO - Project ctest-TestBasicPolicy-28536592 not found, creating it
2025-10-23 11:47:02,070 - INFO - Created Project:ctest-TestBasicPolicy-28536592, ID : a1b750a3-f7d3-454d-a20c-f229e5875100
2025-10-23 11:47:03,469 - INFO - ================================================================================
2025-10-23 11:47:03,469 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 11:47:03,469 - 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-23 11:47:03,721 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-10-23 11:47:03,721 - INFO - Initial checks done. Running the testcase now
2025-10-23 11:47:03,721 - INFO -
2025-10-23 11:47:04,229 - DEBUG - Response for create_network : {'network': {'id': '61f90a1c-4d10-4eea-b93f-a882125a7d63', 'name': 'ctest-vn-46739688', 'tenant_id': 'a1b750a3f7d3454da20cf229e5875100', 'project_id': 'a1b750a3f7d3454da20cf229e5875100', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28536592', 'ctest-vn-46739688'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 11:47:04,423 - DEBUG - Response for create_subnet : {'subnet': {'id': '9cf06889-e7a3-4c55-88aa-f8272620159c', 'name': '', 'tenant_id': 'a1b750a3f7d3454da20cf229e5875100', 'network_id': '61f90a1c-4d10-4eea-b93f-a882125a7d63', 'ip_version': 4, 'cidr': '218.129.118.64/26', 'allocation_pools': [{'start': '218.129.118.66', 'end': '218.129.118.126'}], 'gateway_ip': '218.129.118.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.129.118.66', 'tags': [], 'project_id': 'a1b750a3f7d3454da20cf229e5875100'}}
2025-10-23 11:47:04,437 - INFO - Created VN ctest-vn-46739688
2025-10-23 11:47:04,488 - DEBUG - VN ctest-vn-46739688 UUID is 61f90a1c-4d10-4eea-b93f-a882125a7d63
2025-10-23 11:47:05,025 - DEBUG - Response for create_network : {'network': {'id': '5a6c6c5e-e5eb-4a58-9823-4807578667d0', 'name': 'ctest-vn-32582805', 'tenant_id': 'a1b750a3f7d3454da20cf229e5875100', 'project_id': 'a1b750a3f7d3454da20cf229e5875100', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28536592', 'ctest-vn-32582805'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 11:47:05,315 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e3adf88-196f-4600-b193-a721eb9ccdf9', 'name': '', 'tenant_id': 'a1b750a3f7d3454da20cf229e5875100', 'network_id': '5a6c6c5e-e5eb-4a58-9823-4807578667d0', 'ip_version': 4, 'cidr': '150.78.71.0/26', 'allocation_pools': [{'start': '150.78.71.2', 'end': '150.78.71.62'}], 'gateway_ip': '150.78.71.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.78.71.2', 'tags': [], 'project_id': 'a1b750a3f7d3454da20cf229e5875100'}}
2025-10-23 11:47:05,330 - INFO - Created VN ctest-vn-32582805
2025-10-23 11:47:05,380 - DEBUG - VN ctest-vn-32582805 UUID is 5a6c6c5e-e5eb-4a58-9823-4807578667d0
2025-10-23 11:47:05,520 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28536592:ctest-vn-46739688, 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-28536592:ctest-vn-32582805, 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-23 11:47:05,806 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61f90a1c-4d10-4eea-b93f-a882125a7d63', 'name': 'ctest-vn-46739688', 'tenant_id': 'a1b750a3f7d3454da20cf229e5875100', 'project_id': 'a1b750a3f7d3454da20cf229e5875100', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9cf06889-e7a3-4c55-88aa-f8272620159c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28536592', 'ctest-vn-46739688'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28536592', 'ctest-policy-allow-all-50273929']], 'subnet_ipam': [{'subnet_cidr': '218.129.118.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 11:47:06,068 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a6c6c5e-e5eb-4a58-9823-4807578667d0', 'name': 'ctest-vn-32582805', 'tenant_id': 'a1b750a3f7d3454da20cf229e5875100', 'project_id': 'a1b750a3f7d3454da20cf229e5875100', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e3adf88-196f-4600-b193-a721eb9ccdf9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28536592', 'ctest-vn-32582805'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28536592', 'ctest-policy-allow-all-50273929']], 'subnet_ipam': [{'subnet_cidr': '150.78.71.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 11:47:06,216 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-23 11:47:06,505 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-23 11:47:06,530 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f59110b8-b47c-4445-b066-d9d82f0bda48
2025-10-23 11:47:06,540 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1b750a3-f7d3-454d-a20c-f229e5875100
2025-10-23 11:47:06,608 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61f90a1c-4d10-4eea-b93f-a882125a7d63
2025-10-23 11:47:06,618 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61f90a1c-4d10-4eea-b93f-a882125a7d63
2025-10-23 11:47:06,626 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4e0daf4-4daa-441a-aa8b-2d4d53fb9162
2025-10-23 11:47:06,632 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4e0daf4-4daa-441a-aa8b-2d4d53fb9162
2025-10-23 11:47:06,638 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/73e7abe7-524c-479c-a052-072004e2525d
2025-10-23 11:47:06,642 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 11:47:06,642 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61f90a1c-4d10-4eea-b93f-a882125a7d63
2025-10-23 11:47:06,650 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4e0daf4-4daa-441a-aa8b-2d4d53fb9162
2025-10-23 11:47:06,660 - INFO - Verified VN network id 9 for VN 61f90a1c-4d10-4eea-b93f-a882125a7d63
2025-10-23 11:47:06,660 - INFO - Verifications in API Server for VN ctest-vn-46739688 passed
2025-10-23 11:47:06,660 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61f90a1c-4d10-4eea-b93f-a882125a7d63
2025-10-23 11:47:06,667 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4e0daf4-4daa-441a-aa8b-2d4d53fb9162
2025-10-23 11:47:06,672 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4e0daf4-4daa-441a-aa8b-2d4d53fb9162
2025-10-23 11:47:06,676 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/73e7abe7-524c-479c-a052-072004e2525d
2025-10-23 11:47:06,685 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28536592:ctest-vn-46739688', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28536592', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7059685007548239594', 'uuid-lslong': '13348573097156574563'}, 'enable': 'true', 'created': '2025-10-23T11:47:04', 'last-modified': '2025-10-23T11:47:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904382'}
2025-10-23 11:47:06,690 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 11:47:06,690 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46739688 passed
2025-10-23 11:47:06,690 - DEBUG - ====Verifying policy data for ctest-vn-46739688 in API_Server ======
2025-10-23 11:47:06,690 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-23 11:47:06,694 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f59110b8-b47c-4445-b066-d9d82f0bda48
2025-10-23 11:47:06,703 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1b750a3-f7d3-454d-a20c-f229e5875100
2025-10-23 11:47:06,772 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61f90a1c-4d10-4eea-b93f-a882125a7d63
2025-10-23 11:47:06,780 - DEBUG - ==>Verifying data for policy with id: b79bf8a7-c40c-469e-b3c6-531f24190175, fqn: ['default-domain', 'ctest-TestBasicPolicy-28536592', 'ctest-policy-allow-all-50273929']
2025-10-23 11:47:06,780 - INFO - VN ctest-vn-46739688 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 11:47:06,780 - DEBUG - Verifying the vn in opserver
2025-10-23 11:47:06,780 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28536592:ctest-vn-46739688 virtual network link through opserver 10.0.0.38
2025-10-23 11:47:06,780 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-23 11:47:07,067 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-23 11:47:07,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28536592:ctest-vn-46739688', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28536592:ctest-vn-46739688?flat'}
2025-10-23 11:47:07,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28536592:ctest-vn-46739688 is found in opserver
2025-10-23 11:47:07,131 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 11:47:07,141 - DEBUG - VRF ids for VN ctest-vn-46739688: {}
2025-10-23 11:47:07,141 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-23 11:47:07,147 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f59110b8-b47c-4445-b066-d9d82f0bda48
2025-10-23 11:47:07,158 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1b750a3-f7d3-454d-a20c-f229e5875100
2025-10-23 11:47:07,230 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a6c6c5e-e5eb-4a58-9823-4807578667d0
2025-10-23 11:47:07,243 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a6c6c5e-e5eb-4a58-9823-4807578667d0
2025-10-23 11:47:07,253 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fbf781c5-b40c-4d27-8a2e-868fe0327f82
2025-10-23 11:47:07,260 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fbf781c5-b40c-4d27-8a2e-868fe0327f82
2025-10-23 11:47:07,267 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4a8c0318-11eb-45e9-9d8a-676161963564
2025-10-23 11:47:07,273 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 11:47:07,273 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a6c6c5e-e5eb-4a58-9823-4807578667d0
2025-10-23 11:47:07,281 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fbf781c5-b40c-4d27-8a2e-868fe0327f82
2025-10-23 11:47:07,293 - INFO - Verified VN network id 10 for VN 5a6c6c5e-e5eb-4a58-9823-4807578667d0
2025-10-23 11:47:07,293 - INFO - Verifications in API Server for VN ctest-vn-32582805 passed
2025-10-23 11:47:07,294 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a6c6c5e-e5eb-4a58-9823-4807578667d0
2025-10-23 11:47:07,301 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fbf781c5-b40c-4d27-8a2e-868fe0327f82
2025-10-23 11:47:07,306 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fbf781c5-b40c-4d27-8a2e-868fe0327f82
2025-10-23 11:47:07,311 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4a8c0318-11eb-45e9-9d8a-676161963564
2025-10-23 11:47:07,320 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28536592:ctest-vn-32582805', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28536592', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6515701915738393176', 'uuid-lslong': '10962685114320316368'}, 'enable': 'true', 'created': '2025-10-23T11:47:04', 'last-modified': '2025-10-23T11:47:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.319190'}
2025-10-23 11:47:07,326 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 11:47:07,326 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32582805 passed
2025-10-23 11:47:07,326 - DEBUG - ====Verifying policy data for ctest-vn-32582805 in API_Server ======
2025-10-23 11:47:07,326 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-23 11:47:07,331 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f59110b8-b47c-4445-b066-d9d82f0bda48
2025-10-23 11:47:07,342 - DEBUG - Requesting: http://10.0.0.38:8082/project/a1b750a3-f7d3-454d-a20c-f229e5875100
2025-10-23 11:47:07,410 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5a6c6c5e-e5eb-4a58-9823-4807578667d0
2025-10-23 11:47:07,419 - DEBUG - ==>Verifying data for policy with id: b79bf8a7-c40c-469e-b3c6-531f24190175, fqn: ['default-domain', 'ctest-TestBasicPolicy-28536592', 'ctest-policy-allow-all-50273929']
2025-10-23 11:47:07,419 - INFO - VN ctest-vn-32582805 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 11:47:07,419 - DEBUG - Verifying the vn in opserver
2025-10-23 11:47:07,419 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28536592:ctest-vn-32582805 virtual network link through opserver 10.0.0.38
2025-10-23 11:47:07,419 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-23 11:47:07,428 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28536592:ctest-vn-32582805', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28536592:ctest-vn-32582805?flat'}
2025-10-23 11:47:07,428 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28536592:ctest-vn-32582805 is found in opserver
2025-10-23 11:47:07,437 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 11:47:07,440 - DEBUG - VRF ids for VN ctest-vn-32582805: {}
2025-10-23 11:47:07,489 - DEBUG - Services list from nova: [