2025-04-22 14:49:52,151 - INFO - Domain Default found not creating
2025-04-22 14:49:52,291 - INFO - Project ctest-TestBasicPolicy-03339839 not found, creating it
2025-04-22 14:49:52,770 - INFO - Created Project:ctest-TestBasicPolicy-03339839, ID : 8aab56fb-a303-4ab5-98cc-2e441caf06e9
2025-04-22 14:49:54,344 - INFO - ================================================================================
2025-04-22 14:49:54,344 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 14:49:54,345 - 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-04-22 14:49:54,601 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.17': '0'}} with
2025-04-22 14:49:54,601 - INFO - Initial checks done. Running the testcase now
2025-04-22 14:49:54,601 - INFO -
2025-04-22 14:49:55,192 - DEBUG - Response for create_network : {'network': {'id': '9b7577cf-4d76-4412-87d5-2b5f715ae761', 'name': 'ctest-vn-05037138', 'tenant_id': '8aab56fba3034ab598cc2e441caf06e9', 'project_id': '8aab56fba3034ab598cc2e441caf06e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03339839', 'ctest-vn-05037138'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 14:49:55,370 - DEBUG - Response for create_subnet : {'subnet': {'id': '87943665-7030-43a3-9960-91d123619b76', 'name': '', 'tenant_id': '8aab56fba3034ab598cc2e441caf06e9', 'network_id': '9b7577cf-4d76-4412-87d5-2b5f715ae761', 'ip_version': 4, 'cidr': '213.128.34.192/26', 'allocation_pools': [{'start': '213.128.34.194', 'end': '213.128.34.254'}], 'gateway_ip': '213.128.34.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.128.34.194', 'tags': [], 'project_id': '8aab56fba3034ab598cc2e441caf06e9'}}
2025-04-22 14:49:55,391 - INFO - Created VN ctest-vn-05037138
2025-04-22 14:49:55,446 - DEBUG - VN ctest-vn-05037138 UUID is 9b7577cf-4d76-4412-87d5-2b5f715ae761
2025-04-22 14:49:55,747 - DEBUG - Response for create_network : {'network': {'id': 'ae3e7d2e-2075-4ef4-9767-3307c0a26d9c', 'name': 'ctest-vn-15821111', 'tenant_id': '8aab56fba3034ab598cc2e441caf06e9', 'project_id': '8aab56fba3034ab598cc2e441caf06e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03339839', 'ctest-vn-15821111'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 14:49:56,001 - DEBUG - Response for create_subnet : {'subnet': {'id': '95dfa972-5ae5-4bcf-b014-5b7481d6a833', 'name': '', 'tenant_id': '8aab56fba3034ab598cc2e441caf06e9', 'network_id': 'ae3e7d2e-2075-4ef4-9767-3307c0a26d9c', 'ip_version': 4, 'cidr': '156.87.214.0/26', 'allocation_pools': [{'start': '156.87.214.2', 'end': '156.87.214.62'}], 'gateway_ip': '156.87.214.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.87.214.2', 'tags': [], 'project_id': '8aab56fba3034ab598cc2e441caf06e9'}}
2025-04-22 14:49:56,020 - INFO - Created VN ctest-vn-15821111
2025-04-22 14:49:56,074 - DEBUG - VN ctest-vn-15821111 UUID is ae3e7d2e-2075-4ef4-9767-3307c0a26d9c
2025-04-22 14:49:56,226 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03339839:ctest-vn-05037138, 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-03339839:ctest-vn-15821111, 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-04-22 14:49:56,540 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b7577cf-4d76-4412-87d5-2b5f715ae761', 'name': 'ctest-vn-05037138', 'tenant_id': '8aab56fba3034ab598cc2e441caf06e9', 'project_id': '8aab56fba3034ab598cc2e441caf06e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87943665-7030-43a3-9960-91d123619b76'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03339839', 'ctest-vn-05037138'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03339839', 'ctest-policy-allow-all-40643765']], 'subnet_ipam': [{'subnet_cidr': '213.128.34.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 14:49:56,801 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae3e7d2e-2075-4ef4-9767-3307c0a26d9c', 'name': 'ctest-vn-15821111', 'tenant_id': '8aab56fba3034ab598cc2e441caf06e9', 'project_id': '8aab56fba3034ab598cc2e441caf06e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95dfa972-5ae5-4bcf-b014-5b7481d6a833'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03339839', 'ctest-vn-15821111'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03339839', 'ctest-policy-allow-all-40643765']], 'subnet_ipam': [{'subnet_cidr': '156.87.214.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 14:49:56,974 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-04-22 14:49:57,316 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-04-22 14:49:57,347 - DEBUG - Requesting: http://10.0.0.131:8082/domain/39334d9d-d124-4cf8-9c23-47079d2e99a8
2025-04-22 14:49:57,362 - DEBUG - Requesting: http://10.0.0.131:8082/project/8aab56fb-a303-4ab5-98cc-2e441caf06e9
2025-04-22 14:49:57,437 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/9b7577cf-4d76-4412-87d5-2b5f715ae761
2025-04-22 14:49:57,450 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/9b7577cf-4d76-4412-87d5-2b5f715ae761
2025-04-22 14:49:57,462 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/ab397f50-f0a6-414c-a32f-6172cfb9a5f4
2025-04-22 14:49:57,470 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/ab397f50-f0a6-414c-a32f-6172cfb9a5f4
2025-04-22 14:49:57,477 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/36f67df3-f844-45bd-8a9a-d5ca54d4882c
2025-04-22 14:49:57,484 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 14:49:57,484 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/9b7577cf-4d76-4412-87d5-2b5f715ae761
2025-04-22 14:49:57,493 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/ab397f50-f0a6-414c-a32f-6172cfb9a5f4
2025-04-22 14:49:57,507 - INFO - Verified VN network id 8 for VN 9b7577cf-4d76-4412-87d5-2b5f715ae761
2025-04-22 14:49:57,507 - INFO - Verifications in API Server for VN ctest-vn-05037138 passed
2025-04-22 14:49:57,508 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/9b7577cf-4d76-4412-87d5-2b5f715ae761
2025-04-22 14:49:57,517 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/ab397f50-f0a6-414c-a32f-6172cfb9a5f4
2025-04-22 14:49:57,526 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/ab397f50-f0a6-414c-a32f-6172cfb9a5f4
2025-04-22 14:49:57,533 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/36f67df3-f844-45bd-8a9a-d5ca54d4882c
2025-04-22 14:49:57,547 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03339839:ctest-vn-05037138', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03339839', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11201991380395508754', 'uuid-lslong': '9787777054083311457'}, 'enable': 'true', 'created': '2025-04-22T14:49:55', 'last-modified': '2025-04-22T14:49:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.045203'}
2025-04-22 14:49:57,554 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 14:49:57,554 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05037138 passed
2025-04-22 14:49:57,554 - DEBUG - ====Verifying policy data for ctest-vn-05037138 in API_Server ======
2025-04-22 14:49:57,555 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-04-22 14:49:57,560 - DEBUG - Requesting: http://10.0.0.131:8082/domain/39334d9d-d124-4cf8-9c23-47079d2e99a8
2025-04-22 14:49:57,572 - DEBUG - Requesting: http://10.0.0.131:8082/project/8aab56fb-a303-4ab5-98cc-2e441caf06e9
2025-04-22 14:49:57,647 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/9b7577cf-4d76-4412-87d5-2b5f715ae761
2025-04-22 14:49:57,658 - DEBUG - ==>Verifying data for policy with id: ca5eaebc-260e-4150-8d7c-eff7da5ef1fc, fqn: ['default-domain', 'ctest-TestBasicPolicy-03339839', 'ctest-policy-allow-all-40643765']
2025-04-22 14:49:57,658 - INFO - VN ctest-vn-05037138 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 14:49:57,658 - DEBUG - Verifying the vn in opserver
2025-04-22 14:49:57,658 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03339839:ctest-vn-05037138 virtual network link through opserver 10.0.0.131
2025-04-22 14:49:57,658 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-04-22 14:49:58,001 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-04-22 14:49:58,061 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03339839:ctest-vn-05037138', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03339839:ctest-vn-05037138?flat'}
2025-04-22 14:49:58,061 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03339839:ctest-vn-05037138 is found in opserver
2025-04-22 14:49:58,073 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 14:49:58,079 - DEBUG - VRF ids for VN ctest-vn-05037138: {}
2025-04-22 14:49:58,080 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-04-22 14:49:58,085 - DEBUG - Requesting: http://10.0.0.131:8082/domain/39334d9d-d124-4cf8-9c23-47079d2e99a8
2025-04-22 14:49:58,098 - DEBUG - Requesting: http://10.0.0.131:8082/project/8aab56fb-a303-4ab5-98cc-2e441caf06e9
2025-04-22 14:49:58,172 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/ae3e7d2e-2075-4ef4-9767-3307c0a26d9c
2025-04-22 14:49:58,186 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/ae3e7d2e-2075-4ef4-9767-3307c0a26d9c
2025-04-22 14:49:58,196 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/94f36b47-8349-4450-b2bf-0cf37840b205
2025-04-22 14:49:58,204 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/94f36b47-8349-4450-b2bf-0cf37840b205
2025-04-22 14:49:58,212 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/249fe146-9d5b-4546-92b6-0d25445f3e08
2025-04-22 14:49:58,219 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 14:49:58,219 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/ae3e7d2e-2075-4ef4-9767-3307c0a26d9c
2025-04-22 14:49:58,228 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/94f36b47-8349-4450-b2bf-0cf37840b205
2025-04-22 14:49:58,243 - INFO - Verified VN network id 9 for VN ae3e7d2e-2075-4ef4-9767-3307c0a26d9c
2025-04-22 14:49:58,244 - INFO - Verifications in API Server for VN ctest-vn-15821111 passed
2025-04-22 14:49:58,244 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/ae3e7d2e-2075-4ef4-9767-3307c0a26d9c
2025-04-22 14:49:58,254 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/94f36b47-8349-4450-b2bf-0cf37840b205
2025-04-22 14:49:58,261 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/94f36b47-8349-4450-b2bf-0cf37840b205
2025-04-22 14:49:58,268 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/249fe146-9d5b-4546-92b6-0d25445f3e08
2025-04-22 14:49:58,281 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03339839:ctest-vn-15821111', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03339839', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12555610448222047988', 'uuid-lslong': '10909744730717973916'}, 'enable': 'true', 'created': '2025-04-22T14:49:55', 'last-modified': '2025-04-22T14:49:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.521746'}
2025-04-22 14:49:58,288 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 14:49:58,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15821111 passed
2025-04-22 14:49:58,289 - DEBUG - ====Verifying policy data for ctest-vn-15821111 in API_Server ======
2025-04-22 14:49:58,289 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-04-22 14:49:58,295 - DEBUG - Requesting: http://10.0.0.131:8082/domain/39334d9d-d124-4cf8-9c23-47079d2e99a8
2025-04-22 14:49:58,307 - DEBUG - Requesting: http://10.0.0.131:8082/project/8aab56fb-a303-4ab5-98cc-2e441caf06e9
2025-04-22 14:49:58,383 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/ae3e7d2e-2075-4ef4-9767-3307c0a26d9c
2025-04-22 14:49:58,396 - DEBUG - ==>Verifying data for policy with id: ca5eaebc-260e-4150-8d7c-eff7da5ef1fc, fqn: ['default-domain', 'ctest-TestBasicPolicy-03339839', 'ctest-policy-allow-all-40643765']
2025-04-22 14:49:58,396 - INFO - VN ctest-vn-15821111 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 14:49:58,396 - DEBUG - Verifying the vn in opserver
2025-04-22 14:49:58,396 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03339839:ctest-vn-15821111 virtual network link through opserver 10.0.0.131
2025-04-22 14:49:58,396 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-04-22 14:49:58,407 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03339839:ctest-vn-15821111', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03339839:ctest-vn-15821111?flat'}
2025-04-22 14:49:58,407 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03339839:ctest-vn-15821111 is found in opserver
2025-04-22 14:49:58,418 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 14:49:58,423 - DEBUG - VRF ids for VN ctest-vn-15821111: {}
2025-04-22 14:49:58,480 - DEBUG - Services list from nova: [