2025-10-17 21:33:26,698 - INFO - Domain Default found not creating
2025-10-17 21:33:26,876 - INFO - Project ctest-TestBasicPolicy-51316767 not found, creating it
2025-10-17 21:33:27,377 - INFO - Created Project:ctest-TestBasicPolicy-51316767, ID : 1dfbb1a8-d6c3-4cc5-b017-f3a177b2281d 
2025-10-17 21:33:28,951 - INFO - ================================================================================
2025-10-17 21:33:28,951 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-17 21:33:28,951 - 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-10-17 21:33:29,221 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-10-17 21:33:29,221 - INFO - Initial checks done. Running the testcase now
2025-10-17 21:33:29,221 - INFO - 
2025-10-17 21:33:29,822 - DEBUG - Response for create_network : {'network': {'id': '516ea12d-dcb9-4ba0-b0fd-6ccde5434a6a', 'name': 'ctest-vn-06470514', 'tenant_id': '1dfbb1a8d6c34cc5b017f3a177b2281d', 'project_id': '1dfbb1a8d6c34cc5b017f3a177b2281d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51316767', 'ctest-vn-06470514'], 'port_security_enabled': True, 'description': ''}}
2025-10-17 21:33:30,033 - DEBUG - Response for create_subnet : {'subnet': {'id': '1aa26fe8-58a1-4558-bfe6-195e41a5c5a7', 'name': '', 'tenant_id': '1dfbb1a8d6c34cc5b017f3a177b2281d', 'network_id': '516ea12d-dcb9-4ba0-b0fd-6ccde5434a6a', 'ip_version': 4, 'cidr': '122.60.1.64/26', 'allocation_pools': [{'start': '122.60.1.66', 'end': '122.60.1.126'}], 'gateway_ip': '122.60.1.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.60.1.66', 'tags': [], 'project_id': '1dfbb1a8d6c34cc5b017f3a177b2281d'}}
2025-10-17 21:33:30,056 - INFO - Created VN ctest-vn-06470514
2025-10-17 21:33:30,110 - DEBUG - VN ctest-vn-06470514 UUID is 516ea12d-dcb9-4ba0-b0fd-6ccde5434a6a
2025-10-17 21:33:30,420 - DEBUG - Response for create_network : {'network': {'id': 'e8ba8d31-018a-41d7-842b-513ca7f9bd18', 'name': 'ctest-vn-91596269', 'tenant_id': '1dfbb1a8d6c34cc5b017f3a177b2281d', 'project_id': '1dfbb1a8d6c34cc5b017f3a177b2281d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51316767', 'ctest-vn-91596269'], 'port_security_enabled': True, 'description': ''}}
2025-10-17 21:33:30,596 - DEBUG - Response for create_subnet : {'subnet': {'id': '0aef69e8-d9aa-43c5-b380-5ba6b2a24c90', 'name': '', 'tenant_id': '1dfbb1a8d6c34cc5b017f3a177b2281d', 'network_id': 'e8ba8d31-018a-41d7-842b-513ca7f9bd18', 'ip_version': 4, 'cidr': '60.225.186.64/26', 'allocation_pools': [{'start': '60.225.186.66', 'end': '60.225.186.126'}], 'gateway_ip': '60.225.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.225.186.66', 'tags': [], 'project_id': '1dfbb1a8d6c34cc5b017f3a177b2281d'}}
2025-10-17 21:33:30,617 - INFO - Created VN ctest-vn-91596269
2025-10-17 21:33:30,670 - DEBUG - VN ctest-vn-91596269 UUID is e8ba8d31-018a-41d7-842b-513ca7f9bd18
2025-10-17 21:33:30,787 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51316767:ctest-vn-06470514, 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-51316767:ctest-vn-91596269, 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-10-17 21:33:31,093 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '516ea12d-dcb9-4ba0-b0fd-6ccde5434a6a', 'name': 'ctest-vn-06470514', 'tenant_id': '1dfbb1a8d6c34cc5b017f3a177b2281d', 'project_id': '1dfbb1a8d6c34cc5b017f3a177b2281d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1aa26fe8-58a1-4558-bfe6-195e41a5c5a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51316767', 'ctest-vn-06470514'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51316767', 'ctest-policy-allow-all-58566434']], 'subnet_ipam': [{'subnet_cidr': '122.60.1.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-17 21:33:31,335 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8ba8d31-018a-41d7-842b-513ca7f9bd18', 'name': 'ctest-vn-91596269', 'tenant_id': '1dfbb1a8d6c34cc5b017f3a177b2281d', 'project_id': '1dfbb1a8d6c34cc5b017f3a177b2281d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0aef69e8-d9aa-43c5-b380-5ba6b2a24c90'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51316767', 'ctest-vn-91596269'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51316767', 'ctest-policy-allow-all-58566434']], 'subnet_ipam': [{'subnet_cidr': '60.225.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-17 21:33:31,498 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-10-17 21:33:31,801 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-10-17 21:33:31,834 - DEBUG - Requesting: http://10.0.0.49:8082/domain/697ac883-7292-4624-826f-3acdf3af7702
2025-10-17 21:33:31,849 - DEBUG - Requesting: http://10.0.0.49:8082/project/1dfbb1a8-d6c3-4cc5-b017-f3a177b2281d
2025-10-17 21:33:31,929 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/516ea12d-dcb9-4ba0-b0fd-6ccde5434a6a
2025-10-17 21:33:31,940 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/516ea12d-dcb9-4ba0-b0fd-6ccde5434a6a
2025-10-17 21:33:31,949 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/641946c1-e37c-40c8-bf3d-4bdd9d5556dd
2025-10-17 21:33:31,957 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/641946c1-e37c-40c8-bf3d-4bdd9d5556dd
2025-10-17 21:33:31,966 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/9bd77afc-f694-48d1-b022-5e84182a7a1d
2025-10-17 21:33:31,973 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-17 21:33:31,973 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/516ea12d-dcb9-4ba0-b0fd-6ccde5434a6a
2025-10-17 21:33:31,983 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/641946c1-e37c-40c8-bf3d-4bdd9d5556dd
2025-10-17 21:33:32,000 - INFO - Verified VN network id 11 for VN 516ea12d-dcb9-4ba0-b0fd-6ccde5434a6a
2025-10-17 21:33:32,000 - INFO - Verifications in API Server for VN ctest-vn-06470514 passed
2025-10-17 21:33:32,001 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/516ea12d-dcb9-4ba0-b0fd-6ccde5434a6a
2025-10-17 21:33:32,012 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/641946c1-e37c-40c8-bf3d-4bdd9d5556dd
2025-10-17 21:33:32,020 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/641946c1-e37c-40c8-bf3d-4bdd9d5556dd
2025-10-17 21:33:32,029 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/9bd77afc-f694-48d1-b022-5e84182a7a1d
2025-10-17 21:33:32,042 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51316767:ctest-vn-06470514', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51316767', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5867804582859066272', 'uuid-lslong': '12753469351353600618'}, 'enable': 'true', 'created': '2025-10-17T21:33:29', 'last-modified': '2025-10-17T21:33:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974840'}
2025-10-17 21:33:32,048 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-17 21:33:32,048 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06470514 passed
2025-10-17 21:33:32,048 - DEBUG - ====Verifying policy data for ctest-vn-06470514 in API_Server ======
2025-10-17 21:33:32,048 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-10-17 21:33:32,054 - DEBUG - Requesting: http://10.0.0.49:8082/domain/697ac883-7292-4624-826f-3acdf3af7702
2025-10-17 21:33:32,066 - DEBUG - Requesting: http://10.0.0.49:8082/project/1dfbb1a8-d6c3-4cc5-b017-f3a177b2281d
2025-10-17 21:33:32,138 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/516ea12d-dcb9-4ba0-b0fd-6ccde5434a6a
2025-10-17 21:33:32,148 - DEBUG - ==>Verifying data for policy with id: fc5406a9-e39f-4a94-856c-192db48f4295, fqn: ['default-domain', 'ctest-TestBasicPolicy-51316767', 'ctest-policy-allow-all-58566434']
2025-10-17 21:33:32,148 - INFO - VN ctest-vn-06470514 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-17 21:33:32,148 - DEBUG - Verifying the vn in opserver
2025-10-17 21:33:32,148 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51316767:ctest-vn-06470514 virtual network link  through opserver 10.0.0.49
2025-10-17 21:33:32,148 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-10-17 21:33:32,461 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-10-17 21:33:32,528 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51316767:ctest-vn-06470514', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51316767:ctest-vn-06470514?flat'}
2025-10-17 21:33:32,528 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51316767:ctest-vn-06470514 is found in opserver
2025-10-17 21:33:32,541 - DEBUG - Do not have enough data to verify VN in agent
2025-10-17 21:33:32,547 - DEBUG - VRF ids for VN ctest-vn-06470514: {}
2025-10-17 21:33:32,547 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-10-17 21:33:32,553 - DEBUG - Requesting: http://10.0.0.49:8082/domain/697ac883-7292-4624-826f-3acdf3af7702
2025-10-17 21:33:32,566 - DEBUG - Requesting: http://10.0.0.49:8082/project/1dfbb1a8-d6c3-4cc5-b017-f3a177b2281d
2025-10-17 21:33:32,641 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e8ba8d31-018a-41d7-842b-513ca7f9bd18
2025-10-17 21:33:32,655 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e8ba8d31-018a-41d7-842b-513ca7f9bd18
2025-10-17 21:33:32,666 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/101d16b6-3536-4eab-b542-388a24a1a807
2025-10-17 21:33:32,676 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/101d16b6-3536-4eab-b542-388a24a1a807
2025-10-17 21:33:32,685 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/8e873e64-54a4-4093-bdcf-b32dc1db4fb1
2025-10-17 21:33:32,694 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-17 21:33:32,694 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e8ba8d31-018a-41d7-842b-513ca7f9bd18
2025-10-17 21:33:32,705 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/101d16b6-3536-4eab-b542-388a24a1a807
2025-10-17 21:33:32,723 - INFO - Verified VN network id 12 for VN e8ba8d31-018a-41d7-842b-513ca7f9bd18
2025-10-17 21:33:32,723 - INFO - Verifications in API Server for VN ctest-vn-91596269 passed
2025-10-17 21:33:32,723 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e8ba8d31-018a-41d7-842b-513ca7f9bd18
2025-10-17 21:33:32,735 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/101d16b6-3536-4eab-b542-388a24a1a807
2025-10-17 21:33:32,744 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/101d16b6-3536-4eab-b542-388a24a1a807
2025-10-17 21:33:32,753 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/8e873e64-54a4-4093-bdcf-b32dc1db4fb1
2025-10-17 21:33:32,766 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51316767:ctest-vn-91596269', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51316767', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16769871404086215127', 'uuid-lslong': '9523795157963095320'}, 'enable': 'true', 'created': '2025-10-17T21:33:30', 'last-modified': '2025-10-17T21:33:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.461267'}
2025-10-17 21:33:32,774 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-17 21:33:32,774 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91596269 passed
2025-10-17 21:33:32,774 - DEBUG - ====Verifying policy data for ctest-vn-91596269 in API_Server ======
2025-10-17 21:33:32,774 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-10-17 21:33:32,782 - DEBUG - Requesting: http://10.0.0.49:8082/domain/697ac883-7292-4624-826f-3acdf3af7702
2025-10-17 21:33:32,793 - DEBUG - Requesting: http://10.0.0.49:8082/project/1dfbb1a8-d6c3-4cc5-b017-f3a177b2281d
2025-10-17 21:33:32,869 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e8ba8d31-018a-41d7-842b-513ca7f9bd18
2025-10-17 21:33:32,878 - DEBUG - ==>Verifying data for policy with id: fc5406a9-e39f-4a94-856c-192db48f4295, fqn: ['default-domain', 'ctest-TestBasicPolicy-51316767', 'ctest-policy-allow-all-58566434']
2025-10-17 21:33:32,878 - INFO - VN ctest-vn-91596269 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-17 21:33:32,878 - DEBUG - Verifying the vn in opserver
2025-10-17 21:33:32,878 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51316767:ctest-vn-91596269 virtual network link  through opserver 10.0.0.49
2025-10-17 21:33:32,878 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-10-17 21:33:32,890 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51316767:ctest-vn-91596269', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51316767:ctest-vn-91596269?flat'}
2025-10-17 21:33:32,890 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51316767:ctest-vn-91596269 is found in opserver
2025-10-17 21:33:32,902 - DEBUG - Do not have enough data to verify VN in agent
2025-10-17 21:33:32,907 - DEBUG - VRF ids for VN ctest-vn-91596269: {}
2025-10-17 21:33:32,972 - DEBUG - Services list from nova: [