2025-10-27 01:14:53,618 - INFO - Domain Default found not creating
2025-10-27 01:14:53,770 - INFO - Project ctest-TestBasicPolicy-64932823 not found, creating it
2025-10-27 01:14:54,222 - INFO - Created Project:ctest-TestBasicPolicy-64932823, ID : 1e737e4f-83cb-4033-830b-58ee6a8e2eef
2025-10-27 01:14:55,797 - INFO - ================================================================================
2025-10-27 01:14:55,797 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 01:14:55,797 - 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-27 01:14:56,054 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2025-10-27 01:14:56,054 - INFO - Initial checks done. Running the testcase now
2025-10-27 01:14:56,054 - INFO -
2025-10-27 01:14:56,634 - DEBUG - Response for create_network : {'network': {'id': 'e9ae070f-4aa7-49ac-a95d-5edbeeeffcad', 'name': 'ctest-vn-06068817', 'tenant_id': '1e737e4f83cb4033830b58ee6a8e2eef', 'project_id': '1e737e4f83cb4033830b58ee6a8e2eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64932823', 'ctest-vn-06068817'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 01:14:56,861 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f98ca0c5-f5f2-4795-b7ca-d4daa4ed01e0', 'name': '', 'tenant_id': '1e737e4f83cb4033830b58ee6a8e2eef', 'network_id': 'e9ae070f-4aa7-49ac-a95d-5edbeeeffcad', 'ip_version': 4, 'cidr': '115.122.124.192/26', 'allocation_pools': [{'start': '115.122.124.194', 'end': '115.122.124.254'}], 'gateway_ip': '115.122.124.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.122.124.194', 'tags': [], 'project_id': '1e737e4f83cb4033830b58ee6a8e2eef'}}
2025-10-27 01:14:56,882 - INFO - Created VN ctest-vn-06068817
2025-10-27 01:14:56,939 - DEBUG - VN ctest-vn-06068817 UUID is e9ae070f-4aa7-49ac-a95d-5edbeeeffcad
2025-10-27 01:14:57,231 - DEBUG - Response for create_network : {'network': {'id': '9ea75ff4-1781-4b0e-aaaf-f80080a84ab1', 'name': 'ctest-vn-16500917', 'tenant_id': '1e737e4f83cb4033830b58ee6a8e2eef', 'project_id': '1e737e4f83cb4033830b58ee6a8e2eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64932823', 'ctest-vn-16500917'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 01:14:57,396 - DEBUG - Response for create_subnet : {'subnet': {'id': '291fc0a0-d93f-462e-ae20-b5a4c416e617', 'name': '', 'tenant_id': '1e737e4f83cb4033830b58ee6a8e2eef', 'network_id': '9ea75ff4-1781-4b0e-aaaf-f80080a84ab1', 'ip_version': 4, 'cidr': '8.33.14.192/26', 'allocation_pools': [{'start': '8.33.14.194', 'end': '8.33.14.254'}], 'gateway_ip': '8.33.14.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.33.14.194', 'tags': [], 'project_id': '1e737e4f83cb4033830b58ee6a8e2eef'}}
2025-10-27 01:14:57,416 - INFO - Created VN ctest-vn-16500917
2025-10-27 01:14:57,471 - DEBUG - VN ctest-vn-16500917 UUID is 9ea75ff4-1781-4b0e-aaaf-f80080a84ab1
2025-10-27 01:14:57,627 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64932823:ctest-vn-06068817, 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-64932823:ctest-vn-16500917, 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-27 01:14:57,923 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9ae070f-4aa7-49ac-a95d-5edbeeeffcad', 'name': 'ctest-vn-06068817', 'tenant_id': '1e737e4f83cb4033830b58ee6a8e2eef', 'project_id': '1e737e4f83cb4033830b58ee6a8e2eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f98ca0c5-f5f2-4795-b7ca-d4daa4ed01e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64932823', 'ctest-vn-06068817'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64932823', 'ctest-policy-allow-all-02698213']], 'subnet_ipam': [{'subnet_cidr': '115.122.124.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 01:14:58,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ea75ff4-1781-4b0e-aaaf-f80080a84ab1', 'name': 'ctest-vn-16500917', 'tenant_id': '1e737e4f83cb4033830b58ee6a8e2eef', 'project_id': '1e737e4f83cb4033830b58ee6a8e2eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['291fc0a0-d93f-462e-ae20-b5a4c416e617'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64932823', 'ctest-vn-16500917'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64932823', 'ctest-policy-allow-all-02698213']], 'subnet_ipam': [{'subnet_cidr': '8.33.14.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 01:14:58,343 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 01:14:58,678 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 01:14:58,708 - DEBUG - Requesting: http://10.0.0.242:8082/domain/df28296d-ae0e-4579-ab56-1052ac029f48
2025-10-27 01:14:58,722 - DEBUG - Requesting: http://10.0.0.242:8082/project/1e737e4f-83cb-4033-830b-58ee6a8e2eef
2025-10-27 01:14:58,796 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e9ae070f-4aa7-49ac-a95d-5edbeeeffcad
2025-10-27 01:14:58,807 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e9ae070f-4aa7-49ac-a95d-5edbeeeffcad
2025-10-27 01:14:58,815 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/27cbb220-33de-43ca-ad9e-a869a91a7354
2025-10-27 01:14:58,822 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/27cbb220-33de-43ca-ad9e-a869a91a7354
2025-10-27 01:14:58,828 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9cb18d2c-6dda-4697-ac60-84c4392b58ba
2025-10-27 01:14:58,833 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 01:14:58,833 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e9ae070f-4aa7-49ac-a95d-5edbeeeffcad
2025-10-27 01:14:58,841 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/27cbb220-33de-43ca-ad9e-a869a91a7354
2025-10-27 01:14:58,854 - INFO - Verified VN network id 11 for VN e9ae070f-4aa7-49ac-a95d-5edbeeeffcad
2025-10-27 01:14:58,854 - INFO - Verifications in API Server for VN ctest-vn-06068817 passed
2025-10-27 01:14:58,854 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e9ae070f-4aa7-49ac-a95d-5edbeeeffcad
2025-10-27 01:14:58,863 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/27cbb220-33de-43ca-ad9e-a869a91a7354
2025-10-27 01:14:58,869 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/27cbb220-33de-43ca-ad9e-a869a91a7354
2025-10-27 01:14:58,876 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9cb18d2c-6dda-4697-ac60-84c4392b58ba
2025-10-27 01:14:58,887 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64932823:ctest-vn-06068817', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64932823', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16838403819043244460', 'uuid-lslong': '12204014863943466157'}, 'enable': 'true', 'created': '2025-10-27T01:14:56', 'last-modified': '2025-10-27T01:14:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989999'}
2025-10-27 01:14:58,893 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 01:14:58,893 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06068817 passed
2025-10-27 01:14:58,893 - DEBUG - ====Verifying policy data for ctest-vn-06068817 in API_Server ======
2025-10-27 01:14:58,893 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 01:14:58,899 - DEBUG - Requesting: http://10.0.0.242:8082/domain/df28296d-ae0e-4579-ab56-1052ac029f48
2025-10-27 01:14:58,910 - DEBUG - Requesting: http://10.0.0.242:8082/project/1e737e4f-83cb-4033-830b-58ee6a8e2eef
2025-10-27 01:14:58,984 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e9ae070f-4aa7-49ac-a95d-5edbeeeffcad
2025-10-27 01:14:58,993 - DEBUG - ==>Verifying data for policy with id: f9d08f0c-acce-423b-b43f-9d32c54d54b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-64932823', 'ctest-policy-allow-all-02698213']
2025-10-27 01:14:58,993 - INFO - VN ctest-vn-06068817 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 01:14:58,994 - DEBUG - Verifying the vn in opserver
2025-10-27 01:14:58,994 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64932823:ctest-vn-06068817 virtual network link through opserver 10.0.0.242
2025-10-27 01:14:58,994 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 01:14:59,332 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 01:14:59,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64932823:ctest-vn-06068817', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64932823:ctest-vn-06068817?flat'}
2025-10-27 01:14:59,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64932823:ctest-vn-06068817 is found in opserver
2025-10-27 01:14:59,398 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 01:14:59,402 - DEBUG - VRF ids for VN ctest-vn-06068817: {}
2025-10-27 01:14:59,402 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 01:14:59,408 - DEBUG - Requesting: http://10.0.0.242:8082/domain/df28296d-ae0e-4579-ab56-1052ac029f48
2025-10-27 01:14:59,418 - DEBUG - Requesting: http://10.0.0.242:8082/project/1e737e4f-83cb-4033-830b-58ee6a8e2eef
2025-10-27 01:14:59,490 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9ea75ff4-1781-4b0e-aaaf-f80080a84ab1
2025-10-27 01:14:59,505 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9ea75ff4-1781-4b0e-aaaf-f80080a84ab1
2025-10-27 01:14:59,516 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b0374298-d296-4526-9495-8b568eefd3db
2025-10-27 01:14:59,523 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b0374298-d296-4526-9495-8b568eefd3db
2025-10-27 01:14:59,528 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/b3bcfaaf-d209-4f58-a1e8-105bc96f5a36
2025-10-27 01:14:59,534 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 01:14:59,534 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9ea75ff4-1781-4b0e-aaaf-f80080a84ab1
2025-10-27 01:14:59,543 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b0374298-d296-4526-9495-8b568eefd3db
2025-10-27 01:14:59,555 - INFO - Verified VN network id 12 for VN 9ea75ff4-1781-4b0e-aaaf-f80080a84ab1
2025-10-27 01:14:59,555 - INFO - Verifications in API Server for VN ctest-vn-16500917 passed
2025-10-27 01:14:59,555 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9ea75ff4-1781-4b0e-aaaf-f80080a84ab1
2025-10-27 01:14:59,565 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b0374298-d296-4526-9495-8b568eefd3db
2025-10-27 01:14:59,580 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b0374298-d296-4526-9495-8b568eefd3db
2025-10-27 01:14:59,586 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/b3bcfaaf-d209-4f58-a1e8-105bc96f5a36
2025-10-27 01:14:59,597 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64932823:ctest-vn-16500917', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64932823', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11432211681074301710', 'uuid-lslong': '12299321788414315185'}, 'enable': 'true', 'created': '2025-10-27T01:14:57', 'last-modified': '2025-10-27T01:14:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.470291'}
2025-10-27 01:14:59,602 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 01:14:59,602 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16500917 passed
2025-10-27 01:14:59,602 - DEBUG - ====Verifying policy data for ctest-vn-16500917 in API_Server ======
2025-10-27 01:14:59,602 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 01:14:59,609 - DEBUG - Requesting: http://10.0.0.242:8082/domain/df28296d-ae0e-4579-ab56-1052ac029f48
2025-10-27 01:14:59,619 - DEBUG - Requesting: http://10.0.0.242:8082/project/1e737e4f-83cb-4033-830b-58ee6a8e2eef
2025-10-27 01:14:59,693 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9ea75ff4-1781-4b0e-aaaf-f80080a84ab1
2025-10-27 01:14:59,702 - DEBUG - ==>Verifying data for policy with id: f9d08f0c-acce-423b-b43f-9d32c54d54b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-64932823', 'ctest-policy-allow-all-02698213']
2025-10-27 01:14:59,702 - INFO - VN ctest-vn-16500917 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 01:14:59,702 - DEBUG - Verifying the vn in opserver
2025-10-27 01:14:59,702 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64932823:ctest-vn-16500917 virtual network link through opserver 10.0.0.242
2025-10-27 01:14:59,702 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 01:14:59,712 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64932823:ctest-vn-16500917', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64932823:ctest-vn-16500917?flat'}
2025-10-27 01:14:59,712 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64932823:ctest-vn-16500917 is found in opserver
2025-10-27 01:14:59,721 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 01:14:59,725 - DEBUG - VRF ids for VN ctest-vn-16500917: {}
2025-10-27 01:14:59,783 - DEBUG - Services list from nova: [