2025-07-17 02:25:39,797 - INFO - Domain Default found not creating
2025-07-17 02:25:39,931 - INFO - Project ctest-TestBasicPolicy-25572234 not found, creating it
2025-07-17 02:25:40,391 - INFO - Created Project:ctest-TestBasicPolicy-25572234, ID : ec6750c4-4607-4370-b49d-a4b0fc6d9536
2025-07-17 02:25:41,798 - INFO - ================================================================================
2025-07-17 02:25:41,798 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-17 02:25:41,798 - 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-07-17 02:25:42,065 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.252': '0'}} with
2025-07-17 02:25:42,065 - INFO - Initial checks done. Running the testcase now
2025-07-17 02:25:42,065 - INFO -
2025-07-17 02:25:42,631 - DEBUG - Response for create_network : {'network': {'id': '1946e655-c705-4c24-a30a-83bdb7608777', 'name': 'ctest-vn-74674496', 'tenant_id': 'ec6750c446074370b49da4b0fc6d9536', 'project_id': 'ec6750c446074370b49da4b0fc6d9536', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25572234', 'ctest-vn-74674496'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 02:25:42,806 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1936319-e6d6-463a-8bcb-8692fd5779bc', 'name': '', 'tenant_id': 'ec6750c446074370b49da4b0fc6d9536', 'network_id': '1946e655-c705-4c24-a30a-83bdb7608777', 'ip_version': 4, 'cidr': '178.148.127.0/26', 'allocation_pools': [{'start': '178.148.127.2', 'end': '178.148.127.62'}], 'gateway_ip': '178.148.127.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.148.127.2', 'tags': [], 'project_id': 'ec6750c446074370b49da4b0fc6d9536'}}
2025-07-17 02:25:42,822 - INFO - Created VN ctest-vn-74674496
2025-07-17 02:25:42,877 - DEBUG - VN ctest-vn-74674496 UUID is 1946e655-c705-4c24-a30a-83bdb7608777
2025-07-17 02:25:43,219 - DEBUG - Response for create_network : {'network': {'id': 'eb5d36ae-95cf-441b-a306-dbe5894134be', 'name': 'ctest-vn-70703494', 'tenant_id': 'ec6750c446074370b49da4b0fc6d9536', 'project_id': 'ec6750c446074370b49da4b0fc6d9536', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25572234', 'ctest-vn-70703494'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 02:25:43,424 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f1a6437-808d-4a1f-97bd-77d666ee4288', 'name': '', 'tenant_id': 'ec6750c446074370b49da4b0fc6d9536', 'network_id': 'eb5d36ae-95cf-441b-a306-dbe5894134be', 'ip_version': 4, 'cidr': '47.237.242.192/26', 'allocation_pools': [{'start': '47.237.242.194', 'end': '47.237.242.254'}], 'gateway_ip': '47.237.242.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.237.242.194', 'tags': [], 'project_id': 'ec6750c446074370b49da4b0fc6d9536'}}
2025-07-17 02:25:43,442 - INFO - Created VN ctest-vn-70703494
2025-07-17 02:25:43,497 - DEBUG - VN ctest-vn-70703494 UUID is eb5d36ae-95cf-441b-a306-dbe5894134be
2025-07-17 02:25:43,645 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25572234:ctest-vn-74674496, 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-25572234:ctest-vn-70703494, 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-07-17 02:25:43,937 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1946e655-c705-4c24-a30a-83bdb7608777', 'name': 'ctest-vn-74674496', 'tenant_id': 'ec6750c446074370b49da4b0fc6d9536', 'project_id': 'ec6750c446074370b49da4b0fc6d9536', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1936319-e6d6-463a-8bcb-8692fd5779bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25572234', 'ctest-vn-74674496'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25572234', 'ctest-policy-allow-all-61645348']], 'subnet_ipam': [{'subnet_cidr': '178.148.127.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 02:25:44,244 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb5d36ae-95cf-441b-a306-dbe5894134be', 'name': 'ctest-vn-70703494', 'tenant_id': 'ec6750c446074370b49da4b0fc6d9536', 'project_id': 'ec6750c446074370b49da4b0fc6d9536', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f1a6437-808d-4a1f-97bd-77d666ee4288'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25572234', 'ctest-vn-70703494'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25572234', 'ctest-policy-allow-all-61645348']], 'subnet_ipam': [{'subnet_cidr': '47.237.242.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 02:25:44,385 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-17 02:25:44,680 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-17 02:25:44,706 - DEBUG - Requesting: http://10.0.0.49:8082/domain/2bbb6929-245b-47e4-9692-cd689f3f5260
2025-07-17 02:25:44,718 - DEBUG - Requesting: http://10.0.0.49:8082/project/ec6750c4-4607-4370-b49d-a4b0fc6d9536
2025-07-17 02:25:44,787 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/1946e655-c705-4c24-a30a-83bdb7608777
2025-07-17 02:25:44,798 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/1946e655-c705-4c24-a30a-83bdb7608777
2025-07-17 02:25:44,807 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f914d4bc-c86b-4161-ab2f-0910ec68d278
2025-07-17 02:25:44,814 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f914d4bc-c86b-4161-ab2f-0910ec68d278
2025-07-17 02:25:44,820 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/00bb37e2-6104-4441-b7d3-aa4646b286c9
2025-07-17 02:25:44,825 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 02:25:44,826 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/1946e655-c705-4c24-a30a-83bdb7608777
2025-07-17 02:25:44,834 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f914d4bc-c86b-4161-ab2f-0910ec68d278
2025-07-17 02:25:44,847 - INFO - Verified VN network id 8 for VN 1946e655-c705-4c24-a30a-83bdb7608777
2025-07-17 02:25:44,847 - INFO - Verifications in API Server for VN ctest-vn-74674496 passed
2025-07-17 02:25:44,847 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/1946e655-c705-4c24-a30a-83bdb7608777
2025-07-17 02:25:44,856 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f914d4bc-c86b-4161-ab2f-0910ec68d278
2025-07-17 02:25:44,862 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f914d4bc-c86b-4161-ab2f-0910ec68d278
2025-07-17 02:25:44,869 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/00bb37e2-6104-4441-b7d3-aa4646b286c9
2025-07-17 02:25:44,881 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25572234:ctest-vn-74674496', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25572234', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1821396355403566116', 'uuid-lslong': '11748347428797974391'}, 'enable': 'true', 'created': '2025-07-17T02:25:42', 'last-modified': '2025-07-17T02:25:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962760'}
2025-07-17 02:25:44,887 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 02:25:44,888 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74674496 passed
2025-07-17 02:25:44,888 - DEBUG - ====Verifying policy data for ctest-vn-74674496 in API_Server ======
2025-07-17 02:25:44,888 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-17 02:25:44,894 - DEBUG - Requesting: http://10.0.0.49:8082/domain/2bbb6929-245b-47e4-9692-cd689f3f5260
2025-07-17 02:25:44,905 - DEBUG - Requesting: http://10.0.0.49:8082/project/ec6750c4-4607-4370-b49d-a4b0fc6d9536
2025-07-17 02:25:44,980 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/1946e655-c705-4c24-a30a-83bdb7608777
2025-07-17 02:25:44,990 - DEBUG - ==>Verifying data for policy with id: 98dd8232-d13c-49c7-8c94-84c478595726, fqn: ['default-domain', 'ctest-TestBasicPolicy-25572234', 'ctest-policy-allow-all-61645348']
2025-07-17 02:25:44,990 - INFO - VN ctest-vn-74674496 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 02:25:44,990 - DEBUG - Verifying the vn in opserver
2025-07-17 02:25:44,990 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25572234:ctest-vn-74674496 virtual network link through opserver 10.0.0.49
2025-07-17 02:25:44,990 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-17 02:25:45,284 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-17 02:25:45,339 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25572234:ctest-vn-74674496', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25572234:ctest-vn-74674496?flat'}
2025-07-17 02:25:45,339 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25572234:ctest-vn-74674496 is found in opserver
2025-07-17 02:25:45,351 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 02:25:45,356 - DEBUG - VRF ids for VN ctest-vn-74674496: {}
2025-07-17 02:25:45,356 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-17 02:25:45,362 - DEBUG - Requesting: http://10.0.0.49:8082/domain/2bbb6929-245b-47e4-9692-cd689f3f5260
2025-07-17 02:25:45,377 - DEBUG - Requesting: http://10.0.0.49:8082/project/ec6750c4-4607-4370-b49d-a4b0fc6d9536
2025-07-17 02:25:45,463 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/eb5d36ae-95cf-441b-a306-dbe5894134be
2025-07-17 02:25:45,474 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/eb5d36ae-95cf-441b-a306-dbe5894134be
2025-07-17 02:25:45,483 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2056116b-920d-474c-8c6d-9f3660ede92e
2025-07-17 02:25:45,490 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2056116b-920d-474c-8c6d-9f3660ede92e
2025-07-17 02:25:45,497 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/9c111a97-4e5c-47f2-91fa-b4a7d239d280
2025-07-17 02:25:45,504 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 02:25:45,504 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/eb5d36ae-95cf-441b-a306-dbe5894134be
2025-07-17 02:25:45,514 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2056116b-920d-474c-8c6d-9f3660ede92e
2025-07-17 02:25:45,529 - INFO - Verified VN network id 9 for VN eb5d36ae-95cf-441b-a306-dbe5894134be
2025-07-17 02:25:45,530 - INFO - Verifications in API Server for VN ctest-vn-70703494 passed
2025-07-17 02:25:45,530 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/eb5d36ae-95cf-441b-a306-dbe5894134be
2025-07-17 02:25:45,539 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2056116b-920d-474c-8c6d-9f3660ede92e
2025-07-17 02:25:45,546 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2056116b-920d-474c-8c6d-9f3660ede92e
2025-07-17 02:25:45,554 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/9c111a97-4e5c-47f2-91fa-b4a7d239d280
2025-07-17 02:25:45,566 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25572234:ctest-vn-70703494', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25572234', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16959771895212753947', 'uuid-lslong': '11747318456939263166'}, 'enable': 'true', 'created': '2025-07-17T02:25:43', 'last-modified': '2025-07-17T02:25:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.393082'}
2025-07-17 02:25:45,572 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 02:25:45,572 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70703494 passed
2025-07-17 02:25:45,572 - DEBUG - ====Verifying policy data for ctest-vn-70703494 in API_Server ======
2025-07-17 02:25:45,573 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-17 02:25:45,581 - DEBUG - Requesting: http://10.0.0.49:8082/domain/2bbb6929-245b-47e4-9692-cd689f3f5260
2025-07-17 02:25:45,593 - DEBUG - Requesting: http://10.0.0.49:8082/project/ec6750c4-4607-4370-b49d-a4b0fc6d9536
2025-07-17 02:25:45,666 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/eb5d36ae-95cf-441b-a306-dbe5894134be
2025-07-17 02:25:45,676 - DEBUG - ==>Verifying data for policy with id: 98dd8232-d13c-49c7-8c94-84c478595726, fqn: ['default-domain', 'ctest-TestBasicPolicy-25572234', 'ctest-policy-allow-all-61645348']
2025-07-17 02:25:45,677 - INFO - VN ctest-vn-70703494 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 02:25:45,677 - DEBUG - Verifying the vn in opserver
2025-07-17 02:25:45,677 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25572234:ctest-vn-70703494 virtual network link through opserver 10.0.0.49
2025-07-17 02:25:45,677 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-17 02:25:45,688 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25572234:ctest-vn-70703494', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25572234:ctest-vn-70703494?flat'}
2025-07-17 02:25:45,688 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25572234:ctest-vn-70703494 is found in opserver
2025-07-17 02:25:45,700 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 02:25:45,706 - DEBUG - VRF ids for VN ctest-vn-70703494: {}
2025-07-17 02:25:45,760 - DEBUG - Services list from nova: [