2025-08-20 13:40:16,982 - INFO - Domain Default found not creating
2025-08-20 13:40:17,140 - INFO - Project ctest-TestBasicPolicy-84891847 not found, creating it
2025-08-20 13:40:17,606 - INFO - Created Project:ctest-TestBasicPolicy-84891847, ID : 86033d73-cc5a-4182-87f3-8c9772329f00
2025-08-20 13:40:19,103 - INFO - ================================================================================
2025-08-20 13:40:19,103 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-20 13:40:19,103 - 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-20 13:40:19,363 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with
2025-08-20 13:40:19,363 - INFO - Initial checks done. Running the testcase now
2025-08-20 13:40:19,364 - INFO -
2025-08-20 13:40:19,897 - DEBUG - Response for create_network : {'network': {'id': '3337a3d2-fe8a-46f3-935d-c474ed50e130', 'name': 'ctest-vn-83847877', 'tenant_id': '86033d73cc5a418287f38c9772329f00', 'project_id': '86033d73cc5a418287f38c9772329f00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84891847', 'ctest-vn-83847877'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 13:40:20,113 - DEBUG - Response for create_subnet : {'subnet': {'id': '5338eef0-b78b-41e8-baf3-3df9746a37b0', 'name': '', 'tenant_id': '86033d73cc5a418287f38c9772329f00', 'network_id': '3337a3d2-fe8a-46f3-935d-c474ed50e130', 'ip_version': 4, 'cidr': '65.222.177.128/26', 'allocation_pools': [{'start': '65.222.177.130', 'end': '65.222.177.190'}], 'gateway_ip': '65.222.177.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.222.177.130', 'tags': [], 'project_id': '86033d73cc5a418287f38c9772329f00'}}
2025-08-20 13:40:20,130 - INFO - Created VN ctest-vn-83847877
2025-08-20 13:40:20,182 - DEBUG - VN ctest-vn-83847877 UUID is 3337a3d2-fe8a-46f3-935d-c474ed50e130
2025-08-20 13:40:20,513 - DEBUG - Response for create_network : {'network': {'id': 'c6b39fb0-20b1-4f5f-939a-c964fdccfbc1', 'name': 'ctest-vn-69572991', 'tenant_id': '86033d73cc5a418287f38c9772329f00', 'project_id': '86033d73cc5a418287f38c9772329f00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84891847', 'ctest-vn-69572991'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 13:40:20,684 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c46cb689-7127-46b3-b225-0c681d1556f9', 'name': '', 'tenant_id': '86033d73cc5a418287f38c9772329f00', 'network_id': 'c6b39fb0-20b1-4f5f-939a-c964fdccfbc1', 'ip_version': 4, 'cidr': '213.254.211.192/26', 'allocation_pools': [{'start': '213.254.211.194', 'end': '213.254.211.254'}], 'gateway_ip': '213.254.211.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.254.211.194', 'tags': [], 'project_id': '86033d73cc5a418287f38c9772329f00'}}
2025-08-20 13:40:20,702 - INFO - Created VN ctest-vn-69572991
2025-08-20 13:40:20,754 - DEBUG - VN ctest-vn-69572991 UUID is c6b39fb0-20b1-4f5f-939a-c964fdccfbc1
2025-08-20 13:40:20,871 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84891847:ctest-vn-83847877, 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-84891847:ctest-vn-69572991, 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-20 13:40:21,172 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3337a3d2-fe8a-46f3-935d-c474ed50e130', 'name': 'ctest-vn-83847877', 'tenant_id': '86033d73cc5a418287f38c9772329f00', 'project_id': '86033d73cc5a418287f38c9772329f00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5338eef0-b78b-41e8-baf3-3df9746a37b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84891847', 'ctest-vn-83847877'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84891847', 'ctest-policy-allow-all-64370469']], 'subnet_ipam': [{'subnet_cidr': '65.222.177.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 13:40:21,456 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6b39fb0-20b1-4f5f-939a-c964fdccfbc1', 'name': 'ctest-vn-69572991', 'tenant_id': '86033d73cc5a418287f38c9772329f00', 'project_id': '86033d73cc5a418287f38c9772329f00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c46cb689-7127-46b3-b225-0c681d1556f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84891847', 'ctest-vn-69572991'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84891847', 'ctest-policy-allow-all-64370469']], 'subnet_ipam': [{'subnet_cidr': '213.254.211.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 13:40:21,606 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-20 13:40:21,906 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-20 13:40:21,940 - DEBUG - Requesting: http://10.0.0.27:8082/domain/836d935d-fefa-4466-b038-e609fdfda827
2025-08-20 13:40:21,955 - DEBUG - Requesting: http://10.0.0.27:8082/project/86033d73-cc5a-4182-87f3-8c9772329f00
2025-08-20 13:40:22,034 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3337a3d2-fe8a-46f3-935d-c474ed50e130
2025-08-20 13:40:22,046 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3337a3d2-fe8a-46f3-935d-c474ed50e130
2025-08-20 13:40:22,056 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9d7b0069-04a1-47b5-ae92-37d1864c1329
2025-08-20 13:40:22,064 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9d7b0069-04a1-47b5-ae92-37d1864c1329
2025-08-20 13:40:22,072 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/709b1273-511c-42ce-b1f4-70b89be80364
2025-08-20 13:40:22,080 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 13:40:22,080 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3337a3d2-fe8a-46f3-935d-c474ed50e130
2025-08-20 13:40:22,090 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9d7b0069-04a1-47b5-ae92-37d1864c1329
2025-08-20 13:40:22,108 - INFO - Verified VN network id 10 for VN 3337a3d2-fe8a-46f3-935d-c474ed50e130
2025-08-20 13:40:22,108 - INFO - Verifications in API Server for VN ctest-vn-83847877 passed
2025-08-20 13:40:22,108 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3337a3d2-fe8a-46f3-935d-c474ed50e130
2025-08-20 13:40:22,122 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9d7b0069-04a1-47b5-ae92-37d1864c1329
2025-08-20 13:40:22,132 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9d7b0069-04a1-47b5-ae92-37d1864c1329
2025-08-20 13:40:22,140 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/709b1273-511c-42ce-b1f4-70b89be80364
2025-08-20 13:40:22,154 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84891847:ctest-vn-83847877', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84891847', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3690598546262345459', 'uuid-lslong': '10618859502886248752'}, 'enable': 'true', 'created': '2025-08-20T13:40:19', 'last-modified': '2025-08-20T13:40:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.004539'}
2025-08-20 13:40:22,162 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 13:40:22,162 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83847877 passed
2025-08-20 13:40:22,163 - DEBUG - ====Verifying policy data for ctest-vn-83847877 in API_Server ======
2025-08-20 13:40:22,163 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-20 13:40:22,170 - DEBUG - Requesting: http://10.0.0.27:8082/domain/836d935d-fefa-4466-b038-e609fdfda827
2025-08-20 13:40:22,182 - DEBUG - Requesting: http://10.0.0.27:8082/project/86033d73-cc5a-4182-87f3-8c9772329f00
2025-08-20 13:40:22,257 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/3337a3d2-fe8a-46f3-935d-c474ed50e130
2025-08-20 13:40:22,267 - DEBUG - ==>Verifying data for policy with id: 2a135201-ea9c-44d7-ab1b-bbbabeb58921, fqn: ['default-domain', 'ctest-TestBasicPolicy-84891847', 'ctest-policy-allow-all-64370469']
2025-08-20 13:40:22,267 - INFO - VN ctest-vn-83847877 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 13:40:22,267 - DEBUG - Verifying the vn in opserver
2025-08-20 13:40:22,267 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84891847:ctest-vn-83847877 virtual network link through opserver 10.0.0.27
2025-08-20 13:40:22,267 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-08-20 13:40:22,556 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-08-20 13:40:22,612 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84891847:ctest-vn-83847877', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84891847:ctest-vn-83847877?flat'}
2025-08-20 13:40:22,612 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84891847:ctest-vn-83847877 is found in opserver
2025-08-20 13:40:22,623 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 13:40:22,628 - DEBUG - VRF ids for VN ctest-vn-83847877: {}
2025-08-20 13:40:22,628 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-20 13:40:22,635 - DEBUG - Requesting: http://10.0.0.27:8082/domain/836d935d-fefa-4466-b038-e609fdfda827
2025-08-20 13:40:22,648 - DEBUG - Requesting: http://10.0.0.27:8082/project/86033d73-cc5a-4182-87f3-8c9772329f00
2025-08-20 13:40:22,723 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c6b39fb0-20b1-4f5f-939a-c964fdccfbc1
2025-08-20 13:40:22,746 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c6b39fb0-20b1-4f5f-939a-c964fdccfbc1
2025-08-20 13:40:22,756 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5e976d4e-5297-4577-a69a-ed23e44eeb58
2025-08-20 13:40:22,764 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5e976d4e-5297-4577-a69a-ed23e44eeb58
2025-08-20 13:40:22,771 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0c13a4c1-85e0-45b5-ae6b-253747ca25e3
2025-08-20 13:40:22,787 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 13:40:22,787 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c6b39fb0-20b1-4f5f-939a-c964fdccfbc1
2025-08-20 13:40:22,799 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5e976d4e-5297-4577-a69a-ed23e44eeb58
2025-08-20 13:40:22,814 - INFO - Verified VN network id 11 for VN c6b39fb0-20b1-4f5f-939a-c964fdccfbc1
2025-08-20 13:40:22,814 - INFO - Verifications in API Server for VN ctest-vn-69572991 passed
2025-08-20 13:40:22,814 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c6b39fb0-20b1-4f5f-939a-c964fdccfbc1
2025-08-20 13:40:22,825 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5e976d4e-5297-4577-a69a-ed23e44eeb58
2025-08-20 13:40:22,833 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5e976d4e-5297-4577-a69a-ed23e44eeb58
2025-08-20 13:40:22,841 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0c13a4c1-85e0-45b5-ae6b-253747ca25e3
2025-08-20 13:40:22,856 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84891847:ctest-vn-69572991', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84891847', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14317963219152490335', 'uuid-lslong': '10636034905580829633'}, 'enable': 'true', 'created': '2025-08-20T13:40:20', 'last-modified': '2025-08-20T13:40:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.472784'}
2025-08-20 13:40:22,863 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 13:40:22,863 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69572991 passed
2025-08-20 13:40:22,863 - DEBUG - ====Verifying policy data for ctest-vn-69572991 in API_Server ======
2025-08-20 13:40:22,863 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-20 13:40:22,869 - DEBUG - Requesting: http://10.0.0.27:8082/domain/836d935d-fefa-4466-b038-e609fdfda827
2025-08-20 13:40:22,881 - DEBUG - Requesting: http://10.0.0.27:8082/project/86033d73-cc5a-4182-87f3-8c9772329f00
2025-08-20 13:40:22,958 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c6b39fb0-20b1-4f5f-939a-c964fdccfbc1
2025-08-20 13:40:22,967 - DEBUG - ==>Verifying data for policy with id: 2a135201-ea9c-44d7-ab1b-bbbabeb58921, fqn: ['default-domain', 'ctest-TestBasicPolicy-84891847', 'ctest-policy-allow-all-64370469']
2025-08-20 13:40:22,967 - INFO - VN ctest-vn-69572991 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 13:40:22,968 - DEBUG - Verifying the vn in opserver
2025-08-20 13:40:22,968 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84891847:ctest-vn-69572991 virtual network link through opserver 10.0.0.27
2025-08-20 13:40:22,968 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-08-20 13:40:22,978 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84891847:ctest-vn-69572991', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84891847:ctest-vn-69572991?flat'}
2025-08-20 13:40:22,978 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84891847:ctest-vn-69572991 is found in opserver
2025-08-20 13:40:22,990 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 13:40:22,996 - DEBUG - VRF ids for VN ctest-vn-69572991: {}
2025-08-20 13:40:23,064 - DEBUG - Services list from nova: [