2025-06-17 07:00:23,770 - INFO - Domain Default found not creating
2025-06-17 07:00:23,915 - INFO - Project ctest-TestBasicPolicy-38366694 not found, creating it
2025-06-17 07:00:24,380 - INFO - Created Project:ctest-TestBasicPolicy-38366694, ID : 60e5f814-9aec-49ea-8705-3b782d8b65c3
2025-06-17 07:00:25,839 - INFO - ================================================================================
2025-06-17 07:00:25,839 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-17 07:00:25,839 - 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-17 07:00:26,100 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-17 07:00:26,101 - INFO - Initial checks done. Running the testcase now
2025-06-17 07:00:26,101 - INFO -
2025-06-17 07:00:26,669 - DEBUG - Response for create_network : {'network': {'id': '637a7f51-326e-44cb-bf35-036eff845942', 'name': 'ctest-vn-37719921', 'tenant_id': '60e5f8149aec49ea87053b782d8b65c3', 'project_id': '60e5f8149aec49ea87053b782d8b65c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38366694', 'ctest-vn-37719921'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 07:00:26,860 - DEBUG - Response for create_subnet : {'subnet': {'id': '370528f7-9c13-4ff5-898a-9b2e84b4749b', 'name': '', 'tenant_id': '60e5f8149aec49ea87053b782d8b65c3', 'network_id': '637a7f51-326e-44cb-bf35-036eff845942', 'ip_version': 4, 'cidr': '55.112.168.128/26', 'allocation_pools': [{'start': '55.112.168.130', 'end': '55.112.168.190'}], 'gateway_ip': '55.112.168.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.112.168.130', 'tags': [], 'project_id': '60e5f8149aec49ea87053b782d8b65c3'}}
2025-06-17 07:00:26,876 - INFO - Created VN ctest-vn-37719921
2025-06-17 07:00:26,930 - DEBUG - VN ctest-vn-37719921 UUID is 637a7f51-326e-44cb-bf35-036eff845942
2025-06-17 07:00:27,277 - DEBUG - Response for create_network : {'network': {'id': '4b851ae7-7ba9-49bf-bc5b-5f92d42ff2cd', 'name': 'ctest-vn-25919513', 'tenant_id': '60e5f8149aec49ea87053b782d8b65c3', 'project_id': '60e5f8149aec49ea87053b782d8b65c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38366694', 'ctest-vn-25919513'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 07:00:27,477 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f1e09c8-df59-4a26-a12e-653ad942d727', 'name': '', 'tenant_id': '60e5f8149aec49ea87053b782d8b65c3', 'network_id': '4b851ae7-7ba9-49bf-bc5b-5f92d42ff2cd', 'ip_version': 4, 'cidr': '62.177.245.0/26', 'allocation_pools': [{'start': '62.177.245.2', 'end': '62.177.245.62'}], 'gateway_ip': '62.177.245.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.177.245.2', 'tags': [], 'project_id': '60e5f8149aec49ea87053b782d8b65c3'}}
2025-06-17 07:00:27,495 - INFO - Created VN ctest-vn-25919513
2025-06-17 07:00:27,546 - DEBUG - VN ctest-vn-25919513 UUID is 4b851ae7-7ba9-49bf-bc5b-5f92d42ff2cd
2025-06-17 07:00:27,660 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38366694:ctest-vn-37719921, 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-38366694:ctest-vn-25919513, 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-17 07:00:27,963 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '637a7f51-326e-44cb-bf35-036eff845942', 'name': 'ctest-vn-37719921', 'tenant_id': '60e5f8149aec49ea87053b782d8b65c3', 'project_id': '60e5f8149aec49ea87053b782d8b65c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['370528f7-9c13-4ff5-898a-9b2e84b4749b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38366694', 'ctest-vn-37719921'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38366694', 'ctest-policy-allow-all-89908765']], 'subnet_ipam': [{'subnet_cidr': '55.112.168.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 07:00:28,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b851ae7-7ba9-49bf-bc5b-5f92d42ff2cd', 'name': 'ctest-vn-25919513', 'tenant_id': '60e5f8149aec49ea87053b782d8b65c3', 'project_id': '60e5f8149aec49ea87053b782d8b65c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3f1e09c8-df59-4a26-a12e-653ad942d727'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38366694', 'ctest-vn-25919513'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38366694', 'ctest-policy-allow-all-89908765']], 'subnet_ipam': [{'subnet_cidr': '62.177.245.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 07:00:28,362 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-17 07:00:28,660 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-17 07:00:28,689 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a47f3b7d-96e9-44a6-8480-cfe2fa5ae7ab
2025-06-17 07:00:28,703 - DEBUG - Requesting: http://10.0.0.254:8082/project/60e5f814-9aec-49ea-8705-3b782d8b65c3
2025-06-17 07:00:28,781 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637a7f51-326e-44cb-bf35-036eff845942
2025-06-17 07:00:28,791 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637a7f51-326e-44cb-bf35-036eff845942
2025-06-17 07:00:28,802 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9907a590-001b-42f6-97d2-5d5810a88fc0
2025-06-17 07:00:28,809 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9907a590-001b-42f6-97d2-5d5810a88fc0
2025-06-17 07:00:28,815 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9ab12782-7c2f-4a38-a2fc-e634de1087d0
2025-06-17 07:00:28,821 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 07:00:28,821 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637a7f51-326e-44cb-bf35-036eff845942
2025-06-17 07:00:28,830 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9907a590-001b-42f6-97d2-5d5810a88fc0
2025-06-17 07:00:28,845 - INFO - Verified VN network id 8 for VN 637a7f51-326e-44cb-bf35-036eff845942
2025-06-17 07:00:28,845 - INFO - Verifications in API Server for VN ctest-vn-37719921 passed
2025-06-17 07:00:28,845 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637a7f51-326e-44cb-bf35-036eff845942
2025-06-17 07:00:28,855 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9907a590-001b-42f6-97d2-5d5810a88fc0
2025-06-17 07:00:28,862 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9907a590-001b-42f6-97d2-5d5810a88fc0
2025-06-17 07:00:28,869 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9ab12782-7c2f-4a38-a2fc-e634de1087d0
2025-06-17 07:00:28,880 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38366694:ctest-vn-37719921', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38366694', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7168181743628731595', 'uuid-lslong': '13777922410278050114'}, 'enable': 'true', 'created': '2025-06-17T07:00:26', 'last-modified': '2025-06-17T07:00:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.948389'}
2025-06-17 07:00:28,886 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 07:00:28,886 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37719921 passed
2025-06-17 07:00:28,887 - DEBUG - ====Verifying policy data for ctest-vn-37719921 in API_Server ======
2025-06-17 07:00:28,887 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-17 07:00:28,892 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a47f3b7d-96e9-44a6-8480-cfe2fa5ae7ab
2025-06-17 07:00:28,915 - DEBUG - Requesting: http://10.0.0.254:8082/project/60e5f814-9aec-49ea-8705-3b782d8b65c3
2025-06-17 07:00:28,997 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637a7f51-326e-44cb-bf35-036eff845942
2025-06-17 07:00:29,008 - DEBUG - ==>Verifying data for policy with id: d5f46aae-14c7-4ca9-a9a3-e5ac43521d9d, fqn: ['default-domain', 'ctest-TestBasicPolicy-38366694', 'ctest-policy-allow-all-89908765']
2025-06-17 07:00:29,008 - INFO - VN ctest-vn-37719921 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 07:00:29,008 - DEBUG - Verifying the vn in opserver
2025-06-17 07:00:29,008 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38366694:ctest-vn-37719921 virtual network link through opserver 10.0.0.254
2025-06-17 07:00:29,008 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-17 07:00:29,303 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-17 07:00:29,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38366694:ctest-vn-37719921', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38366694:ctest-vn-37719921?flat'}
2025-06-17 07:00:29,357 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38366694:ctest-vn-37719921 is found in opserver
2025-06-17 07:00:29,368 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 07:00:29,373 - DEBUG - VRF ids for VN ctest-vn-37719921: {}
2025-06-17 07:00:29,373 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-17 07:00:29,378 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a47f3b7d-96e9-44a6-8480-cfe2fa5ae7ab
2025-06-17 07:00:29,390 - DEBUG - Requesting: http://10.0.0.254:8082/project/60e5f814-9aec-49ea-8705-3b782d8b65c3
2025-06-17 07:00:29,460 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4b851ae7-7ba9-49bf-bc5b-5f92d42ff2cd
2025-06-17 07:00:29,472 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4b851ae7-7ba9-49bf-bc5b-5f92d42ff2cd
2025-06-17 07:00:29,480 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/389597f8-d613-4601-998b-1e24d9cbf25e
2025-06-17 07:00:29,487 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/389597f8-d613-4601-998b-1e24d9cbf25e
2025-06-17 07:00:29,494 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/43b88b6a-aab7-42c5-8e16-1b9fab9241b4
2025-06-17 07:00:29,500 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 07:00:29,500 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4b851ae7-7ba9-49bf-bc5b-5f92d42ff2cd
2025-06-17 07:00:29,510 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/389597f8-d613-4601-998b-1e24d9cbf25e
2025-06-17 07:00:29,525 - INFO - Verified VN network id 9 for VN 4b851ae7-7ba9-49bf-bc5b-5f92d42ff2cd
2025-06-17 07:00:29,525 - INFO - Verifications in API Server for VN ctest-vn-25919513 passed
2025-06-17 07:00:29,525 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4b851ae7-7ba9-49bf-bc5b-5f92d42ff2cd
2025-06-17 07:00:29,537 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/389597f8-d613-4601-998b-1e24d9cbf25e
2025-06-17 07:00:29,545 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/389597f8-d613-4601-998b-1e24d9cbf25e
2025-06-17 07:00:29,554 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/43b88b6a-aab7-42c5-8e16-1b9fab9241b4
2025-06-17 07:00:29,567 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38366694:ctest-vn-25919513', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38366694', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5441785306261572031', 'uuid-lslong': '13572546986240897741'}, 'enable': 'true', 'created': '2025-06-17T07:00:27', 'last-modified': '2025-06-17T07:00:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.400298'}
2025-06-17 07:00:29,574 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 07:00:29,574 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25919513 passed
2025-06-17 07:00:29,574 - DEBUG - ====Verifying policy data for ctest-vn-25919513 in API_Server ======
2025-06-17 07:00:29,574 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-17 07:00:29,581 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a47f3b7d-96e9-44a6-8480-cfe2fa5ae7ab
2025-06-17 07:00:29,592 - DEBUG - Requesting: http://10.0.0.254:8082/project/60e5f814-9aec-49ea-8705-3b782d8b65c3
2025-06-17 07:00:29,671 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4b851ae7-7ba9-49bf-bc5b-5f92d42ff2cd
2025-06-17 07:00:29,682 - DEBUG - ==>Verifying data for policy with id: d5f46aae-14c7-4ca9-a9a3-e5ac43521d9d, fqn: ['default-domain', 'ctest-TestBasicPolicy-38366694', 'ctest-policy-allow-all-89908765']
2025-06-17 07:00:29,682 - INFO - VN ctest-vn-25919513 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 07:00:29,682 - DEBUG - Verifying the vn in opserver
2025-06-17 07:00:29,682 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38366694:ctest-vn-25919513 virtual network link through opserver 10.0.0.254
2025-06-17 07:00:29,682 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-17 07:00:29,693 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38366694:ctest-vn-25919513', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38366694:ctest-vn-25919513?flat'}
2025-06-17 07:00:29,693 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38366694:ctest-vn-25919513 is found in opserver
2025-06-17 07:00:29,706 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 07:00:29,713 - DEBUG - VRF ids for VN ctest-vn-25919513: {}
2025-06-17 07:00:29,769 - DEBUG - Services list from nova: [