2025-11-24 17:44:51,549 - INFO - Domain Default found not creating
2025-11-24 17:44:51,720 - INFO - Project ctest-TestBasicPolicy-17226593 not found, creating it
2025-11-24 17:44:52,168 - INFO - Created Project:ctest-TestBasicPolicy-17226593, ID : 50e6c401-5428-4ba1-97b9-d0e1d41f4f51
2025-11-24 17:44:53,762 - INFO - ================================================================================
2025-11-24 17:44:53,762 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-24 17:44:53,762 - 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-11-24 17:44:54,022 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.130': '0'}} with
2025-11-24 17:44:54,022 - INFO - Initial checks done. Running the testcase now
2025-11-24 17:44:54,022 - INFO -
2025-11-24 17:44:54,632 - DEBUG - Response for create_network : {'network': {'id': '8b4c0099-450e-418b-a549-269cff61f425', 'name': 'ctest-vn-07797786', 'tenant_id': '50e6c40154284ba197b9d0e1d41f4f51', 'project_id': '50e6c40154284ba197b9d0e1d41f4f51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17226593', 'ctest-vn-07797786'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 17:44:54,837 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e34a91e-2685-4e2c-92c4-9190b9eda83f', 'name': '', 'tenant_id': '50e6c40154284ba197b9d0e1d41f4f51', 'network_id': '8b4c0099-450e-418b-a549-269cff61f425', 'ip_version': 4, 'cidr': '65.22.124.64/26', 'allocation_pools': [{'start': '65.22.124.66', 'end': '65.22.124.126'}], 'gateway_ip': '65.22.124.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.22.124.66', 'tags': [], 'project_id': '50e6c40154284ba197b9d0e1d41f4f51'}}
2025-11-24 17:44:54,855 - INFO - Created VN ctest-vn-07797786
2025-11-24 17:44:54,909 - DEBUG - VN ctest-vn-07797786 UUID is 8b4c0099-450e-418b-a549-269cff61f425
2025-11-24 17:44:55,198 - DEBUG - Response for create_network : {'network': {'id': '312c7101-edaf-42ec-b297-86c2e01a8dc9', 'name': 'ctest-vn-58794082', 'tenant_id': '50e6c40154284ba197b9d0e1d41f4f51', 'project_id': '50e6c40154284ba197b9d0e1d41f4f51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17226593', 'ctest-vn-58794082'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 17:44:55,404 - DEBUG - Response for create_subnet : {'subnet': {'id': 'acb8e94e-a2a9-4899-a43e-281ba2112502', 'name': '', 'tenant_id': '50e6c40154284ba197b9d0e1d41f4f51', 'network_id': '312c7101-edaf-42ec-b297-86c2e01a8dc9', 'ip_version': 4, 'cidr': '52.191.122.192/26', 'allocation_pools': [{'start': '52.191.122.194', 'end': '52.191.122.254'}], 'gateway_ip': '52.191.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.191.122.194', 'tags': [], 'project_id': '50e6c40154284ba197b9d0e1d41f4f51'}}
2025-11-24 17:44:55,422 - INFO - Created VN ctest-vn-58794082
2025-11-24 17:44:55,473 - DEBUG - VN ctest-vn-58794082 UUID is 312c7101-edaf-42ec-b297-86c2e01a8dc9
2025-11-24 17:44:55,625 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17226593:ctest-vn-07797786, 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-17226593:ctest-vn-58794082, 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-11-24 17:44:55,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b4c0099-450e-418b-a549-269cff61f425', 'name': 'ctest-vn-07797786', 'tenant_id': '50e6c40154284ba197b9d0e1d41f4f51', 'project_id': '50e6c40154284ba197b9d0e1d41f4f51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e34a91e-2685-4e2c-92c4-9190b9eda83f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17226593', 'ctest-vn-07797786'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17226593', 'ctest-policy-allow-all-85574594']], 'subnet_ipam': [{'subnet_cidr': '65.22.124.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 17:44:56,150 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '312c7101-edaf-42ec-b297-86c2e01a8dc9', 'name': 'ctest-vn-58794082', 'tenant_id': '50e6c40154284ba197b9d0e1d41f4f51', 'project_id': '50e6c40154284ba197b9d0e1d41f4f51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['acb8e94e-a2a9-4899-a43e-281ba2112502'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17226593', 'ctest-vn-58794082'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17226593', 'ctest-policy-allow-all-85574594']], 'subnet_ipam': [{'subnet_cidr': '52.191.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 17:44:56,325 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-24 17:44:56,660 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-24 17:44:56,691 - DEBUG - Requesting: http://10.0.0.57:8082/domain/cd2b91d1-5e8a-4e33-80e4-f7beee2b3706
2025-11-24 17:44:56,704 - DEBUG - Requesting: http://10.0.0.57:8082/project/50e6c401-5428-4ba1-97b9-d0e1d41f4f51
2025-11-24 17:44:56,775 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/8b4c0099-450e-418b-a549-269cff61f425
2025-11-24 17:44:56,785 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/8b4c0099-450e-418b-a549-269cff61f425
2025-11-24 17:44:56,794 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f238cca-6ee0-4d4c-968a-d4bfeff3fe6a
2025-11-24 17:44:56,800 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f238cca-6ee0-4d4c-968a-d4bfeff3fe6a
2025-11-24 17:44:56,806 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a9c06b81-6aa8-4dfb-83b9-23804d121602
2025-11-24 17:44:56,811 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 17:44:56,811 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/8b4c0099-450e-418b-a549-269cff61f425
2025-11-24 17:44:56,819 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f238cca-6ee0-4d4c-968a-d4bfeff3fe6a
2025-11-24 17:44:56,831 - INFO - Verified VN network id 11 for VN 8b4c0099-450e-418b-a549-269cff61f425
2025-11-24 17:44:56,831 - INFO - Verifications in API Server for VN ctest-vn-07797786 passed
2025-11-24 17:44:56,831 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/8b4c0099-450e-418b-a549-269cff61f425
2025-11-24 17:44:56,839 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f238cca-6ee0-4d4c-968a-d4bfeff3fe6a
2025-11-24 17:44:56,845 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f238cca-6ee0-4d4c-968a-d4bfeff3fe6a
2025-11-24 17:44:56,850 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a9c06b81-6aa8-4dfb-83b9-23804d121602
2025-11-24 17:44:56,860 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17226593:ctest-vn-07797786', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17226593', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10037398327790551435', 'uuid-lslong': '11910093145299350565'}, 'enable': 'true', 'created': '2025-11-24T17:44:54', 'last-modified': '2025-11-24T17:44:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962536'}
2025-11-24 17:44:56,865 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 17:44:56,866 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07797786 passed
2025-11-24 17:44:56,866 - DEBUG - ====Verifying policy data for ctest-vn-07797786 in API_Server ======
2025-11-24 17:44:56,866 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-24 17:44:56,870 - DEBUG - Requesting: http://10.0.0.57:8082/domain/cd2b91d1-5e8a-4e33-80e4-f7beee2b3706
2025-11-24 17:44:56,881 - DEBUG - Requesting: http://10.0.0.57:8082/project/50e6c401-5428-4ba1-97b9-d0e1d41f4f51
2025-11-24 17:44:56,951 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/8b4c0099-450e-418b-a549-269cff61f425
2025-11-24 17:44:56,960 - DEBUG - ==>Verifying data for policy with id: 4cabd28c-9045-4170-a466-5b0c1696bbf5, fqn: ['default-domain', 'ctest-TestBasicPolicy-17226593', 'ctest-policy-allow-all-85574594']
2025-11-24 17:44:56,960 - INFO - VN ctest-vn-07797786 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 17:44:56,960 - DEBUG - Verifying the vn in opserver
2025-11-24 17:44:56,960 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17226593:ctest-vn-07797786 virtual network link through opserver 10.0.0.57
2025-11-24 17:44:56,960 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-11-24 17:44:57,295 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-11-24 17:44:57,356 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17226593:ctest-vn-07797786', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17226593:ctest-vn-07797786?flat'}
2025-11-24 17:44:57,356 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17226593:ctest-vn-07797786 is found in opserver
2025-11-24 17:44:57,365 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 17:44:57,369 - DEBUG - VRF ids for VN ctest-vn-07797786: {}
2025-11-24 17:44:57,369 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-24 17:44:57,374 - DEBUG - Requesting: http://10.0.0.57:8082/domain/cd2b91d1-5e8a-4e33-80e4-f7beee2b3706
2025-11-24 17:44:57,384 - DEBUG - Requesting: http://10.0.0.57:8082/project/50e6c401-5428-4ba1-97b9-d0e1d41f4f51
2025-11-24 17:44:57,454 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/312c7101-edaf-42ec-b297-86c2e01a8dc9
2025-11-24 17:44:57,466 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/312c7101-edaf-42ec-b297-86c2e01a8dc9
2025-11-24 17:44:57,475 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/39427c9a-98a9-4e17-9755-4bc813d86079
2025-11-24 17:44:57,481 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/39427c9a-98a9-4e17-9755-4bc813d86079
2025-11-24 17:44:57,487 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/08a9eeb9-4ae0-43bd-9531-caf5e9ef780f
2025-11-24 17:44:57,493 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 17:44:57,493 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/312c7101-edaf-42ec-b297-86c2e01a8dc9
2025-11-24 17:44:57,501 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/39427c9a-98a9-4e17-9755-4bc813d86079
2025-11-24 17:44:57,515 - INFO - Verified VN network id 12 for VN 312c7101-edaf-42ec-b297-86c2e01a8dc9
2025-11-24 17:44:57,515 - INFO - Verifications in API Server for VN ctest-vn-58794082 passed
2025-11-24 17:44:57,515 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/312c7101-edaf-42ec-b297-86c2e01a8dc9
2025-11-24 17:44:57,524 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/39427c9a-98a9-4e17-9755-4bc813d86079
2025-11-24 17:44:57,530 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/39427c9a-98a9-4e17-9755-4bc813d86079
2025-11-24 17:44:57,535 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/08a9eeb9-4ae0-43bd-9531-caf5e9ef780f
2025-11-24 17:44:57,545 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17226593:ctest-vn-58794082', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17226593', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3543331259930329836', 'uuid-lslong': '12868902631776095689'}, 'enable': 'true', 'created': '2025-11-24T17:44:55', 'last-modified': '2025-11-24T17:44:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.427412'}
2025-11-24 17:44:57,551 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 17:44:57,551 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58794082 passed
2025-11-24 17:44:57,551 - DEBUG - ====Verifying policy data for ctest-vn-58794082 in API_Server ======
2025-11-24 17:44:57,551 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-24 17:44:57,557 - DEBUG - Requesting: http://10.0.0.57:8082/domain/cd2b91d1-5e8a-4e33-80e4-f7beee2b3706
2025-11-24 17:44:57,567 - DEBUG - Requesting: http://10.0.0.57:8082/project/50e6c401-5428-4ba1-97b9-d0e1d41f4f51
2025-11-24 17:44:57,636 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/312c7101-edaf-42ec-b297-86c2e01a8dc9
2025-11-24 17:44:57,646 - DEBUG - ==>Verifying data for policy with id: 4cabd28c-9045-4170-a466-5b0c1696bbf5, fqn: ['default-domain', 'ctest-TestBasicPolicy-17226593', 'ctest-policy-allow-all-85574594']
2025-11-24 17:44:57,646 - INFO - VN ctest-vn-58794082 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 17:44:57,646 - DEBUG - Verifying the vn in opserver
2025-11-24 17:44:57,646 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17226593:ctest-vn-58794082 virtual network link through opserver 10.0.0.57
2025-11-24 17:44:57,646 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-11-24 17:44:57,656 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17226593:ctest-vn-58794082', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17226593:ctest-vn-58794082?flat'}
2025-11-24 17:44:57,657 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17226593:ctest-vn-58794082 is found in opserver
2025-11-24 17:44:57,666 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 17:44:57,671 - DEBUG - VRF ids for VN ctest-vn-58794082: {}
2025-11-24 17:44:57,734 - DEBUG - Services list from nova: [