2025-06-16 07:06:59,120 - INFO - Domain Default found not creating
2025-06-16 07:06:59,279 - INFO - Project ctest-TestBasicPolicy-51598420 not found, creating it
2025-06-16 07:06:59,765 - INFO - Created Project:ctest-TestBasicPolicy-51598420, ID : 28e901a1-3423-49f6-aa7d-8b0405c401e3
2025-06-16 07:07:01,416 - INFO - ================================================================================
2025-06-16 07:07:01,416 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-16 07:07:01,416 - 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-16 07:07:01,672 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-16 07:07:01,672 - INFO - Initial checks done. Running the testcase now
2025-06-16 07:07:01,672 - INFO -
2025-06-16 07:07:02,346 - DEBUG - Response for create_network : {'network': {'id': '0054e2e6-3dd8-4f16-8a22-9faaa8b307e6', 'name': 'ctest-vn-49260147', 'tenant_id': '28e901a1342349f6aa7d8b0405c401e3', 'project_id': '28e901a1342349f6aa7d8b0405c401e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51598420', 'ctest-vn-49260147'], 'port_security_enabled': True, 'description': ''}}
2025-06-16 07:07:02,566 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff5a78be-ec84-404e-ac33-53b566599f99', 'name': '', 'tenant_id': '28e901a1342349f6aa7d8b0405c401e3', 'network_id': '0054e2e6-3dd8-4f16-8a22-9faaa8b307e6', 'ip_version': 4, 'cidr': '161.216.19.192/26', 'allocation_pools': [{'start': '161.216.19.194', 'end': '161.216.19.254'}], 'gateway_ip': '161.216.19.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.216.19.194', 'tags': [], 'project_id': '28e901a1342349f6aa7d8b0405c401e3'}}
2025-06-16 07:07:02,587 - INFO - Created VN ctest-vn-49260147
2025-06-16 07:07:02,643 - DEBUG - VN ctest-vn-49260147 UUID is 0054e2e6-3dd8-4f16-8a22-9faaa8b307e6
2025-06-16 07:07:02,973 - DEBUG - Response for create_network : {'network': {'id': '353f8cd7-048b-4c1e-b258-d6f6c7b3ef7a', 'name': 'ctest-vn-44030034', 'tenant_id': '28e901a1342349f6aa7d8b0405c401e3', 'project_id': '28e901a1342349f6aa7d8b0405c401e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51598420', 'ctest-vn-44030034'], 'port_security_enabled': True, 'description': ''}}
2025-06-16 07:07:03,200 - DEBUG - Response for create_subnet : {'subnet': {'id': '533f8d34-75d7-4317-af05-0b82b729e97e', 'name': '', 'tenant_id': '28e901a1342349f6aa7d8b0405c401e3', 'network_id': '353f8cd7-048b-4c1e-b258-d6f6c7b3ef7a', 'ip_version': 4, 'cidr': '176.249.206.192/26', 'allocation_pools': [{'start': '176.249.206.194', 'end': '176.249.206.254'}], 'gateway_ip': '176.249.206.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.249.206.194', 'tags': [], 'project_id': '28e901a1342349f6aa7d8b0405c401e3'}}
2025-06-16 07:07:03,225 - INFO - Created VN ctest-vn-44030034
2025-06-16 07:07:03,279 - DEBUG - VN ctest-vn-44030034 UUID is 353f8cd7-048b-4c1e-b258-d6f6c7b3ef7a
2025-06-16 07:07:03,537 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51598420:ctest-vn-49260147, 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-51598420:ctest-vn-44030034, 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-16 07:07:04,138 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0054e2e6-3dd8-4f16-8a22-9faaa8b307e6', 'name': 'ctest-vn-49260147', 'tenant_id': '28e901a1342349f6aa7d8b0405c401e3', 'project_id': '28e901a1342349f6aa7d8b0405c401e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff5a78be-ec84-404e-ac33-53b566599f99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51598420', 'ctest-vn-49260147'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51598420', 'ctest-policy-allow-all-21162402']], 'subnet_ipam': [{'subnet_cidr': '161.216.19.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-16 07:07:04,372 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '353f8cd7-048b-4c1e-b258-d6f6c7b3ef7a', 'name': 'ctest-vn-44030034', 'tenant_id': '28e901a1342349f6aa7d8b0405c401e3', 'project_id': '28e901a1342349f6aa7d8b0405c401e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['533f8d34-75d7-4317-af05-0b82b729e97e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51598420', 'ctest-vn-44030034'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51598420', 'ctest-policy-allow-all-21162402']], 'subnet_ipam': [{'subnet_cidr': '176.249.206.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-16 07:07:04,587 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-16 07:07:04,945 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-16 07:07:04,979 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8181313b-efad-44a8-aa04-8d0eb51e6d8a
2025-06-16 07:07:04,994 - DEBUG - Requesting: http://10.0.0.254:8082/project/28e901a1-3423-49f6-aa7d-8b0405c401e3
2025-06-16 07:07:05,075 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0054e2e6-3dd8-4f16-8a22-9faaa8b307e6
2025-06-16 07:07:05,090 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0054e2e6-3dd8-4f16-8a22-9faaa8b307e6
2025-06-16 07:07:05,101 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a8881bf7-0bbf-4135-8143-35dfc791f724
2025-06-16 07:07:05,110 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a8881bf7-0bbf-4135-8143-35dfc791f724
2025-06-16 07:07:05,119 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/46f83bed-e609-4813-9f4f-e8f2fc804f74
2025-06-16 07:07:05,126 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-16 07:07:05,126 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0054e2e6-3dd8-4f16-8a22-9faaa8b307e6
2025-06-16 07:07:05,138 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a8881bf7-0bbf-4135-8143-35dfc791f724
2025-06-16 07:07:05,155 - INFO - Verified VN network id 9 for VN 0054e2e6-3dd8-4f16-8a22-9faaa8b307e6
2025-06-16 07:07:05,155 - INFO - Verifications in API Server for VN ctest-vn-49260147 passed
2025-06-16 07:07:05,155 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0054e2e6-3dd8-4f16-8a22-9faaa8b307e6
2025-06-16 07:07:05,167 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a8881bf7-0bbf-4135-8143-35dfc791f724
2025-06-16 07:07:05,177 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a8881bf7-0bbf-4135-8143-35dfc791f724
2025-06-16 07:07:05,186 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/46f83bed-e609-4813-9f4f-e8f2fc804f74
2025-06-16 07:07:05,199 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51598420:ctest-vn-49260147', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51598420', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '23893376551636758', 'uuid-lslong': '9953693681765779430'}, 'enable': 'true', 'created': '2025-06-16T07:07:02', 'last-modified': '2025-06-16T07:07:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.119361'}
2025-06-16 07:07:05,207 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-16 07:07:05,207 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49260147 passed
2025-06-16 07:07:05,207 - DEBUG - ====Verifying policy data for ctest-vn-49260147 in API_Server ======
2025-06-16 07:07:05,207 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-16 07:07:05,213 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8181313b-efad-44a8-aa04-8d0eb51e6d8a
2025-06-16 07:07:05,226 - DEBUG - Requesting: http://10.0.0.254:8082/project/28e901a1-3423-49f6-aa7d-8b0405c401e3
2025-06-16 07:07:05,311 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0054e2e6-3dd8-4f16-8a22-9faaa8b307e6
2025-06-16 07:07:05,331 - DEBUG - ==>Verifying data for policy with id: d36bfec5-bf42-4b00-927c-b81c9963602f, fqn: ['default-domain', 'ctest-TestBasicPolicy-51598420', 'ctest-policy-allow-all-21162402']
2025-06-16 07:07:05,331 - INFO - VN ctest-vn-49260147 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-16 07:07:05,332 - DEBUG - Verifying the vn in opserver
2025-06-16 07:07:05,332 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51598420:ctest-vn-49260147 virtual network link through opserver 10.0.0.254
2025-06-16 07:07:05,332 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-16 07:07:05,681 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-16 07:07:05,798 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51598420:ctest-vn-49260147', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51598420:ctest-vn-49260147?flat'}
2025-06-16 07:07:05,798 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51598420:ctest-vn-49260147 is found in opserver
2025-06-16 07:07:05,811 - DEBUG - Do not have enough data to verify VN in agent
2025-06-16 07:07:05,819 - DEBUG - VRF ids for VN ctest-vn-49260147: {}
2025-06-16 07:07:05,819 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-16 07:07:05,825 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8181313b-efad-44a8-aa04-8d0eb51e6d8a
2025-06-16 07:07:05,839 - DEBUG - Requesting: http://10.0.0.254:8082/project/28e901a1-3423-49f6-aa7d-8b0405c401e3
2025-06-16 07:07:05,912 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353f8cd7-048b-4c1e-b258-d6f6c7b3ef7a
2025-06-16 07:07:05,930 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353f8cd7-048b-4c1e-b258-d6f6c7b3ef7a
2025-06-16 07:07:05,946 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c8486fc3-f389-49f9-b584-71587be58a2b
2025-06-16 07:07:05,965 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c8486fc3-f389-49f9-b584-71587be58a2b
2025-06-16 07:07:05,974 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cb39a485-60b4-439d-9bfd-5b8c21c90fa1
2025-06-16 07:07:05,982 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-16 07:07:05,982 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353f8cd7-048b-4c1e-b258-d6f6c7b3ef7a
2025-06-16 07:07:05,993 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c8486fc3-f389-49f9-b584-71587be58a2b
2025-06-16 07:07:06,011 - INFO - Verified VN network id 10 for VN 353f8cd7-048b-4c1e-b258-d6f6c7b3ef7a
2025-06-16 07:07:06,012 - INFO - Verifications in API Server for VN ctest-vn-44030034 passed
2025-06-16 07:07:06,012 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353f8cd7-048b-4c1e-b258-d6f6c7b3ef7a
2025-06-16 07:07:06,024 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c8486fc3-f389-49f9-b584-71587be58a2b
2025-06-16 07:07:06,032 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c8486fc3-f389-49f9-b584-71587be58a2b
2025-06-16 07:07:06,040 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cb39a485-60b4-439d-9bfd-5b8c21c90fa1
2025-06-16 07:07:06,055 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51598420:ctest-vn-44030034', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51598420', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3836940262665047070', 'uuid-lslong': '12851257892102467450'}, 'enable': 'true', 'created': '2025-06-16T07:07:02', 'last-modified': '2025-06-16T07:07:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.709996'}
2025-06-16 07:07:06,062 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-16 07:07:06,062 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44030034 passed
2025-06-16 07:07:06,062 - DEBUG - ====Verifying policy data for ctest-vn-44030034 in API_Server ======
2025-06-16 07:07:06,062 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-16 07:07:06,069 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8181313b-efad-44a8-aa04-8d0eb51e6d8a
2025-06-16 07:07:06,083 - DEBUG - Requesting: http://10.0.0.254:8082/project/28e901a1-3423-49f6-aa7d-8b0405c401e3
2025-06-16 07:07:06,160 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/353f8cd7-048b-4c1e-b258-d6f6c7b3ef7a
2025-06-16 07:07:06,174 - DEBUG - ==>Verifying data for policy with id: d36bfec5-bf42-4b00-927c-b81c9963602f, fqn: ['default-domain', 'ctest-TestBasicPolicy-51598420', 'ctest-policy-allow-all-21162402']
2025-06-16 07:07:06,174 - INFO - VN ctest-vn-44030034 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-16 07:07:06,174 - DEBUG - Verifying the vn in opserver
2025-06-16 07:07:06,174 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51598420:ctest-vn-44030034 virtual network link through opserver 10.0.0.254
2025-06-16 07:07:06,174 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-16 07:07:06,187 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51598420:ctest-vn-44030034', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51598420:ctest-vn-44030034?flat'}
2025-06-16 07:07:06,188 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51598420:ctest-vn-44030034 is found in opserver
2025-06-16 07:07:06,200 - DEBUG - Do not have enough data to verify VN in agent
2025-06-16 07:07:06,206 - DEBUG - VRF ids for VN ctest-vn-44030034: {}
2025-06-16 07:07:06,270 - DEBUG - Services list from nova: [