2025-03-17 02:21:06,802 - INFO - Domain Default found not creating
2025-03-17 02:21:06,955 - INFO - Project ctest-TestBasicPolicy-73759065 not found, creating it
2025-03-17 02:21:07,410 - INFO - Created Project:ctest-TestBasicPolicy-73759065, ID : 0ace061a-614e-479d-b0a2-9f9bbfd1507a
2025-03-17 02:21:08,876 - INFO - ================================================================================
2025-03-17 02:21:08,876 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-17 02:21:08,876 - 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-03-17 02:21:09,149 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.23': '0'}} with
2025-03-17 02:21:09,149 - INFO - Initial checks done. Running the testcase now
2025-03-17 02:21:09,149 - INFO -
2025-03-17 02:21:10,223 - DEBUG - Response for create_network : {'network': {'id': 'effe8f89-939e-4a24-bbf9-49a88768794c', 'name': 'ctest-vn-48274290', 'tenant_id': '0ace061a614e479db0a29f9bbfd1507a', 'project_id': '0ace061a614e479db0a29f9bbfd1507a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-vn-48274290'], 'port_security_enabled': True, 'description': ''}}
2025-03-17 02:21:10,424 - DEBUG - Response for create_subnet : {'subnet': {'id': '71cdcc62-4c94-4fc3-967e-18deb2ed2129', 'name': '', 'tenant_id': '0ace061a614e479db0a29f9bbfd1507a', 'network_id': 'effe8f89-939e-4a24-bbf9-49a88768794c', 'ip_version': 4, 'cidr': '88.75.9.128/26', 'allocation_pools': [{'start': '88.75.9.130', 'end': '88.75.9.190'}], 'gateway_ip': '88.75.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.75.9.130', 'tags': [], 'project_id': '0ace061a614e479db0a29f9bbfd1507a'}}
2025-03-17 02:21:10,441 - INFO - Created VN ctest-vn-48274290
2025-03-17 02:21:10,494 - DEBUG - VN ctest-vn-48274290 UUID is effe8f89-939e-4a24-bbf9-49a88768794c
2025-03-17 02:21:10,775 - DEBUG - Response for create_network : {'network': {'id': 'ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5', 'name': 'ctest-vn-27886632', 'tenant_id': '0ace061a614e479db0a29f9bbfd1507a', 'project_id': '0ace061a614e479db0a29f9bbfd1507a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-vn-27886632'], 'port_security_enabled': True, 'description': ''}}
2025-03-17 02:21:11,007 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba2adbf7-3947-4903-9ec9-e614eee9e6a3', 'name': '', 'tenant_id': '0ace061a614e479db0a29f9bbfd1507a', 'network_id': 'ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5', 'ip_version': 4, 'cidr': '49.185.6.0/26', 'allocation_pools': [{'start': '49.185.6.2', 'end': '49.185.6.62'}], 'gateway_ip': '49.185.6.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.185.6.2', 'tags': [], 'project_id': '0ace061a614e479db0a29f9bbfd1507a'}}
2025-03-17 02:21:11,025 - INFO - Created VN ctest-vn-27886632
2025-03-17 02:21:11,078 - DEBUG - VN ctest-vn-27886632 UUID is ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5
2025-03-17 02:21:11,273 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290, 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-73759065:ctest-vn-27886632, 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-03-17 02:21:11,575 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'effe8f89-939e-4a24-bbf9-49a88768794c', 'name': 'ctest-vn-48274290', 'tenant_id': '0ace061a614e479db0a29f9bbfd1507a', 'project_id': '0ace061a614e479db0a29f9bbfd1507a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71cdcc62-4c94-4fc3-967e-18deb2ed2129'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-vn-48274290'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-policy-allow-all-59798861']], 'subnet_ipam': [{'subnet_cidr': '88.75.9.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-17 02:21:11,803 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5', 'name': 'ctest-vn-27886632', 'tenant_id': '0ace061a614e479db0a29f9bbfd1507a', 'project_id': '0ace061a614e479db0a29f9bbfd1507a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba2adbf7-3947-4903-9ec9-e614eee9e6a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-vn-27886632'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-policy-allow-all-59798861']], 'subnet_ipam': [{'subnet_cidr': '49.185.6.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-17 02:21:11,970 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-03-17 02:21:12,266 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-03-17 02:21:12,295 - DEBUG - Requesting: http://10.0.0.44:8082/domain/945b7f5c-90b1-4c9b-a310-b2768883d639
2025-03-17 02:21:12,309 - DEBUG - Requesting: http://10.0.0.44:8082/project/0ace061a-614e-479d-b0a2-9f9bbfd1507a
2025-03-17 02:21:12,379 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/effe8f89-939e-4a24-bbf9-49a88768794c
2025-03-17 02:21:12,390 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/effe8f89-939e-4a24-bbf9-49a88768794c
2025-03-17 02:21:12,401 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/cf671645-b5c1-4a27-aab5-36727ef7e06c
2025-03-17 02:21:12,410 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/cf671645-b5c1-4a27-aab5-36727ef7e06c
2025-03-17 02:21:12,420 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/c8e56dcd-5896-4162-a014-dc254c74dcfc
2025-03-17 02:21:12,428 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-17 02:21:12,429 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/effe8f89-939e-4a24-bbf9-49a88768794c
2025-03-17 02:21:12,438 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/cf671645-b5c1-4a27-aab5-36727ef7e06c
2025-03-17 02:21:12,450 - INFO - Verified VN network id 8 for VN effe8f89-939e-4a24-bbf9-49a88768794c
2025-03-17 02:21:12,450 - INFO - Verifications in API Server for VN ctest-vn-48274290 passed
2025-03-17 02:21:12,451 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/effe8f89-939e-4a24-bbf9-49a88768794c
2025-03-17 02:21:12,459 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/cf671645-b5c1-4a27-aab5-36727ef7e06c
2025-03-17 02:21:12,466 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/cf671645-b5c1-4a27-aab5-36727ef7e06c
2025-03-17 02:21:12,473 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/c8e56dcd-5896-4162-a014-dc254c74dcfc
2025-03-17 02:21:12,488 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73759065', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17293417440199199268', 'uuid-lslong': '13544938342468581708'}, 'enable': 'true', 'created': '2025-03-17T02:21:10', 'last-modified': '2025-03-17T02:21:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.937547'}
2025-03-17 02:21:12,495 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-17 02:21:12,495 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48274290 passed
2025-03-17 02:21:12,495 - DEBUG - ====Verifying policy data for ctest-vn-48274290 in API_Server ======
2025-03-17 02:21:12,495 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-03-17 02:21:12,503 - DEBUG - Requesting: http://10.0.0.44:8082/domain/945b7f5c-90b1-4c9b-a310-b2768883d639
2025-03-17 02:21:12,516 - DEBUG - Requesting: http://10.0.0.44:8082/project/0ace061a-614e-479d-b0a2-9f9bbfd1507a
2025-03-17 02:21:12,584 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/effe8f89-939e-4a24-bbf9-49a88768794c
2025-03-17 02:21:12,592 - DEBUG - ==>Verifying data for policy with id: dac09d8f-9a12-4ec6-8223-21ecdb911eee, fqn: ['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-policy-allow-all-59798861']
2025-03-17 02:21:12,592 - INFO - VN ctest-vn-48274290 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-17 02:21:12,592 - DEBUG - Verifying the vn in opserver
2025-03-17 02:21:12,592 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290 virtual network link through opserver 10.0.0.44
2025-03-17 02:21:12,592 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2025-03-17 02:21:12,888 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2025-03-17 02:21:12,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290?flat'}
2025-03-17 02:21:12,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-48274290 is found in opserver
2025-03-17 02:21:12,956 - DEBUG - Do not have enough data to verify VN in agent
2025-03-17 02:21:12,962 - DEBUG - VRF ids for VN ctest-vn-48274290: {}
2025-03-17 02:21:12,962 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-03-17 02:21:12,968 - DEBUG - Requesting: http://10.0.0.44:8082/domain/945b7f5c-90b1-4c9b-a310-b2768883d639
2025-03-17 02:21:12,981 - DEBUG - Requesting: http://10.0.0.44:8082/project/0ace061a-614e-479d-b0a2-9f9bbfd1507a
2025-03-17 02:21:13,049 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5
2025-03-17 02:21:13,063 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5
2025-03-17 02:21:13,074 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0a6b378f-188a-4e26-b45d-25500b43f69c
2025-03-17 02:21:13,083 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0a6b378f-188a-4e26-b45d-25500b43f69c
2025-03-17 02:21:13,092 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/f844b63a-b364-4eff-b222-8df380fabfa7
2025-03-17 02:21:13,099 - DEBUG - Route Targets: ['target:64512:8000006']
2025-03-17 02:21:13,100 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5
2025-03-17 02:21:13,109 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0a6b378f-188a-4e26-b45d-25500b43f69c
2025-03-17 02:21:13,124 - INFO - Verified VN network id 9 for VN ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5
2025-03-17 02:21:13,124 - INFO - Verifications in API Server for VN ctest-vn-27886632 passed
2025-03-17 02:21:13,124 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5
2025-03-17 02:21:13,134 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0a6b378f-188a-4e26-b45d-25500b43f69c
2025-03-17 02:21:13,141 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/0a6b378f-188a-4e26-b45d-25500b43f69c
2025-03-17 02:21:13,149 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/f844b63a-b364-4eff-b222-8df380fabfa7
2025-03-17 02:21:13,163 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-27886632', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73759065', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14597816889359748194', 'uuid-lslong': '11594045897216552357'}, 'enable': 'true', 'created': '2025-03-17T02:21:10', 'last-modified': '2025-03-17T02:21:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.382773'}
2025-03-17 02:21:13,169 - DEBUG - Route Targets: ['target:64512:8000006']
2025-03-17 02:21:13,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27886632 passed
2025-03-17 02:21:13,170 - DEBUG - ====Verifying policy data for ctest-vn-27886632 in API_Server ======
2025-03-17 02:21:13,170 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-03-17 02:21:13,176 - DEBUG - Requesting: http://10.0.0.44:8082/domain/945b7f5c-90b1-4c9b-a310-b2768883d639
2025-03-17 02:21:13,190 - DEBUG - Requesting: http://10.0.0.44:8082/project/0ace061a-614e-479d-b0a2-9f9bbfd1507a
2025-03-17 02:21:13,266 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ca95dd1e-4a7c-4c62-a0e6-5350cd2aeda5
2025-03-17 02:21:13,276 - DEBUG - ==>Verifying data for policy with id: dac09d8f-9a12-4ec6-8223-21ecdb911eee, fqn: ['default-domain', 'ctest-TestBasicPolicy-73759065', 'ctest-policy-allow-all-59798861']
2025-03-17 02:21:13,276 - INFO - VN ctest-vn-27886632 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-17 02:21:13,276 - DEBUG - Verifying the vn in opserver
2025-03-17 02:21:13,276 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-27886632 virtual network link through opserver 10.0.0.44
2025-03-17 02:21:13,276 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2025-03-17 02:21:13,289 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-27886632', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-27886632?flat'}
2025-03-17 02:21:13,289 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73759065:ctest-vn-27886632 is found in opserver
2025-03-17 02:21:13,300 - DEBUG - Do not have enough data to verify VN in agent
2025-03-17 02:21:13,305 - DEBUG - VRF ids for VN ctest-vn-27886632: {}
2025-03-17 02:21:13,360 - DEBUG - Services list from nova: [