2025-08-30 22:21:49,571 - INFO - Domain Default found not creating
2025-08-30 22:21:49,943 - INFO - Project ctest-TestBasicPolicy-94887770 not found, creating it
2025-08-30 22:21:50,765 - INFO - Created Project:ctest-TestBasicPolicy-94887770, ID : 104a8f26-5799-471e-96a8-a18a7244b8a9
2025-08-30 22:21:52,793 - INFO - ================================================================================
2025-08-30 22:21:52,793 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-30 22:21:52,793 - 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-30 22:21:53,122 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-08-30 22:21:53,122 - INFO - Initial checks done. Running the testcase now
2025-08-30 22:21:53,122 - INFO -
2025-08-30 22:21:53,930 - DEBUG - Response for create_network : {'network': {'id': '0e63a64f-b5f1-450b-bb4f-4d625f6e0abb', 'name': 'ctest-vn-88316186', 'tenant_id': '104a8f265799471e96a8a18a7244b8a9', 'project_id': '104a8f265799471e96a8a18a7244b8a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94887770', 'ctest-vn-88316186'], 'port_security_enabled': True, 'description': ''}}
2025-08-30 22:21:54,190 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3ec0ff0-9308-4473-b8c3-b7f8b0ea0ce9', 'name': '', 'tenant_id': '104a8f265799471e96a8a18a7244b8a9', 'network_id': '0e63a64f-b5f1-450b-bb4f-4d625f6e0abb', 'ip_version': 4, 'cidr': '117.42.129.0/26', 'allocation_pools': [{'start': '117.42.129.2', 'end': '117.42.129.62'}], 'gateway_ip': '117.42.129.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.42.129.2', 'tags': [], 'project_id': '104a8f265799471e96a8a18a7244b8a9'}}
2025-08-30 22:21:54,217 - INFO - Created VN ctest-vn-88316186
2025-08-30 22:21:54,277 - DEBUG - VN ctest-vn-88316186 UUID is 0e63a64f-b5f1-450b-bb4f-4d625f6e0abb
2025-08-30 22:21:54,683 - DEBUG - Response for create_network : {'network': {'id': 'e182780e-2dd6-41ac-80e6-9ecba31aa0a8', 'name': 'ctest-vn-53941692', 'tenant_id': '104a8f265799471e96a8a18a7244b8a9', 'project_id': '104a8f265799471e96a8a18a7244b8a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94887770', 'ctest-vn-53941692'], 'port_security_enabled': True, 'description': ''}}
2025-08-30 22:21:54,956 - DEBUG - Response for create_subnet : {'subnet': {'id': '177b6e5a-1e4d-4e65-9774-0507d98ea374', 'name': '', 'tenant_id': '104a8f265799471e96a8a18a7244b8a9', 'network_id': 'e182780e-2dd6-41ac-80e6-9ecba31aa0a8', 'ip_version': 4, 'cidr': '103.39.50.192/26', 'allocation_pools': [{'start': '103.39.50.194', 'end': '103.39.50.254'}], 'gateway_ip': '103.39.50.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.39.50.194', 'tags': [], 'project_id': '104a8f265799471e96a8a18a7244b8a9'}}
2025-08-30 22:21:54,976 - INFO - Created VN ctest-vn-53941692
2025-08-30 22:21:55,029 - DEBUG - VN ctest-vn-53941692 UUID is e182780e-2dd6-41ac-80e6-9ecba31aa0a8
2025-08-30 22:21:55,190 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94887770:ctest-vn-88316186, 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-94887770:ctest-vn-53941692, 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-30 22:21:55,594 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0e63a64f-b5f1-450b-bb4f-4d625f6e0abb', 'name': 'ctest-vn-88316186', 'tenant_id': '104a8f265799471e96a8a18a7244b8a9', 'project_id': '104a8f265799471e96a8a18a7244b8a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3ec0ff0-9308-4473-b8c3-b7f8b0ea0ce9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94887770', 'ctest-vn-88316186'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94887770', 'ctest-policy-allow-all-70377344']], 'subnet_ipam': [{'subnet_cidr': '117.42.129.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-30 22:21:55,893 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e182780e-2dd6-41ac-80e6-9ecba31aa0a8', 'name': 'ctest-vn-53941692', 'tenant_id': '104a8f265799471e96a8a18a7244b8a9', 'project_id': '104a8f265799471e96a8a18a7244b8a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['177b6e5a-1e4d-4e65-9774-0507d98ea374'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94887770', 'ctest-vn-53941692'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94887770', 'ctest-policy-allow-all-70377344']], 'subnet_ipam': [{'subnet_cidr': '103.39.50.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-30 22:21:56,017 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-30 22:21:56,344 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-30 22:21:56,388 - DEBUG - Requesting: http://10.0.0.254:8082/domain/3c24ae13-eac3-4be1-b3a2-68d8d7829016
2025-08-30 22:21:56,425 - DEBUG - Requesting: http://10.0.0.254:8082/project/104a8f26-5799-471e-96a8-a18a7244b8a9
2025-08-30 22:21:56,526 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0e63a64f-b5f1-450b-bb4f-4d625f6e0abb
2025-08-30 22:21:56,546 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0e63a64f-b5f1-450b-bb4f-4d625f6e0abb
2025-08-30 22:21:56,561 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/04f1e143-731e-4124-ad9c-3e4925c1a0f2
2025-08-30 22:21:56,573 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/04f1e143-731e-4124-ad9c-3e4925c1a0f2
2025-08-30 22:21:56,583 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ad912997-8493-4a8d-bb7f-1014c8fd742e
2025-08-30 22:21:56,590 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-30 22:21:56,590 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0e63a64f-b5f1-450b-bb4f-4d625f6e0abb
2025-08-30 22:21:56,601 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/04f1e143-731e-4124-ad9c-3e4925c1a0f2
2025-08-30 22:21:56,618 - INFO - Verified VN network id 11 for VN 0e63a64f-b5f1-450b-bb4f-4d625f6e0abb
2025-08-30 22:21:56,618 - INFO - Verifications in API Server for VN ctest-vn-88316186 passed
2025-08-30 22:21:56,618 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0e63a64f-b5f1-450b-bb4f-4d625f6e0abb
2025-08-30 22:21:56,631 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/04f1e143-731e-4124-ad9c-3e4925c1a0f2
2025-08-30 22:21:56,638 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/04f1e143-731e-4124-ad9c-3e4925c1a0f2
2025-08-30 22:21:56,646 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ad912997-8493-4a8d-bb7f-1014c8fd742e
2025-08-30 22:21:56,657 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94887770:ctest-vn-88316186', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94887770', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1036855200510461195', 'uuid-lslong': '13497091693155846843'}, 'enable': 'true', 'created': '2025-08-30T22:21:53', 'last-modified': '2025-08-30T22:21:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110500'}
2025-08-30 22:21:56,663 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-30 22:21:56,663 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88316186 passed
2025-08-30 22:21:56,663 - DEBUG - ====Verifying policy data for ctest-vn-88316186 in API_Server ======
2025-08-30 22:21:56,663 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-30 22:21:56,668 - DEBUG - Requesting: http://10.0.0.254:8082/domain/3c24ae13-eac3-4be1-b3a2-68d8d7829016
2025-08-30 22:21:56,678 - DEBUG - Requesting: http://10.0.0.254:8082/project/104a8f26-5799-471e-96a8-a18a7244b8a9
2025-08-30 22:21:56,763 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0e63a64f-b5f1-450b-bb4f-4d625f6e0abb
2025-08-30 22:21:56,775 - DEBUG - ==>Verifying data for policy with id: a301bcd9-253b-416c-b4fa-8e2e57c027f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-94887770', 'ctest-policy-allow-all-70377344']
2025-08-30 22:21:56,775 - INFO - VN ctest-vn-88316186 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-30 22:21:56,775 - DEBUG - Verifying the vn in opserver
2025-08-30 22:21:56,775 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94887770:ctest-vn-88316186 virtual network link through opserver 10.0.0.254
2025-08-30 22:21:56,775 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-30 22:21:57,110 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-30 22:21:57,243 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94887770:ctest-vn-88316186', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94887770:ctest-vn-88316186?flat'}
2025-08-30 22:21:57,243 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94887770:ctest-vn-88316186 is found in opserver
2025-08-30 22:21:57,273 - DEBUG - Do not have enough data to verify VN in agent
2025-08-30 22:21:57,282 - DEBUG - VRF ids for VN ctest-vn-88316186: {}
2025-08-30 22:21:57,283 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-30 22:21:57,297 - DEBUG - Requesting: http://10.0.0.254:8082/domain/3c24ae13-eac3-4be1-b3a2-68d8d7829016
2025-08-30 22:21:57,327 - DEBUG - Requesting: http://10.0.0.254:8082/project/104a8f26-5799-471e-96a8-a18a7244b8a9
2025-08-30 22:21:57,442 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e182780e-2dd6-41ac-80e6-9ecba31aa0a8
2025-08-30 22:21:57,465 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e182780e-2dd6-41ac-80e6-9ecba31aa0a8
2025-08-30 22:21:57,482 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf67a9fd-a16a-429c-a32e-d6869cfc0fc6
2025-08-30 22:21:57,495 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf67a9fd-a16a-429c-a32e-d6869cfc0fc6
2025-08-30 22:21:57,507 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/435c07cf-f013-4efa-b2c2-c5d51dd75566
2025-08-30 22:21:57,519 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-30 22:21:57,520 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e182780e-2dd6-41ac-80e6-9ecba31aa0a8
2025-08-30 22:21:57,538 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf67a9fd-a16a-429c-a32e-d6869cfc0fc6
2025-08-30 22:21:57,562 - INFO - Verified VN network id 12 for VN e182780e-2dd6-41ac-80e6-9ecba31aa0a8
2025-08-30 22:21:57,563 - INFO - Verifications in API Server for VN ctest-vn-53941692 passed
2025-08-30 22:21:57,563 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e182780e-2dd6-41ac-80e6-9ecba31aa0a8
2025-08-30 22:21:57,581 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf67a9fd-a16a-429c-a32e-d6869cfc0fc6
2025-08-30 22:21:57,595 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf67a9fd-a16a-429c-a32e-d6869cfc0fc6
2025-08-30 22:21:57,610 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/435c07cf-f013-4efa-b2c2-c5d51dd75566
2025-08-30 22:21:57,636 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94887770:ctest-vn-53941692', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94887770', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16249682407800062380', 'uuid-lslong': '9288285878950207656'}, 'enable': 'true', 'created': '2025-08-30T22:21:54', 'last-modified': '2025-08-30T22:21:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.813103'}
2025-08-30 22:21:57,653 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-30 22:21:57,654 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53941692 passed
2025-08-30 22:21:57,654 - DEBUG - ====Verifying policy data for ctest-vn-53941692 in API_Server ======
2025-08-30 22:21:57,654 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-30 22:21:57,668 - DEBUG - Requesting: http://10.0.0.254:8082/domain/3c24ae13-eac3-4be1-b3a2-68d8d7829016
2025-08-30 22:21:57,698 - DEBUG - Requesting: http://10.0.0.254:8082/project/104a8f26-5799-471e-96a8-a18a7244b8a9
2025-08-30 22:21:57,828 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e182780e-2dd6-41ac-80e6-9ecba31aa0a8
2025-08-30 22:21:57,851 - DEBUG - ==>Verifying data for policy with id: a301bcd9-253b-416c-b4fa-8e2e57c027f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-94887770', 'ctest-policy-allow-all-70377344']
2025-08-30 22:21:57,851 - INFO - VN ctest-vn-53941692 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-30 22:21:57,851 - DEBUG - Verifying the vn in opserver
2025-08-30 22:21:57,851 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94887770:ctest-vn-53941692 virtual network link through opserver 10.0.0.254
2025-08-30 22:21:57,852 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-30 22:21:57,873 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94887770:ctest-vn-53941692', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94887770:ctest-vn-53941692?flat'}
2025-08-30 22:21:57,874 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94887770:ctest-vn-53941692 is found in opserver
2025-08-30 22:21:57,895 - DEBUG - Do not have enough data to verify VN in agent
2025-08-30 22:21:57,907 - DEBUG - VRF ids for VN ctest-vn-53941692: {}
2025-08-30 22:21:58,009 - DEBUG - Services list from nova: [