2025-07-19 07:51:52,797 - INFO - Domain Default found not creating
2025-07-19 07:51:52,920 - INFO - Project ctest-TestBasicPolicy-56346700 not found, creating it
2025-07-19 07:51:53,379 - INFO - Created Project:ctest-TestBasicPolicy-56346700, ID : 0dcc5228-0e92-48fb-a72e-96a3c501b5da
2025-07-19 07:51:54,756 - INFO - ================================================================================
2025-07-19 07:51:54,756 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-19 07:51:54,756 - 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-19 07:51:55,008 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with
2025-07-19 07:51:55,009 - INFO - Initial checks done. Running the testcase now
2025-07-19 07:51:55,009 - INFO -
2025-07-19 07:51:55,531 - DEBUG - Response for create_network : {'network': {'id': 'ca44b488-65cd-457b-bf16-553aece5c736', 'name': 'ctest-vn-99727753', 'tenant_id': '0dcc52280e9248fba72e96a3c501b5da', 'project_id': '0dcc52280e9248fba72e96a3c501b5da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56346700', 'ctest-vn-99727753'], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:51:55,709 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b45b152-3398-42ab-b188-88c56d85b22f', 'name': '', 'tenant_id': '0dcc52280e9248fba72e96a3c501b5da', 'network_id': 'ca44b488-65cd-457b-bf16-553aece5c736', 'ip_version': 4, 'cidr': '87.72.4.64/26', 'allocation_pools': [{'start': '87.72.4.66', 'end': '87.72.4.126'}], 'gateway_ip': '87.72.4.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.72.4.66', 'tags': [], 'project_id': '0dcc52280e9248fba72e96a3c501b5da'}}
2025-07-19 07:51:55,731 - INFO - Created VN ctest-vn-99727753
2025-07-19 07:51:55,787 - DEBUG - VN ctest-vn-99727753 UUID is ca44b488-65cd-457b-bf16-553aece5c736
2025-07-19 07:51:56,102 - DEBUG - Response for create_network : {'network': {'id': 'dc7bbf83-fd9a-4ec4-9b7a-98614272ec86', 'name': 'ctest-vn-05063085', 'tenant_id': '0dcc52280e9248fba72e96a3c501b5da', 'project_id': '0dcc52280e9248fba72e96a3c501b5da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56346700', 'ctest-vn-05063085'], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:51:56,306 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c94b6794-7df3-45e4-989d-7afe1747bb17', 'name': '', 'tenant_id': '0dcc52280e9248fba72e96a3c501b5da', 'network_id': 'dc7bbf83-fd9a-4ec4-9b7a-98614272ec86', 'ip_version': 4, 'cidr': '118.118.12.64/26', 'allocation_pools': [{'start': '118.118.12.66', 'end': '118.118.12.126'}], 'gateway_ip': '118.118.12.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.118.12.66', 'tags': [], 'project_id': '0dcc52280e9248fba72e96a3c501b5da'}}
2025-07-19 07:51:56,325 - INFO - Created VN ctest-vn-05063085
2025-07-19 07:51:56,375 - DEBUG - VN ctest-vn-05063085 UUID is dc7bbf83-fd9a-4ec4-9b7a-98614272ec86
2025-07-19 07:51:56,523 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56346700:ctest-vn-99727753, 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-56346700:ctest-vn-05063085, 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-19 07:51:56,804 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca44b488-65cd-457b-bf16-553aece5c736', 'name': 'ctest-vn-99727753', 'tenant_id': '0dcc52280e9248fba72e96a3c501b5da', 'project_id': '0dcc52280e9248fba72e96a3c501b5da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b45b152-3398-42ab-b188-88c56d85b22f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56346700', 'ctest-vn-99727753'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56346700', 'ctest-policy-allow-all-50170622']], 'subnet_ipam': [{'subnet_cidr': '87.72.4.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:51:57,070 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dc7bbf83-fd9a-4ec4-9b7a-98614272ec86', 'name': 'ctest-vn-05063085', 'tenant_id': '0dcc52280e9248fba72e96a3c501b5da', 'project_id': '0dcc52280e9248fba72e96a3c501b5da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c94b6794-7df3-45e4-989d-7afe1747bb17'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56346700', 'ctest-vn-05063085'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56346700', 'ctest-policy-allow-all-50170622']], 'subnet_ipam': [{'subnet_cidr': '118.118.12.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:51:57,223 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-19 07:51:57,514 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-19 07:51:57,540 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a2d890b0-5da4-4803-b48d-0ca1f59c28bb
2025-07-19 07:51:57,552 - DEBUG - Requesting: http://10.0.0.27:8082/project/0dcc5228-0e92-48fb-a72e-96a3c501b5da
2025-07-19 07:51:57,619 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ca44b488-65cd-457b-bf16-553aece5c736
2025-07-19 07:51:57,629 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ca44b488-65cd-457b-bf16-553aece5c736
2025-07-19 07:51:57,637 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3bd6fc1b-1d24-463e-97fb-847be5763b68
2025-07-19 07:51:57,642 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3bd6fc1b-1d24-463e-97fb-847be5763b68
2025-07-19 07:51:57,648 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2c985f40-76c2-437e-baec-1ad33227fafb
2025-07-19 07:51:57,653 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-19 07:51:57,653 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ca44b488-65cd-457b-bf16-553aece5c736
2025-07-19 07:51:57,661 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3bd6fc1b-1d24-463e-97fb-847be5763b68
2025-07-19 07:51:57,672 - INFO - Verified VN network id 8 for VN ca44b488-65cd-457b-bf16-553aece5c736
2025-07-19 07:51:57,672 - INFO - Verifications in API Server for VN ctest-vn-99727753 passed
2025-07-19 07:51:57,672 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ca44b488-65cd-457b-bf16-553aece5c736
2025-07-19 07:51:57,679 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3bd6fc1b-1d24-463e-97fb-847be5763b68
2025-07-19 07:51:57,685 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3bd6fc1b-1d24-463e-97fb-847be5763b68
2025-07-19 07:51:57,690 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2c985f40-76c2-437e-baec-1ad33227fafb
2025-07-19 07:51:57,699 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56346700:ctest-vn-99727753', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56346700', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14574972791994271099', 'uuid-lslong': '13769286622302816054'}, 'enable': 'true', 'created': '2025-07-19T07:51:55', 'last-modified': '2025-07-19T07:51:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913340'}
2025-07-19 07:51:57,704 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-19 07:51:57,704 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99727753 passed
2025-07-19 07:51:57,704 - DEBUG - ====Verifying policy data for ctest-vn-99727753 in API_Server ======
2025-07-19 07:51:57,704 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-19 07:51:57,709 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a2d890b0-5da4-4803-b48d-0ca1f59c28bb
2025-07-19 07:51:57,719 - DEBUG - Requesting: http://10.0.0.27:8082/project/0dcc5228-0e92-48fb-a72e-96a3c501b5da
2025-07-19 07:51:57,791 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ca44b488-65cd-457b-bf16-553aece5c736
2025-07-19 07:51:57,800 - DEBUG - ==>Verifying data for policy with id: f5cddfe4-43ec-45af-88e0-cd24d01b5d63, fqn: ['default-domain', 'ctest-TestBasicPolicy-56346700', 'ctest-policy-allow-all-50170622']
2025-07-19 07:51:57,800 - INFO - VN ctest-vn-99727753 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-19 07:51:57,800 - DEBUG - Verifying the vn in opserver
2025-07-19 07:51:57,800 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56346700:ctest-vn-99727753 virtual network link through opserver 10.0.0.27
2025-07-19 07:51:57,800 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-07-19 07:51:58,088 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-07-19 07:51:58,137 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56346700:ctest-vn-99727753', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56346700:ctest-vn-99727753?flat'}
2025-07-19 07:51:58,137 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56346700:ctest-vn-99727753 is found in opserver
2025-07-19 07:51:58,147 - DEBUG - Do not have enough data to verify VN in agent
2025-07-19 07:51:58,152 - DEBUG - VRF ids for VN ctest-vn-99727753: {}
2025-07-19 07:51:58,152 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-19 07:51:58,157 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a2d890b0-5da4-4803-b48d-0ca1f59c28bb
2025-07-19 07:51:58,169 - DEBUG - Requesting: http://10.0.0.27:8082/project/0dcc5228-0e92-48fb-a72e-96a3c501b5da
2025-07-19 07:51:58,239 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/dc7bbf83-fd9a-4ec4-9b7a-98614272ec86
2025-07-19 07:51:58,249 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/dc7bbf83-fd9a-4ec4-9b7a-98614272ec86
2025-07-19 07:51:58,257 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f7ec0aca-e219-438f-af5a-6df8751f76cc
2025-07-19 07:51:58,264 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f7ec0aca-e219-438f-af5a-6df8751f76cc
2025-07-19 07:51:58,269 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/fbe10a7a-f88c-4bb0-a169-ad2079bdc6e3
2025-07-19 07:51:58,275 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-19 07:51:58,275 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/dc7bbf83-fd9a-4ec4-9b7a-98614272ec86
2025-07-19 07:51:58,282 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f7ec0aca-e219-438f-af5a-6df8751f76cc
2025-07-19 07:51:58,294 - INFO - Verified VN network id 9 for VN dc7bbf83-fd9a-4ec4-9b7a-98614272ec86
2025-07-19 07:51:58,294 - INFO - Verifications in API Server for VN ctest-vn-05063085 passed
2025-07-19 07:51:58,294 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/dc7bbf83-fd9a-4ec4-9b7a-98614272ec86
2025-07-19 07:51:58,301 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f7ec0aca-e219-438f-af5a-6df8751f76cc
2025-07-19 07:51:58,307 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f7ec0aca-e219-438f-af5a-6df8751f76cc
2025-07-19 07:51:58,313 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/fbe10a7a-f88c-4bb0-a169-ad2079bdc6e3
2025-07-19 07:51:58,323 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56346700:ctest-vn-05063085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56346700', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15887502684095925956', 'uuid-lslong': '11203434566531607686'}, 'enable': 'true', 'created': '2025-07-19T07:51:56', 'last-modified': '2025-07-19T07:51:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318986'}
2025-07-19 07:51:58,329 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-19 07:51:58,329 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05063085 passed
2025-07-19 07:51:58,329 - DEBUG - ====Verifying policy data for ctest-vn-05063085 in API_Server ======
2025-07-19 07:51:58,329 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-19 07:51:58,334 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a2d890b0-5da4-4803-b48d-0ca1f59c28bb
2025-07-19 07:51:58,346 - DEBUG - Requesting: http://10.0.0.27:8082/project/0dcc5228-0e92-48fb-a72e-96a3c501b5da
2025-07-19 07:51:58,417 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/dc7bbf83-fd9a-4ec4-9b7a-98614272ec86
2025-07-19 07:51:58,425 - DEBUG - ==>Verifying data for policy with id: f5cddfe4-43ec-45af-88e0-cd24d01b5d63, fqn: ['default-domain', 'ctest-TestBasicPolicy-56346700', 'ctest-policy-allow-all-50170622']
2025-07-19 07:51:58,425 - INFO - VN ctest-vn-05063085 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-19 07:51:58,425 - DEBUG - Verifying the vn in opserver
2025-07-19 07:51:58,426 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56346700:ctest-vn-05063085 virtual network link through opserver 10.0.0.27
2025-07-19 07:51:58,426 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-07-19 07:51:58,435 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56346700:ctest-vn-05063085', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56346700:ctest-vn-05063085?flat'}
2025-07-19 07:51:58,435 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56346700:ctest-vn-05063085 is found in opserver
2025-07-19 07:51:58,444 - DEBUG - Do not have enough data to verify VN in agent
2025-07-19 07:51:58,448 - DEBUG - VRF ids for VN ctest-vn-05063085: {}
2025-07-19 07:51:58,498 - DEBUG - Services list from nova: [