2025-06-19 14:26:57,192 - INFO - Domain Default found not creating
2025-06-19 14:26:57,340 - INFO - Project ctest-TestBasicPolicy-11415748 not found, creating it
2025-06-19 14:26:57,841 - INFO - Created Project:ctest-TestBasicPolicy-11415748, ID : b38415a1-2f9f-46d9-93c4-a6d55a60be5c
2025-06-19 14:26:59,455 - INFO - ================================================================================
2025-06-19 14:26:59,455 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 14:26:59,455 - 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-06-19 14:26:59,714 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-06-19 14:26:59,714 - INFO - Initial checks done. Running the testcase now
2025-06-19 14:26:59,714 - INFO -
2025-06-19 14:27:00,325 - DEBUG - Response for create_network : {'network': {'id': 'f1cc117b-f091-4447-b63a-df354b2991de', 'name': 'ctest-vn-46032278', 'tenant_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'project_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-vn-46032278'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 14:27:00,536 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0f8a172-6518-4b45-9091-17c505d44aeb', 'name': '', 'tenant_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'network_id': 'f1cc117b-f091-4447-b63a-df354b2991de', 'ip_version': 4, 'cidr': '112.230.208.64/26', 'allocation_pools': [{'start': '112.230.208.66', 'end': '112.230.208.126'}], 'gateway_ip': '112.230.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.230.208.66', 'tags': [], 'project_id': 'b38415a12f9f46d993c4a6d55a60be5c'}}
2025-06-19 14:27:00,554 - INFO - Created VN ctest-vn-46032278
2025-06-19 14:27:00,607 - DEBUG - VN ctest-vn-46032278 UUID is f1cc117b-f091-4447-b63a-df354b2991de
2025-06-19 14:27:00,916 - DEBUG - Response for create_network : {'network': {'id': 'e6a7fc7d-e752-4738-b094-5bf31e30ed1f', 'name': 'ctest-vn-22264605', 'tenant_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'project_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-vn-22264605'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 14:27:01,095 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f036fb64-8dee-49eb-9797-2aa6d9c57507', 'name': '', 'tenant_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'network_id': 'e6a7fc7d-e752-4738-b094-5bf31e30ed1f', 'ip_version': 4, 'cidr': '185.147.167.64/26', 'allocation_pools': [{'start': '185.147.167.66', 'end': '185.147.167.126'}], 'gateway_ip': '185.147.167.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.147.167.66', 'tags': [], 'project_id': 'b38415a12f9f46d993c4a6d55a60be5c'}}
2025-06-19 14:27:01,128 - INFO - Created VN ctest-vn-22264605
2025-06-19 14:27:01,187 - DEBUG - VN ctest-vn-22264605 UUID is e6a7fc7d-e752-4738-b094-5bf31e30ed1f
2025-06-19 14:27:01,309 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278, 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-11415748:ctest-vn-22264605, 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-06-19 14:27:01,648 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1cc117b-f091-4447-b63a-df354b2991de', 'name': 'ctest-vn-46032278', 'tenant_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'project_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0f8a172-6518-4b45-9091-17c505d44aeb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-vn-46032278'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-policy-allow-all-87952240']], 'subnet_ipam': [{'subnet_cidr': '112.230.208.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 14:27:01,888 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6a7fc7d-e752-4738-b094-5bf31e30ed1f', 'name': 'ctest-vn-22264605', 'tenant_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'project_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f036fb64-8dee-49eb-9797-2aa6d9c57507'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-vn-22264605'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-policy-allow-all-87952240']], 'subnet_ipam': [{'subnet_cidr': '185.147.167.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 14:27:02,076 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-19 14:27:02,429 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-19 14:27:02,461 - DEBUG - Requesting: http://10.0.0.49:8082/domain/21d5f9b4-03ab-4796-8452-e8a00c75fdc4
2025-06-19 14:27:02,476 - DEBUG - Requesting: http://10.0.0.49:8082/project/b38415a1-2f9f-46d9-93c4-a6d55a60be5c
2025-06-19 14:27:02,556 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f1cc117b-f091-4447-b63a-df354b2991de
2025-06-19 14:27:02,569 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f1cc117b-f091-4447-b63a-df354b2991de
2025-06-19 14:27:02,580 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/91dee4a5-08e0-47a8-8359-4c6d08abfde0
2025-06-19 14:27:02,589 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/91dee4a5-08e0-47a8-8359-4c6d08abfde0
2025-06-19 14:27:02,597 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1f2a2dfd-3037-495a-a37a-f480d2802127
2025-06-19 14:27:02,604 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 14:27:02,604 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f1cc117b-f091-4447-b63a-df354b2991de
2025-06-19 14:27:02,614 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/91dee4a5-08e0-47a8-8359-4c6d08abfde0
2025-06-19 14:27:02,631 - INFO - Verified VN network id 8 for VN f1cc117b-f091-4447-b63a-df354b2991de
2025-06-19 14:27:02,631 - INFO - Verifications in API Server for VN ctest-vn-46032278 passed
2025-06-19 14:27:02,631 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f1cc117b-f091-4447-b63a-df354b2991de
2025-06-19 14:27:02,642 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/91dee4a5-08e0-47a8-8359-4c6d08abfde0
2025-06-19 14:27:02,650 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/91dee4a5-08e0-47a8-8359-4c6d08abfde0
2025-06-19 14:27:02,658 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1f2a2dfd-3037-495a-a37a-f480d2802127
2025-06-19 14:27:02,672 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11415748', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17423320282404308039', 'uuid-lslong': '13131053083539378654'}, 'enable': 'true', 'created': '2025-06-19T14:27:00', 'last-modified': '2025-06-19T14:27:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.056675'}
2025-06-19 14:27:02,679 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 14:27:02,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46032278 passed
2025-06-19 14:27:02,680 - DEBUG - ====Verifying policy data for ctest-vn-46032278 in API_Server ======
2025-06-19 14:27:02,680 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-19 14:27:02,686 - DEBUG - Requesting: http://10.0.0.49:8082/domain/21d5f9b4-03ab-4796-8452-e8a00c75fdc4
2025-06-19 14:27:02,700 - DEBUG - Requesting: http://10.0.0.49:8082/project/b38415a1-2f9f-46d9-93c4-a6d55a60be5c
2025-06-19 14:27:02,772 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f1cc117b-f091-4447-b63a-df354b2991de
2025-06-19 14:27:02,783 - DEBUG - ==>Verifying data for policy with id: 47e1616b-7d38-42d5-b9da-2acb2b88889b, fqn: ['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-policy-allow-all-87952240']
2025-06-19 14:27:02,783 - INFO - VN ctest-vn-46032278 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 14:27:02,783 - DEBUG - Verifying the vn in opserver
2025-06-19 14:27:02,783 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278 virtual network link through opserver 10.0.0.49
2025-06-19 14:27:02,783 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-19 14:27:03,119 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-19 14:27:03,180 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278?flat'}
2025-06-19 14:27:03,180 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278 is found in opserver
2025-06-19 14:27:03,194 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 14:27:03,200 - DEBUG - VRF ids for VN ctest-vn-46032278: {}
2025-06-19 14:27:03,200 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-19 14:27:03,208 - DEBUG - Requesting: http://10.0.0.49:8082/domain/21d5f9b4-03ab-4796-8452-e8a00c75fdc4
2025-06-19 14:27:03,225 - DEBUG - Requesting: http://10.0.0.49:8082/project/b38415a1-2f9f-46d9-93c4-a6d55a60be5c
2025-06-19 14:27:03,311 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e6a7fc7d-e752-4738-b094-5bf31e30ed1f
2025-06-19 14:27:03,328 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e6a7fc7d-e752-4738-b094-5bf31e30ed1f
2025-06-19 14:27:03,340 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/14d9bab0-287a-4cc7-883d-82a00788f6b8
2025-06-19 14:27:03,349 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/14d9bab0-287a-4cc7-883d-82a00788f6b8
2025-06-19 14:27:03,358 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/ad799245-d8f6-4616-8a1d-44bc0c029c08
2025-06-19 14:27:03,366 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 14:27:03,367 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e6a7fc7d-e752-4738-b094-5bf31e30ed1f
2025-06-19 14:27:03,378 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/14d9bab0-287a-4cc7-883d-82a00788f6b8
2025-06-19 14:27:03,393 - INFO - Verified VN network id 9 for VN e6a7fc7d-e752-4738-b094-5bf31e30ed1f
2025-06-19 14:27:03,393 - INFO - Verifications in API Server for VN ctest-vn-22264605 passed
2025-06-19 14:27:03,393 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e6a7fc7d-e752-4738-b094-5bf31e30ed1f
2025-06-19 14:27:03,406 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/14d9bab0-287a-4cc7-883d-82a00788f6b8
2025-06-19 14:27:03,418 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/14d9bab0-287a-4cc7-883d-82a00788f6b8
2025-06-19 14:27:03,428 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/ad799245-d8f6-4616-8a1d-44bc0c029c08
2025-06-19 14:27:03,446 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-22264605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11415748', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16620530567516145464', 'uuid-lslong': '12723895946970197279'}, 'enable': 'true', 'created': '2025-06-19T14:27:00', 'last-modified': '2025-06-19T14:27:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.590513'}
2025-06-19 14:27:03,454 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 14:27:03,454 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22264605 passed
2025-06-19 14:27:03,455 - DEBUG - ====Verifying policy data for ctest-vn-22264605 in API_Server ======
2025-06-19 14:27:03,455 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-19 14:27:03,463 - DEBUG - Requesting: http://10.0.0.49:8082/domain/21d5f9b4-03ab-4796-8452-e8a00c75fdc4
2025-06-19 14:27:03,480 - DEBUG - Requesting: http://10.0.0.49:8082/project/b38415a1-2f9f-46d9-93c4-a6d55a60be5c
2025-06-19 14:27:03,561 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e6a7fc7d-e752-4738-b094-5bf31e30ed1f
2025-06-19 14:27:03,574 - DEBUG - ==>Verifying data for policy with id: 47e1616b-7d38-42d5-b9da-2acb2b88889b, fqn: ['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-policy-allow-all-87952240']
2025-06-19 14:27:03,574 - INFO - VN ctest-vn-22264605 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 14:27:03,574 - DEBUG - Verifying the vn in opserver
2025-06-19 14:27:03,574 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-22264605 virtual network link through opserver 10.0.0.49
2025-06-19 14:27:03,574 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-19 14:27:03,586 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-22264605', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-22264605?flat'}
2025-06-19 14:27:03,586 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-22264605 is found in opserver
2025-06-19 14:27:03,597 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 14:27:03,603 - DEBUG - VRF ids for VN ctest-vn-22264605: {}
2025-06-19 14:27:03,668 - DEBUG - Services list from nova: [