2025-08-28 02:17:31,917 - INFO - Domain Default found not creating
2025-08-28 02:17:32,038 - INFO - Project ctest-TestBasicPolicy-54290727 not found, creating it
2025-08-28 02:17:32,438 - INFO - Created Project:ctest-TestBasicPolicy-54290727, ID : 5407bc92-a316-460a-81d6-92e98fc7cca3
2025-08-28 02:17:33,735 - INFO - ================================================================================
2025-08-28 02:17:33,735 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-28 02:17:33,735 - 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-08-28 02:17:33,992 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.18': '0'}} with
2025-08-28 02:17:33,992 - INFO - Initial checks done. Running the testcase now
2025-08-28 02:17:33,992 - INFO -
2025-08-28 02:17:34,487 - DEBUG - Response for create_network : {'network': {'id': '4e56f4ca-3813-45de-b9c7-29c4f09c65be', 'name': 'ctest-vn-68175816', 'tenant_id': '5407bc92a316460a81d692e98fc7cca3', 'project_id': '5407bc92a316460a81d692e98fc7cca3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54290727', 'ctest-vn-68175816'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 02:17:34,675 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd14b117e-6e8d-4e5b-b1a0-c96017ab031e', 'name': '', 'tenant_id': '5407bc92a316460a81d692e98fc7cca3', 'network_id': '4e56f4ca-3813-45de-b9c7-29c4f09c65be', 'ip_version': 4, 'cidr': '221.23.59.64/26', 'allocation_pools': [{'start': '221.23.59.66', 'end': '221.23.59.126'}], 'gateway_ip': '221.23.59.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.23.59.66', 'tags': [], 'project_id': '5407bc92a316460a81d692e98fc7cca3'}}
2025-08-28 02:17:34,689 - INFO - Created VN ctest-vn-68175816
2025-08-28 02:17:34,739 - DEBUG - VN ctest-vn-68175816 UUID is 4e56f4ca-3813-45de-b9c7-29c4f09c65be
2025-08-28 02:17:35,034 - DEBUG - Response for create_network : {'network': {'id': '8f82a3b4-767b-4907-aca9-b6923114f5db', 'name': 'ctest-vn-51705602', 'tenant_id': '5407bc92a316460a81d692e98fc7cca3', 'project_id': '5407bc92a316460a81d692e98fc7cca3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54290727', 'ctest-vn-51705602'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 02:17:35,248 - DEBUG - Response for create_subnet : {'subnet': {'id': '1edafb7a-1e12-40f6-ab40-6625cdd831df', 'name': '', 'tenant_id': '5407bc92a316460a81d692e98fc7cca3', 'network_id': '8f82a3b4-767b-4907-aca9-b6923114f5db', 'ip_version': 4, 'cidr': '8.250.30.64/26', 'allocation_pools': [{'start': '8.250.30.66', 'end': '8.250.30.126'}], 'gateway_ip': '8.250.30.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.250.30.66', 'tags': [], 'project_id': '5407bc92a316460a81d692e98fc7cca3'}}
2025-08-28 02:17:35,264 - INFO - Created VN ctest-vn-51705602
2025-08-28 02:17:35,315 - DEBUG - VN ctest-vn-51705602 UUID is 8f82a3b4-767b-4907-aca9-b6923114f5db
2025-08-28 02:17:35,455 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54290727:ctest-vn-68175816, 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-54290727:ctest-vn-51705602, 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-08-28 02:17:35,735 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e56f4ca-3813-45de-b9c7-29c4f09c65be', 'name': 'ctest-vn-68175816', 'tenant_id': '5407bc92a316460a81d692e98fc7cca3', 'project_id': '5407bc92a316460a81d692e98fc7cca3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d14b117e-6e8d-4e5b-b1a0-c96017ab031e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54290727', 'ctest-vn-68175816'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54290727', 'ctest-policy-allow-all-69775957']], 'subnet_ipam': [{'subnet_cidr': '221.23.59.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 02:17:35,938 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f82a3b4-767b-4907-aca9-b6923114f5db', 'name': 'ctest-vn-51705602', 'tenant_id': '5407bc92a316460a81d692e98fc7cca3', 'project_id': '5407bc92a316460a81d692e98fc7cca3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1edafb7a-1e12-40f6-ab40-6625cdd831df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54290727', 'ctest-vn-51705602'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54290727', 'ctest-policy-allow-all-69775957']], 'subnet_ipam': [{'subnet_cidr': '8.250.30.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 02:17:36,095 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-28 02:17:36,381 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-28 02:17:36,404 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d95b8d88-722e-42d6-8a8d-63dff6712391
2025-08-28 02:17:36,414 - DEBUG - Requesting: http://10.0.0.33:8082/project/5407bc92-a316-460a-81d6-92e98fc7cca3
2025-08-28 02:17:36,483 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4e56f4ca-3813-45de-b9c7-29c4f09c65be
2025-08-28 02:17:36,491 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4e56f4ca-3813-45de-b9c7-29c4f09c65be
2025-08-28 02:17:36,498 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cbc7221-84b3-4009-8aca-f598eac9fee6
2025-08-28 02:17:36,503 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cbc7221-84b3-4009-8aca-f598eac9fee6
2025-08-28 02:17:36,508 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5ceee7eb-8eac-4c75-bcd8-fa526dda9fe2
2025-08-28 02:17:36,512 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 02:17:36,512 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4e56f4ca-3813-45de-b9c7-29c4f09c65be
2025-08-28 02:17:36,519 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cbc7221-84b3-4009-8aca-f598eac9fee6
2025-08-28 02:17:36,530 - INFO - Verified VN network id 12 for VN 4e56f4ca-3813-45de-b9c7-29c4f09c65be
2025-08-28 02:17:36,530 - INFO - Verifications in API Server for VN ctest-vn-68175816 passed
2025-08-28 02:17:36,530 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4e56f4ca-3813-45de-b9c7-29c4f09c65be
2025-08-28 02:17:36,537 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cbc7221-84b3-4009-8aca-f598eac9fee6
2025-08-28 02:17:36,542 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cbc7221-84b3-4009-8aca-f598eac9fee6
2025-08-28 02:17:36,546 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5ceee7eb-8eac-4c75-bcd8-fa526dda9fe2
2025-08-28 02:17:36,554 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54290727:ctest-vn-68175816', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54290727', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5644968332316853726', 'uuid-lslong': '13386714343209199038'}, 'enable': 'true', 'created': '2025-08-28T02:17:34', 'last-modified': '2025-08-28T02:17:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.838961'}
2025-08-28 02:17:36,559 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 02:17:36,559 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68175816 passed
2025-08-28 02:17:36,560 - DEBUG - ====Verifying policy data for ctest-vn-68175816 in API_Server ======
2025-08-28 02:17:36,560 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-28 02:17:36,563 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d95b8d88-722e-42d6-8a8d-63dff6712391
2025-08-28 02:17:36,572 - DEBUG - Requesting: http://10.0.0.33:8082/project/5407bc92-a316-460a-81d6-92e98fc7cca3
2025-08-28 02:17:36,636 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4e56f4ca-3813-45de-b9c7-29c4f09c65be
2025-08-28 02:17:36,643 - DEBUG - ==>Verifying data for policy with id: 49f011b4-c236-4b22-bdb9-0b64c1c3fe07, fqn: ['default-domain', 'ctest-TestBasicPolicy-54290727', 'ctest-policy-allow-all-69775957']
2025-08-28 02:17:36,643 - INFO - VN ctest-vn-68175816 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 02:17:36,643 - DEBUG - Verifying the vn in opserver
2025-08-28 02:17:36,643 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54290727:ctest-vn-68175816 virtual network link through opserver 10.0.0.33
2025-08-28 02:17:36,644 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-28 02:17:36,930 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-28 02:17:36,977 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54290727:ctest-vn-68175816', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54290727:ctest-vn-68175816?flat'}
2025-08-28 02:17:36,977 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54290727:ctest-vn-68175816 is found in opserver
2025-08-28 02:17:36,986 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 02:17:36,990 - DEBUG - VRF ids for VN ctest-vn-68175816: {}
2025-08-28 02:17:36,990 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-28 02:17:36,995 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d95b8d88-722e-42d6-8a8d-63dff6712391
2025-08-28 02:17:37,004 - DEBUG - Requesting: http://10.0.0.33:8082/project/5407bc92-a316-460a-81d6-92e98fc7cca3
2025-08-28 02:17:37,070 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8f82a3b4-767b-4907-aca9-b6923114f5db
2025-08-28 02:17:37,079 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8f82a3b4-767b-4907-aca9-b6923114f5db
2025-08-28 02:17:37,086 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c342b50e-e554-4f4e-8c85-26c4127f8299
2025-08-28 02:17:37,091 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c342b50e-e554-4f4e-8c85-26c4127f8299
2025-08-28 02:17:37,096 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2274f028-f52c-40ba-bc2c-78ccb6873389
2025-08-28 02:17:37,100 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 02:17:37,100 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8f82a3b4-767b-4907-aca9-b6923114f5db
2025-08-28 02:17:37,108 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c342b50e-e554-4f4e-8c85-26c4127f8299
2025-08-28 02:17:37,121 - INFO - Verified VN network id 13 for VN 8f82a3b4-767b-4907-aca9-b6923114f5db
2025-08-28 02:17:37,121 - INFO - Verifications in API Server for VN ctest-vn-51705602 passed
2025-08-28 02:17:37,121 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8f82a3b4-767b-4907-aca9-b6923114f5db
2025-08-28 02:17:37,131 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c342b50e-e554-4f4e-8c85-26c4127f8299
2025-08-28 02:17:37,138 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c342b50e-e554-4f4e-8c85-26c4127f8299
2025-08-28 02:17:37,144 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2274f028-f52c-40ba-bc2c-78ccb6873389
2025-08-28 02:17:37,154 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54290727:ctest-vn-51705602', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54290727', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10341007689873312007', 'uuid-lslong': '12441676184592643547'}, 'enable': 'true', 'created': '2025-08-28T02:17:35', 'last-modified': '2025-08-28T02:17:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.234227'}
2025-08-28 02:17:37,159 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 02:17:37,159 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51705602 passed
2025-08-28 02:17:37,159 - DEBUG - ====Verifying policy data for ctest-vn-51705602 in API_Server ======
2025-08-28 02:17:37,159 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-28 02:17:37,163 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d95b8d88-722e-42d6-8a8d-63dff6712391
2025-08-28 02:17:37,172 - DEBUG - Requesting: http://10.0.0.33:8082/project/5407bc92-a316-460a-81d6-92e98fc7cca3
2025-08-28 02:17:37,242 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8f82a3b4-767b-4907-aca9-b6923114f5db
2025-08-28 02:17:37,249 - DEBUG - ==>Verifying data for policy with id: 49f011b4-c236-4b22-bdb9-0b64c1c3fe07, fqn: ['default-domain', 'ctest-TestBasicPolicy-54290727', 'ctest-policy-allow-all-69775957']
2025-08-28 02:17:37,249 - INFO - VN ctest-vn-51705602 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 02:17:37,249 - DEBUG - Verifying the vn in opserver
2025-08-28 02:17:37,249 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54290727:ctest-vn-51705602 virtual network link through opserver 10.0.0.33
2025-08-28 02:17:37,249 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-28 02:17:37,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54290727:ctest-vn-51705602', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54290727:ctest-vn-51705602?flat'}
2025-08-28 02:17:37,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54290727:ctest-vn-51705602 is found in opserver
2025-08-28 02:17:37,265 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 02:17:37,268 - DEBUG - VRF ids for VN ctest-vn-51705602: {}
2025-08-28 02:17:37,316 - DEBUG - Services list from nova: [