2025-06-18 05:26:24,962 - INFO - Domain Default found not creating
2025-06-18 05:26:25,112 - INFO - Project ctest-TestBasicPolicy-21945786 not found, creating it
2025-06-18 05:26:25,571 - INFO - Created Project:ctest-TestBasicPolicy-21945786, ID : fd02b8d0-748d-4e97-a095-501623bde3bc
2025-06-18 05:26:27,211 - INFO - ================================================================================
2025-06-18 05:26:27,212 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-18 05:26:27,212 - 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-18 05:26:27,472 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-18 05:26:27,472 - INFO - Initial checks done. Running the testcase now
2025-06-18 05:26:27,472 - INFO -
2025-06-18 05:26:28,085 - DEBUG - Response for create_network : {'network': {'id': 'b5489373-55aa-4558-985f-3a46ca1b89ed', 'name': 'ctest-vn-42079972', 'tenant_id': 'fd02b8d0748d4e97a095501623bde3bc', 'project_id': 'fd02b8d0748d4e97a095501623bde3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21945786', 'ctest-vn-42079972'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 05:26:28,290 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bc3e82b-daad-472d-b5f8-71f8fc79634d', 'name': '', 'tenant_id': 'fd02b8d0748d4e97a095501623bde3bc', 'network_id': 'b5489373-55aa-4558-985f-3a46ca1b89ed', 'ip_version': 4, 'cidr': '98.125.173.192/26', 'allocation_pools': [{'start': '98.125.173.194', 'end': '98.125.173.254'}], 'gateway_ip': '98.125.173.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.125.173.194', 'tags': [], 'project_id': 'fd02b8d0748d4e97a095501623bde3bc'}}
2025-06-18 05:26:28,309 - INFO - Created VN ctest-vn-42079972
2025-06-18 05:26:28,361 - DEBUG - VN ctest-vn-42079972 UUID is b5489373-55aa-4558-985f-3a46ca1b89ed
2025-06-18 05:26:28,694 - DEBUG - Response for create_network : {'network': {'id': '73a64805-7cc8-4975-a2d9-88dcd4a9cfcd', 'name': 'ctest-vn-18418409', 'tenant_id': 'fd02b8d0748d4e97a095501623bde3bc', 'project_id': 'fd02b8d0748d4e97a095501623bde3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21945786', 'ctest-vn-18418409'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 05:26:28,905 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dfcd11ad-1849-43bd-8b0c-66615fca688d', 'name': '', 'tenant_id': 'fd02b8d0748d4e97a095501623bde3bc', 'network_id': '73a64805-7cc8-4975-a2d9-88dcd4a9cfcd', 'ip_version': 4, 'cidr': '65.150.42.128/26', 'allocation_pools': [{'start': '65.150.42.130', 'end': '65.150.42.190'}], 'gateway_ip': '65.150.42.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.150.42.130', 'tags': [], 'project_id': 'fd02b8d0748d4e97a095501623bde3bc'}}
2025-06-18 05:26:28,923 - INFO - Created VN ctest-vn-18418409
2025-06-18 05:26:28,977 - DEBUG - VN ctest-vn-18418409 UUID is 73a64805-7cc8-4975-a2d9-88dcd4a9cfcd
2025-06-18 05:26:29,094 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21945786:ctest-vn-42079972, 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-21945786:ctest-vn-18418409, 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-18 05:26:29,409 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5489373-55aa-4558-985f-3a46ca1b89ed', 'name': 'ctest-vn-42079972', 'tenant_id': 'fd02b8d0748d4e97a095501623bde3bc', 'project_id': 'fd02b8d0748d4e97a095501623bde3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1bc3e82b-daad-472d-b5f8-71f8fc79634d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21945786', 'ctest-vn-42079972'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21945786', 'ctest-policy-allow-all-14770959']], 'subnet_ipam': [{'subnet_cidr': '98.125.173.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 05:26:29,649 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73a64805-7cc8-4975-a2d9-88dcd4a9cfcd', 'name': 'ctest-vn-18418409', 'tenant_id': 'fd02b8d0748d4e97a095501623bde3bc', 'project_id': 'fd02b8d0748d4e97a095501623bde3bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dfcd11ad-1849-43bd-8b0c-66615fca688d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21945786', 'ctest-vn-18418409'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21945786', 'ctest-policy-allow-all-14770959']], 'subnet_ipam': [{'subnet_cidr': '65.150.42.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 05:26:29,797 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 05:26:30,140 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 05:26:30,169 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b7aeb7e6-edfb-4439-bab2-848f348fecad
2025-06-18 05:26:30,184 - DEBUG - Requesting: http://10.0.0.254:8082/project/fd02b8d0-748d-4e97-a095-501623bde3bc
2025-06-18 05:26:30,259 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b5489373-55aa-4558-985f-3a46ca1b89ed
2025-06-18 05:26:30,273 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b5489373-55aa-4558-985f-3a46ca1b89ed
2025-06-18 05:26:30,283 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f70cae70-d13b-43ce-aeec-19f6db1ad712
2025-06-18 05:26:30,291 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f70cae70-d13b-43ce-aeec-19f6db1ad712
2025-06-18 05:26:30,299 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1e8fbbb7-e298-49e8-834f-6f83b705618d
2025-06-18 05:26:30,306 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 05:26:30,306 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b5489373-55aa-4558-985f-3a46ca1b89ed
2025-06-18 05:26:30,316 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f70cae70-d13b-43ce-aeec-19f6db1ad712
2025-06-18 05:26:30,332 - INFO - Verified VN network id 8 for VN b5489373-55aa-4558-985f-3a46ca1b89ed
2025-06-18 05:26:30,333 - INFO - Verifications in API Server for VN ctest-vn-42079972 passed
2025-06-18 05:26:30,333 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b5489373-55aa-4558-985f-3a46ca1b89ed
2025-06-18 05:26:30,344 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f70cae70-d13b-43ce-aeec-19f6db1ad712
2025-06-18 05:26:30,352 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f70cae70-d13b-43ce-aeec-19f6db1ad712
2025-06-18 05:26:30,360 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1e8fbbb7-e298-49e8-834f-6f83b705618d
2025-06-18 05:26:30,374 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21945786:ctest-vn-42079972', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21945786', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13062852842755867992', 'uuid-lslong': '10979558492265482733'}, 'enable': 'true', 'created': '2025-06-18T05:26:28', 'last-modified': '2025-06-18T05:26:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.992222'}
2025-06-18 05:26:30,381 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 05:26:30,381 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42079972 passed
2025-06-18 05:26:30,381 - DEBUG - ====Verifying policy data for ctest-vn-42079972 in API_Server ======
2025-06-18 05:26:30,381 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 05:26:30,387 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b7aeb7e6-edfb-4439-bab2-848f348fecad
2025-06-18 05:26:30,401 - DEBUG - Requesting: http://10.0.0.254:8082/project/fd02b8d0-748d-4e97-a095-501623bde3bc
2025-06-18 05:26:30,475 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b5489373-55aa-4558-985f-3a46ca1b89ed
2025-06-18 05:26:30,486 - DEBUG - ==>Verifying data for policy with id: 2f0a06f7-9bb7-441b-8701-ea4ff4ba9493, fqn: ['default-domain', 'ctest-TestBasicPolicy-21945786', 'ctest-policy-allow-all-14770959']
2025-06-18 05:26:30,487 - INFO - VN ctest-vn-42079972 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 05:26:30,487 - DEBUG - Verifying the vn in opserver
2025-06-18 05:26:30,487 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21945786:ctest-vn-42079972 virtual network link through opserver 10.0.0.254
2025-06-18 05:26:30,487 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 05:26:30,823 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 05:26:30,897 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21945786:ctest-vn-42079972', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21945786:ctest-vn-42079972?flat'}
2025-06-18 05:26:30,897 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21945786:ctest-vn-42079972 is found in opserver
2025-06-18 05:26:30,909 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 05:26:30,914 - DEBUG - VRF ids for VN ctest-vn-42079972: {}
2025-06-18 05:26:30,914 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 05:26:30,920 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b7aeb7e6-edfb-4439-bab2-848f348fecad
2025-06-18 05:26:30,936 - DEBUG - Requesting: http://10.0.0.254:8082/project/fd02b8d0-748d-4e97-a095-501623bde3bc
2025-06-18 05:26:31,013 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/73a64805-7cc8-4975-a2d9-88dcd4a9cfcd
2025-06-18 05:26:31,030 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/73a64805-7cc8-4975-a2d9-88dcd4a9cfcd
2025-06-18 05:26:31,042 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c69f4822-488a-4573-9824-3c4169971241
2025-06-18 05:26:31,052 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c69f4822-488a-4573-9824-3c4169971241
2025-06-18 05:26:31,061 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/76ed3985-4815-4102-9fb5-de6f8d31a578
2025-06-18 05:26:31,068 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 05:26:31,068 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/73a64805-7cc8-4975-a2d9-88dcd4a9cfcd
2025-06-18 05:26:31,078 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c69f4822-488a-4573-9824-3c4169971241
2025-06-18 05:26:31,093 - INFO - Verified VN network id 9 for VN 73a64805-7cc8-4975-a2d9-88dcd4a9cfcd
2025-06-18 05:26:31,093 - INFO - Verifications in API Server for VN ctest-vn-18418409 passed
2025-06-18 05:26:31,093 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/73a64805-7cc8-4975-a2d9-88dcd4a9cfcd
2025-06-18 05:26:31,104 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c69f4822-488a-4573-9824-3c4169971241
2025-06-18 05:26:31,112 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c69f4822-488a-4573-9824-3c4169971241
2025-06-18 05:26:31,118 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/76ed3985-4815-4102-9fb5-de6f8d31a578
2025-06-18 05:26:31,131 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21945786:ctest-vn-18418409', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21945786', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8333427348901218677', 'uuid-lslong': '11734560786132619213'}, 'enable': 'true', 'created': '2025-06-18T05:26:28', 'last-modified': '2025-06-18T05:26:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.507184'}
2025-06-18 05:26:31,137 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 05:26:31,137 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18418409 passed
2025-06-18 05:26:31,138 - DEBUG - ====Verifying policy data for ctest-vn-18418409 in API_Server ======
2025-06-18 05:26:31,138 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 05:26:31,143 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b7aeb7e6-edfb-4439-bab2-848f348fecad
2025-06-18 05:26:31,156 - DEBUG - Requesting: http://10.0.0.254:8082/project/fd02b8d0-748d-4e97-a095-501623bde3bc
2025-06-18 05:26:31,233 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/73a64805-7cc8-4975-a2d9-88dcd4a9cfcd
2025-06-18 05:26:31,243 - DEBUG - ==>Verifying data for policy with id: 2f0a06f7-9bb7-441b-8701-ea4ff4ba9493, fqn: ['default-domain', 'ctest-TestBasicPolicy-21945786', 'ctest-policy-allow-all-14770959']
2025-06-18 05:26:31,243 - INFO - VN ctest-vn-18418409 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 05:26:31,243 - DEBUG - Verifying the vn in opserver
2025-06-18 05:26:31,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21945786:ctest-vn-18418409 virtual network link through opserver 10.0.0.254
2025-06-18 05:26:31,243 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 05:26:31,253 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21945786:ctest-vn-18418409', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21945786:ctest-vn-18418409?flat'}
2025-06-18 05:26:31,253 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21945786:ctest-vn-18418409 is found in opserver
2025-06-18 05:26:31,265 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 05:26:31,270 - DEBUG - VRF ids for VN ctest-vn-18418409: {}
2025-06-18 05:26:31,328 - DEBUG - Services list from nova: [