2025-07-30 19:56:34,508 - INFO - Domain Default found not creating
2025-07-30 19:56:34,670 - INFO - Project ctest-TestBasicPolicy-35858267 not found, creating it
2025-07-30 19:56:35,119 - INFO - Created Project:ctest-TestBasicPolicy-35858267, ID : 305d9d3c-7e3d-4714-a9f8-823f693e8f5e
2025-07-30 19:56:36,504 - INFO - ================================================================================
2025-07-30 19:56:36,504 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-30 19:56:36,504 - 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-07-30 19:56:36,763 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with
2025-07-30 19:56:36,764 - INFO - Initial checks done. Running the testcase now
2025-07-30 19:56:36,764 - INFO -
2025-07-30 19:56:37,548 - DEBUG - Response for create_network : {'network': {'id': 'aa607c51-dcf0-4d5d-a733-5641fdb7a612', 'name': 'ctest-vn-17638930', 'tenant_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'project_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-vn-17638930'], 'port_security_enabled': True, 'description': ''}}
2025-07-30 19:56:37,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '85217de3-f6b8-4fd2-9dec-b63ac2657e51', 'name': '', 'tenant_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'network_id': 'aa607c51-dcf0-4d5d-a733-5641fdb7a612', 'ip_version': 4, 'cidr': '117.60.100.128/26', 'allocation_pools': [{'start': '117.60.100.130', 'end': '117.60.100.190'}], 'gateway_ip': '117.60.100.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.60.100.130', 'tags': [], 'project_id': '305d9d3c7e3d4714a9f8823f693e8f5e'}}
2025-07-30 19:56:37,722 - INFO - Created VN ctest-vn-17638930
2025-07-30 19:56:37,777 - DEBUG - VN ctest-vn-17638930 UUID is aa607c51-dcf0-4d5d-a733-5641fdb7a612
2025-07-30 19:56:38,103 - DEBUG - Response for create_network : {'network': {'id': '9b43e9ff-5b8e-4d51-8f30-ed6675fff74b', 'name': 'ctest-vn-70645689', 'tenant_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'project_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-vn-70645689'], 'port_security_enabled': True, 'description': ''}}
2025-07-30 19:56:38,327 - DEBUG - Response for create_subnet : {'subnet': {'id': '84d6620e-0894-4155-846b-357519d02fe6', 'name': '', 'tenant_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'network_id': '9b43e9ff-5b8e-4d51-8f30-ed6675fff74b', 'ip_version': 4, 'cidr': '166.181.51.128/26', 'allocation_pools': [{'start': '166.181.51.130', 'end': '166.181.51.190'}], 'gateway_ip': '166.181.51.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.181.51.130', 'tags': [], 'project_id': '305d9d3c7e3d4714a9f8823f693e8f5e'}}
2025-07-30 19:56:38,343 - INFO - Created VN ctest-vn-70645689
2025-07-30 19:56:38,393 - DEBUG - VN ctest-vn-70645689 UUID is 9b43e9ff-5b8e-4d51-8f30-ed6675fff74b
2025-07-30 19:56:38,545 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930, 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-35858267:ctest-vn-70645689, 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-07-30 19:56:38,839 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa607c51-dcf0-4d5d-a733-5641fdb7a612', 'name': 'ctest-vn-17638930', 'tenant_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'project_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85217de3-f6b8-4fd2-9dec-b63ac2657e51'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-vn-17638930'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-policy-allow-all-99388268']], 'subnet_ipam': [{'subnet_cidr': '117.60.100.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-30 19:56:39,073 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b43e9ff-5b8e-4d51-8f30-ed6675fff74b', 'name': 'ctest-vn-70645689', 'tenant_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'project_id': '305d9d3c7e3d4714a9f8823f693e8f5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84d6620e-0894-4155-846b-357519d02fe6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-vn-70645689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-policy-allow-all-99388268']], 'subnet_ipam': [{'subnet_cidr': '166.181.51.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-30 19:56:39,246 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-30 19:56:39,542 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-30 19:56:39,569 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f
2025-07-30 19:56:39,582 - DEBUG - Requesting: http://10.0.0.38:8082/project/305d9d3c-7e3d-4714-a9f8-823f693e8f5e
2025-07-30 19:56:39,658 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aa607c51-dcf0-4d5d-a733-5641fdb7a612
2025-07-30 19:56:39,668 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aa607c51-dcf0-4d5d-a733-5641fdb7a612
2025-07-30 19:56:39,677 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7dbec2-ef75-432f-aa36-310cdc35a6a0
2025-07-30 19:56:39,683 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7dbec2-ef75-432f-aa36-310cdc35a6a0
2025-07-30 19:56:39,689 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d758de7a-cfd5-4bd3-be03-1b889f6eff92
2025-07-30 19:56:39,695 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-30 19:56:39,695 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aa607c51-dcf0-4d5d-a733-5641fdb7a612
2025-07-30 19:56:39,703 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7dbec2-ef75-432f-aa36-310cdc35a6a0
2025-07-30 19:56:39,716 - INFO - Verified VN network id 10 for VN aa607c51-dcf0-4d5d-a733-5641fdb7a612
2025-07-30 19:56:39,716 - INFO - Verifications in API Server for VN ctest-vn-17638930 passed
2025-07-30 19:56:39,716 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aa607c51-dcf0-4d5d-a733-5641fdb7a612
2025-07-30 19:56:39,726 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7dbec2-ef75-432f-aa36-310cdc35a6a0
2025-07-30 19:56:39,733 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cd7dbec2-ef75-432f-aa36-310cdc35a6a0
2025-07-30 19:56:39,740 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d758de7a-cfd5-4bd3-be03-1b889f6eff92
2025-07-30 19:56:39,752 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35858267', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12276949275252903261', 'uuid-lslong': '12048068269575742994'}, 'enable': 'true', 'created': '2025-07-30T19:56:37', 'last-modified': '2025-07-30T19:56:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934728'}
2025-07-30 19:56:39,758 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-30 19:56:39,759 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17638930 passed
2025-07-30 19:56:39,759 - DEBUG - ====Verifying policy data for ctest-vn-17638930 in API_Server ======
2025-07-30 19:56:39,759 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-30 19:56:39,764 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f
2025-07-30 19:56:39,775 - DEBUG - Requesting: http://10.0.0.38:8082/project/305d9d3c-7e3d-4714-a9f8-823f693e8f5e
2025-07-30 19:56:39,844 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aa607c51-dcf0-4d5d-a733-5641fdb7a612
2025-07-30 19:56:39,853 - DEBUG - ==>Verifying data for policy with id: 38a219fe-cefe-4d1c-ae56-10e88f01666f, fqn: ['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-policy-allow-all-99388268']
2025-07-30 19:56:39,853 - INFO - VN ctest-vn-17638930 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-30 19:56:39,853 - DEBUG - Verifying the vn in opserver
2025-07-30 19:56:39,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930 virtual network link through opserver 10.0.0.38
2025-07-30 19:56:39,853 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-30 19:56:40,141 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-30 19:56:40,194 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930?flat'}
2025-07-30 19:56:40,194 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-17638930 is found in opserver
2025-07-30 19:56:40,204 - DEBUG - Do not have enough data to verify VN in agent
2025-07-30 19:56:40,209 - DEBUG - VRF ids for VN ctest-vn-17638930: {}
2025-07-30 19:56:40,209 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-30 19:56:40,214 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f
2025-07-30 19:56:40,225 - DEBUG - Requesting: http://10.0.0.38:8082/project/305d9d3c-7e3d-4714-a9f8-823f693e8f5e
2025-07-30 19:56:40,295 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b43e9ff-5b8e-4d51-8f30-ed6675fff74b
2025-07-30 19:56:40,306 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b43e9ff-5b8e-4d51-8f30-ed6675fff74b
2025-07-30 19:56:40,317 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af2c0eb3-8a1f-47eb-bd4e-9dabe24189df
2025-07-30 19:56:40,325 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af2c0eb3-8a1f-47eb-bd4e-9dabe24189df
2025-07-30 19:56:40,332 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b2ee600-09e0-4f9d-a2a2-bb51d1062b55
2025-07-30 19:56:40,339 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-30 19:56:40,339 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b43e9ff-5b8e-4d51-8f30-ed6675fff74b
2025-07-30 19:56:40,349 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af2c0eb3-8a1f-47eb-bd4e-9dabe24189df
2025-07-30 19:56:40,363 - INFO - Verified VN network id 11 for VN 9b43e9ff-5b8e-4d51-8f30-ed6675fff74b
2025-07-30 19:56:40,363 - INFO - Verifications in API Server for VN ctest-vn-70645689 passed
2025-07-30 19:56:40,363 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b43e9ff-5b8e-4d51-8f30-ed6675fff74b
2025-07-30 19:56:40,374 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af2c0eb3-8a1f-47eb-bd4e-9dabe24189df
2025-07-30 19:56:40,380 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af2c0eb3-8a1f-47eb-bd4e-9dabe24189df
2025-07-30 19:56:40,386 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b2ee600-09e0-4f9d-a2a2-bb51d1062b55
2025-07-30 19:56:40,397 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-70645689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35858267', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11188043182280428881', 'uuid-lslong': '10318007770627962699'}, 'enable': 'true', 'created': '2025-07-30T19:56:38', 'last-modified': '2025-07-30T19:56:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.343220'}
2025-07-30 19:56:40,403 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-30 19:56:40,403 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70645689 passed
2025-07-30 19:56:40,403 - DEBUG - ====Verifying policy data for ctest-vn-70645689 in API_Server ======
2025-07-30 19:56:40,403 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-30 19:56:40,409 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f
2025-07-30 19:56:40,420 - DEBUG - Requesting: http://10.0.0.38:8082/project/305d9d3c-7e3d-4714-a9f8-823f693e8f5e
2025-07-30 19:56:40,493 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b43e9ff-5b8e-4d51-8f30-ed6675fff74b
2025-07-30 19:56:40,503 - DEBUG - ==>Verifying data for policy with id: 38a219fe-cefe-4d1c-ae56-10e88f01666f, fqn: ['default-domain', 'ctest-TestBasicPolicy-35858267', 'ctest-policy-allow-all-99388268']
2025-07-30 19:56:40,503 - INFO - VN ctest-vn-70645689 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-30 19:56:40,503 - DEBUG - Verifying the vn in opserver
2025-07-30 19:56:40,503 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-70645689 virtual network link through opserver 10.0.0.38
2025-07-30 19:56:40,503 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-30 19:56:40,514 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-70645689', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-70645689?flat'}
2025-07-30 19:56:40,514 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35858267:ctest-vn-70645689 is found in opserver
2025-07-30 19:56:40,526 - DEBUG - Do not have enough data to verify VN in agent
2025-07-30 19:56:40,532 - DEBUG - VRF ids for VN ctest-vn-70645689: {}
2025-07-30 19:56:40,587 - DEBUG - Services list from nova: [