2025-04-03 16:47:49,180 - INFO - Domain Default found not creating
2025-04-03 16:47:49,365 - INFO - Project ctest-TestBasicPolicy-32151179 not found, creating it
2025-04-03 16:47:49,876 - INFO - Created Project:ctest-TestBasicPolicy-32151179, ID : ea714e7e-8444-4d8e-8b92-1917d15fb222
2025-04-03 16:47:51,568 - INFO - ================================================================================
2025-04-03 16:47:51,568 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-03 16:47:51,568 - 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-03 16:47:51,832 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.33': '0'}} with
2025-04-03 16:47:51,832 - INFO - Initial checks done. Running the testcase now
2025-04-03 16:47:51,833 - INFO -
2025-04-03 16:47:52,491 - DEBUG - Response for create_network : {'network': {'id': '6e3fbc7c-1298-4881-a6d3-2c3f22d437ae', 'name': 'ctest-vn-44155904', 'tenant_id': 'ea714e7e84444d8e8b921917d15fb222', 'project_id': 'ea714e7e84444d8e8b921917d15fb222', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-vn-44155904'], 'port_security_enabled': True, 'description': ''}}
2025-04-03 16:47:52,736 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6a4c920-224f-4450-aa2b-c34250402e6a', 'name': '', 'tenant_id': 'ea714e7e84444d8e8b921917d15fb222', 'network_id': '6e3fbc7c-1298-4881-a6d3-2c3f22d437ae', 'ip_version': 4, 'cidr': '109.230.114.192/26', 'allocation_pools': [{'start': '109.230.114.194', 'end': '109.230.114.254'}], 'gateway_ip': '109.230.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.230.114.194', 'tags': [], 'project_id': 'ea714e7e84444d8e8b921917d15fb222'}}
2025-04-03 16:47:52,756 - INFO - Created VN ctest-vn-44155904
2025-04-03 16:47:52,812 - DEBUG - VN ctest-vn-44155904 UUID is 6e3fbc7c-1298-4881-a6d3-2c3f22d437ae
2025-04-03 16:47:53,146 - DEBUG - Response for create_network : {'network': {'id': '9141f65a-993b-4303-8fd6-66a853cf690b', 'name': 'ctest-vn-16355336', 'tenant_id': 'ea714e7e84444d8e8b921917d15fb222', 'project_id': 'ea714e7e84444d8e8b921917d15fb222', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-vn-16355336'], 'port_security_enabled': True, 'description': ''}}
2025-04-03 16:47:53,319 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a709f083-7180-4db9-90bd-3d77ca3294f5', 'name': '', 'tenant_id': 'ea714e7e84444d8e8b921917d15fb222', 'network_id': '9141f65a-993b-4303-8fd6-66a853cf690b', 'ip_version': 4, 'cidr': '75.123.15.128/26', 'allocation_pools': [{'start': '75.123.15.130', 'end': '75.123.15.190'}], 'gateway_ip': '75.123.15.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.123.15.130', 'tags': [], 'project_id': 'ea714e7e84444d8e8b921917d15fb222'}}
2025-04-03 16:47:53,343 - INFO - Created VN ctest-vn-16355336
2025-04-03 16:47:53,404 - DEBUG - VN ctest-vn-16355336 UUID is 9141f65a-993b-4303-8fd6-66a853cf690b
2025-04-03 16:47:53,537 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904, 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-32151179:ctest-vn-16355336, 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-03 16:47:53,862 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e3fbc7c-1298-4881-a6d3-2c3f22d437ae', 'name': 'ctest-vn-44155904', 'tenant_id': 'ea714e7e84444d8e8b921917d15fb222', 'project_id': 'ea714e7e84444d8e8b921917d15fb222', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6a4c920-224f-4450-aa2b-c34250402e6a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-vn-44155904'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-policy-allow-all-79475797']], 'subnet_ipam': [{'subnet_cidr': '109.230.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-03 16:47:54,129 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9141f65a-993b-4303-8fd6-66a853cf690b', 'name': 'ctest-vn-16355336', 'tenant_id': 'ea714e7e84444d8e8b921917d15fb222', 'project_id': 'ea714e7e84444d8e8b921917d15fb222', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a709f083-7180-4db9-90bd-3d77ca3294f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-vn-16355336'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-policy-allow-all-79475797']], 'subnet_ipam': [{'subnet_cidr': '75.123.15.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-03 16:47:54,300 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-04-03 16:47:54,646 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-04-03 16:47:54,695 - DEBUG - Requesting: http://10.0.0.27:8082/domain/56dc744b-36e9-4b58-b671-cd3893fb62e8
2025-04-03 16:47:54,721 - DEBUG - Requesting: http://10.0.0.27:8082/project/ea714e7e-8444-4d8e-8b92-1917d15fb222
2025-04-03 16:47:54,808 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e3fbc7c-1298-4881-a6d3-2c3f22d437ae
2025-04-03 16:47:54,822 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e3fbc7c-1298-4881-a6d3-2c3f22d437ae
2025-04-03 16:47:54,834 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8f67318f-7678-4a76-83b5-cad3bc7deec0
2025-04-03 16:47:54,843 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8f67318f-7678-4a76-83b5-cad3bc7deec0
2025-04-03 16:47:54,853 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/21866f4a-a3c3-41ff-88d7-580f507c10e9
2025-04-03 16:47:54,863 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-03 16:47:54,863 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e3fbc7c-1298-4881-a6d3-2c3f22d437ae
2025-04-03 16:47:54,875 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8f67318f-7678-4a76-83b5-cad3bc7deec0
2025-04-03 16:47:54,894 - INFO - Verified VN network id 8 for VN 6e3fbc7c-1298-4881-a6d3-2c3f22d437ae
2025-04-03 16:47:54,894 - INFO - Verifications in API Server for VN ctest-vn-44155904 passed
2025-04-03 16:47:54,894 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e3fbc7c-1298-4881-a6d3-2c3f22d437ae
2025-04-03 16:47:54,906 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8f67318f-7678-4a76-83b5-cad3bc7deec0
2025-04-03 16:47:54,916 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8f67318f-7678-4a76-83b5-cad3bc7deec0
2025-04-03 16:47:54,926 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/21866f4a-a3c3-41ff-88d7-580f507c10e9
2025-04-03 16:47:54,945 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32151179', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7944275508778780801', 'uuid-lslong': '12021000480060880814'}, 'enable': 'true', 'created': '2025-04-03T16:47:52', 'last-modified': '2025-04-03T16:47:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110727'}
2025-04-03 16:47:54,954 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-03 16:47:54,954 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44155904 passed
2025-04-03 16:47:54,954 - DEBUG - ====Verifying policy data for ctest-vn-44155904 in API_Server ======
2025-04-03 16:47:54,954 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-04-03 16:47:54,961 - DEBUG - Requesting: http://10.0.0.27:8082/domain/56dc744b-36e9-4b58-b671-cd3893fb62e8
2025-04-03 16:47:54,978 - DEBUG - Requesting: http://10.0.0.27:8082/project/ea714e7e-8444-4d8e-8b92-1917d15fb222
2025-04-03 16:47:55,057 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e3fbc7c-1298-4881-a6d3-2c3f22d437ae
2025-04-03 16:47:55,071 - DEBUG - ==>Verifying data for policy with id: 3e1c23bd-0d9a-4e11-807e-30d89a6a1de8, fqn: ['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-policy-allow-all-79475797']
2025-04-03 16:47:55,071 - INFO - VN ctest-vn-44155904 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-03 16:47:55,071 - DEBUG - Verifying the vn in opserver
2025-04-03 16:47:55,071 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904 virtual network link through opserver 10.0.0.27
2025-04-03 16:47:55,071 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-04-03 16:47:55,420 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-04-03 16:47:55,499 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904?flat'}
2025-04-03 16:47:55,499 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-44155904 is found in opserver
2025-04-03 16:47:55,514 - DEBUG - Do not have enough data to verify VN in agent
2025-04-03 16:47:55,521 - DEBUG - VRF ids for VN ctest-vn-44155904: {}
2025-04-03 16:47:55,521 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-04-03 16:47:55,529 - DEBUG - Requesting: http://10.0.0.27:8082/domain/56dc744b-36e9-4b58-b671-cd3893fb62e8
2025-04-03 16:47:55,545 - DEBUG - Requesting: http://10.0.0.27:8082/project/ea714e7e-8444-4d8e-8b92-1917d15fb222
2025-04-03 16:47:55,641 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9141f65a-993b-4303-8fd6-66a853cf690b
2025-04-03 16:47:55,657 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9141f65a-993b-4303-8fd6-66a853cf690b
2025-04-03 16:47:55,672 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e4f3f1da-7b2d-4c1b-8ffb-4793707eedf0
2025-04-03 16:47:55,684 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e4f3f1da-7b2d-4c1b-8ffb-4793707eedf0
2025-04-03 16:47:55,692 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/11acf5ff-1b47-4a6c-860e-2ece9d4a2a66
2025-04-03 16:47:55,702 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-03 16:47:55,702 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9141f65a-993b-4303-8fd6-66a853cf690b
2025-04-03 16:47:55,715 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e4f3f1da-7b2d-4c1b-8ffb-4793707eedf0
2025-04-03 16:47:55,733 - INFO - Verified VN network id 9 for VN 9141f65a-993b-4303-8fd6-66a853cf690b
2025-04-03 16:47:55,733 - INFO - Verifications in API Server for VN ctest-vn-16355336 passed
2025-04-03 16:47:55,733 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9141f65a-993b-4303-8fd6-66a853cf690b
2025-04-03 16:47:55,746 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e4f3f1da-7b2d-4c1b-8ffb-4793707eedf0
2025-04-03 16:47:55,757 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e4f3f1da-7b2d-4c1b-8ffb-4793707eedf0
2025-04-03 16:47:55,767 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/11acf5ff-1b47-4a6c-860e-2ece9d4a2a66
2025-04-03 16:47:55,784 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-16355336', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32151179', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10466917877964030723', 'uuid-lslong': '10364584465586415883'}, 'enable': 'true', 'created': '2025-04-03T16:47:53', 'last-modified': '2025-04-03T16:47:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.687483'}
2025-04-03 16:47:55,794 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-03 16:47:55,794 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16355336 passed
2025-04-03 16:47:55,794 - DEBUG - ====Verifying policy data for ctest-vn-16355336 in API_Server ======
2025-04-03 16:47:55,794 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-04-03 16:47:55,803 - DEBUG - Requesting: http://10.0.0.27:8082/domain/56dc744b-36e9-4b58-b671-cd3893fb62e8
2025-04-03 16:47:55,819 - DEBUG - Requesting: http://10.0.0.27:8082/project/ea714e7e-8444-4d8e-8b92-1917d15fb222
2025-04-03 16:47:55,906 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/9141f65a-993b-4303-8fd6-66a853cf690b
2025-04-03 16:47:55,919 - DEBUG - ==>Verifying data for policy with id: 3e1c23bd-0d9a-4e11-807e-30d89a6a1de8, fqn: ['default-domain', 'ctest-TestBasicPolicy-32151179', 'ctest-policy-allow-all-79475797']
2025-04-03 16:47:55,919 - INFO - VN ctest-vn-16355336 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-03 16:47:55,919 - DEBUG - Verifying the vn in opserver
2025-04-03 16:47:55,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-16355336 virtual network link through opserver 10.0.0.27
2025-04-03 16:47:55,919 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-04-03 16:47:55,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-16355336', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-16355336?flat'}
2025-04-03 16:47:55,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32151179:ctest-vn-16355336 is found in opserver
2025-04-03 16:47:55,947 - DEBUG - Do not have enough data to verify VN in agent
2025-04-03 16:47:55,955 - DEBUG - VRF ids for VN ctest-vn-16355336: {}
2025-04-03 16:47:56,026 - DEBUG - Services list from nova: [