2025-04-09 16:55:22,455 - INFO - Domain Default found not creating
2025-04-09 16:55:22,702 - INFO - Project ctest-TestBasicPolicy-91602549 not found, creating it
2025-04-09 16:55:23,340 - INFO - Created Project:ctest-TestBasicPolicy-91602549, ID : b9e85ea9-94e8-4de6-b6e7-ac745a88776b
2025-04-09 16:55:25,495 - INFO - ================================================================================
2025-04-09 16:55:25,496 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 16:55:25,497 - 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-04-09 16:55:25,821 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-09 16:55:25,822 - INFO - Initial checks done. Running the testcase now
2025-04-09 16:55:25,822 - INFO -
2025-04-09 16:55:26,650 - DEBUG - Response for create_network : {'network': {'id': '7edc4991-449f-44e5-a22f-a3a06557257b', 'name': 'ctest-vn-24566190', 'tenant_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'project_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-vn-24566190'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 16:55:26,962 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b6fb413-62df-47ac-a511-4e143f4db339', 'name': '', 'tenant_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'network_id': '7edc4991-449f-44e5-a22f-a3a06557257b', 'ip_version': 4, 'cidr': '186.237.158.0/26', 'allocation_pools': [{'start': '186.237.158.2', 'end': '186.237.158.62'}], 'gateway_ip': '186.237.158.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.237.158.2', 'tags': [], 'project_id': 'b9e85ea994e84de6b6e7ac745a88776b'}}
2025-04-09 16:55:26,995 - INFO - Created VN ctest-vn-24566190
2025-04-09 16:55:27,049 - DEBUG - VN ctest-vn-24566190 UUID is 7edc4991-449f-44e5-a22f-a3a06557257b
2025-04-09 16:55:27,508 - DEBUG - Response for create_network : {'network': {'id': '32240925-6f1c-482c-b839-98c99ac68fee', 'name': 'ctest-vn-36140146', 'tenant_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'project_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-vn-36140146'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 16:55:27,745 - DEBUG - Response for create_subnet : {'subnet': {'id': '67b453c3-9503-4fa6-8393-903b5593994c', 'name': '', 'tenant_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'network_id': '32240925-6f1c-482c-b839-98c99ac68fee', 'ip_version': 4, 'cidr': '82.31.179.0/26', 'allocation_pools': [{'start': '82.31.179.2', 'end': '82.31.179.62'}], 'gateway_ip': '82.31.179.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.31.179.2', 'tags': [], 'project_id': 'b9e85ea994e84de6b6e7ac745a88776b'}}
2025-04-09 16:55:27,767 - INFO - Created VN ctest-vn-36140146
2025-04-09 16:55:27,824 - DEBUG - VN ctest-vn-36140146 UUID is 32240925-6f1c-482c-b839-98c99ac68fee
2025-04-09 16:55:28,031 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190, 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-91602549:ctest-vn-36140146, 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-04-09 16:55:28,500 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7edc4991-449f-44e5-a22f-a3a06557257b', 'name': 'ctest-vn-24566190', 'tenant_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'project_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b6fb413-62df-47ac-a511-4e143f4db339'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-vn-24566190'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-policy-allow-all-19218703']], 'subnet_ipam': [{'subnet_cidr': '186.237.158.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 16:55:28,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32240925-6f1c-482c-b839-98c99ac68fee', 'name': 'ctest-vn-36140146', 'tenant_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'project_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['67b453c3-9503-4fa6-8393-903b5593994c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-vn-36140146'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-policy-allow-all-19218703']], 'subnet_ipam': [{'subnet_cidr': '82.31.179.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 16:55:29,049 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-09 16:55:29,414 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-09 16:55:29,458 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95f60655-3a70-4c88-b7be-750614e898bf
2025-04-09 16:55:29,482 - DEBUG - Requesting: http://10.0.0.254:8082/project/b9e85ea9-94e8-4de6-b6e7-ac745a88776b
2025-04-09 16:55:29,615 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7edc4991-449f-44e5-a22f-a3a06557257b
2025-04-09 16:55:29,653 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7edc4991-449f-44e5-a22f-a3a06557257b
2025-04-09 16:55:29,680 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6ed452e5-597f-4427-a394-ac7f6f14b2d1
2025-04-09 16:55:29,697 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6ed452e5-597f-4427-a394-ac7f6f14b2d1
2025-04-09 16:55:29,711 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/046b8fb3-1eab-4ffa-aeed-8544e1be5ca3
2025-04-09 16:55:29,725 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 16:55:29,725 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7edc4991-449f-44e5-a22f-a3a06557257b
2025-04-09 16:55:29,747 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6ed452e5-597f-4427-a394-ac7f6f14b2d1
2025-04-09 16:55:29,777 - INFO - Verified VN network id 8 for VN 7edc4991-449f-44e5-a22f-a3a06557257b
2025-04-09 16:55:29,777 - INFO - Verifications in API Server for VN ctest-vn-24566190 passed
2025-04-09 16:55:29,777 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7edc4991-449f-44e5-a22f-a3a06557257b
2025-04-09 16:55:29,797 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6ed452e5-597f-4427-a394-ac7f6f14b2d1
2025-04-09 16:55:29,813 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6ed452e5-597f-4427-a394-ac7f6f14b2d1
2025-04-09 16:55:29,828 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/046b8fb3-1eab-4ffa-aeed-8544e1be5ca3
2025-04-09 16:55:29,854 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91602549', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9141262231925638373', 'uuid-lslong': '11686739467340031355'}, 'enable': 'true', 'created': '2025-04-09T16:55:26', 'last-modified': '2025-04-09T16:55:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.395239'}
2025-04-09 16:55:29,868 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 16:55:29,868 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24566190 passed
2025-04-09 16:55:29,869 - DEBUG - ====Verifying policy data for ctest-vn-24566190 in API_Server ======
2025-04-09 16:55:29,869 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-09 16:55:29,881 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95f60655-3a70-4c88-b7be-750614e898bf
2025-04-09 16:55:29,909 - DEBUG - Requesting: http://10.0.0.254:8082/project/b9e85ea9-94e8-4de6-b6e7-ac745a88776b
2025-04-09 16:55:30,032 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7edc4991-449f-44e5-a22f-a3a06557257b
2025-04-09 16:55:30,067 - DEBUG - ==>Verifying data for policy with id: 15fb073a-9516-42e5-860b-1bc33ed096f2, fqn: ['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-policy-allow-all-19218703']
2025-04-09 16:55:30,067 - INFO - VN ctest-vn-24566190 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 16:55:30,067 - DEBUG - Verifying the vn in opserver
2025-04-09 16:55:30,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190 virtual network link through opserver 10.0.0.254
2025-04-09 16:55:30,068 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-09 16:55:30,426 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-09 16:55:30,532 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190?flat'}
2025-04-09 16:55:30,532 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190 is found in opserver
2025-04-09 16:55:30,550 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 16:55:30,558 - DEBUG - VRF ids for VN ctest-vn-24566190: {}
2025-04-09 16:55:30,558 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-09 16:55:30,566 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95f60655-3a70-4c88-b7be-750614e898bf
2025-04-09 16:55:30,582 - DEBUG - Requesting: http://10.0.0.254:8082/project/b9e85ea9-94e8-4de6-b6e7-ac745a88776b
2025-04-09 16:55:30,688 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/32240925-6f1c-482c-b839-98c99ac68fee
2025-04-09 16:55:30,710 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/32240925-6f1c-482c-b839-98c99ac68fee
2025-04-09 16:55:30,730 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/634445e3-c35d-4f18-b4bf-d1da2b8105a3
2025-04-09 16:55:30,745 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/634445e3-c35d-4f18-b4bf-d1da2b8105a3
2025-04-09 16:55:30,759 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bf938f1f-a593-41ec-adb1-645cea38c25a
2025-04-09 16:55:30,771 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 16:55:30,771 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/32240925-6f1c-482c-b839-98c99ac68fee
2025-04-09 16:55:30,786 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/634445e3-c35d-4f18-b4bf-d1da2b8105a3
2025-04-09 16:55:30,810 - INFO - Verified VN network id 9 for VN 32240925-6f1c-482c-b839-98c99ac68fee
2025-04-09 16:55:30,810 - INFO - Verifications in API Server for VN ctest-vn-36140146 passed
2025-04-09 16:55:30,810 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/32240925-6f1c-482c-b839-98c99ac68fee
2025-04-09 16:55:30,829 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/634445e3-c35d-4f18-b4bf-d1da2b8105a3
2025-04-09 16:55:30,843 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/634445e3-c35d-4f18-b4bf-d1da2b8105a3
2025-04-09 16:55:30,856 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bf938f1f-a593-41ec-adb1-645cea38c25a
2025-04-09 16:55:30,879 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-36140146', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91602549', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3613022857440544812', 'uuid-lslong': '13274809368303800302'}, 'enable': 'true', 'created': '2025-04-09T16:55:27', 'last-modified': '2025-04-09T16:55:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.050233'}
2025-04-09 16:55:30,890 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 16:55:30,890 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36140146 passed
2025-04-09 16:55:30,891 - DEBUG - ====Verifying policy data for ctest-vn-36140146 in API_Server ======
2025-04-09 16:55:30,891 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-09 16:55:30,900 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95f60655-3a70-4c88-b7be-750614e898bf
2025-04-09 16:55:30,916 - DEBUG - Requesting: http://10.0.0.254:8082/project/b9e85ea9-94e8-4de6-b6e7-ac745a88776b
2025-04-09 16:55:31,023 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/32240925-6f1c-482c-b839-98c99ac68fee
2025-04-09 16:55:31,041 - DEBUG - ==>Verifying data for policy with id: 15fb073a-9516-42e5-860b-1bc33ed096f2, fqn: ['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-policy-allow-all-19218703']
2025-04-09 16:55:31,041 - INFO - VN ctest-vn-36140146 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 16:55:31,041 - DEBUG - Verifying the vn in opserver
2025-04-09 16:55:31,041 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-36140146 virtual network link through opserver 10.0.0.254
2025-04-09 16:55:31,041 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-09 16:55:31,056 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-36140146', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-36140146?flat'}
2025-04-09 16:55:31,056 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-36140146 is found in opserver
2025-04-09 16:55:31,068 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 16:55:31,074 - DEBUG - VRF ids for VN ctest-vn-36140146: {}
2025-04-09 16:55:31,142 - DEBUG - Services list from nova: [