2025-05-26 11:40:11,131 - INFO - Domain Default found not creating
2025-05-26 11:40:11,290 - INFO - Project ctest-TestBasicPolicy-98123824 not found, creating it
2025-05-26 11:40:11,763 - INFO - Created Project:ctest-TestBasicPolicy-98123824, ID : 7f9d65f2-9884-45f8-97e8-c184e9f2aac0
2025-05-26 11:40:13,423 - INFO - ================================================================================
2025-05-26 11:40:13,423 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-26 11:40:13,423 - 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-05-26 11:40:13,686 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-05-26 11:40:13,687 - INFO - Initial checks done. Running the testcase now
2025-05-26 11:40:13,687 - INFO -
2025-05-26 11:40:14,296 - DEBUG - Response for create_network : {'network': {'id': '6c7d26c5-c2c7-4e28-b422-f83be926d30b', 'name': 'ctest-vn-07006970', 'tenant_id': '7f9d65f2988445f897e8c184e9f2aac0', 'project_id': '7f9d65f2988445f897e8c184e9f2aac0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-vn-07006970'], 'port_security_enabled': True, 'description': ''}}
2025-05-26 11:40:14,507 - DEBUG - Response for create_subnet : {'subnet': {'id': '2db85a2f-c24f-4d98-9039-0e2cb4e58def', 'name': '', 'tenant_id': '7f9d65f2988445f897e8c184e9f2aac0', 'network_id': '6c7d26c5-c2c7-4e28-b422-f83be926d30b', 'ip_version': 4, 'cidr': '52.41.147.64/26', 'allocation_pools': [{'start': '52.41.147.66', 'end': '52.41.147.126'}], 'gateway_ip': '52.41.147.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.41.147.66', 'tags': [], 'project_id': '7f9d65f2988445f897e8c184e9f2aac0'}}
2025-05-26 11:40:14,525 - INFO - Created VN ctest-vn-07006970
2025-05-26 11:40:14,577 - DEBUG - VN ctest-vn-07006970 UUID is 6c7d26c5-c2c7-4e28-b422-f83be926d30b
2025-05-26 11:40:14,900 - DEBUG - Response for create_network : {'network': {'id': 'aa4a7a58-c3bc-46cc-bcad-970af724c9dc', 'name': 'ctest-vn-82365291', 'tenant_id': '7f9d65f2988445f897e8c184e9f2aac0', 'project_id': '7f9d65f2988445f897e8c184e9f2aac0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-vn-82365291'], 'port_security_enabled': True, 'description': ''}}
2025-05-26 11:40:15,073 - DEBUG - Response for create_subnet : {'subnet': {'id': '62e0c17c-1ca3-4640-a6cb-fb047a5b26a2', 'name': '', 'tenant_id': '7f9d65f2988445f897e8c184e9f2aac0', 'network_id': 'aa4a7a58-c3bc-46cc-bcad-970af724c9dc', 'ip_version': 4, 'cidr': '32.29.155.192/26', 'allocation_pools': [{'start': '32.29.155.194', 'end': '32.29.155.254'}], 'gateway_ip': '32.29.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.29.155.194', 'tags': [], 'project_id': '7f9d65f2988445f897e8c184e9f2aac0'}}
2025-05-26 11:40:15,093 - INFO - Created VN ctest-vn-82365291
2025-05-26 11:40:15,149 - DEBUG - VN ctest-vn-82365291 UUID is aa4a7a58-c3bc-46cc-bcad-970af724c9dc
2025-05-26 11:40:15,266 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970, 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-98123824:ctest-vn-82365291, 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-05-26 11:40:15,574 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c7d26c5-c2c7-4e28-b422-f83be926d30b', 'name': 'ctest-vn-07006970', 'tenant_id': '7f9d65f2988445f897e8c184e9f2aac0', 'project_id': '7f9d65f2988445f897e8c184e9f2aac0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2db85a2f-c24f-4d98-9039-0e2cb4e58def'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-vn-07006970'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-policy-allow-all-56830408']], 'subnet_ipam': [{'subnet_cidr': '52.41.147.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-26 11:40:15,815 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa4a7a58-c3bc-46cc-bcad-970af724c9dc', 'name': 'ctest-vn-82365291', 'tenant_id': '7f9d65f2988445f897e8c184e9f2aac0', 'project_id': '7f9d65f2988445f897e8c184e9f2aac0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62e0c17c-1ca3-4640-a6cb-fb047a5b26a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-vn-82365291'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-policy-allow-all-56830408']], 'subnet_ipam': [{'subnet_cidr': '32.29.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-26 11:40:15,989 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-26 11:40:16,329 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-26 11:40:16,360 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fddbdcfa-12ce-422c-acb6-ceb0e58b85a9
2025-05-26 11:40:16,375 - DEBUG - Requesting: http://10.0.0.254:8082/project/7f9d65f2-9884-45f8-97e8-c184e9f2aac0
2025-05-26 11:40:16,450 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d26c5-c2c7-4e28-b422-f83be926d30b
2025-05-26 11:40:16,463 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d26c5-c2c7-4e28-b422-f83be926d30b
2025-05-26 11:40:16,474 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e086362a-37f1-4d73-88a0-af4312afd4dd
2025-05-26 11:40:16,483 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e086362a-37f1-4d73-88a0-af4312afd4dd
2025-05-26 11:40:16,493 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e66596e4-3f6a-4d26-bbe3-fa6c54dce3a7
2025-05-26 11:40:16,500 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-26 11:40:16,500 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d26c5-c2c7-4e28-b422-f83be926d30b
2025-05-26 11:40:16,510 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e086362a-37f1-4d73-88a0-af4312afd4dd
2025-05-26 11:40:16,527 - INFO - Verified VN network id 8 for VN 6c7d26c5-c2c7-4e28-b422-f83be926d30b
2025-05-26 11:40:16,527 - INFO - Verifications in API Server for VN ctest-vn-07006970 passed
2025-05-26 11:40:16,527 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d26c5-c2c7-4e28-b422-f83be926d30b
2025-05-26 11:40:16,537 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e086362a-37f1-4d73-88a0-af4312afd4dd
2025-05-26 11:40:16,545 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e086362a-37f1-4d73-88a0-af4312afd4dd
2025-05-26 11:40:16,552 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e66596e4-3f6a-4d26-bbe3-fa6c54dce3a7
2025-05-26 11:40:16,569 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98123824', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7817447159003303464', 'uuid-lslong': '12980210012233585419'}, 'enable': 'true', 'created': '2025-05-26T11:40:14', 'last-modified': '2025-05-26T11:40:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.018002'}
2025-05-26 11:40:16,578 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-26 11:40:16,578 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07006970 passed
2025-05-26 11:40:16,578 - DEBUG - ====Verifying policy data for ctest-vn-07006970 in API_Server ======
2025-05-26 11:40:16,578 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-26 11:40:16,585 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fddbdcfa-12ce-422c-acb6-ceb0e58b85a9
2025-05-26 11:40:16,598 - DEBUG - Requesting: http://10.0.0.254:8082/project/7f9d65f2-9884-45f8-97e8-c184e9f2aac0
2025-05-26 11:40:16,678 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6c7d26c5-c2c7-4e28-b422-f83be926d30b
2025-05-26 11:40:16,690 - DEBUG - ==>Verifying data for policy with id: 3a692d7b-bf37-4532-bf46-6fdbb839f892, fqn: ['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-policy-allow-all-56830408']
2025-05-26 11:40:16,690 - INFO - VN ctest-vn-07006970 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-26 11:40:16,690 - DEBUG - Verifying the vn in opserver
2025-05-26 11:40:16,690 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970 virtual network link through opserver 10.0.0.254
2025-05-26 11:40:16,690 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-26 11:40:17,024 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-26 11:40:17,084 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970?flat'}
2025-05-26 11:40:17,084 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-07006970 is found in opserver
2025-05-26 11:40:17,096 - DEBUG - Do not have enough data to verify VN in agent
2025-05-26 11:40:17,102 - DEBUG - VRF ids for VN ctest-vn-07006970: {}
2025-05-26 11:40:17,102 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-26 11:40:17,109 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fddbdcfa-12ce-422c-acb6-ceb0e58b85a9
2025-05-26 11:40:17,123 - DEBUG - Requesting: http://10.0.0.254:8082/project/7f9d65f2-9884-45f8-97e8-c184e9f2aac0
2025-05-26 11:40:17,202 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa4a7a58-c3bc-46cc-bcad-970af724c9dc
2025-05-26 11:40:17,217 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa4a7a58-c3bc-46cc-bcad-970af724c9dc
2025-05-26 11:40:17,228 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e0a223b6-cb23-4e9e-8773-6b653e96d0b9
2025-05-26 11:40:17,237 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e0a223b6-cb23-4e9e-8773-6b653e96d0b9
2025-05-26 11:40:17,244 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1a2b5bf0-ea7f-4876-a1ec-a8d765ef2dde
2025-05-26 11:40:17,252 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-26 11:40:17,252 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa4a7a58-c3bc-46cc-bcad-970af724c9dc
2025-05-26 11:40:17,262 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e0a223b6-cb23-4e9e-8773-6b653e96d0b9
2025-05-26 11:40:17,277 - INFO - Verified VN network id 9 for VN aa4a7a58-c3bc-46cc-bcad-970af724c9dc
2025-05-26 11:40:17,277 - INFO - Verifications in API Server for VN ctest-vn-82365291 passed
2025-05-26 11:40:17,277 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa4a7a58-c3bc-46cc-bcad-970af724c9dc
2025-05-26 11:40:17,287 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e0a223b6-cb23-4e9e-8773-6b653e96d0b9
2025-05-26 11:40:17,294 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e0a223b6-cb23-4e9e-8773-6b653e96d0b9
2025-05-26 11:40:17,302 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1a2b5bf0-ea7f-4876-a1ec-a8d765ef2dde
2025-05-26 11:40:17,316 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-82365291', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98123824', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12270754656383944396', 'uuid-lslong': '13595688923453245916'}, 'enable': 'true', 'created': '2025-05-26T11:40:14', 'last-modified': '2025-05-26T11:40:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.525216'}
2025-05-26 11:40:17,323 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-26 11:40:17,323 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82365291 passed
2025-05-26 11:40:17,323 - DEBUG - ====Verifying policy data for ctest-vn-82365291 in API_Server ======
2025-05-26 11:40:17,323 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-26 11:40:17,330 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fddbdcfa-12ce-422c-acb6-ceb0e58b85a9
2025-05-26 11:40:17,343 - DEBUG - Requesting: http://10.0.0.254:8082/project/7f9d65f2-9884-45f8-97e8-c184e9f2aac0
2025-05-26 11:40:17,423 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aa4a7a58-c3bc-46cc-bcad-970af724c9dc
2025-05-26 11:40:17,433 - DEBUG - ==>Verifying data for policy with id: 3a692d7b-bf37-4532-bf46-6fdbb839f892, fqn: ['default-domain', 'ctest-TestBasicPolicy-98123824', 'ctest-policy-allow-all-56830408']
2025-05-26 11:40:17,433 - INFO - VN ctest-vn-82365291 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-26 11:40:17,433 - DEBUG - Verifying the vn in opserver
2025-05-26 11:40:17,433 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-82365291 virtual network link through opserver 10.0.0.254
2025-05-26 11:40:17,433 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-26 11:40:17,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-82365291', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-82365291?flat'}
2025-05-26 11:40:17,445 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98123824:ctest-vn-82365291 is found in opserver
2025-05-26 11:40:17,457 - DEBUG - Do not have enough data to verify VN in agent
2025-05-26 11:40:17,463 - DEBUG - VRF ids for VN ctest-vn-82365291: {}
2025-05-26 11:40:17,524 - DEBUG - Services list from nova: [