2025-08-25 14:25:45,522 - INFO - Domain Default found not creating
2025-08-25 14:25:45,673 - INFO - Project ctest-TestBasicPolicy-74966210 not found, creating it
2025-08-25 14:25:46,152 - INFO - Created Project:ctest-TestBasicPolicy-74966210, ID : 07c65bc4-fa1c-4ea6-b4e1-6b0bbda07f72
2025-08-25 14:25:47,823 - INFO - ================================================================================
2025-08-25 14:25:47,823 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-25 14:25:47,823 - 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-08-25 14:25:48,083 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-08-25 14:25:48,083 - INFO - Initial checks done. Running the testcase now
2025-08-25 14:25:48,084 - INFO -
2025-08-25 14:25:48,669 - DEBUG - Response for create_network : {'network': {'id': '48b80388-a4f5-4b09-ba1f-e1cf72d2ef71', 'name': 'ctest-vn-99852685', 'tenant_id': '07c65bc4fa1c4ea6b4e16b0bbda07f72', 'project_id': '07c65bc4fa1c4ea6b4e16b0bbda07f72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74966210', 'ctest-vn-99852685'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 14:25:48,843 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd6f1ff6-4662-4de5-83d0-2d693a9daacd', 'name': '', 'tenant_id': '07c65bc4fa1c4ea6b4e16b0bbda07f72', 'network_id': '48b80388-a4f5-4b09-ba1f-e1cf72d2ef71', 'ip_version': 4, 'cidr': '161.43.163.128/26', 'allocation_pools': [{'start': '161.43.163.130', 'end': '161.43.163.190'}], 'gateway_ip': '161.43.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.43.163.130', 'tags': [], 'project_id': '07c65bc4fa1c4ea6b4e16b0bbda07f72'}}
2025-08-25 14:25:48,866 - INFO - Created VN ctest-vn-99852685
2025-08-25 14:25:48,921 - DEBUG - VN ctest-vn-99852685 UUID is 48b80388-a4f5-4b09-ba1f-e1cf72d2ef71
2025-08-25 14:25:49,222 - DEBUG - Response for create_network : {'network': {'id': '767f6073-eff3-4674-9aa9-b3f943e4fcc8', 'name': 'ctest-vn-99720709', 'tenant_id': '07c65bc4fa1c4ea6b4e16b0bbda07f72', 'project_id': '07c65bc4fa1c4ea6b4e16b0bbda07f72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74966210', 'ctest-vn-99720709'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 14:25:49,416 - DEBUG - Response for create_subnet : {'subnet': {'id': '96930aa9-aedb-4c41-bfbe-86e4c2249d4e', 'name': '', 'tenant_id': '07c65bc4fa1c4ea6b4e16b0bbda07f72', 'network_id': '767f6073-eff3-4674-9aa9-b3f943e4fcc8', 'ip_version': 4, 'cidr': '200.217.100.128/26', 'allocation_pools': [{'start': '200.217.100.130', 'end': '200.217.100.190'}], 'gateway_ip': '200.217.100.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.217.100.130', 'tags': [], 'project_id': '07c65bc4fa1c4ea6b4e16b0bbda07f72'}}
2025-08-25 14:25:49,434 - INFO - Created VN ctest-vn-99720709
2025-08-25 14:25:49,489 - DEBUG - VN ctest-vn-99720709 UUID is 767f6073-eff3-4674-9aa9-b3f943e4fcc8
2025-08-25 14:25:49,603 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74966210:ctest-vn-99852685, 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-74966210:ctest-vn-99720709, 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-08-25 14:25:49,911 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48b80388-a4f5-4b09-ba1f-e1cf72d2ef71', 'name': 'ctest-vn-99852685', 'tenant_id': '07c65bc4fa1c4ea6b4e16b0bbda07f72', 'project_id': '07c65bc4fa1c4ea6b4e16b0bbda07f72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd6f1ff6-4662-4de5-83d0-2d693a9daacd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74966210', 'ctest-vn-99852685'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74966210', 'ctest-policy-allow-all-74736693']], 'subnet_ipam': [{'subnet_cidr': '161.43.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 14:25:50,217 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '767f6073-eff3-4674-9aa9-b3f943e4fcc8', 'name': 'ctest-vn-99720709', 'tenant_id': '07c65bc4fa1c4ea6b4e16b0bbda07f72', 'project_id': '07c65bc4fa1c4ea6b4e16b0bbda07f72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['96930aa9-aedb-4c41-bfbe-86e4c2249d4e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74966210', 'ctest-vn-99720709'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74966210', 'ctest-policy-allow-all-74736693']], 'subnet_ipam': [{'subnet_cidr': '200.217.100.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 14:25:50,373 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-25 14:25:50,713 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-25 14:25:50,743 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64eabc82-8de7-4a06-ba8c-49f19c9f314a
2025-08-25 14:25:50,757 - DEBUG - Requesting: http://10.0.0.254:8082/project/07c65bc4-fa1c-4ea6-b4e1-6b0bbda07f72
2025-08-25 14:25:50,841 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/48b80388-a4f5-4b09-ba1f-e1cf72d2ef71
2025-08-25 14:25:50,855 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/48b80388-a4f5-4b09-ba1f-e1cf72d2ef71
2025-08-25 14:25:50,866 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/719bede6-1229-4eed-ab0f-d92bd6ac74b3
2025-08-25 14:25:50,874 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/719bede6-1229-4eed-ab0f-d92bd6ac74b3
2025-08-25 14:25:50,882 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d6698d20-af61-4059-af97-ad33a3eaa3b1
2025-08-25 14:25:50,889 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 14:25:50,889 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/48b80388-a4f5-4b09-ba1f-e1cf72d2ef71
2025-08-25 14:25:50,898 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/719bede6-1229-4eed-ab0f-d92bd6ac74b3
2025-08-25 14:25:50,912 - INFO - Verified VN network id 11 for VN 48b80388-a4f5-4b09-ba1f-e1cf72d2ef71
2025-08-25 14:25:50,912 - INFO - Verifications in API Server for VN ctest-vn-99852685 passed
2025-08-25 14:25:50,912 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/48b80388-a4f5-4b09-ba1f-e1cf72d2ef71
2025-08-25 14:25:50,922 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/719bede6-1229-4eed-ab0f-d92bd6ac74b3
2025-08-25 14:25:50,929 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/719bede6-1229-4eed-ab0f-d92bd6ac74b3
2025-08-25 14:25:50,936 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d6698d20-af61-4059-af97-ad33a3eaa3b1
2025-08-25 14:25:50,949 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74966210:ctest-vn-99852685', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74966210', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5239942051863546633', 'uuid-lslong': '13411686496433532785'}, 'enable': 'true', 'created': '2025-08-25T14:25:48', 'last-modified': '2025-08-25T14:25:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.062838'}
2025-08-25 14:25:50,956 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 14:25:50,956 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99852685 passed
2025-08-25 14:25:50,956 - DEBUG - ====Verifying policy data for ctest-vn-99852685 in API_Server ======
2025-08-25 14:25:50,957 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-25 14:25:50,962 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64eabc82-8de7-4a06-ba8c-49f19c9f314a
2025-08-25 14:25:50,974 - DEBUG - Requesting: http://10.0.0.254:8082/project/07c65bc4-fa1c-4ea6-b4e1-6b0bbda07f72
2025-08-25 14:25:51,046 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/48b80388-a4f5-4b09-ba1f-e1cf72d2ef71
2025-08-25 14:25:51,059 - DEBUG - ==>Verifying data for policy with id: fbf657ca-a382-4707-9e6a-f306d257c7bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-74966210', 'ctest-policy-allow-all-74736693']
2025-08-25 14:25:51,059 - INFO - VN ctest-vn-99852685 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 14:25:51,059 - DEBUG - Verifying the vn in opserver
2025-08-25 14:25:51,059 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74966210:ctest-vn-99852685 virtual network link through opserver 10.0.0.254
2025-08-25 14:25:51,059 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-25 14:25:51,406 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-25 14:25:51,463 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74966210:ctest-vn-99852685', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74966210:ctest-vn-99852685?flat'}
2025-08-25 14:25:51,463 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74966210:ctest-vn-99852685 is found in opserver
2025-08-25 14:25:51,474 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 14:25:51,480 - DEBUG - VRF ids for VN ctest-vn-99852685: {}
2025-08-25 14:25:51,480 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-25 14:25:51,485 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64eabc82-8de7-4a06-ba8c-49f19c9f314a
2025-08-25 14:25:51,497 - DEBUG - Requesting: http://10.0.0.254:8082/project/07c65bc4-fa1c-4ea6-b4e1-6b0bbda07f72
2025-08-25 14:25:51,572 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/767f6073-eff3-4674-9aa9-b3f943e4fcc8
2025-08-25 14:25:51,585 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/767f6073-eff3-4674-9aa9-b3f943e4fcc8
2025-08-25 14:25:51,596 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/20b9e2c7-7f7e-43e5-b781-8398d4a22ab1
2025-08-25 14:25:51,604 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/20b9e2c7-7f7e-43e5-b781-8398d4a22ab1
2025-08-25 14:25:51,611 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9ae74dcb-bcbe-44a4-b54a-0a542ca0469c
2025-08-25 14:25:51,617 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 14:25:51,617 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/767f6073-eff3-4674-9aa9-b3f943e4fcc8
2025-08-25 14:25:51,626 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/20b9e2c7-7f7e-43e5-b781-8398d4a22ab1
2025-08-25 14:25:51,640 - INFO - Verified VN network id 12 for VN 767f6073-eff3-4674-9aa9-b3f943e4fcc8
2025-08-25 14:25:51,640 - INFO - Verifications in API Server for VN ctest-vn-99720709 passed
2025-08-25 14:25:51,640 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/767f6073-eff3-4674-9aa9-b3f943e4fcc8
2025-08-25 14:25:51,652 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/20b9e2c7-7f7e-43e5-b781-8398d4a22ab1
2025-08-25 14:25:51,658 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/20b9e2c7-7f7e-43e5-b781-8398d4a22ab1
2025-08-25 14:25:51,665 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9ae74dcb-bcbe-44a4-b54a-0a542ca0469c
2025-08-25 14:25:51,679 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74966210:ctest-vn-99720709', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74966210', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8538649469580953204', 'uuid-lslong': '11144636636072312008'}, 'enable': 'true', 'created': '2025-08-25T14:25:49', 'last-modified': '2025-08-25T14:25:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.541861'}
2025-08-25 14:25:51,688 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 14:25:51,689 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99720709 passed
2025-08-25 14:25:51,689 - DEBUG - ====Verifying policy data for ctest-vn-99720709 in API_Server ======
2025-08-25 14:25:51,689 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-25 14:25:51,695 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64eabc82-8de7-4a06-ba8c-49f19c9f314a
2025-08-25 14:25:51,708 - DEBUG - Requesting: http://10.0.0.254:8082/project/07c65bc4-fa1c-4ea6-b4e1-6b0bbda07f72
2025-08-25 14:25:51,791 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/767f6073-eff3-4674-9aa9-b3f943e4fcc8
2025-08-25 14:25:51,805 - DEBUG - ==>Verifying data for policy with id: fbf657ca-a382-4707-9e6a-f306d257c7bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-74966210', 'ctest-policy-allow-all-74736693']
2025-08-25 14:25:51,805 - INFO - VN ctest-vn-99720709 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 14:25:51,805 - DEBUG - Verifying the vn in opserver
2025-08-25 14:25:51,805 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74966210:ctest-vn-99720709 virtual network link through opserver 10.0.0.254
2025-08-25 14:25:51,805 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-25 14:25:51,818 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74966210:ctest-vn-99720709', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74966210:ctest-vn-99720709?flat'}
2025-08-25 14:25:51,818 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74966210:ctest-vn-99720709 is found in opserver
2025-08-25 14:25:51,833 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 14:25:51,839 - DEBUG - VRF ids for VN ctest-vn-99720709: {}
2025-08-25 14:25:51,895 - DEBUG - Services list from nova: [