2025-01-05 13:29:46,027 - INFO - Domain Default found not creating
2025-01-05 13:29:46,199 - INFO - Project ctest-TestBasicPolicy-20668394 not found, creating it
2025-01-05 13:29:46,680 - INFO - Created Project:ctest-TestBasicPolicy-20668394, ID : 3c983ecc-0e5d-4996-a7d4-8c0b62863c7e
2025-01-05 13:29:48,235 - INFO - ================================================================================
2025-01-05 13:29:48,235 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-05 13:29:48,235 - 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-01-05 13:29:48,509 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.7': '0'}} with
2025-01-05 13:29:48,509 - INFO - Initial checks done. Running the testcase now
2025-01-05 13:29:48,509 - INFO -
2025-01-05 13:29:49,110 - DEBUG - Response for create_network : {'network': {'id': '2b60d6b4-d558-45a3-92c7-e1c7ed928829', 'name': 'ctest-vn-78564903', 'tenant_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'project_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-vn-78564903'], 'port_security_enabled': True, 'description': ''}}
2025-01-05 13:29:49,329 - DEBUG - Response for create_subnet : {'subnet': {'id': '7461d1fe-8e3a-4638-94de-344a3f9713a9', 'name': '', 'tenant_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'network_id': '2b60d6b4-d558-45a3-92c7-e1c7ed928829', 'ip_version': 4, 'cidr': '32.29.211.0/26', 'allocation_pools': [{'start': '32.29.211.2', 'end': '32.29.211.62'}], 'gateway_ip': '32.29.211.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.29.211.2', 'tags': [], 'project_id': '3c983ecc0e5d4996a7d48c0b62863c7e'}}
2025-01-05 13:29:49,354 - INFO - Created VN ctest-vn-78564903
2025-01-05 13:29:49,413 - DEBUG - VN ctest-vn-78564903 UUID is 2b60d6b4-d558-45a3-92c7-e1c7ed928829
2025-01-05 13:29:49,757 - DEBUG - Response for create_network : {'network': {'id': '518b3684-4d45-400b-bc45-a4878e60b02f', 'name': 'ctest-vn-67313673', 'tenant_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'project_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-vn-67313673'], 'port_security_enabled': True, 'description': ''}}
2025-01-05 13:29:49,975 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd17873b-a89c-45dc-a1a6-0405688e382d', 'name': '', 'tenant_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'network_id': '518b3684-4d45-400b-bc45-a4878e60b02f', 'ip_version': 4, 'cidr': '120.130.175.0/26', 'allocation_pools': [{'start': '120.130.175.2', 'end': '120.130.175.62'}], 'gateway_ip': '120.130.175.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.130.175.2', 'tags': [], 'project_id': '3c983ecc0e5d4996a7d48c0b62863c7e'}}
2025-01-05 13:29:49,999 - INFO - Created VN ctest-vn-67313673
2025-01-05 13:29:50,057 - DEBUG - VN ctest-vn-67313673 UUID is 518b3684-4d45-400b-bc45-a4878e60b02f
2025-01-05 13:29:50,189 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903, 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-20668394:ctest-vn-67313673, 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-01-05 13:29:50,523 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b60d6b4-d558-45a3-92c7-e1c7ed928829', 'name': 'ctest-vn-78564903', 'tenant_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'project_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7461d1fe-8e3a-4638-94de-344a3f9713a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-vn-78564903'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-policy-allow-all-76206950']], 'subnet_ipam': [{'subnet_cidr': '32.29.211.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-05 13:29:50,745 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '518b3684-4d45-400b-bc45-a4878e60b02f', 'name': 'ctest-vn-67313673', 'tenant_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'project_id': '3c983ecc0e5d4996a7d48c0b62863c7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd17873b-a89c-45dc-a1a6-0405688e382d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-vn-67313673'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-policy-allow-all-76206950']], 'subnet_ipam': [{'subnet_cidr': '120.130.175.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-05 13:29:50,917 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-05 13:29:51,226 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-05 13:29:51,263 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9ac027a2-7edd-4270-bc8b-73977039ff4e
2025-01-05 13:29:51,279 - DEBUG - Requesting: http://10.0.0.35:8082/project/3c983ecc-0e5d-4996-a7d4-8c0b62863c7e
2025-01-05 13:29:51,362 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2b60d6b4-d558-45a3-92c7-e1c7ed928829
2025-01-05 13:29:51,375 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2b60d6b4-d558-45a3-92c7-e1c7ed928829
2025-01-05 13:29:51,386 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7a53a454-8882-435b-a59d-013c86a3ea0a
2025-01-05 13:29:51,396 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7a53a454-8882-435b-a59d-013c86a3ea0a
2025-01-05 13:29:51,406 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/99151e57-0729-4379-82a5-8142875294f9
2025-01-05 13:29:51,415 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-05 13:29:51,415 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2b60d6b4-d558-45a3-92c7-e1c7ed928829
2025-01-05 13:29:51,427 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7a53a454-8882-435b-a59d-013c86a3ea0a
2025-01-05 13:29:51,446 - INFO - Verified VN network id 8 for VN 2b60d6b4-d558-45a3-92c7-e1c7ed928829
2025-01-05 13:29:51,446 - INFO - Verifications in API Server for VN ctest-vn-78564903 passed
2025-01-05 13:29:51,446 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2b60d6b4-d558-45a3-92c7-e1c7ed928829
2025-01-05 13:29:51,458 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7a53a454-8882-435b-a59d-013c86a3ea0a
2025-01-05 13:29:51,467 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/7a53a454-8882-435b-a59d-013c86a3ea0a
2025-01-05 13:29:51,475 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/99151e57-0729-4379-82a5-8142875294f9
2025-01-05 13:29:51,490 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20668394', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3125734213556913571', 'uuid-lslong': '10576670498703444009'}, 'enable': 'true', 'created': '2025-01-05T13:29:49', 'last-modified': '2025-01-05T13:29:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993082'}
2025-01-05 13:29:51,498 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-05 13:29:51,498 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78564903 passed
2025-01-05 13:29:51,498 - DEBUG - ====Verifying policy data for ctest-vn-78564903 in API_Server ======
2025-01-05 13:29:51,498 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-05 13:29:51,505 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9ac027a2-7edd-4270-bc8b-73977039ff4e
2025-01-05 13:29:51,519 - DEBUG - Requesting: http://10.0.0.35:8082/project/3c983ecc-0e5d-4996-a7d4-8c0b62863c7e
2025-01-05 13:29:51,593 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2b60d6b4-d558-45a3-92c7-e1c7ed928829
2025-01-05 13:29:51,606 - DEBUG - ==>Verifying data for policy with id: 12368e7a-c97e-418a-a824-1073fdba3865, fqn: ['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-policy-allow-all-76206950']
2025-01-05 13:29:51,606 - INFO - VN ctest-vn-78564903 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-05 13:29:51,606 - DEBUG - Verifying the vn in opserver
2025-01-05 13:29:51,606 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903 virtual network link through opserver 10.0.0.35
2025-01-05 13:29:51,606 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-05 13:29:51,903 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-05 13:29:51,975 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903?flat'}
2025-01-05 13:29:51,975 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-78564903 is found in opserver
2025-01-05 13:29:51,987 - DEBUG - Do not have enough data to verify VN in agent
2025-01-05 13:29:51,994 - DEBUG - VRF ids for VN ctest-vn-78564903: {}
2025-01-05 13:29:51,994 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-05 13:29:52,002 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9ac027a2-7edd-4270-bc8b-73977039ff4e
2025-01-05 13:29:52,017 - DEBUG - Requesting: http://10.0.0.35:8082/project/3c983ecc-0e5d-4996-a7d4-8c0b62863c7e
2025-01-05 13:29:52,099 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/518b3684-4d45-400b-bc45-a4878e60b02f
2025-01-05 13:29:52,116 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/518b3684-4d45-400b-bc45-a4878e60b02f
2025-01-05 13:29:52,128 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/8387f047-ee33-4ad0-b3e3-b255157e4c02
2025-01-05 13:29:52,137 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/8387f047-ee33-4ad0-b3e3-b255157e4c02
2025-01-05 13:29:52,146 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/68d80a10-5d60-4ea4-9ab9-03b9b9c30991
2025-01-05 13:29:52,155 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-05 13:29:52,155 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/518b3684-4d45-400b-bc45-a4878e60b02f
2025-01-05 13:29:52,167 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/8387f047-ee33-4ad0-b3e3-b255157e4c02
2025-01-05 13:29:52,186 - INFO - Verified VN network id 9 for VN 518b3684-4d45-400b-bc45-a4878e60b02f
2025-01-05 13:29:52,186 - INFO - Verifications in API Server for VN ctest-vn-67313673 passed
2025-01-05 13:29:52,186 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/518b3684-4d45-400b-bc45-a4878e60b02f
2025-01-05 13:29:52,199 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/8387f047-ee33-4ad0-b3e3-b255157e4c02
2025-01-05 13:29:52,209 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/8387f047-ee33-4ad0-b3e3-b255157e4c02
2025-01-05 13:29:52,220 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/68d80a10-5d60-4ea4-9ab9-03b9b9c30991
2025-01-05 13:29:52,236 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-67313673', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20668394', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5875850080694910987', 'uuid-lslong': '13566430354639728687'}, 'enable': 'true', 'created': '2025-01-05T13:29:49', 'last-modified': '2025-01-05T13:29:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.515252'}
2025-01-05 13:29:52,246 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-05 13:29:52,246 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67313673 passed
2025-01-05 13:29:52,246 - DEBUG - ====Verifying policy data for ctest-vn-67313673 in API_Server ======
2025-01-05 13:29:52,247 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-05 13:29:52,254 - DEBUG - Requesting: http://10.0.0.35:8082/domain/9ac027a2-7edd-4270-bc8b-73977039ff4e
2025-01-05 13:29:52,269 - DEBUG - Requesting: http://10.0.0.35:8082/project/3c983ecc-0e5d-4996-a7d4-8c0b62863c7e
2025-01-05 13:29:52,358 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/518b3684-4d45-400b-bc45-a4878e60b02f
2025-01-05 13:29:52,371 - DEBUG - ==>Verifying data for policy with id: 12368e7a-c97e-418a-a824-1073fdba3865, fqn: ['default-domain', 'ctest-TestBasicPolicy-20668394', 'ctest-policy-allow-all-76206950']
2025-01-05 13:29:52,371 - INFO - VN ctest-vn-67313673 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-05 13:29:52,371 - DEBUG - Verifying the vn in opserver
2025-01-05 13:29:52,371 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-67313673 virtual network link through opserver 10.0.0.35
2025-01-05 13:29:52,371 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-05 13:29:52,385 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-67313673', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-67313673?flat'}
2025-01-05 13:29:52,385 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20668394:ctest-vn-67313673 is found in opserver
2025-01-05 13:29:52,402 - DEBUG - Do not have enough data to verify VN in agent
2025-01-05 13:29:52,408 - DEBUG - VRF ids for VN ctest-vn-67313673: {}
2025-01-05 13:29:52,471 - DEBUG - Services list from nova: [