2025-01-09 16:37:19,132 - INFO - Domain Default found not creating
2025-01-09 16:37:19,290 - INFO - Project ctest-TestBasicPolicy-27669695 not found, creating it
2025-01-09 16:37:19,788 - INFO - Created Project:ctest-TestBasicPolicy-27669695, ID : 353d175f-4dd0-4140-88c6-0adc5527110f
2025-01-09 16:37:21,257 - INFO - ================================================================================
2025-01-09 16:37:21,257 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-09 16:37:21,257 - 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-01-09 16:37:21,518 - DEBUG - Nothing to compare xmpp stats {'10.0.0.55': {'10.20.0.22': '0'}} with
2025-01-09 16:37:21,518 - INFO - Initial checks done. Running the testcase now
2025-01-09 16:37:21,518 - INFO -
2025-01-09 16:37:22,102 - DEBUG - Response for create_network : {'network': {'id': 'bea3fe2e-bf7b-4d42-af7b-76c18e84b40e', 'name': 'ctest-vn-61687400', 'tenant_id': '353d175f4dd0414088c60adc5527110f', 'project_id': '353d175f4dd0414088c60adc5527110f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-vn-61687400'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 16:37:22,293 - DEBUG - Response for create_subnet : {'subnet': {'id': '556a5c9f-4af0-46b5-abc5-0cbb55883f5e', 'name': '', 'tenant_id': '353d175f4dd0414088c60adc5527110f', 'network_id': 'bea3fe2e-bf7b-4d42-af7b-76c18e84b40e', 'ip_version': 4, 'cidr': '13.2.177.192/26', 'allocation_pools': [{'start': '13.2.177.194', 'end': '13.2.177.254'}], 'gateway_ip': '13.2.177.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.2.177.194', 'tags': [], 'project_id': '353d175f4dd0414088c60adc5527110f'}}
2025-01-09 16:37:22,316 - INFO - Created VN ctest-vn-61687400
2025-01-09 16:37:22,371 - DEBUG - VN ctest-vn-61687400 UUID is bea3fe2e-bf7b-4d42-af7b-76c18e84b40e
2025-01-09 16:37:22,694 - DEBUG - Response for create_network : {'network': {'id': '84d7653b-de97-4eae-9d65-4a5efaca1bc8', 'name': 'ctest-vn-86211148', 'tenant_id': '353d175f4dd0414088c60adc5527110f', 'project_id': '353d175f4dd0414088c60adc5527110f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-vn-86211148'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 16:37:22,878 - DEBUG - Response for create_subnet : {'subnet': {'id': '545bda45-b36b-4c12-be4b-8e919d5ea42f', 'name': '', 'tenant_id': '353d175f4dd0414088c60adc5527110f', 'network_id': '84d7653b-de97-4eae-9d65-4a5efaca1bc8', 'ip_version': 4, 'cidr': '205.95.48.0/26', 'allocation_pools': [{'start': '205.95.48.2', 'end': '205.95.48.62'}], 'gateway_ip': '205.95.48.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.95.48.2', 'tags': [], 'project_id': '353d175f4dd0414088c60adc5527110f'}}
2025-01-09 16:37:22,900 - INFO - Created VN ctest-vn-86211148
2025-01-09 16:37:22,955 - DEBUG - VN ctest-vn-86211148 UUID is 84d7653b-de97-4eae-9d65-4a5efaca1bc8
2025-01-09 16:37:23,065 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400, 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-27669695:ctest-vn-86211148, 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-01-09 16:37:23,399 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bea3fe2e-bf7b-4d42-af7b-76c18e84b40e', 'name': 'ctest-vn-61687400', 'tenant_id': '353d175f4dd0414088c60adc5527110f', 'project_id': '353d175f4dd0414088c60adc5527110f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['556a5c9f-4af0-46b5-abc5-0cbb55883f5e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-vn-61687400'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-policy-allow-all-63909296']], 'subnet_ipam': [{'subnet_cidr': '13.2.177.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 16:37:23,632 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84d7653b-de97-4eae-9d65-4a5efaca1bc8', 'name': 'ctest-vn-86211148', 'tenant_id': '353d175f4dd0414088c60adc5527110f', 'project_id': '353d175f4dd0414088c60adc5527110f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['545bda45-b36b-4c12-be4b-8e919d5ea42f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-vn-86211148'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-policy-allow-all-63909296']], 'subnet_ipam': [{'subnet_cidr': '205.95.48.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 16:37:23,799 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-01-09 16:37:24,091 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-01-09 16:37:24,121 - DEBUG - Requesting: http://10.0.0.55:8082/domain/cf8534af-a04f-412e-96d7-e53a1ceb5d2a
2025-01-09 16:37:24,137 - DEBUG - Requesting: http://10.0.0.55:8082/project/353d175f-4dd0-4140-88c6-0adc5527110f
2025-01-09 16:37:24,213 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/bea3fe2e-bf7b-4d42-af7b-76c18e84b40e
2025-01-09 16:37:24,225 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/bea3fe2e-bf7b-4d42-af7b-76c18e84b40e
2025-01-09 16:37:24,236 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/36eff279-24e3-46fe-9b7b-408ceeb85975
2025-01-09 16:37:24,245 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/36eff279-24e3-46fe-9b7b-408ceeb85975
2025-01-09 16:37:24,254 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/5760e72b-ba9b-4465-a877-26e07e165be9
2025-01-09 16:37:24,261 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 16:37:24,261 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/bea3fe2e-bf7b-4d42-af7b-76c18e84b40e
2025-01-09 16:37:24,272 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/36eff279-24e3-46fe-9b7b-408ceeb85975
2025-01-09 16:37:24,288 - INFO - Verified VN network id 9 for VN bea3fe2e-bf7b-4d42-af7b-76c18e84b40e
2025-01-09 16:37:24,288 - INFO - Verifications in API Server for VN ctest-vn-61687400 passed
2025-01-09 16:37:24,288 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/bea3fe2e-bf7b-4d42-af7b-76c18e84b40e
2025-01-09 16:37:24,299 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/36eff279-24e3-46fe-9b7b-408ceeb85975
2025-01-09 16:37:24,307 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/36eff279-24e3-46fe-9b7b-408ceeb85975
2025-01-09 16:37:24,315 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/5760e72b-ba9b-4465-a877-26e07e165be9
2025-01-09 16:37:24,330 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27669695', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13737102765144624450', 'uuid-lslong': '12644830952464626702'}, 'enable': 'true', 'created': '2025-01-09T16:37:22', 'last-modified': '2025-01-09T16:37:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961968'}
2025-01-09 16:37:24,337 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 16:37:24,338 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61687400 passed
2025-01-09 16:37:24,338 - DEBUG - ====Verifying policy data for ctest-vn-61687400 in API_Server ======
2025-01-09 16:37:24,338 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-01-09 16:37:24,345 - DEBUG - Requesting: http://10.0.0.55:8082/domain/cf8534af-a04f-412e-96d7-e53a1ceb5d2a
2025-01-09 16:37:24,360 - DEBUG - Requesting: http://10.0.0.55:8082/project/353d175f-4dd0-4140-88c6-0adc5527110f
2025-01-09 16:37:24,435 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/bea3fe2e-bf7b-4d42-af7b-76c18e84b40e
2025-01-09 16:37:24,445 - DEBUG - ==>Verifying data for policy with id: b97c7ec0-8be1-4cc0-8fb5-4a5f0fd2c0b0, fqn: ['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-policy-allow-all-63909296']
2025-01-09 16:37:24,445 - INFO - VN ctest-vn-61687400 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 16:37:24,445 - DEBUG - Verifying the vn in opserver
2025-01-09 16:37:24,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400 virtual network link through opserver 10.0.0.55
2025-01-09 16:37:24,446 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2025-01-09 16:37:24,742 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2025-01-09 16:37:24,802 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400?flat'}
2025-01-09 16:37:24,802 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-61687400 is found in opserver
2025-01-09 16:37:24,815 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 16:37:24,821 - DEBUG - VRF ids for VN ctest-vn-61687400: {}
2025-01-09 16:37:24,821 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-01-09 16:37:24,829 - DEBUG - Requesting: http://10.0.0.55:8082/domain/cf8534af-a04f-412e-96d7-e53a1ceb5d2a
2025-01-09 16:37:24,850 - DEBUG - Requesting: http://10.0.0.55:8082/project/353d175f-4dd0-4140-88c6-0adc5527110f
2025-01-09 16:37:24,928 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/84d7653b-de97-4eae-9d65-4a5efaca1bc8
2025-01-09 16:37:24,941 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/84d7653b-de97-4eae-9d65-4a5efaca1bc8
2025-01-09 16:37:24,950 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07f65c33-f29c-44b0-8d16-bfd36689a68a
2025-01-09 16:37:24,960 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07f65c33-f29c-44b0-8d16-bfd36689a68a
2025-01-09 16:37:24,967 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/54e2f1df-b4ea-492b-ad99-8d89e49156e7
2025-01-09 16:37:24,975 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 16:37:24,975 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/84d7653b-de97-4eae-9d65-4a5efaca1bc8
2025-01-09 16:37:24,984 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07f65c33-f29c-44b0-8d16-bfd36689a68a
2025-01-09 16:37:24,998 - INFO - Verified VN network id 10 for VN 84d7653b-de97-4eae-9d65-4a5efaca1bc8
2025-01-09 16:37:24,998 - INFO - Verifications in API Server for VN ctest-vn-86211148 passed
2025-01-09 16:37:24,998 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/84d7653b-de97-4eae-9d65-4a5efaca1bc8
2025-01-09 16:37:25,008 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07f65c33-f29c-44b0-8d16-bfd36689a68a
2025-01-09 16:37:25,016 - DEBUG - Requesting: http://10.0.0.55:8082/routing-instance/07f65c33-f29c-44b0-8d16-bfd36689a68a
2025-01-09 16:37:25,023 - DEBUG - Requesting: http://10.0.0.55:8082/route-target/54e2f1df-b4ea-492b-ad99-8d89e49156e7
2025-01-09 16:37:25,035 - DEBUG - Control-node 10.0.0.55 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-86211148', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27669695', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9572230840811212462', 'uuid-lslong': '11341553008397392840'}, 'enable': 'true', 'created': '2025-01-09T16:37:22', 'last-modified': '2025-01-09T16:37:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.430412'}
2025-01-09 16:37:25,042 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 16:37:25,042 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86211148 passed
2025-01-09 16:37:25,043 - DEBUG - ====Verifying policy data for ctest-vn-86211148 in API_Server ======
2025-01-09 16:37:25,043 - DEBUG - Requesting: http://10.0.0.55:8082/domains
2025-01-09 16:37:25,049 - DEBUG - Requesting: http://10.0.0.55:8082/domain/cf8534af-a04f-412e-96d7-e53a1ceb5d2a
2025-01-09 16:37:25,063 - DEBUG - Requesting: http://10.0.0.55:8082/project/353d175f-4dd0-4140-88c6-0adc5527110f
2025-01-09 16:37:25,140 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-network/84d7653b-de97-4eae-9d65-4a5efaca1bc8
2025-01-09 16:37:25,159 - DEBUG - ==>Verifying data for policy with id: b97c7ec0-8be1-4cc0-8fb5-4a5f0fd2c0b0, fqn: ['default-domain', 'ctest-TestBasicPolicy-27669695', 'ctest-policy-allow-all-63909296']
2025-01-09 16:37:25,159 - INFO - VN ctest-vn-86211148 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 16:37:25,159 - DEBUG - Verifying the vn in opserver
2025-01-09 16:37:25,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-86211148 virtual network link through opserver 10.0.0.55
2025-01-09 16:37:25,159 - DEBUG - Requesting: http://10.0.0.55:8081/analytics/uves/virtual-networks
2025-01-09 16:37:25,172 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-86211148', 'href': 'http://10.0.0.55:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-86211148?flat'}
2025-01-09 16:37:25,172 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27669695:ctest-vn-86211148 is found in opserver
2025-01-09 16:37:25,183 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 16:37:25,190 - DEBUG - VRF ids for VN ctest-vn-86211148: {}
2025-01-09 16:37:25,254 - DEBUG - Services list from nova: [