2025-07-10 02:26:45,581 - INFO - Domain Default found not creating
2025-07-10 02:26:45,765 - INFO - Project ctest-TestBasicPolicy-74961296 not found, creating it
2025-07-10 02:26:46,247 - INFO - Created Project:ctest-TestBasicPolicy-74961296, ID : adb7ea44-9821-4c3a-a7e6-9d7efb65e8b7
2025-07-10 02:26:47,867 - INFO - ================================================================================
2025-07-10 02:26:47,867 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-10 02:26:47,867 - 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-10 02:26:48,144 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.209': '0'}} with
2025-07-10 02:26:48,144 - INFO - Initial checks done. Running the testcase now
2025-07-10 02:26:48,144 - INFO -
2025-07-10 02:26:48,763 - DEBUG - Response for create_network : {'network': {'id': 'd6b67976-d052-49b3-9caf-b71f2419f6e0', 'name': 'ctest-vn-75294733', 'tenant_id': 'adb7ea4498214c3aa7e69d7efb65e8b7', 'project_id': 'adb7ea4498214c3aa7e69d7efb65e8b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74961296', 'ctest-vn-75294733'], 'port_security_enabled': True, 'description': ''}}
2025-07-10 02:26:49,000 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf46ba93-6572-4b6b-bec4-4b7d212353ae', 'name': '', 'tenant_id': 'adb7ea4498214c3aa7e69d7efb65e8b7', 'network_id': 'd6b67976-d052-49b3-9caf-b71f2419f6e0', 'ip_version': 4, 'cidr': '129.228.187.0/26', 'allocation_pools': [{'start': '129.228.187.2', 'end': '129.228.187.62'}], 'gateway_ip': '129.228.187.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.228.187.2', 'tags': [], 'project_id': 'adb7ea4498214c3aa7e69d7efb65e8b7'}}
2025-07-10 02:26:49,022 - INFO - Created VN ctest-vn-75294733
2025-07-10 02:26:49,078 - DEBUG - VN ctest-vn-75294733 UUID is d6b67976-d052-49b3-9caf-b71f2419f6e0
2025-07-10 02:26:49,393 - DEBUG - Response for create_network : {'network': {'id': '2a46d7f6-42d4-4899-b1ca-85433a74e8ee', 'name': 'ctest-vn-52868489', 'tenant_id': 'adb7ea4498214c3aa7e69d7efb65e8b7', 'project_id': 'adb7ea4498214c3aa7e69d7efb65e8b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74961296', 'ctest-vn-52868489'], 'port_security_enabled': True, 'description': ''}}
2025-07-10 02:26:49,542 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8244374-bb02-4d82-940b-8658ddbbe600', 'name': '', 'tenant_id': 'adb7ea4498214c3aa7e69d7efb65e8b7', 'network_id': '2a46d7f6-42d4-4899-b1ca-85433a74e8ee', 'ip_version': 4, 'cidr': '14.214.247.64/26', 'allocation_pools': [{'start': '14.214.247.66', 'end': '14.214.247.126'}], 'gateway_ip': '14.214.247.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.214.247.66', 'tags': [], 'project_id': 'adb7ea4498214c3aa7e69d7efb65e8b7'}}
2025-07-10 02:26:49,563 - INFO - Created VN ctest-vn-52868489
2025-07-10 02:26:49,618 - DEBUG - VN ctest-vn-52868489 UUID is 2a46d7f6-42d4-4899-b1ca-85433a74e8ee
2025-07-10 02:26:49,741 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74961296:ctest-vn-75294733, 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-74961296:ctest-vn-52868489, 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-10 02:26:50,049 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6b67976-d052-49b3-9caf-b71f2419f6e0', 'name': 'ctest-vn-75294733', 'tenant_id': 'adb7ea4498214c3aa7e69d7efb65e8b7', 'project_id': 'adb7ea4498214c3aa7e69d7efb65e8b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bf46ba93-6572-4b6b-bec4-4b7d212353ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74961296', 'ctest-vn-75294733'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74961296', 'ctest-policy-allow-all-10368186']], 'subnet_ipam': [{'subnet_cidr': '129.228.187.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-10 02:26:50,306 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a46d7f6-42d4-4899-b1ca-85433a74e8ee', 'name': 'ctest-vn-52868489', 'tenant_id': 'adb7ea4498214c3aa7e69d7efb65e8b7', 'project_id': 'adb7ea4498214c3aa7e69d7efb65e8b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a8244374-bb02-4d82-940b-8658ddbbe600'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74961296', 'ctest-vn-52868489'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74961296', 'ctest-policy-allow-all-10368186']], 'subnet_ipam': [{'subnet_cidr': '14.214.247.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-10 02:26:50,462 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-07-10 02:26:50,809 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-07-10 02:26:50,841 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3dee1766-372a-4f75-b1e1-89cf3e854bde
2025-07-10 02:26:50,856 - DEBUG - Requesting: http://10.0.0.22:8082/project/adb7ea44-9821-4c3a-a7e6-9d7efb65e8b7
2025-07-10 02:26:50,933 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d6b67976-d052-49b3-9caf-b71f2419f6e0
2025-07-10 02:26:50,946 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d6b67976-d052-49b3-9caf-b71f2419f6e0
2025-07-10 02:26:50,957 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/60358287-a5e1-4c76-b0a2-6ca7575abd07
2025-07-10 02:26:50,966 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/60358287-a5e1-4c76-b0a2-6ca7575abd07
2025-07-10 02:26:50,974 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d6052aa4-608a-4f27-a242-00523e9fbfef
2025-07-10 02:26:50,981 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-10 02:26:50,982 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d6b67976-d052-49b3-9caf-b71f2419f6e0
2025-07-10 02:26:50,993 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/60358287-a5e1-4c76-b0a2-6ca7575abd07
2025-07-10 02:26:51,009 - INFO - Verified VN network id 8 for VN d6b67976-d052-49b3-9caf-b71f2419f6e0
2025-07-10 02:26:51,010 - INFO - Verifications in API Server for VN ctest-vn-75294733 passed
2025-07-10 02:26:51,010 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d6b67976-d052-49b3-9caf-b71f2419f6e0
2025-07-10 02:26:51,021 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/60358287-a5e1-4c76-b0a2-6ca7575abd07
2025-07-10 02:26:51,029 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/60358287-a5e1-4c76-b0a2-6ca7575abd07
2025-07-10 02:26:51,037 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d6052aa4-608a-4f27-a242-00523e9fbfef
2025-07-10 02:26:51,053 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74961296:ctest-vn-75294733', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74961296', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15471687121086073267', 'uuid-lslong': '11290444135218673376'}, 'enable': 'true', 'created': '2025-07-10T02:26:48', 'last-modified': '2025-07-10T02:26:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035920'}
2025-07-10 02:26:51,060 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-10 02:26:51,061 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75294733 passed
2025-07-10 02:26:51,061 - DEBUG - ====Verifying policy data for ctest-vn-75294733 in API_Server ======
2025-07-10 02:26:51,061 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-07-10 02:26:51,068 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3dee1766-372a-4f75-b1e1-89cf3e854bde
2025-07-10 02:26:51,082 - DEBUG - Requesting: http://10.0.0.22:8082/project/adb7ea44-9821-4c3a-a7e6-9d7efb65e8b7
2025-07-10 02:26:51,158 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d6b67976-d052-49b3-9caf-b71f2419f6e0
2025-07-10 02:26:51,173 - DEBUG - ==>Verifying data for policy with id: 77d8b697-4130-46b6-8f70-19f92b6957c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-74961296', 'ctest-policy-allow-all-10368186']
2025-07-10 02:26:51,173 - INFO - VN ctest-vn-75294733 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-10 02:26:51,173 - DEBUG - Verifying the vn in opserver
2025-07-10 02:26:51,173 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74961296:ctest-vn-75294733 virtual network link through opserver 10.0.0.22
2025-07-10 02:26:51,173 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-07-10 02:26:51,510 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-07-10 02:26:51,570 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74961296:ctest-vn-75294733', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74961296:ctest-vn-75294733?flat'}
2025-07-10 02:26:51,570 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74961296:ctest-vn-75294733 is found in opserver
2025-07-10 02:26:51,583 - DEBUG - Do not have enough data to verify VN in agent
2025-07-10 02:26:51,589 - DEBUG - VRF ids for VN ctest-vn-75294733: {}
2025-07-10 02:26:51,589 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-07-10 02:26:51,596 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3dee1766-372a-4f75-b1e1-89cf3e854bde
2025-07-10 02:26:51,609 - DEBUG - Requesting: http://10.0.0.22:8082/project/adb7ea44-9821-4c3a-a7e6-9d7efb65e8b7
2025-07-10 02:26:51,684 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a46d7f6-42d4-4899-b1ca-85433a74e8ee
2025-07-10 02:26:51,698 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a46d7f6-42d4-4899-b1ca-85433a74e8ee
2025-07-10 02:26:51,709 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d3369aa4-ac61-427d-b416-91d41730bb7f
2025-07-10 02:26:51,717 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d3369aa4-ac61-427d-b416-91d41730bb7f
2025-07-10 02:26:51,725 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e58b36ba-3847-4bf7-9012-81597677e5f0
2025-07-10 02:26:51,733 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-10 02:26:51,733 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a46d7f6-42d4-4899-b1ca-85433a74e8ee
2025-07-10 02:26:51,748 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d3369aa4-ac61-427d-b416-91d41730bb7f
2025-07-10 02:26:51,765 - INFO - Verified VN network id 9 for VN 2a46d7f6-42d4-4899-b1ca-85433a74e8ee
2025-07-10 02:26:51,766 - INFO - Verifications in API Server for VN ctest-vn-52868489 passed
2025-07-10 02:26:51,766 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a46d7f6-42d4-4899-b1ca-85433a74e8ee
2025-07-10 02:26:51,776 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d3369aa4-ac61-427d-b416-91d41730bb7f
2025-07-10 02:26:51,784 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d3369aa4-ac61-427d-b416-91d41730bb7f
2025-07-10 02:26:51,792 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e58b36ba-3847-4bf7-9012-81597677e5f0
2025-07-10 02:26:51,805 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74961296:ctest-vn-52868489', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74961296', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3046359650645854361', 'uuid-lslong': '12811198613798840558'}, 'enable': 'true', 'created': '2025-07-10T02:26:49', 'last-modified': '2025-07-10T02:26:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.567619'}
2025-07-10 02:26:51,813 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-10 02:26:51,813 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52868489 passed
2025-07-10 02:26:51,813 - DEBUG - ====Verifying policy data for ctest-vn-52868489 in API_Server ======
2025-07-10 02:26:51,813 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-07-10 02:26:51,820 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3dee1766-372a-4f75-b1e1-89cf3e854bde
2025-07-10 02:26:51,833 - DEBUG - Requesting: http://10.0.0.22:8082/project/adb7ea44-9821-4c3a-a7e6-9d7efb65e8b7
2025-07-10 02:26:51,909 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a46d7f6-42d4-4899-b1ca-85433a74e8ee
2025-07-10 02:26:51,921 - DEBUG - ==>Verifying data for policy with id: 77d8b697-4130-46b6-8f70-19f92b6957c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-74961296', 'ctest-policy-allow-all-10368186']
2025-07-10 02:26:51,921 - INFO - VN ctest-vn-52868489 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-10 02:26:51,921 - DEBUG - Verifying the vn in opserver
2025-07-10 02:26:51,921 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74961296:ctest-vn-52868489 virtual network link through opserver 10.0.0.22
2025-07-10 02:26:51,921 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-07-10 02:26:51,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74961296:ctest-vn-52868489', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74961296:ctest-vn-52868489?flat'}
2025-07-10 02:26:51,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74961296:ctest-vn-52868489 is found in opserver
2025-07-10 02:26:51,946 - DEBUG - Do not have enough data to verify VN in agent
2025-07-10 02:26:51,954 - DEBUG - VRF ids for VN ctest-vn-52868489: {}
2025-07-10 02:26:52,015 - DEBUG - Services list from nova: [