2025-11-10 01:42:06,173 - INFO - Reading existing Domain with UUID ac1d6412-51c4-40dc-abeb-d81d08131878
2025-11-10 01:42:06,184 - INFO - Using existing domain ['admin_domain'](ac1d6412-51c4-40dc-abeb-d81d08131878)
2025-11-10 01:42:06,365 - INFO - Project ctest-TestBasicPolicy-02621690 not found, creating it
2025-11-10 01:42:06,852 - INFO - Created Project:ctest-TestBasicPolicy-02621690, ID : 2c0e9747-88c0-444f-8001-32f3ed2e8b3b
2025-11-10 01:42:08,447 - INFO - ================================================================================
2025-11-10 01:42:08,447 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-10 01:42:08,447 - 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-11-10 01:42:08,826 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with
2025-11-10 01:42:08,826 - INFO - Initial checks done. Running the testcase now
2025-11-10 01:42:08,826 - INFO -
2025-11-10 01:42:09,564 - DEBUG - Response for create_network : {'network': {'id': '6c5e7406-6dc5-477f-b2f9-9ba64987db45', 'name': 'ctest-vn-73871752', 'tenant_id': '2c0e974788c0444f800132f3ed2e8b3b', 'project_id': '2c0e974788c0444f800132f3ed2e8b3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-vn-73871752'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-11-10 01:42:09,833 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d9da15e-6e7b-42c4-84a0-9e19d638f099', 'name': '', 'tenant_id': '2c0e974788c0444f800132f3ed2e8b3b', 'network_id': '6c5e7406-6dc5-477f-b2f9-9ba64987db45', 'ip_version': 4, 'cidr': '105.134.17.128/26', 'allocation_pools': [{'start': '105.134.17.130', 'end': '105.134.17.190'}], 'gateway_ip': '105.134.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-11-10T01:42:09.731313', 'updated_at': '2025-11-10T01:42:09.731313', 'dns_server_address': '105.134.17.130', 'tags': [], 'project_id': '2c0e974788c0444f800132f3ed2e8b3b'}}
2025-11-10 01:42:09,895 - INFO - Created VN ctest-vn-73871752
2025-11-10 01:42:09,949 - DEBUG - VN ctest-vn-73871752 UUID is 6c5e7406-6dc5-477f-b2f9-9ba64987db45
2025-11-10 01:42:10,405 - DEBUG - Response for create_network : {'network': {'id': 'a61b295d-29ca-429c-af75-5d8608d7c084', 'name': 'ctest-vn-88015081', 'tenant_id': '2c0e974788c0444f800132f3ed2e8b3b', 'project_id': '2c0e974788c0444f800132f3ed2e8b3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-vn-88015081'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-11-10 01:42:10,617 - DEBUG - Response for create_subnet : {'subnet': {'id': '251965db-9794-4735-88ea-80ad8aa4bae4', 'name': '', 'tenant_id': '2c0e974788c0444f800132f3ed2e8b3b', 'network_id': 'a61b295d-29ca-429c-af75-5d8608d7c084', 'ip_version': 4, 'cidr': '78.50.88.64/26', 'allocation_pools': [{'start': '78.50.88.66', 'end': '78.50.88.126'}], 'gateway_ip': '78.50.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-11-10T01:42:10.526958', 'updated_at': '2025-11-10T01:42:10.526958', 'dns_server_address': '78.50.88.66', 'tags': [], 'project_id': '2c0e974788c0444f800132f3ed2e8b3b'}}
2025-11-10 01:42:10,679 - INFO - Created VN ctest-vn-88015081
2025-11-10 01:42:10,733 - DEBUG - VN ctest-vn-88015081 UUID is a61b295d-29ca-429c-af75-5d8608d7c084
2025-11-10 01:42:10,928 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-88015081, 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-11-10 01:42:11,309 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c5e7406-6dc5-477f-b2f9-9ba64987db45', 'name': 'ctest-vn-73871752', 'tenant_id': '2c0e974788c0444f800132f3ed2e8b3b', 'project_id': '2c0e974788c0444f800132f3ed2e8b3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7d9da15e-6e7b-42c4-84a0-9e19d638f099'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-vn-73871752'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-policy-allow-all-24104260']], 'subnet_ipam': [{'subnet_cidr': '105.134.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-11-10T01:42:09.483626', 'updated_at': '2025-11-10T01:42:09.742725'}}
2025-11-10 01:42:11,636 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a61b295d-29ca-429c-af75-5d8608d7c084', 'name': 'ctest-vn-88015081', 'tenant_id': '2c0e974788c0444f800132f3ed2e8b3b', 'project_id': '2c0e974788c0444f800132f3ed2e8b3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['251965db-9794-4735-88ea-80ad8aa4bae4'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-vn-88015081'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-policy-allow-all-24104260']], 'subnet_ipam': [{'subnet_cidr': '78.50.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-11-10T01:42:10.330346', 'updated_at': '2025-11-10T01:42:10.537657'}}
2025-11-10 01:42:11,813 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-11-10 01:42:12,148 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-11-10 01:42:12,226 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878
2025-11-10 01:42:12,282 - DEBUG - Requesting: https://10.0.0.129:8082/project/2c0e9747-88c0-444f-8001-32f3ed2e8b3b
2025-11-10 01:42:12,366 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/6c5e7406-6dc5-477f-b2f9-9ba64987db45
2025-11-10 01:42:12,423 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/6c5e7406-6dc5-477f-b2f9-9ba64987db45
2025-11-10 01:42:12,480 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/731269a1-3957-418c-9734-a39da24b8175
2025-11-10 01:42:12,534 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/731269a1-3957-418c-9734-a39da24b8175
2025-11-10 01:42:12,590 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/4b0372f4-3b75-4139-a5e8-aa98d1dd3bbd
2025-11-10 01:42:12,642 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 01:42:12,642 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/6c5e7406-6dc5-477f-b2f9-9ba64987db45
2025-11-10 01:42:12,700 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/731269a1-3957-418c-9734-a39da24b8175
2025-11-10 01:42:12,762 - INFO - Verified VN network id 11 for VN 6c5e7406-6dc5-477f-b2f9-9ba64987db45
2025-11-10 01:42:12,763 - INFO - Verifications in API Server for VN ctest-vn-73871752 passed
2025-11-10 01:42:12,763 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/6c5e7406-6dc5-477f-b2f9-9ba64987db45
2025-11-10 01:42:12,824 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/731269a1-3957-418c-9734-a39da24b8175
2025-11-10 01:42:12,879 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/731269a1-3957-418c-9734-a39da24b8175
2025-11-10 01:42:12,930 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/4b0372f4-3b75-4139-a5e8-aa98d1dd3bbd
2025-11-10 01:42:13,030 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02621690', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7808806374867289983', 'uuid-lslong': '12896510146452642629'}, 'enable': 'true', 'created': '2025-11-10T01:42:09', 'last-modified': '2025-11-10T01:42:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.750449'}
2025-11-10 01:42:13,079 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 01:42:13,079 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73871752 passed
2025-11-10 01:42:13,079 - DEBUG - ====Verifying policy data for ctest-vn-73871752 in API_Server ======
2025-11-10 01:42:13,079 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-11-10 01:42:13,133 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878
2025-11-10 01:42:13,190 - DEBUG - Requesting: https://10.0.0.129:8082/project/2c0e9747-88c0-444f-8001-32f3ed2e8b3b
2025-11-10 01:42:13,262 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/6c5e7406-6dc5-477f-b2f9-9ba64987db45
2025-11-10 01:42:13,315 - DEBUG - ==>Verifying data for policy with id: 63958d60-c7eb-44f2-b582-dadc6213a5b1, fqn: ['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-policy-allow-all-24104260']
2025-11-10 01:42:13,315 - INFO - VN ctest-vn-73871752 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 01:42:13,315 - DEBUG - Verifying the vn in opserver
2025-11-10 01:42:13,315 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752 virtual network link through opserver 10.0.0.129
2025-11-10 01:42:13,315 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks
2025-11-10 01:42:13,654 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks
2025-11-10 01:42:13,757 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752?flat'}
2025-11-10 01:42:13,757 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-73871752 is found in opserver
2025-11-10 01:42:13,853 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 01:42:13,901 - DEBUG - VRF ids for VN ctest-vn-73871752: {}
2025-11-10 01:42:13,901 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-11-10 01:42:13,954 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878
2025-11-10 01:42:14,010 - DEBUG - Requesting: https://10.0.0.129:8082/project/2c0e9747-88c0-444f-8001-32f3ed2e8b3b
2025-11-10 01:42:14,086 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a61b295d-29ca-429c-af75-5d8608d7c084
2025-11-10 01:42:14,143 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a61b295d-29ca-429c-af75-5d8608d7c084
2025-11-10 01:42:14,194 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/2116afc7-de65-4377-b610-e0179748b70f
2025-11-10 01:42:14,250 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/2116afc7-de65-4377-b610-e0179748b70f
2025-11-10 01:42:14,302 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/9b1d30f6-5dd4-4632-b00b-189d600978b7
2025-11-10 01:42:14,358 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 01:42:14,358 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a61b295d-29ca-429c-af75-5d8608d7c084
2025-11-10 01:42:14,410 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/2116afc7-de65-4377-b610-e0179748b70f
2025-11-10 01:42:14,473 - INFO - Verified VN network id 12 for VN a61b295d-29ca-429c-af75-5d8608d7c084
2025-11-10 01:42:14,473 - INFO - Verifications in API Server for VN ctest-vn-88015081 passed
2025-11-10 01:42:14,473 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a61b295d-29ca-429c-af75-5d8608d7c084
2025-11-10 01:42:14,526 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/2116afc7-de65-4377-b610-e0179748b70f
2025-11-10 01:42:14,578 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/2116afc7-de65-4377-b610-e0179748b70f
2025-11-10 01:42:14,634 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/9b1d30f6-5dd4-4632-b00b-189d600978b7
2025-11-10 01:42:14,734 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-88015081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02621690', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11969205914777043612', 'uuid-lslong': '12643114359167893636'}, 'enable': 'true', 'created': '2025-11-10T01:42:10', 'last-modified': '2025-11-10T01:42:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.116898'}
2025-11-10 01:42:14,791 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 01:42:14,791 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88015081 passed
2025-11-10 01:42:14,791 - DEBUG - ====Verifying policy data for ctest-vn-88015081 in API_Server ======
2025-11-10 01:42:14,791 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-11-10 01:42:14,841 - DEBUG - Requesting: https://10.0.0.129:8082/domain/ac1d6412-51c4-40dc-abeb-d81d08131878
2025-11-10 01:42:14,898 - DEBUG - Requesting: https://10.0.0.129:8082/project/2c0e9747-88c0-444f-8001-32f3ed2e8b3b
2025-11-10 01:42:14,971 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a61b295d-29ca-429c-af75-5d8608d7c084
2025-11-10 01:42:15,043 - DEBUG - ==>Verifying data for policy with id: 63958d60-c7eb-44f2-b582-dadc6213a5b1, fqn: ['admin_domain', 'ctest-TestBasicPolicy-02621690', 'ctest-policy-allow-all-24104260']
2025-11-10 01:42:15,043 - INFO - VN ctest-vn-88015081 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 01:42:15,043 - DEBUG - Verifying the vn in opserver
2025-11-10 01:42:15,043 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-88015081 virtual network link through opserver 10.0.0.129
2025-11-10 01:42:15,043 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks
2025-11-10 01:42:15,098 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-88015081', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-88015081?flat'}
2025-11-10 01:42:15,098 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-02621690:ctest-vn-88015081 is found in opserver
2025-11-10 01:42:15,193 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 01:42:15,250 - DEBUG - VRF ids for VN ctest-vn-88015081: {}
2025-11-10 01:42:15,318 - DEBUG - Services list from nova: [