2025-06-26 02:10:37,776 - INFO - Domain Default found not creating
2025-06-26 02:10:37,941 - INFO - Project ctest-TestBasicPolicy-24956579 not found, creating it
2025-06-26 02:10:38,465 - INFO - Created Project:ctest-TestBasicPolicy-24956579, ID : 1c0b2ec3-0ff8-454f-bf4f-10167998e99a
2025-06-26 02:10:40,026 - INFO - ================================================================================
2025-06-26 02:10:40,026 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-26 02:10:40,026 - 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-06-26 02:10:40,292 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-06-26 02:10:40,292 - INFO - Initial checks done. Running the testcase now
2025-06-26 02:10:40,292 - INFO -
2025-06-26 02:10:40,867 - DEBUG - Response for create_network : {'network': {'id': '29cd670b-1752-44b5-aff2-c85ff78ba971', 'name': 'ctest-vn-10600598', 'tenant_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'project_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-vn-10600598'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 02:10:41,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a0694cb-b3ff-48aa-8bbb-f2ba906d0fb6', 'name': '', 'tenant_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'network_id': '29cd670b-1752-44b5-aff2-c85ff78ba971', 'ip_version': 4, 'cidr': '27.57.197.64/26', 'allocation_pools': [{'start': '27.57.197.66', 'end': '27.57.197.126'}], 'gateway_ip': '27.57.197.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.57.197.66', 'tags': [], 'project_id': '1c0b2ec30ff8454fbf4f10167998e99a'}}
2025-06-26 02:10:41,095 - INFO - Created VN ctest-vn-10600598
2025-06-26 02:10:41,152 - DEBUG - VN ctest-vn-10600598 UUID is 29cd670b-1752-44b5-aff2-c85ff78ba971
2025-06-26 02:10:41,460 - DEBUG - Response for create_network : {'network': {'id': 'b1248e52-1c77-4591-a20f-71b28a0e98ba', 'name': 'ctest-vn-96154349', 'tenant_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'project_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-vn-96154349'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 02:10:41,684 - DEBUG - Response for create_subnet : {'subnet': {'id': '2210ec61-5cd8-4be3-86b1-d524a688bfa8', 'name': '', 'tenant_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'network_id': 'b1248e52-1c77-4591-a20f-71b28a0e98ba', 'ip_version': 4, 'cidr': '31.108.52.128/26', 'allocation_pools': [{'start': '31.108.52.130', 'end': '31.108.52.190'}], 'gateway_ip': '31.108.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.108.52.130', 'tags': [], 'project_id': '1c0b2ec30ff8454fbf4f10167998e99a'}}
2025-06-26 02:10:41,704 - INFO - Created VN ctest-vn-96154349
2025-06-26 02:10:41,760 - DEBUG - VN ctest-vn-96154349 UUID is b1248e52-1c77-4591-a20f-71b28a0e98ba
2025-06-26 02:10:41,882 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598, 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-24956579:ctest-vn-96154349, 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-06-26 02:10:42,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '29cd670b-1752-44b5-aff2-c85ff78ba971', 'name': 'ctest-vn-10600598', 'tenant_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'project_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a0694cb-b3ff-48aa-8bbb-f2ba906d0fb6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-vn-10600598'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-policy-allow-all-43321651']], 'subnet_ipam': [{'subnet_cidr': '27.57.197.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 02:10:42,442 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1248e52-1c77-4591-a20f-71b28a0e98ba', 'name': 'ctest-vn-96154349', 'tenant_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'project_id': '1c0b2ec30ff8454fbf4f10167998e99a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2210ec61-5cd8-4be3-86b1-d524a688bfa8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-vn-96154349'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-policy-allow-all-43321651']], 'subnet_ipam': [{'subnet_cidr': '31.108.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 02:10:42,624 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-26 02:10:42,926 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-26 02:10:42,959 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8bbe1fd2-32ea-48a8-93b9-0bfeeffccd77
2025-06-26 02:10:42,974 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c0b2ec3-0ff8-454f-bf4f-10167998e99a
2025-06-26 02:10:43,072 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29cd670b-1752-44b5-aff2-c85ff78ba971
2025-06-26 02:10:43,086 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29cd670b-1752-44b5-aff2-c85ff78ba971
2025-06-26 02:10:43,099 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26abe816-241f-492a-a860-53538f9afe73
2025-06-26 02:10:43,109 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26abe816-241f-492a-a860-53538f9afe73
2025-06-26 02:10:43,118 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3cf91ea5-f4aa-46b9-93f6-7a94bce911b8
2025-06-26 02:10:43,127 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 02:10:43,127 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29cd670b-1752-44b5-aff2-c85ff78ba971
2025-06-26 02:10:43,140 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26abe816-241f-492a-a860-53538f9afe73
2025-06-26 02:10:43,159 - INFO - Verified VN network id 9 for VN 29cd670b-1752-44b5-aff2-c85ff78ba971
2025-06-26 02:10:43,160 - INFO - Verifications in API Server for VN ctest-vn-10600598 passed
2025-06-26 02:10:43,160 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29cd670b-1752-44b5-aff2-c85ff78ba971
2025-06-26 02:10:43,171 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26abe816-241f-492a-a860-53538f9afe73
2025-06-26 02:10:43,180 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/26abe816-241f-492a-a860-53538f9afe73
2025-06-26 02:10:43,190 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3cf91ea5-f4aa-46b9-93f6-7a94bce911b8
2025-06-26 02:10:43,206 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24956579', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3012177023114298549', 'uuid-lslong': '12678416215501941105'}, 'enable': 'true', 'created': '2025-06-26T02:10:40', 'last-modified': '2025-06-26T02:10:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035689'}
2025-06-26 02:10:43,214 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 02:10:43,214 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10600598 passed
2025-06-26 02:10:43,214 - DEBUG - ====Verifying policy data for ctest-vn-10600598 in API_Server ======
2025-06-26 02:10:43,215 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-26 02:10:43,222 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8bbe1fd2-32ea-48a8-93b9-0bfeeffccd77
2025-06-26 02:10:43,239 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c0b2ec3-0ff8-454f-bf4f-10167998e99a
2025-06-26 02:10:43,327 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/29cd670b-1752-44b5-aff2-c85ff78ba971
2025-06-26 02:10:43,339 - DEBUG - ==>Verifying data for policy with id: e1460a0e-7f0d-44b8-bbce-97b63b45b211, fqn: ['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-policy-allow-all-43321651']
2025-06-26 02:10:43,339 - INFO - VN ctest-vn-10600598 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 02:10:43,339 - DEBUG - Verifying the vn in opserver
2025-06-26 02:10:43,339 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598 virtual network link through opserver 10.0.0.254
2025-06-26 02:10:43,339 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-26 02:10:43,643 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-26 02:10:43,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598?flat'}
2025-06-26 02:10:43,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-10600598 is found in opserver
2025-06-26 02:10:43,715 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 02:10:43,721 - DEBUG - VRF ids for VN ctest-vn-10600598: {}
2025-06-26 02:10:43,721 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-26 02:10:43,728 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8bbe1fd2-32ea-48a8-93b9-0bfeeffccd77
2025-06-26 02:10:43,745 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c0b2ec3-0ff8-454f-bf4f-10167998e99a
2025-06-26 02:10:43,823 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1248e52-1c77-4591-a20f-71b28a0e98ba
2025-06-26 02:10:43,839 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1248e52-1c77-4591-a20f-71b28a0e98ba
2025-06-26 02:10:43,851 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe82e8e-de82-4951-8b2a-f32947266102
2025-06-26 02:10:43,861 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe82e8e-de82-4951-8b2a-f32947266102
2025-06-26 02:10:43,871 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7cca38cc-ba18-481e-bcc8-572467cf652e
2025-06-26 02:10:43,881 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 02:10:43,881 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1248e52-1c77-4591-a20f-71b28a0e98ba
2025-06-26 02:10:43,897 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe82e8e-de82-4951-8b2a-f32947266102
2025-06-26 02:10:43,919 - INFO - Verified VN network id 10 for VN b1248e52-1c77-4591-a20f-71b28a0e98ba
2025-06-26 02:10:43,919 - INFO - Verifications in API Server for VN ctest-vn-96154349 passed
2025-06-26 02:10:43,920 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1248e52-1c77-4591-a20f-71b28a0e98ba
2025-06-26 02:10:43,935 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe82e8e-de82-4951-8b2a-f32947266102
2025-06-26 02:10:43,944 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ebe82e8e-de82-4951-8b2a-f32947266102
2025-06-26 02:10:43,954 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7cca38cc-ba18-481e-bcc8-572467cf652e
2025-06-26 02:10:43,970 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-96154349', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24956579', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12764483727190869393', 'uuid-lslong': '11677677370429315258'}, 'enable': 'true', 'created': '2025-06-26T02:10:41', 'last-modified': '2025-06-26T02:10:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.558913'}
2025-06-26 02:10:43,978 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 02:10:43,978 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96154349 passed
2025-06-26 02:10:43,979 - DEBUG - ====Verifying policy data for ctest-vn-96154349 in API_Server ======
2025-06-26 02:10:43,979 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-26 02:10:43,986 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8bbe1fd2-32ea-48a8-93b9-0bfeeffccd77
2025-06-26 02:10:44,000 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c0b2ec3-0ff8-454f-bf4f-10167998e99a
2025-06-26 02:10:44,071 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b1248e52-1c77-4591-a20f-71b28a0e98ba
2025-06-26 02:10:44,082 - DEBUG - ==>Verifying data for policy with id: e1460a0e-7f0d-44b8-bbce-97b63b45b211, fqn: ['default-domain', 'ctest-TestBasicPolicy-24956579', 'ctest-policy-allow-all-43321651']
2025-06-26 02:10:44,082 - INFO - VN ctest-vn-96154349 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 02:10:44,083 - DEBUG - Verifying the vn in opserver
2025-06-26 02:10:44,083 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-96154349 virtual network link through opserver 10.0.0.254
2025-06-26 02:10:44,083 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-26 02:10:44,094 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-96154349', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-96154349?flat'}
2025-06-26 02:10:44,094 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24956579:ctest-vn-96154349 is found in opserver
2025-06-26 02:10:44,106 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 02:10:44,113 - DEBUG - VRF ids for VN ctest-vn-96154349: {}
2025-06-26 02:10:44,176 - DEBUG - Services list from nova: [