2025-07-09 11:37:50,109 - INFO - Domain Default found not creating
2025-07-09 11:37:50,326 - INFO - Project ctest-TestBasicPolicy-94168698 not found, creating it
2025-07-09 11:37:50,902 - INFO - Created Project:ctest-TestBasicPolicy-94168698, ID : 4e64e9e0-1abd-4001-82c7-6e4cff6025a6
2025-07-09 11:37:52,758 - INFO - ================================================================================
2025-07-09 11:37:52,759 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-09 11:37:52,759 - 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-09 11:37:53,035 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-09 11:37:53,035 - INFO - Initial checks done. Running the testcase now
2025-07-09 11:37:53,035 - INFO -
2025-07-09 11:37:53,722 - DEBUG - Response for create_network : {'network': {'id': 'ed99d9c0-dabf-4244-926f-426478458479', 'name': 'ctest-vn-09108017', 'tenant_id': '4e64e9e01abd400182c76e4cff6025a6', 'project_id': '4e64e9e01abd400182c76e4cff6025a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94168698', 'ctest-vn-09108017'], 'port_security_enabled': True, 'description': ''}}
2025-07-09 11:37:53,980 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c631353c-11ea-40ec-a797-be947ba04752', 'name': '', 'tenant_id': '4e64e9e01abd400182c76e4cff6025a6', 'network_id': 'ed99d9c0-dabf-4244-926f-426478458479', 'ip_version': 4, 'cidr': '183.70.105.128/26', 'allocation_pools': [{'start': '183.70.105.130', 'end': '183.70.105.190'}], 'gateway_ip': '183.70.105.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.70.105.130', 'tags': [], 'project_id': '4e64e9e01abd400182c76e4cff6025a6'}}
2025-07-09 11:37:54,008 - INFO - Created VN ctest-vn-09108017
2025-07-09 11:37:54,068 - DEBUG - VN ctest-vn-09108017 UUID is ed99d9c0-dabf-4244-926f-426478458479
2025-07-09 11:37:54,448 - DEBUG - Response for create_network : {'network': {'id': 'dd1f7098-f5eb-40dd-b607-842426b0697e', 'name': 'ctest-vn-41698386', 'tenant_id': '4e64e9e01abd400182c76e4cff6025a6', 'project_id': '4e64e9e01abd400182c76e4cff6025a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94168698', 'ctest-vn-41698386'], 'port_security_enabled': True, 'description': ''}}
2025-07-09 11:37:54,634 - DEBUG - Response for create_subnet : {'subnet': {'id': '62493f98-5777-4f92-b9b3-7d8f94c37c91', 'name': '', 'tenant_id': '4e64e9e01abd400182c76e4cff6025a6', 'network_id': 'dd1f7098-f5eb-40dd-b607-842426b0697e', 'ip_version': 4, 'cidr': '90.0.227.128/26', 'allocation_pools': [{'start': '90.0.227.130', 'end': '90.0.227.190'}], 'gateway_ip': '90.0.227.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.0.227.130', 'tags': [], 'project_id': '4e64e9e01abd400182c76e4cff6025a6'}}
2025-07-09 11:37:54,657 - INFO - Created VN ctest-vn-41698386
2025-07-09 11:37:54,711 - DEBUG - VN ctest-vn-41698386 UUID is dd1f7098-f5eb-40dd-b607-842426b0697e
2025-07-09 11:37:54,842 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94168698:ctest-vn-09108017, 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-94168698:ctest-vn-41698386, 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-09 11:37:55,198 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed99d9c0-dabf-4244-926f-426478458479', 'name': 'ctest-vn-09108017', 'tenant_id': '4e64e9e01abd400182c76e4cff6025a6', 'project_id': '4e64e9e01abd400182c76e4cff6025a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c631353c-11ea-40ec-a797-be947ba04752'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94168698', 'ctest-vn-09108017'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94168698', 'ctest-policy-allow-all-59692918']], 'subnet_ipam': [{'subnet_cidr': '183.70.105.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-09 11:37:55,447 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd1f7098-f5eb-40dd-b607-842426b0697e', 'name': 'ctest-vn-41698386', 'tenant_id': '4e64e9e01abd400182c76e4cff6025a6', 'project_id': '4e64e9e01abd400182c76e4cff6025a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62493f98-5777-4f92-b9b3-7d8f94c37c91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94168698', 'ctest-vn-41698386'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94168698', 'ctest-policy-allow-all-59692918']], 'subnet_ipam': [{'subnet_cidr': '90.0.227.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-09 11:37:55,608 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-09 11:37:55,974 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-09 11:37:56,015 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6e147c92-30c5-47eb-afb8-aac381ec118e
2025-07-09 11:37:56,032 - DEBUG - Requesting: http://10.0.0.50:8082/project/4e64e9e0-1abd-4001-82c7-6e4cff6025a6
2025-07-09 11:37:56,116 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed99d9c0-dabf-4244-926f-426478458479
2025-07-09 11:37:56,132 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed99d9c0-dabf-4244-926f-426478458479
2025-07-09 11:37:56,146 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df498ef3-83c5-4603-bd4b-42b1e1327288
2025-07-09 11:37:56,156 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df498ef3-83c5-4603-bd4b-42b1e1327288
2025-07-09 11:37:56,166 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/58e66318-954c-4169-aa21-c16a889420fa
2025-07-09 11:37:56,174 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-09 11:37:56,174 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed99d9c0-dabf-4244-926f-426478458479
2025-07-09 11:37:56,188 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df498ef3-83c5-4603-bd4b-42b1e1327288
2025-07-09 11:37:56,208 - INFO - Verified VN network id 7 for VN ed99d9c0-dabf-4244-926f-426478458479
2025-07-09 11:37:56,208 - INFO - Verifications in API Server for VN ctest-vn-09108017 passed
2025-07-09 11:37:56,209 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed99d9c0-dabf-4244-926f-426478458479
2025-07-09 11:37:56,221 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df498ef3-83c5-4603-bd4b-42b1e1327288
2025-07-09 11:37:56,232 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/df498ef3-83c5-4603-bd4b-42b1e1327288
2025-07-09 11:37:56,243 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/58e66318-954c-4169-aa21-c16a889420fa
2025-07-09 11:37:56,265 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94168698:ctest-vn-09108017', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94168698', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17120954880752566852', 'uuid-lslong': '10551725451234346105'}, 'enable': 'true', 'created': '2025-07-09T11:37:53', 'last-modified': '2025-07-09T11:37:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.101187'}
2025-07-09 11:37:56,275 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-09 11:37:56,275 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09108017 passed
2025-07-09 11:37:56,275 - DEBUG - ====Verifying policy data for ctest-vn-09108017 in API_Server ======
2025-07-09 11:37:56,275 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-09 11:37:56,284 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6e147c92-30c5-47eb-afb8-aac381ec118e
2025-07-09 11:37:56,304 - DEBUG - Requesting: http://10.0.0.50:8082/project/4e64e9e0-1abd-4001-82c7-6e4cff6025a6
2025-07-09 11:37:56,392 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed99d9c0-dabf-4244-926f-426478458479
2025-07-09 11:37:56,408 - DEBUG - ==>Verifying data for policy with id: d913b722-a3a6-4c01-b483-8624306ea27b, fqn: ['default-domain', 'ctest-TestBasicPolicy-94168698', 'ctest-policy-allow-all-59692918']
2025-07-09 11:37:56,408 - INFO - VN ctest-vn-09108017 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-09 11:37:56,408 - DEBUG - Verifying the vn in opserver
2025-07-09 11:37:56,408 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94168698:ctest-vn-09108017 virtual network link through opserver 10.0.0.50
2025-07-09 11:37:56,408 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-09 11:37:56,766 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-09 11:37:56,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94168698:ctest-vn-09108017', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94168698:ctest-vn-09108017?flat'}
2025-07-09 11:37:56,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94168698:ctest-vn-09108017 is found in opserver
2025-07-09 11:37:56,877 - DEBUG - Do not have enough data to verify VN in agent
2025-07-09 11:37:56,887 - DEBUG - VRF ids for VN ctest-vn-09108017: {}
2025-07-09 11:37:56,887 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-09 11:37:56,895 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6e147c92-30c5-47eb-afb8-aac381ec118e
2025-07-09 11:37:56,910 - DEBUG - Requesting: http://10.0.0.50:8082/project/4e64e9e0-1abd-4001-82c7-6e4cff6025a6
2025-07-09 11:37:56,995 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dd1f7098-f5eb-40dd-b607-842426b0697e
2025-07-09 11:37:57,013 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dd1f7098-f5eb-40dd-b607-842426b0697e
2025-07-09 11:37:57,027 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7fb1f5d1-3fb3-4d17-b2b5-b95212a90cd6
2025-07-09 11:37:57,038 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7fb1f5d1-3fb3-4d17-b2b5-b95212a90cd6
2025-07-09 11:37:57,048 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2443f702-3eae-4eda-a418-850755e987a3
2025-07-09 11:37:57,059 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-09 11:37:57,059 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dd1f7098-f5eb-40dd-b607-842426b0697e
2025-07-09 11:37:57,072 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7fb1f5d1-3fb3-4d17-b2b5-b95212a90cd6
2025-07-09 11:37:57,093 - INFO - Verified VN network id 8 for VN dd1f7098-f5eb-40dd-b607-842426b0697e
2025-07-09 11:37:57,093 - INFO - Verifications in API Server for VN ctest-vn-41698386 passed
2025-07-09 11:37:57,094 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dd1f7098-f5eb-40dd-b607-842426b0697e
2025-07-09 11:37:57,106 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7fb1f5d1-3fb3-4d17-b2b5-b95212a90cd6
2025-07-09 11:37:57,116 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7fb1f5d1-3fb3-4d17-b2b5-b95212a90cd6
2025-07-09 11:37:57,125 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2443f702-3eae-4eda-a418-850755e987a3
2025-07-09 11:37:57,144 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94168698:ctest-vn-41698386', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94168698', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15933577808923279581', 'uuid-lslong': '13116597730542643582'}, 'enable': 'true', 'created': '2025-07-09T11:37:54', 'last-modified': '2025-07-09T11:37:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.720282'}
2025-07-09 11:37:57,153 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-09 11:37:57,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41698386 passed
2025-07-09 11:37:57,153 - DEBUG - ====Verifying policy data for ctest-vn-41698386 in API_Server ======
2025-07-09 11:37:57,153 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-09 11:37:57,161 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6e147c92-30c5-47eb-afb8-aac381ec118e
2025-07-09 11:37:57,182 - DEBUG - Requesting: http://10.0.0.50:8082/project/4e64e9e0-1abd-4001-82c7-6e4cff6025a6
2025-07-09 11:37:57,264 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dd1f7098-f5eb-40dd-b607-842426b0697e
2025-07-09 11:37:57,278 - DEBUG - ==>Verifying data for policy with id: d913b722-a3a6-4c01-b483-8624306ea27b, fqn: ['default-domain', 'ctest-TestBasicPolicy-94168698', 'ctest-policy-allow-all-59692918']
2025-07-09 11:37:57,278 - INFO - VN ctest-vn-41698386 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-09 11:37:57,278 - DEBUG - Verifying the vn in opserver
2025-07-09 11:37:57,280 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94168698:ctest-vn-41698386 virtual network link through opserver 10.0.0.50
2025-07-09 11:37:57,280 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-09 11:37:57,295 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94168698:ctest-vn-41698386', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94168698:ctest-vn-41698386?flat'}
2025-07-09 11:37:57,295 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94168698:ctest-vn-41698386 is found in opserver
2025-07-09 11:37:57,310 - DEBUG - Do not have enough data to verify VN in agent
2025-07-09 11:37:57,318 - DEBUG - VRF ids for VN ctest-vn-41698386: {}
2025-07-09 11:37:57,396 - DEBUG - Services list from nova: [