2025-05-19 02:11:17,458 - INFO - Domain Default found not creating
2025-05-19 02:11:17,605 - INFO - Project ctest-TestBasicPolicy-30603521 not found, creating it
2025-05-19 02:11:18,086 - INFO - Created Project:ctest-TestBasicPolicy-30603521, ID : d496e605-d47c-4d6b-b8e6-92b7caf0971d
2025-05-19 02:11:19,661 - INFO - ================================================================================
2025-05-19 02:11:19,661 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-19 02:11:19,661 - 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-19 02:11:19,927 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-05-19 02:11:19,927 - INFO - Initial checks done. Running the testcase now
2025-05-19 02:11:19,927 - INFO -
2025-05-19 02:11:20,535 - DEBUG - Response for create_network : {'network': {'id': '662bd9d2-b029-44cf-9900-d7aae38774b1', 'name': 'ctest-vn-86199898', 'tenant_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'project_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-vn-86199898'], 'port_security_enabled': True, 'description': ''}}
2025-05-19 02:11:20,709 - DEBUG - Response for create_subnet : {'subnet': {'id': '74cce54a-4d66-410e-9f14-5bc7f61402e1', 'name': '', 'tenant_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'network_id': '662bd9d2-b029-44cf-9900-d7aae38774b1', 'ip_version': 4, 'cidr': '115.90.151.128/26', 'allocation_pools': [{'start': '115.90.151.130', 'end': '115.90.151.190'}], 'gateway_ip': '115.90.151.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.90.151.130', 'tags': [], 'project_id': 'd496e605d47c4d6bb8e692b7caf0971d'}}
2025-05-19 02:11:20,728 - INFO - Created VN ctest-vn-86199898
2025-05-19 02:11:20,781 - DEBUG - VN ctest-vn-86199898 UUID is 662bd9d2-b029-44cf-9900-d7aae38774b1
2025-05-19 02:11:21,139 - DEBUG - Response for create_network : {'network': {'id': 'c09c17cd-e932-4350-a34a-10cb42b43a60', 'name': 'ctest-vn-98221783', 'tenant_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'project_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-vn-98221783'], 'port_security_enabled': True, 'description': ''}}
2025-05-19 02:11:21,364 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b822c104-8952-42ed-8356-fb153f3dc186', 'name': '', 'tenant_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'network_id': 'c09c17cd-e932-4350-a34a-10cb42b43a60', 'ip_version': 4, 'cidr': '161.126.62.192/26', 'allocation_pools': [{'start': '161.126.62.194', 'end': '161.126.62.254'}], 'gateway_ip': '161.126.62.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.126.62.194', 'tags': [], 'project_id': 'd496e605d47c4d6bb8e692b7caf0971d'}}
2025-05-19 02:11:21,384 - INFO - Created VN ctest-vn-98221783
2025-05-19 02:11:21,437 - DEBUG - VN ctest-vn-98221783 UUID is c09c17cd-e932-4350-a34a-10cb42b43a60
2025-05-19 02:11:21,550 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898, 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-30603521:ctest-vn-98221783, 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-19 02:11:21,838 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '662bd9d2-b029-44cf-9900-d7aae38774b1', 'name': 'ctest-vn-86199898', 'tenant_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'project_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['74cce54a-4d66-410e-9f14-5bc7f61402e1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-vn-86199898'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-policy-allow-all-75935870']], 'subnet_ipam': [{'subnet_cidr': '115.90.151.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-19 02:11:22,037 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c09c17cd-e932-4350-a34a-10cb42b43a60', 'name': 'ctest-vn-98221783', 'tenant_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'project_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b822c104-8952-42ed-8356-fb153f3dc186'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-vn-98221783'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-policy-allow-all-75935870']], 'subnet_ipam': [{'subnet_cidr': '161.126.62.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-19 02:11:22,205 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-19 02:11:22,543 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-19 02:11:22,572 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9f4e97e1-2d1e-4113-9162-3a71707934fc
2025-05-19 02:11:22,586 - DEBUG - Requesting: http://10.0.0.254:8082/project/d496e605-d47c-4d6b-b8e6-92b7caf0971d
2025-05-19 02:11:22,665 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/662bd9d2-b029-44cf-9900-d7aae38774b1
2025-05-19 02:11:22,677 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/662bd9d2-b029-44cf-9900-d7aae38774b1
2025-05-19 02:11:22,686 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/783f79ce-8c31-44b1-b2ae-737974045daf
2025-05-19 02:11:22,693 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/783f79ce-8c31-44b1-b2ae-737974045daf
2025-05-19 02:11:22,700 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/393f8f95-3933-45dd-9383-e78c15da3b51
2025-05-19 02:11:22,706 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-19 02:11:22,707 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/662bd9d2-b029-44cf-9900-d7aae38774b1
2025-05-19 02:11:22,716 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/783f79ce-8c31-44b1-b2ae-737974045daf
2025-05-19 02:11:22,730 - INFO - Verified VN network id 8 for VN 662bd9d2-b029-44cf-9900-d7aae38774b1
2025-05-19 02:11:22,730 - INFO - Verifications in API Server for VN ctest-vn-86199898 passed
2025-05-19 02:11:22,731 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/662bd9d2-b029-44cf-9900-d7aae38774b1
2025-05-19 02:11:22,740 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/783f79ce-8c31-44b1-b2ae-737974045daf
2025-05-19 02:11:22,747 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/783f79ce-8c31-44b1-b2ae-737974045daf
2025-05-19 02:11:22,754 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/393f8f95-3933-45dd-9383-e78c15da3b51
2025-05-19 02:11:22,766 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30603521', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7362217514789061839', 'uuid-lslong': '11025049016764691633'}, 'enable': 'true', 'created': '2025-05-19T02:11:20', 'last-modified': '2025-05-19T02:11:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947404'}
2025-05-19 02:11:22,772 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-19 02:11:22,772 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86199898 passed
2025-05-19 02:11:22,772 - DEBUG - ====Verifying policy data for ctest-vn-86199898 in API_Server ======
2025-05-19 02:11:22,773 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-19 02:11:22,778 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9f4e97e1-2d1e-4113-9162-3a71707934fc
2025-05-19 02:11:22,790 - DEBUG - Requesting: http://10.0.0.254:8082/project/d496e605-d47c-4d6b-b8e6-92b7caf0971d
2025-05-19 02:11:22,867 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/662bd9d2-b029-44cf-9900-d7aae38774b1
2025-05-19 02:11:22,879 - DEBUG - ==>Verifying data for policy with id: 31152603-3343-4253-a4b9-be993499a03d, fqn: ['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-policy-allow-all-75935870']
2025-05-19 02:11:22,879 - INFO - VN ctest-vn-86199898 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-19 02:11:22,879 - DEBUG - Verifying the vn in opserver
2025-05-19 02:11:22,879 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898 virtual network link through opserver 10.0.0.254
2025-05-19 02:11:22,879 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-19 02:11:23,219 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-19 02:11:23,274 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898?flat'}
2025-05-19 02:11:23,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898 is found in opserver
2025-05-19 02:11:23,286 - DEBUG - Do not have enough data to verify VN in agent
2025-05-19 02:11:23,292 - DEBUG - VRF ids for VN ctest-vn-86199898: {}
2025-05-19 02:11:23,292 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-19 02:11:23,297 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9f4e97e1-2d1e-4113-9162-3a71707934fc
2025-05-19 02:11:23,310 - DEBUG - Requesting: http://10.0.0.254:8082/project/d496e605-d47c-4d6b-b8e6-92b7caf0971d
2025-05-19 02:11:23,383 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c09c17cd-e932-4350-a34a-10cb42b43a60
2025-05-19 02:11:23,398 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c09c17cd-e932-4350-a34a-10cb42b43a60
2025-05-19 02:11:23,409 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847d9528-c3b8-491b-99d3-3e439036ce97
2025-05-19 02:11:23,417 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847d9528-c3b8-491b-99d3-3e439036ce97
2025-05-19 02:11:23,424 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b8bf3ee6-ddc8-404b-8baf-a30fab88efc9
2025-05-19 02:11:23,432 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-19 02:11:23,432 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c09c17cd-e932-4350-a34a-10cb42b43a60
2025-05-19 02:11:23,443 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847d9528-c3b8-491b-99d3-3e439036ce97
2025-05-19 02:11:23,458 - INFO - Verified VN network id 9 for VN c09c17cd-e932-4350-a34a-10cb42b43a60
2025-05-19 02:11:23,458 - INFO - Verifications in API Server for VN ctest-vn-98221783 passed
2025-05-19 02:11:23,458 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c09c17cd-e932-4350-a34a-10cb42b43a60
2025-05-19 02:11:23,468 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847d9528-c3b8-491b-99d3-3e439036ce97
2025-05-19 02:11:23,475 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847d9528-c3b8-491b-99d3-3e439036ce97
2025-05-19 02:11:23,482 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b8bf3ee6-ddc8-404b-8baf-a30fab88efc9
2025-05-19 02:11:23,494 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-98221783', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30603521', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13878994324797145936', 'uuid-lslong': '11766235441642355296'}, 'enable': 'true', 'created': '2025-05-19T02:11:21', 'last-modified': '2025-05-19T02:11:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.480409'}
2025-05-19 02:11:23,501 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-19 02:11:23,501 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98221783 passed
2025-05-19 02:11:23,501 - DEBUG - ====Verifying policy data for ctest-vn-98221783 in API_Server ======
2025-05-19 02:11:23,501 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-19 02:11:23,510 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9f4e97e1-2d1e-4113-9162-3a71707934fc
2025-05-19 02:11:23,525 - DEBUG - Requesting: http://10.0.0.254:8082/project/d496e605-d47c-4d6b-b8e6-92b7caf0971d
2025-05-19 02:11:23,600 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c09c17cd-e932-4350-a34a-10cb42b43a60
2025-05-19 02:11:23,613 - DEBUG - ==>Verifying data for policy with id: 31152603-3343-4253-a4b9-be993499a03d, fqn: ['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-policy-allow-all-75935870']
2025-05-19 02:11:23,613 - INFO - VN ctest-vn-98221783 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-19 02:11:23,614 - DEBUG - Verifying the vn in opserver
2025-05-19 02:11:23,614 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-98221783 virtual network link through opserver 10.0.0.254
2025-05-19 02:11:23,614 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-19 02:11:23,627 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-98221783', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-98221783?flat'}
2025-05-19 02:11:23,627 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-98221783 is found in opserver
2025-05-19 02:11:23,638 - DEBUG - Do not have enough data to verify VN in agent
2025-05-19 02:11:23,644 - DEBUG - VRF ids for VN ctest-vn-98221783: {}
2025-05-19 02:11:23,702 - DEBUG - Services list from nova: [