2025-06-07 08:10:31,920 - INFO - Domain Default found not creating
2025-06-07 08:10:32,064 - INFO - Project ctest-TestBasicPolicy-03863032 not found, creating it
2025-06-07 08:10:32,510 - INFO - Created Project:ctest-TestBasicPolicy-03863032, ID : f49ef475-1693-426d-a299-d91ce35b98d8
2025-06-07 08:10:33,959 - INFO - ================================================================================
2025-06-07 08:10:33,959 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-07 08:10:33,959 - 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-07 08:10:34,214 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-07 08:10:34,214 - INFO - Initial checks done. Running the testcase now
2025-06-07 08:10:34,214 - INFO -
2025-06-07 08:10:34,760 - DEBUG - Response for create_network : {'network': {'id': 'a4bc905b-97f7-46a7-bf5e-e60535c4ade8', 'name': 'ctest-vn-46134620', 'tenant_id': 'f49ef4751693426da299d91ce35b98d8', 'project_id': 'f49ef4751693426da299d91ce35b98d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03863032', 'ctest-vn-46134620'], 'port_security_enabled': True, 'description': ''}}
2025-06-07 08:10:34,954 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c7dba23-2d79-40ff-8830-ec100ddcf08c', 'name': '', 'tenant_id': 'f49ef4751693426da299d91ce35b98d8', 'network_id': 'a4bc905b-97f7-46a7-bf5e-e60535c4ade8', 'ip_version': 4, 'cidr': '51.122.31.128/26', 'allocation_pools': [{'start': '51.122.31.130', 'end': '51.122.31.190'}], 'gateway_ip': '51.122.31.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.122.31.130', 'tags': [], 'project_id': 'f49ef4751693426da299d91ce35b98d8'}}
2025-06-07 08:10:34,973 - INFO - Created VN ctest-vn-46134620
2025-06-07 08:10:35,031 - DEBUG - VN ctest-vn-46134620 UUID is a4bc905b-97f7-46a7-bf5e-e60535c4ade8
2025-06-07 08:10:35,464 - DEBUG - Response for create_network : {'network': {'id': '2f9e37ac-2e1a-44f2-b34a-9db2747b2e72', 'name': 'ctest-vn-91862985', 'tenant_id': 'f49ef4751693426da299d91ce35b98d8', 'project_id': 'f49ef4751693426da299d91ce35b98d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03863032', 'ctest-vn-91862985'], 'port_security_enabled': True, 'description': ''}}
2025-06-07 08:10:35,676 - DEBUG - Response for create_subnet : {'subnet': {'id': 'edc68718-5e09-47bf-ad22-a266c6ae3c01', 'name': '', 'tenant_id': 'f49ef4751693426da299d91ce35b98d8', 'network_id': '2f9e37ac-2e1a-44f2-b34a-9db2747b2e72', 'ip_version': 4, 'cidr': '198.84.95.128/26', 'allocation_pools': [{'start': '198.84.95.130', 'end': '198.84.95.190'}], 'gateway_ip': '198.84.95.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.84.95.130', 'tags': [], 'project_id': 'f49ef4751693426da299d91ce35b98d8'}}
2025-06-07 08:10:35,695 - INFO - Created VN ctest-vn-91862985
2025-06-07 08:10:35,747 - DEBUG - VN ctest-vn-91862985 UUID is 2f9e37ac-2e1a-44f2-b34a-9db2747b2e72
2025-06-07 08:10:35,860 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03863032:ctest-vn-46134620, 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-03863032:ctest-vn-91862985, 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-07 08:10:36,148 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4bc905b-97f7-46a7-bf5e-e60535c4ade8', 'name': 'ctest-vn-46134620', 'tenant_id': 'f49ef4751693426da299d91ce35b98d8', 'project_id': 'f49ef4751693426da299d91ce35b98d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c7dba23-2d79-40ff-8830-ec100ddcf08c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03863032', 'ctest-vn-46134620'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03863032', 'ctest-policy-allow-all-51795121']], 'subnet_ipam': [{'subnet_cidr': '51.122.31.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-07 08:10:36,377 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f9e37ac-2e1a-44f2-b34a-9db2747b2e72', 'name': 'ctest-vn-91862985', 'tenant_id': 'f49ef4751693426da299d91ce35b98d8', 'project_id': 'f49ef4751693426da299d91ce35b98d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['edc68718-5e09-47bf-ad22-a266c6ae3c01'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03863032', 'ctest-vn-91862985'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03863032', 'ctest-policy-allow-all-51795121']], 'subnet_ipam': [{'subnet_cidr': '198.84.95.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-07 08:10:36,543 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-07 08:10:36,874 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-07 08:10:36,904 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f0f5d666-0930-4ec3-a422-aaade413336b
2025-06-07 08:10:36,917 - DEBUG - Requesting: http://10.0.0.254:8082/project/f49ef475-1693-426d-a299-d91ce35b98d8
2025-06-07 08:10:36,993 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4bc905b-97f7-46a7-bf5e-e60535c4ade8
2025-06-07 08:10:37,008 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4bc905b-97f7-46a7-bf5e-e60535c4ade8
2025-06-07 08:10:37,021 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5ea22dc9-55c5-41d2-b6c5-fefdf8170f9d
2025-06-07 08:10:37,031 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5ea22dc9-55c5-41d2-b6c5-fefdf8170f9d
2025-06-07 08:10:37,040 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b675f0b7-8a80-4e9b-bf0c-9472ae545000
2025-06-07 08:10:37,047 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-07 08:10:37,047 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4bc905b-97f7-46a7-bf5e-e60535c4ade8
2025-06-07 08:10:37,056 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5ea22dc9-55c5-41d2-b6c5-fefdf8170f9d
2025-06-07 08:10:37,078 - INFO - Verified VN network id 8 for VN a4bc905b-97f7-46a7-bf5e-e60535c4ade8
2025-06-07 08:10:37,078 - INFO - Verifications in API Server for VN ctest-vn-46134620 passed
2025-06-07 08:10:37,078 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4bc905b-97f7-46a7-bf5e-e60535c4ade8
2025-06-07 08:10:37,088 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5ea22dc9-55c5-41d2-b6c5-fefdf8170f9d
2025-06-07 08:10:37,096 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5ea22dc9-55c5-41d2-b6c5-fefdf8170f9d
2025-06-07 08:10:37,105 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b675f0b7-8a80-4e9b-bf0c-9472ae545000
2025-06-07 08:10:37,119 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03863032:ctest-vn-46134620', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03863032', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11870521440907773607', 'uuid-lslong': '13789712019106344424'}, 'enable': 'true', 'created': '2025-06-07T08:10:34', 'last-modified': '2025-06-07T08:10:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993443'}
2025-06-07 08:10:37,126 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-07 08:10:37,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46134620 passed
2025-06-07 08:10:37,126 - DEBUG - ====Verifying policy data for ctest-vn-46134620 in API_Server ======
2025-06-07 08:10:37,126 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-07 08:10:37,132 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f0f5d666-0930-4ec3-a422-aaade413336b
2025-06-07 08:10:37,147 - DEBUG - Requesting: http://10.0.0.254:8082/project/f49ef475-1693-426d-a299-d91ce35b98d8
2025-06-07 08:10:37,222 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4bc905b-97f7-46a7-bf5e-e60535c4ade8
2025-06-07 08:10:37,232 - DEBUG - ==>Verifying data for policy with id: 64214e09-a14f-42a9-b60b-fe8445e7d6a8, fqn: ['default-domain', 'ctest-TestBasicPolicy-03863032', 'ctest-policy-allow-all-51795121']
2025-06-07 08:10:37,232 - INFO - VN ctest-vn-46134620 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-07 08:10:37,232 - DEBUG - Verifying the vn in opserver
2025-06-07 08:10:37,232 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03863032:ctest-vn-46134620 virtual network link through opserver 10.0.0.254
2025-06-07 08:10:37,233 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-07 08:10:37,526 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-07 08:10:37,585 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03863032:ctest-vn-46134620', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03863032:ctest-vn-46134620?flat'}
2025-06-07 08:10:37,585 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03863032:ctest-vn-46134620 is found in opserver
2025-06-07 08:10:37,596 - DEBUG - Do not have enough data to verify VN in agent
2025-06-07 08:10:37,602 - DEBUG - VRF ids for VN ctest-vn-46134620: {}
2025-06-07 08:10:37,602 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-07 08:10:37,608 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f0f5d666-0930-4ec3-a422-aaade413336b
2025-06-07 08:10:37,619 - DEBUG - Requesting: http://10.0.0.254:8082/project/f49ef475-1693-426d-a299-d91ce35b98d8
2025-06-07 08:10:37,689 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2f9e37ac-2e1a-44f2-b34a-9db2747b2e72
2025-06-07 08:10:37,701 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2f9e37ac-2e1a-44f2-b34a-9db2747b2e72
2025-06-07 08:10:37,711 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac398638-649e-499a-8508-fbaf30ad0bf5
2025-06-07 08:10:37,719 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac398638-649e-499a-8508-fbaf30ad0bf5
2025-06-07 08:10:37,726 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/17bdd8f1-d137-4b49-8b36-524e5160beab
2025-06-07 08:10:37,734 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-07 08:10:37,734 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2f9e37ac-2e1a-44f2-b34a-9db2747b2e72
2025-06-07 08:10:37,743 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac398638-649e-499a-8508-fbaf30ad0bf5
2025-06-07 08:10:37,757 - INFO - Verified VN network id 9 for VN 2f9e37ac-2e1a-44f2-b34a-9db2747b2e72
2025-06-07 08:10:37,757 - INFO - Verifications in API Server for VN ctest-vn-91862985 passed
2025-06-07 08:10:37,757 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2f9e37ac-2e1a-44f2-b34a-9db2747b2e72
2025-06-07 08:10:37,766 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac398638-649e-499a-8508-fbaf30ad0bf5
2025-06-07 08:10:37,773 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ac398638-649e-499a-8508-fbaf30ad0bf5
2025-06-07 08:10:37,779 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/17bdd8f1-d137-4b49-8b36-524e5160beab
2025-06-07 08:10:37,791 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03863032:ctest-vn-91862985', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03863032', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3431241178750272754', 'uuid-lslong': '12919311870849658482'}, 'enable': 'true', 'created': '2025-06-07T08:10:35', 'last-modified': '2025-06-07T08:10:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.435596'}
2025-06-07 08:10:37,797 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-07 08:10:37,797 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91862985 passed
2025-06-07 08:10:37,797 - DEBUG - ====Verifying policy data for ctest-vn-91862985 in API_Server ======
2025-06-07 08:10:37,797 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-07 08:10:37,803 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f0f5d666-0930-4ec3-a422-aaade413336b
2025-06-07 08:10:37,814 - DEBUG - Requesting: http://10.0.0.254:8082/project/f49ef475-1693-426d-a299-d91ce35b98d8
2025-06-07 08:10:37,895 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2f9e37ac-2e1a-44f2-b34a-9db2747b2e72
2025-06-07 08:10:37,905 - DEBUG - ==>Verifying data for policy with id: 64214e09-a14f-42a9-b60b-fe8445e7d6a8, fqn: ['default-domain', 'ctest-TestBasicPolicy-03863032', 'ctest-policy-allow-all-51795121']
2025-06-07 08:10:37,905 - INFO - VN ctest-vn-91862985 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-07 08:10:37,905 - DEBUG - Verifying the vn in opserver
2025-06-07 08:10:37,905 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03863032:ctest-vn-91862985 virtual network link through opserver 10.0.0.254
2025-06-07 08:10:37,905 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-07 08:10:37,917 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03863032:ctest-vn-91862985', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03863032:ctest-vn-91862985?flat'}
2025-06-07 08:10:37,917 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03863032:ctest-vn-91862985 is found in opserver
2025-06-07 08:10:37,928 - DEBUG - Do not have enough data to verify VN in agent
2025-06-07 08:10:37,933 - DEBUG - VRF ids for VN ctest-vn-91862985: {}
2025-06-07 08:10:37,987 - DEBUG - Services list from nova: [