2025-04-21 02:15:09,150 - INFO - Domain Default found not creating
2025-04-21 02:15:09,320 - INFO - Project ctest-TestBasicPolicy-32025424 not found, creating it
2025-04-21 02:15:09,820 - INFO - Created Project:ctest-TestBasicPolicy-32025424, ID : ce99a8e0-c7a7-4e8c-ad75-9c41d0b47c1e
2025-04-21 02:15:11,459 - INFO - ================================================================================
2025-04-21 02:15:11,459 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-21 02:15:11,459 - 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-21 02:15:11,718 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with
2025-04-21 02:15:11,718 - INFO - Initial checks done. Running the testcase now
2025-04-21 02:15:11,718 - INFO -
2025-04-21 02:15:12,311 - DEBUG - Response for create_network : {'network': {'id': 'adb5ee8a-e9fe-4d46-8312-98890180ffc4', 'name': 'ctest-vn-26991027', 'tenant_id': 'ce99a8e0c7a74e8cad759c41d0b47c1e', 'project_id': 'ce99a8e0c7a74e8cad759c41d0b47c1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32025424', 'ctest-vn-26991027'], 'port_security_enabled': True, 'description': ''}}
2025-04-21 02:15:12,528 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1e7bd98-0864-48f4-9a40-89c275d7831f', 'name': '', 'tenant_id': 'ce99a8e0c7a74e8cad759c41d0b47c1e', 'network_id': 'adb5ee8a-e9fe-4d46-8312-98890180ffc4', 'ip_version': 4, 'cidr': '21.211.47.192/26', 'allocation_pools': [{'start': '21.211.47.194', 'end': '21.211.47.254'}], 'gateway_ip': '21.211.47.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.211.47.194', 'tags': [], 'project_id': 'ce99a8e0c7a74e8cad759c41d0b47c1e'}}
2025-04-21 02:15:12,548 - INFO - Created VN ctest-vn-26991027
2025-04-21 02:15:12,603 - DEBUG - VN ctest-vn-26991027 UUID is adb5ee8a-e9fe-4d46-8312-98890180ffc4
2025-04-21 02:15:12,939 - DEBUG - Response for create_network : {'network': {'id': '922e2df0-c6eb-44b7-869e-726a5fe5fc18', 'name': 'ctest-vn-41625431', 'tenant_id': 'ce99a8e0c7a74e8cad759c41d0b47c1e', 'project_id': 'ce99a8e0c7a74e8cad759c41d0b47c1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32025424', 'ctest-vn-41625431'], 'port_security_enabled': True, 'description': ''}}
2025-04-21 02:15:13,170 - DEBUG - Response for create_subnet : {'subnet': {'id': '904d8eec-acb0-473f-8784-548a2e55d04e', 'name': '', 'tenant_id': 'ce99a8e0c7a74e8cad759c41d0b47c1e', 'network_id': '922e2df0-c6eb-44b7-869e-726a5fe5fc18', 'ip_version': 4, 'cidr': '101.93.161.192/26', 'allocation_pools': [{'start': '101.93.161.194', 'end': '101.93.161.254'}], 'gateway_ip': '101.93.161.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.93.161.194', 'tags': [], 'project_id': 'ce99a8e0c7a74e8cad759c41d0b47c1e'}}
2025-04-21 02:15:13,191 - INFO - Created VN ctest-vn-41625431
2025-04-21 02:15:13,247 - DEBUG - VN ctest-vn-41625431 UUID is 922e2df0-c6eb-44b7-869e-726a5fe5fc18
2025-04-21 02:15:13,369 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32025424:ctest-vn-26991027, 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-32025424:ctest-vn-41625431, 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-21 02:15:13,689 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'adb5ee8a-e9fe-4d46-8312-98890180ffc4', 'name': 'ctest-vn-26991027', 'tenant_id': 'ce99a8e0c7a74e8cad759c41d0b47c1e', 'project_id': 'ce99a8e0c7a74e8cad759c41d0b47c1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1e7bd98-0864-48f4-9a40-89c275d7831f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32025424', 'ctest-vn-26991027'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32025424', 'ctest-policy-allow-all-98979502']], 'subnet_ipam': [{'subnet_cidr': '21.211.47.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-21 02:15:13,955 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '922e2df0-c6eb-44b7-869e-726a5fe5fc18', 'name': 'ctest-vn-41625431', 'tenant_id': 'ce99a8e0c7a74e8cad759c41d0b47c1e', 'project_id': 'ce99a8e0c7a74e8cad759c41d0b47c1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['904d8eec-acb0-473f-8784-548a2e55d04e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32025424', 'ctest-vn-41625431'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32025424', 'ctest-policy-allow-all-98979502']], 'subnet_ipam': [{'subnet_cidr': '101.93.161.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-21 02:15:14,103 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-21 02:15:14,403 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-21 02:15:14,435 - DEBUG - Requesting: http://10.0.0.19:8082/domain/39c0a871-4d00-49c7-8aab-e077259d232e
2025-04-21 02:15:14,450 - DEBUG - Requesting: http://10.0.0.19:8082/project/ce99a8e0-c7a7-4e8c-ad75-9c41d0b47c1e
2025-04-21 02:15:14,527 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/adb5ee8a-e9fe-4d46-8312-98890180ffc4
2025-04-21 02:15:14,541 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/adb5ee8a-e9fe-4d46-8312-98890180ffc4
2025-04-21 02:15:14,554 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/76dfaf86-08ac-49c8-a954-56e1765d6b25
2025-04-21 02:15:14,563 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/76dfaf86-08ac-49c8-a954-56e1765d6b25
2025-04-21 02:15:14,571 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/3c50f589-36a5-4676-afa2-669d5533f3dc
2025-04-21 02:15:14,578 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-21 02:15:14,579 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/adb5ee8a-e9fe-4d46-8312-98890180ffc4
2025-04-21 02:15:14,589 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/76dfaf86-08ac-49c8-a954-56e1765d6b25
2025-04-21 02:15:14,609 - INFO - Verified VN network id 9 for VN adb5ee8a-e9fe-4d46-8312-98890180ffc4
2025-04-21 02:15:14,609 - INFO - Verifications in API Server for VN ctest-vn-26991027 passed
2025-04-21 02:15:14,609 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/adb5ee8a-e9fe-4d46-8312-98890180ffc4
2025-04-21 02:15:14,623 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/76dfaf86-08ac-49c8-a954-56e1765d6b25
2025-04-21 02:15:14,633 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/76dfaf86-08ac-49c8-a954-56e1765d6b25
2025-04-21 02:15:14,643 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/3c50f589-36a5-4676-afa2-669d5533f3dc
2025-04-21 02:15:14,656 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32025424:ctest-vn-26991027', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32025424', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12517173019744816454', 'uuid-lslong': '9444779082752524228'}, 'enable': 'true', 'created': '2025-04-21T02:15:12', 'last-modified': '2025-04-21T02:15:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.994461'}
2025-04-21 02:15:14,663 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-21 02:15:14,663 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26991027 passed
2025-04-21 02:15:14,663 - DEBUG - ====Verifying policy data for ctest-vn-26991027 in API_Server ======
2025-04-21 02:15:14,664 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-21 02:15:14,670 - DEBUG - Requesting: http://10.0.0.19:8082/domain/39c0a871-4d00-49c7-8aab-e077259d232e
2025-04-21 02:15:14,683 - DEBUG - Requesting: http://10.0.0.19:8082/project/ce99a8e0-c7a7-4e8c-ad75-9c41d0b47c1e
2025-04-21 02:15:14,760 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/adb5ee8a-e9fe-4d46-8312-98890180ffc4
2025-04-21 02:15:14,772 - DEBUG - ==>Verifying data for policy with id: e7780004-f801-439a-84be-a5ebf021fc20, fqn: ['default-domain', 'ctest-TestBasicPolicy-32025424', 'ctest-policy-allow-all-98979502']
2025-04-21 02:15:14,772 - INFO - VN ctest-vn-26991027 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-21 02:15:14,772 - DEBUG - Verifying the vn in opserver
2025-04-21 02:15:14,772 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32025424:ctest-vn-26991027 virtual network link through opserver 10.0.0.19
2025-04-21 02:15:14,772 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-21 02:15:15,067 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-21 02:15:15,423 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32025424:ctest-vn-26991027', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32025424:ctest-vn-26991027?flat'}
2025-04-21 02:15:15,423 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32025424:ctest-vn-26991027 is found in opserver
2025-04-21 02:15:15,436 - DEBUG - Do not have enough data to verify VN in agent
2025-04-21 02:15:15,441 - DEBUG - VRF ids for VN ctest-vn-26991027: {}
2025-04-21 02:15:15,441 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-21 02:15:15,448 - DEBUG - Requesting: http://10.0.0.19:8082/domain/39c0a871-4d00-49c7-8aab-e077259d232e
2025-04-21 02:15:15,462 - DEBUG - Requesting: http://10.0.0.19:8082/project/ce99a8e0-c7a7-4e8c-ad75-9c41d0b47c1e
2025-04-21 02:15:15,554 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/922e2df0-c6eb-44b7-869e-726a5fe5fc18
2025-04-21 02:15:15,569 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/922e2df0-c6eb-44b7-869e-726a5fe5fc18
2025-04-21 02:15:15,580 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ff3e27d9-5e20-4196-abca-796ec0a03d55
2025-04-21 02:15:15,588 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ff3e27d9-5e20-4196-abca-796ec0a03d55
2025-04-21 02:15:15,595 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/f05b02d7-fd98-4ca1-ba4f-134e5bcfa6c3
2025-04-21 02:15:15,604 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-21 02:15:15,604 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/922e2df0-c6eb-44b7-869e-726a5fe5fc18
2025-04-21 02:15:15,615 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ff3e27d9-5e20-4196-abca-796ec0a03d55
2025-04-21 02:15:15,629 - INFO - Verified VN network id 10 for VN 922e2df0-c6eb-44b7-869e-726a5fe5fc18
2025-04-21 02:15:15,629 - INFO - Verifications in API Server for VN ctest-vn-41625431 passed
2025-04-21 02:15:15,629 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/922e2df0-c6eb-44b7-869e-726a5fe5fc18
2025-04-21 02:15:15,638 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ff3e27d9-5e20-4196-abca-796ec0a03d55
2025-04-21 02:15:15,644 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ff3e27d9-5e20-4196-abca-796ec0a03d55
2025-04-21 02:15:15,653 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/f05b02d7-fd98-4ca1-ba4f-134e5bcfa6c3
2025-04-21 02:15:15,665 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32025424:ctest-vn-41625431', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32025424', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10533407090618877111', 'uuid-lslong': '9700316448603634712'}, 'enable': 'true', 'created': '2025-04-21T02:15:12', 'last-modified': '2025-04-21T02:15:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.739461'}
2025-04-21 02:15:15,671 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-21 02:15:15,671 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41625431 passed
2025-04-21 02:15:15,672 - DEBUG - ====Verifying policy data for ctest-vn-41625431 in API_Server ======
2025-04-21 02:15:15,672 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-21 02:15:15,678 - DEBUG - Requesting: http://10.0.0.19:8082/domain/39c0a871-4d00-49c7-8aab-e077259d232e
2025-04-21 02:15:15,689 - DEBUG - Requesting: http://10.0.0.19:8082/project/ce99a8e0-c7a7-4e8c-ad75-9c41d0b47c1e
2025-04-21 02:15:15,772 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/922e2df0-c6eb-44b7-869e-726a5fe5fc18
2025-04-21 02:15:15,784 - DEBUG - ==>Verifying data for policy with id: e7780004-f801-439a-84be-a5ebf021fc20, fqn: ['default-domain', 'ctest-TestBasicPolicy-32025424', 'ctest-policy-allow-all-98979502']
2025-04-21 02:15:15,784 - INFO - VN ctest-vn-41625431 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-21 02:15:15,784 - DEBUG - Verifying the vn in opserver
2025-04-21 02:15:15,784 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32025424:ctest-vn-41625431 virtual network link through opserver 10.0.0.19
2025-04-21 02:15:15,785 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-21 02:15:15,796 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32025424:ctest-vn-41625431', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32025424:ctest-vn-41625431?flat'}
2025-04-21 02:15:15,797 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32025424:ctest-vn-41625431 is found in opserver
2025-04-21 02:15:15,807 - DEBUG - Do not have enough data to verify VN in agent
2025-04-21 02:15:15,812 - DEBUG - VRF ids for VN ctest-vn-41625431: {}
2025-04-21 02:15:15,878 - DEBUG - Services list from nova: [