2025-04-07 02:17:56,896 - INFO - Domain Default found not creating
2025-04-07 02:17:57,049 - INFO - Project ctest-TestBasicPolicy-05022769 not found, creating it
2025-04-07 02:17:57,528 - INFO - Created Project:ctest-TestBasicPolicy-05022769, ID : e06f3648-b018-4b2a-95e5-3c1286a84791
2025-04-07 02:17:58,990 - INFO - ================================================================================
2025-04-07 02:17:58,990 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-07 02:17:58,990 - 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-07 02:17:59,252 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.8': '0'}} with
2025-04-07 02:17:59,252 - INFO - Initial checks done. Running the testcase now
2025-04-07 02:17:59,252 - INFO -
2025-04-07 02:17:59,802 - DEBUG - Response for create_network : {'network': {'id': 'aa184bc4-7017-41e9-addd-1cea92753d67', 'name': 'ctest-vn-07494709', 'tenant_id': 'e06f3648b0184b2a95e53c1286a84791', 'project_id': 'e06f3648b0184b2a95e53c1286a84791', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05022769', 'ctest-vn-07494709'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 02:17:59,962 - DEBUG - Response for create_subnet : {'subnet': {'id': '20973dd3-daee-4103-bcf9-eac16bcb515e', 'name': '', 'tenant_id': 'e06f3648b0184b2a95e53c1286a84791', 'network_id': 'aa184bc4-7017-41e9-addd-1cea92753d67', 'ip_version': 4, 'cidr': '143.60.74.0/26', 'allocation_pools': [{'start': '143.60.74.2', 'end': '143.60.74.62'}], 'gateway_ip': '143.60.74.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.60.74.2', 'tags': [], 'project_id': 'e06f3648b0184b2a95e53c1286a84791'}}
2025-04-07 02:17:59,981 - INFO - Created VN ctest-vn-07494709
2025-04-07 02:18:00,033 - DEBUG - VN ctest-vn-07494709 UUID is aa184bc4-7017-41e9-addd-1cea92753d67
2025-04-07 02:18:00,363 - DEBUG - Response for create_network : {'network': {'id': '53e44df9-0833-4e9f-bce3-2893cdb98849', 'name': 'ctest-vn-38646448', 'tenant_id': 'e06f3648b0184b2a95e53c1286a84791', 'project_id': 'e06f3648b0184b2a95e53c1286a84791', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05022769', 'ctest-vn-38646448'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 02:18:00,518 - DEBUG - Response for create_subnet : {'subnet': {'id': '42a7c95f-a820-469b-b2dc-93dbdb6881e4', 'name': '', 'tenant_id': 'e06f3648b0184b2a95e53c1286a84791', 'network_id': '53e44df9-0833-4e9f-bce3-2893cdb98849', 'ip_version': 4, 'cidr': '20.77.113.192/26', 'allocation_pools': [{'start': '20.77.113.194', 'end': '20.77.113.254'}], 'gateway_ip': '20.77.113.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.77.113.194', 'tags': [], 'project_id': 'e06f3648b0184b2a95e53c1286a84791'}}
2025-04-07 02:18:00,536 - INFO - Created VN ctest-vn-38646448
2025-04-07 02:18:00,588 - DEBUG - VN ctest-vn-38646448 UUID is 53e44df9-0833-4e9f-bce3-2893cdb98849
2025-04-07 02:18:00,741 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05022769:ctest-vn-07494709, 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-05022769:ctest-vn-38646448, 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-07 02:18:01,036 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa184bc4-7017-41e9-addd-1cea92753d67', 'name': 'ctest-vn-07494709', 'tenant_id': 'e06f3648b0184b2a95e53c1286a84791', 'project_id': 'e06f3648b0184b2a95e53c1286a84791', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20973dd3-daee-4103-bcf9-eac16bcb515e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05022769', 'ctest-vn-07494709'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05022769', 'ctest-policy-allow-all-13265054']], 'subnet_ipam': [{'subnet_cidr': '143.60.74.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-07 02:18:01,327 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53e44df9-0833-4e9f-bce3-2893cdb98849', 'name': 'ctest-vn-38646448', 'tenant_id': 'e06f3648b0184b2a95e53c1286a84791', 'project_id': 'e06f3648b0184b2a95e53c1286a84791', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42a7c95f-a820-469b-b2dc-93dbdb6881e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05022769', 'ctest-vn-38646448'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05022769', 'ctest-policy-allow-all-13265054']], 'subnet_ipam': [{'subnet_cidr': '20.77.113.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-07 02:18:01,481 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-04-07 02:18:01,785 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-04-07 02:18:01,817 - DEBUG - Requesting: http://10.0.0.29:8082/domain/61f0907b-a8f0-41ae-8435-9553dc5b8157
2025-04-07 02:18:01,837 - DEBUG - Requesting: http://10.0.0.29:8082/project/e06f3648-b018-4b2a-95e5-3c1286a84791
2025-04-07 02:18:01,930 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/aa184bc4-7017-41e9-addd-1cea92753d67
2025-04-07 02:18:01,946 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/aa184bc4-7017-41e9-addd-1cea92753d67
2025-04-07 02:18:01,960 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/d944730e-c1a9-4fc0-a843-649655b0dd97
2025-04-07 02:18:01,970 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/d944730e-c1a9-4fc0-a843-649655b0dd97
2025-04-07 02:18:01,978 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/3cb2d3a2-68d3-4dcb-84a0-a8b6af7765d5
2025-04-07 02:18:01,987 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-07 02:18:01,987 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/aa184bc4-7017-41e9-addd-1cea92753d67
2025-04-07 02:18:02,001 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/d944730e-c1a9-4fc0-a843-649655b0dd97
2025-04-07 02:18:02,023 - INFO - Verified VN network id 7 for VN aa184bc4-7017-41e9-addd-1cea92753d67
2025-04-07 02:18:02,024 - INFO - Verifications in API Server for VN ctest-vn-07494709 passed
2025-04-07 02:18:02,024 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/aa184bc4-7017-41e9-addd-1cea92753d67
2025-04-07 02:18:02,043 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/d944730e-c1a9-4fc0-a843-649655b0dd97
2025-04-07 02:18:02,052 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/d944730e-c1a9-4fc0-a843-649655b0dd97
2025-04-07 02:18:02,060 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/3cb2d3a2-68d3-4dcb-84a0-a8b6af7765d5
2025-04-07 02:18:02,076 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05022769:ctest-vn-07494709', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05022769', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12256629692955050473', 'uuid-lslong': '12528201532219669863'}, 'enable': 'true', 'created': '2025-04-07T02:17:59', 'last-modified': '2025-04-07T02:18:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.059231'}
2025-04-07 02:18:02,085 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-07 02:18:02,085 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07494709 passed
2025-04-07 02:18:02,085 - DEBUG - ====Verifying policy data for ctest-vn-07494709 in API_Server ======
2025-04-07 02:18:02,085 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-04-07 02:18:02,092 - DEBUG - Requesting: http://10.0.0.29:8082/domain/61f0907b-a8f0-41ae-8435-9553dc5b8157
2025-04-07 02:18:02,105 - DEBUG - Requesting: http://10.0.0.29:8082/project/e06f3648-b018-4b2a-95e5-3c1286a84791
2025-04-07 02:18:02,182 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/aa184bc4-7017-41e9-addd-1cea92753d67
2025-04-07 02:18:02,194 - DEBUG - ==>Verifying data for policy with id: b1a44e10-f96d-42cb-ac66-69a86366a84f, fqn: ['default-domain', 'ctest-TestBasicPolicy-05022769', 'ctest-policy-allow-all-13265054']
2025-04-07 02:18:02,194 - INFO - VN ctest-vn-07494709 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-07 02:18:02,194 - DEBUG - Verifying the vn in opserver
2025-04-07 02:18:02,194 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05022769:ctest-vn-07494709 virtual network link through opserver 10.0.0.29
2025-04-07 02:18:02,194 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-04-07 02:18:02,492 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-04-07 02:18:02,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05022769:ctest-vn-07494709', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05022769:ctest-vn-07494709?flat'}
2025-04-07 02:18:02,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05022769:ctest-vn-07494709 is found in opserver
2025-04-07 02:18:02,565 - DEBUG - Do not have enough data to verify VN in agent
2025-04-07 02:18:02,571 - DEBUG - VRF ids for VN ctest-vn-07494709: {}
2025-04-07 02:18:02,571 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-04-07 02:18:02,578 - DEBUG - Requesting: http://10.0.0.29:8082/domain/61f0907b-a8f0-41ae-8435-9553dc5b8157
2025-04-07 02:18:02,591 - DEBUG - Requesting: http://10.0.0.29:8082/project/e06f3648-b018-4b2a-95e5-3c1286a84791
2025-04-07 02:18:02,669 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/53e44df9-0833-4e9f-bce3-2893cdb98849
2025-04-07 02:18:02,683 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/53e44df9-0833-4e9f-bce3-2893cdb98849
2025-04-07 02:18:02,693 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/259f916d-2a49-45c2-92f6-4a4791941288
2025-04-07 02:18:02,701 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/259f916d-2a49-45c2-92f6-4a4791941288
2025-04-07 02:18:02,709 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/fd223a0f-ce6a-4393-9c86-fcc726b54c78
2025-04-07 02:18:02,719 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-07 02:18:02,719 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/53e44df9-0833-4e9f-bce3-2893cdb98849
2025-04-07 02:18:02,738 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/259f916d-2a49-45c2-92f6-4a4791941288
2025-04-07 02:18:02,757 - INFO - Verified VN network id 8 for VN 53e44df9-0833-4e9f-bce3-2893cdb98849
2025-04-07 02:18:02,757 - INFO - Verifications in API Server for VN ctest-vn-38646448 passed
2025-04-07 02:18:02,757 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/53e44df9-0833-4e9f-bce3-2893cdb98849
2025-04-07 02:18:02,769 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/259f916d-2a49-45c2-92f6-4a4791941288
2025-04-07 02:18:02,778 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/259f916d-2a49-45c2-92f6-4a4791941288
2025-04-07 02:18:02,785 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/fd223a0f-ce6a-4393-9c86-fcc726b54c78
2025-04-07 02:18:02,798 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05022769:ctest-vn-38646448', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05022769', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6045042331817823903', 'uuid-lslong': '13610767114120562761'}, 'enable': 'true', 'created': '2025-04-07T02:18:00', 'last-modified': '2025-04-07T02:18:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.544241'}
2025-04-07 02:18:02,805 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-07 02:18:02,805 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38646448 passed
2025-04-07 02:18:02,805 - DEBUG - ====Verifying policy data for ctest-vn-38646448 in API_Server ======
2025-04-07 02:18:02,805 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-04-07 02:18:02,812 - DEBUG - Requesting: http://10.0.0.29:8082/domain/61f0907b-a8f0-41ae-8435-9553dc5b8157
2025-04-07 02:18:02,824 - DEBUG - Requesting: http://10.0.0.29:8082/project/e06f3648-b018-4b2a-95e5-3c1286a84791
2025-04-07 02:18:02,906 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/53e44df9-0833-4e9f-bce3-2893cdb98849
2025-04-07 02:18:02,919 - DEBUG - ==>Verifying data for policy with id: b1a44e10-f96d-42cb-ac66-69a86366a84f, fqn: ['default-domain', 'ctest-TestBasicPolicy-05022769', 'ctest-policy-allow-all-13265054']
2025-04-07 02:18:02,919 - INFO - VN ctest-vn-38646448 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-07 02:18:02,919 - DEBUG - Verifying the vn in opserver
2025-04-07 02:18:02,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05022769:ctest-vn-38646448 virtual network link through opserver 10.0.0.29
2025-04-07 02:18:02,919 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-04-07 02:18:02,931 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05022769:ctest-vn-38646448', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05022769:ctest-vn-38646448?flat'}
2025-04-07 02:18:02,931 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05022769:ctest-vn-38646448 is found in opserver
2025-04-07 02:18:02,943 - DEBUG - Do not have enough data to verify VN in agent
2025-04-07 02:18:02,949 - DEBUG - VRF ids for VN ctest-vn-38646448: {}
2025-04-07 02:18:03,016 - DEBUG - Services list from nova: [