2025-07-04 15:41:33,283 - INFO - Domain Default found not creating
2025-07-04 15:41:33,434 - INFO - Project ctest-TestBasicPolicy-95396185 not found, creating it
2025-07-04 15:41:33,913 - INFO - Created Project:ctest-TestBasicPolicy-95396185, ID : 03375fda-669f-459f-a9e8-137662709134
2025-07-04 15:41:35,361 - INFO - ================================================================================
2025-07-04 15:41:35,361 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-04 15:41:35,361 - 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-07-04 15:41:35,623 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-07-04 15:41:35,623 - INFO - Initial checks done. Running the testcase now
2025-07-04 15:41:35,623 - INFO -
2025-07-04 15:41:36,209 - DEBUG - Response for create_network : {'network': {'id': '76451db5-3bbe-4d16-a3d1-90c10f2656d5', 'name': 'ctest-vn-62515815', 'tenant_id': '03375fda669f459fa9e8137662709134', 'project_id': '03375fda669f459fa9e8137662709134', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95396185', 'ctest-vn-62515815'], 'port_security_enabled': True, 'description': ''}}
2025-07-04 15:41:36,430 - DEBUG - Response for create_subnet : {'subnet': {'id': '955ade73-875d-4264-b039-34e730b991b8', 'name': '', 'tenant_id': '03375fda669f459fa9e8137662709134', 'network_id': '76451db5-3bbe-4d16-a3d1-90c10f2656d5', 'ip_version': 4, 'cidr': '135.249.121.192/26', 'allocation_pools': [{'start': '135.249.121.194', 'end': '135.249.121.254'}], 'gateway_ip': '135.249.121.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.249.121.194', 'tags': [], 'project_id': '03375fda669f459fa9e8137662709134'}}
2025-07-04 15:41:36,451 - INFO - Created VN ctest-vn-62515815
2025-07-04 15:41:36,505 - DEBUG - VN ctest-vn-62515815 UUID is 76451db5-3bbe-4d16-a3d1-90c10f2656d5
2025-07-04 15:41:36,838 - DEBUG - Response for create_network : {'network': {'id': 'e64e7b9a-0bde-4cb6-8979-792b22c339b7', 'name': 'ctest-vn-56753890', 'tenant_id': '03375fda669f459fa9e8137662709134', 'project_id': '03375fda669f459fa9e8137662709134', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95396185', 'ctest-vn-56753890'], 'port_security_enabled': True, 'description': ''}}
2025-07-04 15:41:37,014 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcb7e74c-6932-4ba2-b73c-2d13e8caec0c', 'name': '', 'tenant_id': '03375fda669f459fa9e8137662709134', 'network_id': 'e64e7b9a-0bde-4cb6-8979-792b22c339b7', 'ip_version': 4, 'cidr': '107.172.246.128/26', 'allocation_pools': [{'start': '107.172.246.130', 'end': '107.172.246.190'}], 'gateway_ip': '107.172.246.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.172.246.130', 'tags': [], 'project_id': '03375fda669f459fa9e8137662709134'}}
2025-07-04 15:41:37,035 - INFO - Created VN ctest-vn-56753890
2025-07-04 15:41:37,089 - DEBUG - VN ctest-vn-56753890 UUID is e64e7b9a-0bde-4cb6-8979-792b22c339b7
2025-07-04 15:41:37,201 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95396185:ctest-vn-62515815, 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-95396185:ctest-vn-56753890, 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-07-04 15:41:37,514 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '76451db5-3bbe-4d16-a3d1-90c10f2656d5', 'name': 'ctest-vn-62515815', 'tenant_id': '03375fda669f459fa9e8137662709134', 'project_id': '03375fda669f459fa9e8137662709134', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['955ade73-875d-4264-b039-34e730b991b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95396185', 'ctest-vn-62515815'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95396185', 'ctest-policy-allow-all-34576912']], 'subnet_ipam': [{'subnet_cidr': '135.249.121.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-04 15:41:37,755 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e64e7b9a-0bde-4cb6-8979-792b22c339b7', 'name': 'ctest-vn-56753890', 'tenant_id': '03375fda669f459fa9e8137662709134', 'project_id': '03375fda669f459fa9e8137662709134', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dcb7e74c-6932-4ba2-b73c-2d13e8caec0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95396185', 'ctest-vn-56753890'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95396185', 'ctest-policy-allow-all-34576912']], 'subnet_ipam': [{'subnet_cidr': '107.172.246.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-04 15:41:37,901 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-04 15:41:38,209 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-04 15:41:38,238 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fb76c17a-fadf-41bd-8018-ffb6533e5399
2025-07-04 15:41:38,252 - DEBUG - Requesting: http://10.0.0.38:8082/project/03375fda-669f-459f-a9e8-137662709134
2025-07-04 15:41:38,330 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/76451db5-3bbe-4d16-a3d1-90c10f2656d5
2025-07-04 15:41:38,344 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/76451db5-3bbe-4d16-a3d1-90c10f2656d5
2025-07-04 15:41:38,358 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1d8c8820-03d3-44b4-b8eb-1d204d286094
2025-07-04 15:41:38,368 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1d8c8820-03d3-44b4-b8eb-1d204d286094
2025-07-04 15:41:38,378 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0741ed38-413b-4097-8c40-7087c3c713ee
2025-07-04 15:41:38,386 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-04 15:41:38,386 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/76451db5-3bbe-4d16-a3d1-90c10f2656d5
2025-07-04 15:41:38,398 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1d8c8820-03d3-44b4-b8eb-1d204d286094
2025-07-04 15:41:38,415 - INFO - Verified VN network id 8 for VN 76451db5-3bbe-4d16-a3d1-90c10f2656d5
2025-07-04 15:41:38,415 - INFO - Verifications in API Server for VN ctest-vn-62515815 passed
2025-07-04 15:41:38,415 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/76451db5-3bbe-4d16-a3d1-90c10f2656d5
2025-07-04 15:41:38,427 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1d8c8820-03d3-44b4-b8eb-1d204d286094
2025-07-04 15:41:38,435 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1d8c8820-03d3-44b4-b8eb-1d204d286094
2025-07-04 15:41:38,444 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0741ed38-413b-4097-8c40-7087c3c713ee
2025-07-04 15:41:38,460 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95396185:ctest-vn-62515815', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95396185', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8522250534097145110', 'uuid-lslong': '11804375257172039381'}, 'enable': 'true', 'created': '2025-07-04T15:41:36', 'last-modified': '2025-07-04T15:41:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977472'}
2025-07-04 15:41:38,468 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-04 15:41:38,468 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62515815 passed
2025-07-04 15:41:38,469 - DEBUG - ====Verifying policy data for ctest-vn-62515815 in API_Server ======
2025-07-04 15:41:38,469 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-04 15:41:38,475 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fb76c17a-fadf-41bd-8018-ffb6533e5399
2025-07-04 15:41:38,488 - DEBUG - Requesting: http://10.0.0.38:8082/project/03375fda-669f-459f-a9e8-137662709134
2025-07-04 15:41:38,566 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/76451db5-3bbe-4d16-a3d1-90c10f2656d5
2025-07-04 15:41:38,579 - DEBUG - ==>Verifying data for policy with id: a7885ae8-0566-44aa-ab0c-668b6ab87240, fqn: ['default-domain', 'ctest-TestBasicPolicy-95396185', 'ctest-policy-allow-all-34576912']
2025-07-04 15:41:38,579 - INFO - VN ctest-vn-62515815 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-04 15:41:38,579 - DEBUG - Verifying the vn in opserver
2025-07-04 15:41:38,579 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95396185:ctest-vn-62515815 virtual network link through opserver 10.0.0.38
2025-07-04 15:41:38,579 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-04 15:41:38,879 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-04 15:41:38,949 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95396185:ctest-vn-62515815', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95396185:ctest-vn-62515815?flat'}
2025-07-04 15:41:38,950 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95396185:ctest-vn-62515815 is found in opserver
2025-07-04 15:41:38,961 - DEBUG - Do not have enough data to verify VN in agent
2025-07-04 15:41:38,967 - DEBUG - VRF ids for VN ctest-vn-62515815: {}
2025-07-04 15:41:38,967 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-04 15:41:38,973 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fb76c17a-fadf-41bd-8018-ffb6533e5399
2025-07-04 15:41:38,986 - DEBUG - Requesting: http://10.0.0.38:8082/project/03375fda-669f-459f-a9e8-137662709134
2025-07-04 15:41:39,069 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64e7b9a-0bde-4cb6-8979-792b22c339b7
2025-07-04 15:41:39,084 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64e7b9a-0bde-4cb6-8979-792b22c339b7
2025-07-04 15:41:39,094 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/01131ad2-df3c-4651-935b-afa27c257271
2025-07-04 15:41:39,102 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/01131ad2-df3c-4651-935b-afa27c257271
2025-07-04 15:41:39,110 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3a21cf62-c6ea-4c49-a2b9-c971ac971145
2025-07-04 15:41:39,119 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-04 15:41:39,119 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64e7b9a-0bde-4cb6-8979-792b22c339b7
2025-07-04 15:41:39,129 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/01131ad2-df3c-4651-935b-afa27c257271
2025-07-04 15:41:39,149 - INFO - Verified VN network id 9 for VN e64e7b9a-0bde-4cb6-8979-792b22c339b7
2025-07-04 15:41:39,149 - INFO - Verifications in API Server for VN ctest-vn-56753890 passed
2025-07-04 15:41:39,149 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64e7b9a-0bde-4cb6-8979-792b22c339b7
2025-07-04 15:41:39,161 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/01131ad2-df3c-4651-935b-afa27c257271
2025-07-04 15:41:39,170 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/01131ad2-df3c-4651-935b-afa27c257271
2025-07-04 15:41:39,177 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3a21cf62-c6ea-4c49-a2b9-c971ac971145
2025-07-04 15:41:39,190 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95396185:ctest-vn-56753890', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95396185', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16595337578461154486', 'uuid-lslong': '9906082081551890871'}, 'enable': 'true', 'created': '2025-07-04T15:41:36', 'last-modified': '2025-07-04T15:41:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466716'}
2025-07-04 15:41:39,197 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-04 15:41:39,197 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56753890 passed
2025-07-04 15:41:39,197 - DEBUG - ====Verifying policy data for ctest-vn-56753890 in API_Server ======
2025-07-04 15:41:39,197 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-04 15:41:39,203 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fb76c17a-fadf-41bd-8018-ffb6533e5399
2025-07-04 15:41:39,217 - DEBUG - Requesting: http://10.0.0.38:8082/project/03375fda-669f-459f-a9e8-137662709134
2025-07-04 15:41:39,299 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e64e7b9a-0bde-4cb6-8979-792b22c339b7
2025-07-04 15:41:39,309 - DEBUG - ==>Verifying data for policy with id: a7885ae8-0566-44aa-ab0c-668b6ab87240, fqn: ['default-domain', 'ctest-TestBasicPolicy-95396185', 'ctest-policy-allow-all-34576912']
2025-07-04 15:41:39,309 - INFO - VN ctest-vn-56753890 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-04 15:41:39,309 - DEBUG - Verifying the vn in opserver
2025-07-04 15:41:39,309 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95396185:ctest-vn-56753890 virtual network link through opserver 10.0.0.38
2025-07-04 15:41:39,310 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-04 15:41:39,321 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95396185:ctest-vn-56753890', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95396185:ctest-vn-56753890?flat'}
2025-07-04 15:41:39,321 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95396185:ctest-vn-56753890 is found in opserver
2025-07-04 15:41:39,333 - DEBUG - Do not have enough data to verify VN in agent
2025-07-04 15:41:39,339 - DEBUG - VRF ids for VN ctest-vn-56753890: {}
2025-07-04 15:41:39,396 - DEBUG - Services list from nova: [