2025-01-07 17:02:01,663 - INFO - Domain Default found not creating
2025-01-07 17:02:01,817 - INFO - Project ctest-TestBasicPolicy-14715900 not found, creating it
2025-01-07 17:02:02,260 - INFO - Created Project:ctest-TestBasicPolicy-14715900, ID : 48961a5c-59ae-41bf-bf1f-de38f8630898
2025-01-07 17:02:03,692 - INFO - ================================================================================
2025-01-07 17:02:03,692 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-07 17:02:03,692 - 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-07 17:02:03,946 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.8': '0'}} with
2025-01-07 17:02:03,946 - INFO - Initial checks done. Running the testcase now
2025-01-07 17:02:03,946 - INFO -
2025-01-07 17:02:04,519 - DEBUG - Response for create_network : {'network': {'id': '31367e5f-b489-4d2c-ac03-1b5e069d7271', 'name': 'ctest-vn-75915839', 'tenant_id': '48961a5c59ae41bfbf1fde38f8630898', 'project_id': '48961a5c59ae41bfbf1fde38f8630898', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14715900', 'ctest-vn-75915839'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 17:02:04,751 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ddcf6a3-c485-4d10-af67-4b1c33d8e733', 'name': '', 'tenant_id': '48961a5c59ae41bfbf1fde38f8630898', 'network_id': '31367e5f-b489-4d2c-ac03-1b5e069d7271', 'ip_version': 4, 'cidr': '59.26.39.128/26', 'allocation_pools': [{'start': '59.26.39.130', 'end': '59.26.39.190'}], 'gateway_ip': '59.26.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.26.39.130', 'tags': [], 'project_id': '48961a5c59ae41bfbf1fde38f8630898'}}
2025-01-07 17:02:04,769 - INFO - Created VN ctest-vn-75915839
2025-01-07 17:02:04,820 - DEBUG - VN ctest-vn-75915839 UUID is 31367e5f-b489-4d2c-ac03-1b5e069d7271
2025-01-07 17:02:05,139 - DEBUG - Response for create_network : {'network': {'id': '74d53e92-6b50-4710-9aa8-b14448714136', 'name': 'ctest-vn-11164447', 'tenant_id': '48961a5c59ae41bfbf1fde38f8630898', 'project_id': '48961a5c59ae41bfbf1fde38f8630898', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14715900', 'ctest-vn-11164447'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 17:02:05,293 - DEBUG - Response for create_subnet : {'subnet': {'id': '50d02279-6c2f-4ae7-9b52-4917d51beece', 'name': '', 'tenant_id': '48961a5c59ae41bfbf1fde38f8630898', 'network_id': '74d53e92-6b50-4710-9aa8-b14448714136', 'ip_version': 4, 'cidr': '213.49.119.64/26', 'allocation_pools': [{'start': '213.49.119.66', 'end': '213.49.119.126'}], 'gateway_ip': '213.49.119.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.49.119.66', 'tags': [], 'project_id': '48961a5c59ae41bfbf1fde38f8630898'}}
2025-01-07 17:02:05,310 - INFO - Created VN ctest-vn-11164447
2025-01-07 17:02:05,362 - DEBUG - VN ctest-vn-11164447 UUID is 74d53e92-6b50-4710-9aa8-b14448714136
2025-01-07 17:02:05,528 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14715900:ctest-vn-75915839, 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-14715900:ctest-vn-11164447, 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-07 17:02:05,824 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31367e5f-b489-4d2c-ac03-1b5e069d7271', 'name': 'ctest-vn-75915839', 'tenant_id': '48961a5c59ae41bfbf1fde38f8630898', 'project_id': '48961a5c59ae41bfbf1fde38f8630898', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ddcf6a3-c485-4d10-af67-4b1c33d8e733'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14715900', 'ctest-vn-75915839'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14715900', 'ctest-policy-allow-all-81960124']], 'subnet_ipam': [{'subnet_cidr': '59.26.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 17:02:06,052 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74d53e92-6b50-4710-9aa8-b14448714136', 'name': 'ctest-vn-11164447', 'tenant_id': '48961a5c59ae41bfbf1fde38f8630898', 'project_id': '48961a5c59ae41bfbf1fde38f8630898', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50d02279-6c2f-4ae7-9b52-4917d51beece'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14715900', 'ctest-vn-11164447'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14715900', 'ctest-policy-allow-all-81960124']], 'subnet_ipam': [{'subnet_cidr': '213.49.119.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 17:02:06,205 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-01-07 17:02:06,507 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-01-07 17:02:06,534 - DEBUG - Requesting: http://10.0.0.50:8082/domain/26f8576e-fa1b-4495-966f-242a22a5b9b0
2025-01-07 17:02:06,549 - DEBUG - Requesting: http://10.0.0.50:8082/project/48961a5c-59ae-41bf-bf1f-de38f8630898
2025-01-07 17:02:06,623 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31367e5f-b489-4d2c-ac03-1b5e069d7271
2025-01-07 17:02:06,634 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31367e5f-b489-4d2c-ac03-1b5e069d7271
2025-01-07 17:02:06,643 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a611575b-4120-45dd-bd52-34fb4581ebe6
2025-01-07 17:02:06,649 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a611575b-4120-45dd-bd52-34fb4581ebe6
2025-01-07 17:02:06,656 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8a1d6e35-33af-43c2-87ac-beb74c2cdc46
2025-01-07 17:02:06,662 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 17:02:06,662 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31367e5f-b489-4d2c-ac03-1b5e069d7271
2025-01-07 17:02:06,671 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a611575b-4120-45dd-bd52-34fb4581ebe6
2025-01-07 17:02:06,684 - INFO - Verified VN network id 9 for VN 31367e5f-b489-4d2c-ac03-1b5e069d7271
2025-01-07 17:02:06,684 - INFO - Verifications in API Server for VN ctest-vn-75915839 passed
2025-01-07 17:02:06,685 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31367e5f-b489-4d2c-ac03-1b5e069d7271
2025-01-07 17:02:06,695 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a611575b-4120-45dd-bd52-34fb4581ebe6
2025-01-07 17:02:06,702 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a611575b-4120-45dd-bd52-34fb4581ebe6
2025-01-07 17:02:06,709 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8a1d6e35-33af-43c2-87ac-beb74c2cdc46
2025-01-07 17:02:06,721 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14715900:ctest-vn-75915839', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14715900', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3546160706116734252', 'uuid-lslong': '12394780690105594481'}, 'enable': 'true', 'created': '2025-01-07T17:02:04', 'last-modified': '2025-01-07T17:02:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923100'}
2025-01-07 17:02:06,728 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 17:02:06,728 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75915839 passed
2025-01-07 17:02:06,728 - DEBUG - ====Verifying policy data for ctest-vn-75915839 in API_Server ======
2025-01-07 17:02:06,728 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-01-07 17:02:06,734 - DEBUG - Requesting: http://10.0.0.50:8082/domain/26f8576e-fa1b-4495-966f-242a22a5b9b0
2025-01-07 17:02:06,746 - DEBUG - Requesting: http://10.0.0.50:8082/project/48961a5c-59ae-41bf-bf1f-de38f8630898
2025-01-07 17:02:06,816 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31367e5f-b489-4d2c-ac03-1b5e069d7271
2025-01-07 17:02:06,826 - DEBUG - ==>Verifying data for policy with id: 966b2a70-271b-4c14-a907-736a29c34f0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-14715900', 'ctest-policy-allow-all-81960124']
2025-01-07 17:02:06,826 - INFO - VN ctest-vn-75915839 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 17:02:06,826 - DEBUG - Verifying the vn in opserver
2025-01-07 17:02:06,826 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14715900:ctest-vn-75915839 virtual network link through opserver 10.0.0.50
2025-01-07 17:02:06,826 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-01-07 17:02:07,117 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-01-07 17:02:07,168 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14715900:ctest-vn-75915839', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14715900:ctest-vn-75915839?flat'}
2025-01-07 17:02:07,168 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14715900:ctest-vn-75915839 is found in opserver
2025-01-07 17:02:07,179 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 17:02:07,183 - DEBUG - VRF ids for VN ctest-vn-75915839: {}
2025-01-07 17:02:07,183 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-01-07 17:02:07,190 - DEBUG - Requesting: http://10.0.0.50:8082/domain/26f8576e-fa1b-4495-966f-242a22a5b9b0
2025-01-07 17:02:07,202 - DEBUG - Requesting: http://10.0.0.50:8082/project/48961a5c-59ae-41bf-bf1f-de38f8630898
2025-01-07 17:02:07,281 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/74d53e92-6b50-4710-9aa8-b14448714136
2025-01-07 17:02:07,292 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/74d53e92-6b50-4710-9aa8-b14448714136
2025-01-07 17:02:07,301 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6fb5e52-b9db-4401-b1a0-838b4987faa7
2025-01-07 17:02:07,307 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6fb5e52-b9db-4401-b1a0-838b4987faa7
2025-01-07 17:02:07,313 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/71832968-af52-4fcd-b53a-deb98aab3ead
2025-01-07 17:02:07,320 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 17:02:07,320 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/74d53e92-6b50-4710-9aa8-b14448714136
2025-01-07 17:02:07,328 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6fb5e52-b9db-4401-b1a0-838b4987faa7
2025-01-07 17:02:07,341 - INFO - Verified VN network id 10 for VN 74d53e92-6b50-4710-9aa8-b14448714136
2025-01-07 17:02:07,342 - INFO - Verifications in API Server for VN ctest-vn-11164447 passed
2025-01-07 17:02:07,342 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/74d53e92-6b50-4710-9aa8-b14448714136
2025-01-07 17:02:07,350 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6fb5e52-b9db-4401-b1a0-838b4987faa7
2025-01-07 17:02:07,357 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6fb5e52-b9db-4401-b1a0-838b4987faa7
2025-01-07 17:02:07,363 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/71832968-af52-4fcd-b53a-deb98aab3ead
2025-01-07 17:02:07,374 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14715900:ctest-vn-11164447', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14715900', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8418703877025580816', 'uuid-lslong': '11144352184759566646'}, 'enable': 'true', 'created': '2025-01-07T17:02:05', 'last-modified': '2025-01-07T17:02:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.344975'}
2025-01-07 17:02:07,381 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 17:02:07,381 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11164447 passed
2025-01-07 17:02:07,381 - DEBUG - ====Verifying policy data for ctest-vn-11164447 in API_Server ======
2025-01-07 17:02:07,381 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-01-07 17:02:07,386 - DEBUG - Requesting: http://10.0.0.50:8082/domain/26f8576e-fa1b-4495-966f-242a22a5b9b0
2025-01-07 17:02:07,397 - DEBUG - Requesting: http://10.0.0.50:8082/project/48961a5c-59ae-41bf-bf1f-de38f8630898
2025-01-07 17:02:07,486 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/74d53e92-6b50-4710-9aa8-b14448714136
2025-01-07 17:02:07,499 - DEBUG - ==>Verifying data for policy with id: 966b2a70-271b-4c14-a907-736a29c34f0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-14715900', 'ctest-policy-allow-all-81960124']
2025-01-07 17:02:07,499 - INFO - VN ctest-vn-11164447 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 17:02:07,499 - DEBUG - Verifying the vn in opserver
2025-01-07 17:02:07,499 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14715900:ctest-vn-11164447 virtual network link through opserver 10.0.0.50
2025-01-07 17:02:07,499 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-01-07 17:02:07,510 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14715900:ctest-vn-11164447', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14715900:ctest-vn-11164447?flat'}
2025-01-07 17:02:07,510 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14715900:ctest-vn-11164447 is found in opserver
2025-01-07 17:02:07,521 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 17:02:07,527 - DEBUG - VRF ids for VN ctest-vn-11164447: {}
2025-01-07 17:02:07,586 - DEBUG - Services list from nova: [