2025-08-13 16:19:43,268 - INFO - Domain Default found not creating
2025-08-13 16:19:43,391 - INFO - Project ctest-TestBasicPolicy-14190884 not found, creating it
2025-08-13 16:19:43,805 - INFO - Created Project:ctest-TestBasicPolicy-14190884, ID : e5343db2-0e88-41d5-a8dc-d107094ed529
2025-08-13 16:19:45,167 - INFO - ================================================================================
2025-08-13 16:19:45,167 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-13 16:19:45,167 - 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-08-13 16:19:45,417 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with
2025-08-13 16:19:45,417 - INFO - Initial checks done. Running the testcase now
2025-08-13 16:19:45,417 - INFO -
2025-08-13 16:19:45,927 - DEBUG - Response for create_network : {'network': {'id': '37ea15f6-e1b7-4eff-991a-f5bd031d844b', 'name': 'ctest-vn-33069395', 'tenant_id': 'e5343db20e8841d5a8dcd107094ed529', 'project_id': 'e5343db20e8841d5a8dcd107094ed529', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14190884', 'ctest-vn-33069395'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 16:19:46,114 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a501df63-3a49-453d-a610-7099cb80f74d', 'name': '', 'tenant_id': 'e5343db20e8841d5a8dcd107094ed529', 'network_id': '37ea15f6-e1b7-4eff-991a-f5bd031d844b', 'ip_version': 4, 'cidr': '60.111.117.128/26', 'allocation_pools': [{'start': '60.111.117.130', 'end': '60.111.117.190'}], 'gateway_ip': '60.111.117.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.111.117.130', 'tags': [], 'project_id': 'e5343db20e8841d5a8dcd107094ed529'}}
2025-08-13 16:19:46,131 - INFO - Created VN ctest-vn-33069395
2025-08-13 16:19:46,184 - DEBUG - VN ctest-vn-33069395 UUID is 37ea15f6-e1b7-4eff-991a-f5bd031d844b
2025-08-13 16:19:46,490 - DEBUG - Response for create_network : {'network': {'id': '09ac7f7d-3ec7-4e3f-9a54-63334e868635', 'name': 'ctest-vn-61562313', 'tenant_id': 'e5343db20e8841d5a8dcd107094ed529', 'project_id': 'e5343db20e8841d5a8dcd107094ed529', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14190884', 'ctest-vn-61562313'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 16:19:46,662 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe3f3415-2d54-478d-9362-fcf49b9dce25', 'name': '', 'tenant_id': 'e5343db20e8841d5a8dcd107094ed529', 'network_id': '09ac7f7d-3ec7-4e3f-9a54-63334e868635', 'ip_version': 4, 'cidr': '74.230.108.128/26', 'allocation_pools': [{'start': '74.230.108.130', 'end': '74.230.108.190'}], 'gateway_ip': '74.230.108.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.230.108.130', 'tags': [], 'project_id': 'e5343db20e8841d5a8dcd107094ed529'}}
2025-08-13 16:19:46,678 - INFO - Created VN ctest-vn-61562313
2025-08-13 16:19:46,728 - DEBUG - VN ctest-vn-61562313 UUID is 09ac7f7d-3ec7-4e3f-9a54-63334e868635
2025-08-13 16:19:46,872 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14190884:ctest-vn-33069395, 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-14190884:ctest-vn-61562313, 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-08-13 16:19:47,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37ea15f6-e1b7-4eff-991a-f5bd031d844b', 'name': 'ctest-vn-33069395', 'tenant_id': 'e5343db20e8841d5a8dcd107094ed529', 'project_id': 'e5343db20e8841d5a8dcd107094ed529', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a501df63-3a49-453d-a610-7099cb80f74d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14190884', 'ctest-vn-33069395'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14190884', 'ctest-policy-allow-all-72250575']], 'subnet_ipam': [{'subnet_cidr': '60.111.117.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 16:19:47,394 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09ac7f7d-3ec7-4e3f-9a54-63334e868635', 'name': 'ctest-vn-61562313', 'tenant_id': 'e5343db20e8841d5a8dcd107094ed529', 'project_id': 'e5343db20e8841d5a8dcd107094ed529', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe3f3415-2d54-478d-9362-fcf49b9dce25'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14190884', 'ctest-vn-61562313'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14190884', 'ctest-policy-allow-all-72250575']], 'subnet_ipam': [{'subnet_cidr': '74.230.108.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 16:19:47,552 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 16:19:47,843 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 16:19:47,867 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ac08d4ca-91b8-46c5-9155-78fa4210b49f
2025-08-13 16:19:47,879 - DEBUG - Requesting: http://10.0.0.27:8082/project/e5343db2-0e88-41d5-a8dc-d107094ed529
2025-08-13 16:19:47,950 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37ea15f6-e1b7-4eff-991a-f5bd031d844b
2025-08-13 16:19:47,960 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37ea15f6-e1b7-4eff-991a-f5bd031d844b
2025-08-13 16:19:47,969 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c2dc30d4-d25a-4476-95c2-dc20dd238d75
2025-08-13 16:19:47,975 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c2dc30d4-d25a-4476-95c2-dc20dd238d75
2025-08-13 16:19:47,981 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d169bf96-f5db-4675-8bef-aec1eabf81d5
2025-08-13 16:19:47,986 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 16:19:47,986 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37ea15f6-e1b7-4eff-991a-f5bd031d844b
2025-08-13 16:19:47,995 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c2dc30d4-d25a-4476-95c2-dc20dd238d75
2025-08-13 16:19:48,007 - INFO - Verified VN network id 12 for VN 37ea15f6-e1b7-4eff-991a-f5bd031d844b
2025-08-13 16:19:48,007 - INFO - Verifications in API Server for VN ctest-vn-33069395 passed
2025-08-13 16:19:48,007 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37ea15f6-e1b7-4eff-991a-f5bd031d844b
2025-08-13 16:19:48,015 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c2dc30d4-d25a-4476-95c2-dc20dd238d75
2025-08-13 16:19:48,022 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/c2dc30d4-d25a-4476-95c2-dc20dd238d75
2025-08-13 16:19:48,027 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d169bf96-f5db-4675-8bef-aec1eabf81d5
2025-08-13 16:19:48,039 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14190884:ctest-vn-33069395', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14190884', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4029056966729355007', 'uuid-lslong': '11032400429347341387'}, 'enable': 'true', 'created': '2025-08-13T16:19:45', 'last-modified': '2025-08-13T16:19:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.894876'}
2025-08-13 16:19:48,047 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 16:19:48,047 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33069395 passed
2025-08-13 16:19:48,047 - DEBUG - ====Verifying policy data for ctest-vn-33069395 in API_Server ======
2025-08-13 16:19:48,047 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 16:19:48,052 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ac08d4ca-91b8-46c5-9155-78fa4210b49f
2025-08-13 16:19:48,062 - DEBUG - Requesting: http://10.0.0.27:8082/project/e5343db2-0e88-41d5-a8dc-d107094ed529
2025-08-13 16:19:48,130 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37ea15f6-e1b7-4eff-991a-f5bd031d844b
2025-08-13 16:19:48,139 - DEBUG - ==>Verifying data for policy with id: 9aa78fd6-fb8a-49a3-ad23-1fdcf5578dbf, fqn: ['default-domain', 'ctest-TestBasicPolicy-14190884', 'ctest-policy-allow-all-72250575']
2025-08-13 16:19:48,139 - INFO - VN ctest-vn-33069395 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 16:19:48,139 - DEBUG - Verifying the vn in opserver
2025-08-13 16:19:48,139 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14190884:ctest-vn-33069395 virtual network link through opserver 10.0.0.27
2025-08-13 16:19:48,139 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-08-13 16:19:48,426 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-08-13 16:19:48,475 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14190884:ctest-vn-33069395', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14190884:ctest-vn-33069395?flat'}
2025-08-13 16:19:48,475 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14190884:ctest-vn-33069395 is found in opserver
2025-08-13 16:19:48,485 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 16:19:48,490 - DEBUG - VRF ids for VN ctest-vn-33069395: {}
2025-08-13 16:19:48,490 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 16:19:48,495 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ac08d4ca-91b8-46c5-9155-78fa4210b49f
2025-08-13 16:19:48,505 - DEBUG - Requesting: http://10.0.0.27:8082/project/e5343db2-0e88-41d5-a8dc-d107094ed529
2025-08-13 16:19:48,575 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/09ac7f7d-3ec7-4e3f-9a54-63334e868635
2025-08-13 16:19:48,586 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/09ac7f7d-3ec7-4e3f-9a54-63334e868635
2025-08-13 16:19:48,595 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ae42e8a2-e861-47aa-9985-0b890fb5a0f2
2025-08-13 16:19:48,601 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ae42e8a2-e861-47aa-9985-0b890fb5a0f2
2025-08-13 16:19:48,607 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c80368c3-fa2b-4c58-b552-9412da8e3b88
2025-08-13 16:19:48,612 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 16:19:48,612 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/09ac7f7d-3ec7-4e3f-9a54-63334e868635
2025-08-13 16:19:48,620 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ae42e8a2-e861-47aa-9985-0b890fb5a0f2
2025-08-13 16:19:48,632 - INFO - Verified VN network id 13 for VN 09ac7f7d-3ec7-4e3f-9a54-63334e868635
2025-08-13 16:19:48,632 - INFO - Verifications in API Server for VN ctest-vn-61562313 passed
2025-08-13 16:19:48,632 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/09ac7f7d-3ec7-4e3f-9a54-63334e868635
2025-08-13 16:19:48,641 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ae42e8a2-e861-47aa-9985-0b890fb5a0f2
2025-08-13 16:19:48,647 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ae42e8a2-e861-47aa-9985-0b890fb5a0f2
2025-08-13 16:19:48,652 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c80368c3-fa2b-4c58-b552-9412da8e3b88
2025-08-13 16:19:48,663 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14190884:ctest-vn-61562313', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14190884', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '697072218236472895', 'uuid-lslong': '11120622451896518197'}, 'enable': 'true', 'created': '2025-08-13T16:19:46', 'last-modified': '2025-08-13T16:19:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.289638'}
2025-08-13 16:19:48,668 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 16:19:48,669 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61562313 passed
2025-08-13 16:19:48,669 - DEBUG - ====Verifying policy data for ctest-vn-61562313 in API_Server ======
2025-08-13 16:19:48,669 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 16:19:48,676 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ac08d4ca-91b8-46c5-9155-78fa4210b49f
2025-08-13 16:19:48,686 - DEBUG - Requesting: http://10.0.0.27:8082/project/e5343db2-0e88-41d5-a8dc-d107094ed529
2025-08-13 16:19:48,755 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/09ac7f7d-3ec7-4e3f-9a54-63334e868635
2025-08-13 16:19:48,765 - DEBUG - ==>Verifying data for policy with id: 9aa78fd6-fb8a-49a3-ad23-1fdcf5578dbf, fqn: ['default-domain', 'ctest-TestBasicPolicy-14190884', 'ctest-policy-allow-all-72250575']
2025-08-13 16:19:48,765 - INFO - VN ctest-vn-61562313 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 16:19:48,765 - DEBUG - Verifying the vn in opserver
2025-08-13 16:19:48,765 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14190884:ctest-vn-61562313 virtual network link through opserver 10.0.0.27
2025-08-13 16:19:48,765 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-08-13 16:19:48,775 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14190884:ctest-vn-61562313', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14190884:ctest-vn-61562313?flat'}
2025-08-13 16:19:48,775 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14190884:ctest-vn-61562313 is found in opserver
2025-08-13 16:19:48,785 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 16:19:48,789 - DEBUG - VRF ids for VN ctest-vn-61562313: {}
2025-08-13 16:19:48,839 - DEBUG - Services list from nova: [