2025-11-05 10:49:50,479 - INFO - Domain Default found not creating
2025-11-05 10:49:50,642 - INFO - Project ctest-TestBasicPolicy-33497673 not found, creating it
2025-11-05 10:49:51,063 - INFO - Created Project:ctest-TestBasicPolicy-33497673, ID : fbdda730-8eef-4c14-a4fc-e635c4a8145b
2025-11-05 10:49:52,568 - INFO - ================================================================================
2025-11-05 10:49:52,568 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 10:49:52,568 - 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-11-05 10:49:52,824 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-11-05 10:49:52,824 - INFO - Initial checks done. Running the testcase now
2025-11-05 10:49:52,825 - INFO -
2025-11-05 10:49:53,436 - DEBUG - Response for create_network : {'network': {'id': '71e6cb67-c39b-4b95-8e19-3d1d6a982aef', 'name': 'ctest-vn-14848973', 'tenant_id': 'fbdda7308eef4c14a4fce635c4a8145b', 'project_id': 'fbdda7308eef4c14a4fce635c4a8145b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33497673', 'ctest-vn-14848973'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 10:49:53,651 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7e4e486-0058-4344-8c13-b8d87211a81b', 'name': '', 'tenant_id': 'fbdda7308eef4c14a4fce635c4a8145b', 'network_id': '71e6cb67-c39b-4b95-8e19-3d1d6a982aef', 'ip_version': 4, 'cidr': '216.22.7.64/26', 'allocation_pools': [{'start': '216.22.7.66', 'end': '216.22.7.126'}], 'gateway_ip': '216.22.7.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.22.7.66', 'tags': [], 'project_id': 'fbdda7308eef4c14a4fce635c4a8145b'}}
2025-11-05 10:49:53,670 - INFO - Created VN ctest-vn-14848973
2025-11-05 10:49:53,722 - DEBUG - VN ctest-vn-14848973 UUID is 71e6cb67-c39b-4b95-8e19-3d1d6a982aef
2025-11-05 10:49:54,016 - DEBUG - Response for create_network : {'network': {'id': 'a36e5de9-bcb5-411d-a75a-abd51aa47eba', 'name': 'ctest-vn-33109270', 'tenant_id': 'fbdda7308eef4c14a4fce635c4a8145b', 'project_id': 'fbdda7308eef4c14a4fce635c4a8145b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33497673', 'ctest-vn-33109270'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 10:49:54,244 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de9b1e7b-2912-4ea3-88ea-985ebccac6d3', 'name': '', 'tenant_id': 'fbdda7308eef4c14a4fce635c4a8145b', 'network_id': 'a36e5de9-bcb5-411d-a75a-abd51aa47eba', 'ip_version': 4, 'cidr': '134.40.137.64/26', 'allocation_pools': [{'start': '134.40.137.66', 'end': '134.40.137.126'}], 'gateway_ip': '134.40.137.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.40.137.66', 'tags': [], 'project_id': 'fbdda7308eef4c14a4fce635c4a8145b'}}
2025-11-05 10:49:54,262 - INFO - Created VN ctest-vn-33109270
2025-11-05 10:49:54,318 - DEBUG - VN ctest-vn-33109270 UUID is a36e5de9-bcb5-411d-a75a-abd51aa47eba
2025-11-05 10:49:54,470 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33497673:ctest-vn-14848973, 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-33497673:ctest-vn-33109270, 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-11-05 10:49:54,789 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '71e6cb67-c39b-4b95-8e19-3d1d6a982aef', 'name': 'ctest-vn-14848973', 'tenant_id': 'fbdda7308eef4c14a4fce635c4a8145b', 'project_id': 'fbdda7308eef4c14a4fce635c4a8145b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7e4e486-0058-4344-8c13-b8d87211a81b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33497673', 'ctest-vn-14848973'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33497673', 'ctest-policy-allow-all-11493143']], 'subnet_ipam': [{'subnet_cidr': '216.22.7.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 10:49:55,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a36e5de9-bcb5-411d-a75a-abd51aa47eba', 'name': 'ctest-vn-33109270', 'tenant_id': 'fbdda7308eef4c14a4fce635c4a8145b', 'project_id': 'fbdda7308eef4c14a4fce635c4a8145b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de9b1e7b-2912-4ea3-88ea-985ebccac6d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33497673', 'ctest-vn-33109270'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33497673', 'ctest-policy-allow-all-11493143']], 'subnet_ipam': [{'subnet_cidr': '134.40.137.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 10:49:55,206 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 10:49:55,512 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 10:49:55,543 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3a9c2356-b443-4b47-811d-6d39642beb0d
2025-11-05 10:49:55,558 - DEBUG - Requesting: http://10.0.0.50:8082/project/fbdda730-8eef-4c14-a4fc-e635c4a8145b
2025-11-05 10:49:55,629 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/71e6cb67-c39b-4b95-8e19-3d1d6a982aef
2025-11-05 10:49:55,640 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/71e6cb67-c39b-4b95-8e19-3d1d6a982aef
2025-11-05 10:49:55,649 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e6ea0d4-d4de-4a18-85c6-eed17e4f59fb
2025-11-05 10:49:55,657 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e6ea0d4-d4de-4a18-85c6-eed17e4f59fb
2025-11-05 10:49:55,664 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8806cc60-38f7-4883-a1a6-4198dd9678fe
2025-11-05 10:49:55,673 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 10:49:55,673 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/71e6cb67-c39b-4b95-8e19-3d1d6a982aef
2025-11-05 10:49:55,682 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e6ea0d4-d4de-4a18-85c6-eed17e4f59fb
2025-11-05 10:49:55,697 - INFO - Verified VN network id 11 for VN 71e6cb67-c39b-4b95-8e19-3d1d6a982aef
2025-11-05 10:49:55,697 - INFO - Verifications in API Server for VN ctest-vn-14848973 passed
2025-11-05 10:49:55,697 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/71e6cb67-c39b-4b95-8e19-3d1d6a982aef
2025-11-05 10:49:55,706 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e6ea0d4-d4de-4a18-85c6-eed17e4f59fb
2025-11-05 10:49:55,713 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e6ea0d4-d4de-4a18-85c6-eed17e4f59fb
2025-11-05 10:49:55,719 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8806cc60-38f7-4883-a1a6-4198dd9678fe
2025-11-05 10:49:55,732 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33497673:ctest-vn-14848973', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33497673', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8207471017453112213', 'uuid-lslong': '10239282424355236591'}, 'enable': 'true', 'created': '2025-11-05T10:49:53', 'last-modified': '2025-11-05T10:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971675'}
2025-11-05 10:49:55,739 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 10:49:55,739 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14848973 passed
2025-11-05 10:49:55,740 - DEBUG - ====Verifying policy data for ctest-vn-14848973 in API_Server ======
2025-11-05 10:49:55,740 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 10:49:55,747 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3a9c2356-b443-4b47-811d-6d39642beb0d
2025-11-05 10:49:55,759 - DEBUG - Requesting: http://10.0.0.50:8082/project/fbdda730-8eef-4c14-a4fc-e635c4a8145b
2025-11-05 10:49:55,829 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/71e6cb67-c39b-4b95-8e19-3d1d6a982aef
2025-11-05 10:49:55,839 - DEBUG - ==>Verifying data for policy with id: 2bd89da0-9f34-4d71-b04d-f3da0780a66c, fqn: ['default-domain', 'ctest-TestBasicPolicy-33497673', 'ctest-policy-allow-all-11493143']
2025-11-05 10:49:55,839 - INFO - VN ctest-vn-14848973 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 10:49:55,840 - DEBUG - Verifying the vn in opserver
2025-11-05 10:49:55,840 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33497673:ctest-vn-14848973 virtual network link through opserver 10.0.0.50
2025-11-05 10:49:55,840 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 10:49:56,150 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 10:49:56,206 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33497673:ctest-vn-14848973', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33497673:ctest-vn-14848973?flat'}
2025-11-05 10:49:56,206 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33497673:ctest-vn-14848973 is found in opserver
2025-11-05 10:49:56,215 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 10:49:56,220 - DEBUG - VRF ids for VN ctest-vn-14848973: {}
2025-11-05 10:49:56,220 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 10:49:56,225 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3a9c2356-b443-4b47-811d-6d39642beb0d
2025-11-05 10:49:56,234 - DEBUG - Requesting: http://10.0.0.50:8082/project/fbdda730-8eef-4c14-a4fc-e635c4a8145b
2025-11-05 10:49:56,310 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a36e5de9-bcb5-411d-a75a-abd51aa47eba
2025-11-05 10:49:56,322 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a36e5de9-bcb5-411d-a75a-abd51aa47eba
2025-11-05 10:49:56,330 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/51edc165-cf22-472a-a496-bf354225caf1
2025-11-05 10:49:56,338 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/51edc165-cf22-472a-a496-bf354225caf1
2025-11-05 10:49:56,344 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/352d93d6-5b3a-4d13-b6f5-d1a054f2d2ae
2025-11-05 10:49:56,349 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 10:49:56,349 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a36e5de9-bcb5-411d-a75a-abd51aa47eba
2025-11-05 10:49:56,357 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/51edc165-cf22-472a-a496-bf354225caf1
2025-11-05 10:49:56,370 - INFO - Verified VN network id 12 for VN a36e5de9-bcb5-411d-a75a-abd51aa47eba
2025-11-05 10:49:56,370 - INFO - Verifications in API Server for VN ctest-vn-33109270 passed
2025-11-05 10:49:56,370 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a36e5de9-bcb5-411d-a75a-abd51aa47eba
2025-11-05 10:49:56,378 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/51edc165-cf22-472a-a496-bf354225caf1
2025-11-05 10:49:56,384 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/51edc165-cf22-472a-a496-bf354225caf1
2025-11-05 10:49:56,391 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/352d93d6-5b3a-4d13-b6f5-d1a054f2d2ae
2025-11-05 10:49:56,403 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33497673:ctest-vn-33109270', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33497673', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11776453334095184157', 'uuid-lslong': '12059139884001296058'}, 'enable': 'true', 'created': '2025-11-05T10:49:53', 'last-modified': '2025-11-05T10:49:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.386780'}
2025-11-05 10:49:56,410 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 10:49:56,410 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33109270 passed
2025-11-05 10:49:56,410 - DEBUG - ====Verifying policy data for ctest-vn-33109270 in API_Server ======
2025-11-05 10:49:56,410 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 10:49:56,416 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3a9c2356-b443-4b47-811d-6d39642beb0d
2025-11-05 10:49:56,426 - DEBUG - Requesting: http://10.0.0.50:8082/project/fbdda730-8eef-4c14-a4fc-e635c4a8145b
2025-11-05 10:49:56,499 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a36e5de9-bcb5-411d-a75a-abd51aa47eba
2025-11-05 10:49:56,508 - DEBUG - ==>Verifying data for policy with id: 2bd89da0-9f34-4d71-b04d-f3da0780a66c, fqn: ['default-domain', 'ctest-TestBasicPolicy-33497673', 'ctest-policy-allow-all-11493143']
2025-11-05 10:49:56,508 - INFO - VN ctest-vn-33109270 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 10:49:56,508 - DEBUG - Verifying the vn in opserver
2025-11-05 10:49:56,508 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33497673:ctest-vn-33109270 virtual network link through opserver 10.0.0.50
2025-11-05 10:49:56,508 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 10:49:56,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33497673:ctest-vn-33109270', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33497673:ctest-vn-33109270?flat'}
2025-11-05 10:49:56,518 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33497673:ctest-vn-33109270 is found in opserver
2025-11-05 10:49:56,529 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 10:49:56,534 - DEBUG - VRF ids for VN ctest-vn-33109270: {}
2025-11-05 10:49:56,595 - DEBUG - Services list from nova: [