2025-06-23 20:05:22,322 - INFO - Domain Default found not creating
2025-06-23 20:05:22,477 - INFO - Project ctest-TestBasicPolicy-68496610 not found, creating it
2025-06-23 20:05:22,928 - INFO - Created Project:ctest-TestBasicPolicy-68496610, ID : 72ad73dd-ff75-4e03-b600-929def0d33a1
2025-06-23 20:05:24,388 - INFO - ================================================================================
2025-06-23 20:05:24,388 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-23 20:05:24,389 - 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-06-23 20:05:24,644 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-06-23 20:05:24,644 - INFO - Initial checks done. Running the testcase now
2025-06-23 20:05:24,644 - INFO -
2025-06-23 20:05:25,227 - DEBUG - Response for create_network : {'network': {'id': '1a1fd741-2670-4f62-a32f-0771aff629dd', 'name': 'ctest-vn-43152239', 'tenant_id': '72ad73ddff754e03b600929def0d33a1', 'project_id': '72ad73ddff754e03b600929def0d33a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-vn-43152239'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 20:05:25,425 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1a08903-04e7-44ea-8bc9-8ee66f42951a', 'name': '', 'tenant_id': '72ad73ddff754e03b600929def0d33a1', 'network_id': '1a1fd741-2670-4f62-a32f-0771aff629dd', 'ip_version': 4, 'cidr': '102.231.39.192/26', 'allocation_pools': [{'start': '102.231.39.194', 'end': '102.231.39.254'}], 'gateway_ip': '102.231.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.231.39.194', 'tags': [], 'project_id': '72ad73ddff754e03b600929def0d33a1'}}
2025-06-23 20:05:25,444 - INFO - Created VN ctest-vn-43152239
2025-06-23 20:05:25,493 - DEBUG - VN ctest-vn-43152239 UUID is 1a1fd741-2670-4f62-a32f-0771aff629dd
2025-06-23 20:05:25,849 - DEBUG - Response for create_network : {'network': {'id': '3579d254-df4d-4db8-a2a1-a72d6a8477d4', 'name': 'ctest-vn-54862557', 'tenant_id': '72ad73ddff754e03b600929def0d33a1', 'project_id': '72ad73ddff754e03b600929def0d33a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-vn-54862557'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 20:05:26,069 - DEBUG - Response for create_subnet : {'subnet': {'id': '65ca18ba-be3c-44e5-b13d-0e7fc44ab949', 'name': '', 'tenant_id': '72ad73ddff754e03b600929def0d33a1', 'network_id': '3579d254-df4d-4db8-a2a1-a72d6a8477d4', 'ip_version': 4, 'cidr': '77.151.163.128/26', 'allocation_pools': [{'start': '77.151.163.130', 'end': '77.151.163.190'}], 'gateway_ip': '77.151.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.151.163.130', 'tags': [], 'project_id': '72ad73ddff754e03b600929def0d33a1'}}
2025-06-23 20:05:26,089 - INFO - Created VN ctest-vn-54862557
2025-06-23 20:05:26,141 - DEBUG - VN ctest-vn-54862557 UUID is 3579d254-df4d-4db8-a2a1-a72d6a8477d4
2025-06-23 20:05:26,293 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239, 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-68496610:ctest-vn-54862557, 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-06-23 20:05:26,591 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a1fd741-2670-4f62-a32f-0771aff629dd', 'name': 'ctest-vn-43152239', 'tenant_id': '72ad73ddff754e03b600929def0d33a1', 'project_id': '72ad73ddff754e03b600929def0d33a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1a08903-04e7-44ea-8bc9-8ee66f42951a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-vn-43152239'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-policy-allow-all-27108987']], 'subnet_ipam': [{'subnet_cidr': '102.231.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 20:05:26,815 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3579d254-df4d-4db8-a2a1-a72d6a8477d4', 'name': 'ctest-vn-54862557', 'tenant_id': '72ad73ddff754e03b600929def0d33a1', 'project_id': '72ad73ddff754e03b600929def0d33a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65ca18ba-be3c-44e5-b13d-0e7fc44ab949'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-vn-54862557'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-policy-allow-all-27108987']], 'subnet_ipam': [{'subnet_cidr': '77.151.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 20:05:26,985 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 20:05:27,280 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 20:05:27,310 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fe89ad53-72a1-4ca1-8cb9-075c19172e3d
2025-06-23 20:05:27,322 - DEBUG - Requesting: http://10.0.0.254:8082/project/72ad73dd-ff75-4e03-b600-929def0d33a1
2025-06-23 20:05:27,393 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a1fd741-2670-4f62-a32f-0771aff629dd
2025-06-23 20:05:27,403 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a1fd741-2670-4f62-a32f-0771aff629dd
2025-06-23 20:05:27,414 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/969cd84a-cae3-4041-a3f9-1eb1faecfc50
2025-06-23 20:05:27,422 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/969cd84a-cae3-4041-a3f9-1eb1faecfc50
2025-06-23 20:05:27,430 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/14dca4bc-9866-44a6-93c0-7c17365ed2b4
2025-06-23 20:05:27,437 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 20:05:27,437 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a1fd741-2670-4f62-a32f-0771aff629dd
2025-06-23 20:05:27,448 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/969cd84a-cae3-4041-a3f9-1eb1faecfc50
2025-06-23 20:05:27,465 - INFO - Verified VN network id 9 for VN 1a1fd741-2670-4f62-a32f-0771aff629dd
2025-06-23 20:05:27,465 - INFO - Verifications in API Server for VN ctest-vn-43152239 passed
2025-06-23 20:05:27,465 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a1fd741-2670-4f62-a32f-0771aff629dd
2025-06-23 20:05:27,477 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/969cd84a-cae3-4041-a3f9-1eb1faecfc50
2025-06-23 20:05:27,485 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/969cd84a-cae3-4041-a3f9-1eb1faecfc50
2025-06-23 20:05:27,494 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/14dca4bc-9866-44a6-93c0-7c17365ed2b4
2025-06-23 20:05:27,506 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68496610', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1882459844081897314', 'uuid-lslong': '11758625336952498653'}, 'enable': 'true', 'created': '2025-06-23T20:05:25', 'last-modified': '2025-06-23T20:05:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.936109'}
2025-06-23 20:05:27,512 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 20:05:27,512 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43152239 passed
2025-06-23 20:05:27,513 - DEBUG - ====Verifying policy data for ctest-vn-43152239 in API_Server ======
2025-06-23 20:05:27,513 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 20:05:27,518 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fe89ad53-72a1-4ca1-8cb9-075c19172e3d
2025-06-23 20:05:27,528 - DEBUG - Requesting: http://10.0.0.254:8082/project/72ad73dd-ff75-4e03-b600-929def0d33a1
2025-06-23 20:05:27,600 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a1fd741-2670-4f62-a32f-0771aff629dd
2025-06-23 20:05:27,610 - DEBUG - ==>Verifying data for policy with id: 763cbe40-d2ea-4874-ab86-8939d12fc53a, fqn: ['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-policy-allow-all-27108987']
2025-06-23 20:05:27,610 - INFO - VN ctest-vn-43152239 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 20:05:27,610 - DEBUG - Verifying the vn in opserver
2025-06-23 20:05:27,610 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239 virtual network link through opserver 10.0.0.254
2025-06-23 20:05:27,610 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 20:05:27,902 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 20:05:27,958 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239?flat'}
2025-06-23 20:05:27,958 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-43152239 is found in opserver
2025-06-23 20:05:27,967 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 20:05:27,971 - DEBUG - VRF ids for VN ctest-vn-43152239: {}
2025-06-23 20:05:27,971 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 20:05:27,976 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fe89ad53-72a1-4ca1-8cb9-075c19172e3d
2025-06-23 20:05:27,988 - DEBUG - Requesting: http://10.0.0.254:8082/project/72ad73dd-ff75-4e03-b600-929def0d33a1
2025-06-23 20:05:28,061 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3579d254-df4d-4db8-a2a1-a72d6a8477d4
2025-06-23 20:05:28,073 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3579d254-df4d-4db8-a2a1-a72d6a8477d4
2025-06-23 20:05:28,081 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2b8cc299-0ca7-4a51-ac0a-3509ee78ca0d
2025-06-23 20:05:28,088 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2b8cc299-0ca7-4a51-ac0a-3509ee78ca0d
2025-06-23 20:05:28,094 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/09defec9-b10f-4cfb-b58b-7a395be22cf2
2025-06-23 20:05:28,101 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 20:05:28,101 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3579d254-df4d-4db8-a2a1-a72d6a8477d4
2025-06-23 20:05:28,110 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2b8cc299-0ca7-4a51-ac0a-3509ee78ca0d
2025-06-23 20:05:28,129 - INFO - Verified VN network id 10 for VN 3579d254-df4d-4db8-a2a1-a72d6a8477d4
2025-06-23 20:05:28,130 - INFO - Verifications in API Server for VN ctest-vn-54862557 passed
2025-06-23 20:05:28,130 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3579d254-df4d-4db8-a2a1-a72d6a8477d4
2025-06-23 20:05:28,140 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2b8cc299-0ca7-4a51-ac0a-3509ee78ca0d
2025-06-23 20:05:28,152 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2b8cc299-0ca7-4a51-ac0a-3509ee78ca0d
2025-06-23 20:05:28,166 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/09defec9-b10f-4cfb-b58b-7a395be22cf2
2025-06-23 20:05:28,180 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-54862557', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68496610', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3853342218157641144', 'uuid-lslong': '11718831518897174484'}, 'enable': 'true', 'created': '2025-06-23T20:05:25', 'last-modified': '2025-06-23T20:05:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.389460'}
2025-06-23 20:05:28,186 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 20:05:28,186 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54862557 passed
2025-06-23 20:05:28,187 - DEBUG - ====Verifying policy data for ctest-vn-54862557 in API_Server ======
2025-06-23 20:05:28,187 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 20:05:28,193 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fe89ad53-72a1-4ca1-8cb9-075c19172e3d
2025-06-23 20:05:28,211 - DEBUG - Requesting: http://10.0.0.254:8082/project/72ad73dd-ff75-4e03-b600-929def0d33a1
2025-06-23 20:05:28,287 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3579d254-df4d-4db8-a2a1-a72d6a8477d4
2025-06-23 20:05:28,295 - DEBUG - ==>Verifying data for policy with id: 763cbe40-d2ea-4874-ab86-8939d12fc53a, fqn: ['default-domain', 'ctest-TestBasicPolicy-68496610', 'ctest-policy-allow-all-27108987']
2025-06-23 20:05:28,295 - INFO - VN ctest-vn-54862557 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 20:05:28,295 - DEBUG - Verifying the vn in opserver
2025-06-23 20:05:28,295 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-54862557 virtual network link through opserver 10.0.0.254
2025-06-23 20:05:28,295 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 20:05:28,304 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-54862557', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-54862557?flat'}
2025-06-23 20:05:28,304 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68496610:ctest-vn-54862557 is found in opserver
2025-06-23 20:05:28,313 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 20:05:28,317 - DEBUG - VRF ids for VN ctest-vn-54862557: {}
2025-06-23 20:05:28,390 - DEBUG - Services list from nova: [