2025-04-18 14:22:18,917 - INFO - Domain Default found not creating
2025-04-18 14:22:19,097 - INFO - Project ctest-TestBasicPolicy-40615267 not found, creating it
2025-04-18 14:22:19,606 - INFO - Created Project:ctest-TestBasicPolicy-40615267, ID : 693f2560-aa35-4742-82a4-1fb14fafd459
2025-04-18 14:22:21,188 - INFO - ================================================================================
2025-04-18 14:22:21,188 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-18 14:22:21,188 - 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-04-18 14:22:21,454 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-04-18 14:22:21,454 - INFO - Initial checks done. Running the testcase now
2025-04-18 14:22:21,454 - INFO -
2025-04-18 14:22:22,080 - DEBUG - Response for create_network : {'network': {'id': 'cc729da4-dfde-4433-85ef-3a0cddedb73a', 'name': 'ctest-vn-36197448', 'tenant_id': '693f2560aa35474282a41fb14fafd459', 'project_id': '693f2560aa35474282a41fb14fafd459', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-vn-36197448'], 'port_security_enabled': True, 'description': ''}}
2025-04-18 14:22:22,275 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b03e1b01-0e48-447e-b5ca-a8d919f45bc0', 'name': '', 'tenant_id': '693f2560aa35474282a41fb14fafd459', 'network_id': 'cc729da4-dfde-4433-85ef-3a0cddedb73a', 'ip_version': 4, 'cidr': '126.32.112.192/26', 'allocation_pools': [{'start': '126.32.112.194', 'end': '126.32.112.254'}], 'gateway_ip': '126.32.112.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.32.112.194', 'tags': [], 'project_id': '693f2560aa35474282a41fb14fafd459'}}
2025-04-18 14:22:22,301 - INFO - Created VN ctest-vn-36197448
2025-04-18 14:22:22,356 - DEBUG - VN ctest-vn-36197448 UUID is cc729da4-dfde-4433-85ef-3a0cddedb73a
2025-04-18 14:22:22,673 - DEBUG - Response for create_network : {'network': {'id': 'b20ebccd-5c98-42b1-b799-ee1d8b0b4840', 'name': 'ctest-vn-35694882', 'tenant_id': '693f2560aa35474282a41fb14fafd459', 'project_id': '693f2560aa35474282a41fb14fafd459', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-vn-35694882'], 'port_security_enabled': True, 'description': ''}}
2025-04-18 14:22:22,872 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5ac57d9-0540-490f-816f-56343276b731', 'name': '', 'tenant_id': '693f2560aa35474282a41fb14fafd459', 'network_id': 'b20ebccd-5c98-42b1-b799-ee1d8b0b4840', 'ip_version': 4, 'cidr': '222.81.127.64/26', 'allocation_pools': [{'start': '222.81.127.66', 'end': '222.81.127.126'}], 'gateway_ip': '222.81.127.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.81.127.66', 'tags': [], 'project_id': '693f2560aa35474282a41fb14fafd459'}}
2025-04-18 14:22:22,892 - INFO - Created VN ctest-vn-35694882
2025-04-18 14:22:22,948 - DEBUG - VN ctest-vn-35694882 UUID is b20ebccd-5c98-42b1-b799-ee1d8b0b4840
2025-04-18 14:22:23,066 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448, 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-40615267:ctest-vn-35694882, 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-04-18 14:22:23,381 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc729da4-dfde-4433-85ef-3a0cddedb73a', 'name': 'ctest-vn-36197448', 'tenant_id': '693f2560aa35474282a41fb14fafd459', 'project_id': '693f2560aa35474282a41fb14fafd459', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b03e1b01-0e48-447e-b5ca-a8d919f45bc0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-vn-36197448'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-policy-allow-all-34966410']], 'subnet_ipam': [{'subnet_cidr': '126.32.112.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-18 14:22:23,644 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b20ebccd-5c98-42b1-b799-ee1d8b0b4840', 'name': 'ctest-vn-35694882', 'tenant_id': '693f2560aa35474282a41fb14fafd459', 'project_id': '693f2560aa35474282a41fb14fafd459', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5ac57d9-0540-490f-816f-56343276b731'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-vn-35694882'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-policy-allow-all-34966410']], 'subnet_ipam': [{'subnet_cidr': '222.81.127.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-18 14:22:23,817 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-18 14:22:24,138 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-18 14:22:24,172 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d82b7f05-3d9b-49e0-a456-b1cf62e77f98
2025-04-18 14:22:24,185 - DEBUG - Requesting: http://10.0.0.254:8082/project/693f2560-aa35-4742-82a4-1fb14fafd459
2025-04-18 14:22:24,269 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cc729da4-dfde-4433-85ef-3a0cddedb73a
2025-04-18 14:22:24,286 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cc729da4-dfde-4433-85ef-3a0cddedb73a
2025-04-18 14:22:24,298 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01fd073d-4122-4063-880a-100fe0696009
2025-04-18 14:22:24,306 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01fd073d-4122-4063-880a-100fe0696009
2025-04-18 14:22:24,315 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8f374ef9-4906-4418-b965-93c3ade6f8a0
2025-04-18 14:22:24,322 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-18 14:22:24,322 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cc729da4-dfde-4433-85ef-3a0cddedb73a
2025-04-18 14:22:24,332 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01fd073d-4122-4063-880a-100fe0696009
2025-04-18 14:22:24,350 - INFO - Verified VN network id 7 for VN cc729da4-dfde-4433-85ef-3a0cddedb73a
2025-04-18 14:22:24,350 - INFO - Verifications in API Server for VN ctest-vn-36197448 passed
2025-04-18 14:22:24,350 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cc729da4-dfde-4433-85ef-3a0cddedb73a
2025-04-18 14:22:24,359 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01fd073d-4122-4063-880a-100fe0696009
2025-04-18 14:22:24,367 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/01fd073d-4122-4063-880a-100fe0696009
2025-04-18 14:22:24,375 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8f374ef9-4906-4418-b965-93c3ade6f8a0
2025-04-18 14:22:24,389 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40615267', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14732010662538396723', 'uuid-lslong': '9650996353415624506'}, 'enable': 'true', 'created': '2025-04-18T14:22:22', 'last-modified': '2025-04-18T14:22:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037631'}
2025-04-18 14:22:24,397 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-18 14:22:24,397 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36197448 passed
2025-04-18 14:22:24,397 - DEBUG - ====Verifying policy data for ctest-vn-36197448 in API_Server ======
2025-04-18 14:22:24,397 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-18 14:22:24,403 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d82b7f05-3d9b-49e0-a456-b1cf62e77f98
2025-04-18 14:22:24,415 - DEBUG - Requesting: http://10.0.0.254:8082/project/693f2560-aa35-4742-82a4-1fb14fafd459
2025-04-18 14:22:24,505 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cc729da4-dfde-4433-85ef-3a0cddedb73a
2025-04-18 14:22:24,515 - DEBUG - ==>Verifying data for policy with id: 26de6be9-63d5-4785-bcc1-64f9fab62cd3, fqn: ['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-policy-allow-all-34966410']
2025-04-18 14:22:24,515 - INFO - VN ctest-vn-36197448 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-18 14:22:24,515 - DEBUG - Verifying the vn in opserver
2025-04-18 14:22:24,515 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448 virtual network link through opserver 10.0.0.254
2025-04-18 14:22:24,515 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-18 14:22:24,817 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-18 14:22:24,877 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448?flat'}
2025-04-18 14:22:24,877 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-36197448 is found in opserver
2025-04-18 14:22:24,889 - DEBUG - Do not have enough data to verify VN in agent
2025-04-18 14:22:24,894 - DEBUG - VRF ids for VN ctest-vn-36197448: {}
2025-04-18 14:22:24,894 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-18 14:22:24,900 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d82b7f05-3d9b-49e0-a456-b1cf62e77f98
2025-04-18 14:22:24,913 - DEBUG - Requesting: http://10.0.0.254:8082/project/693f2560-aa35-4742-82a4-1fb14fafd459
2025-04-18 14:22:24,993 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b20ebccd-5c98-42b1-b799-ee1d8b0b4840
2025-04-18 14:22:25,005 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b20ebccd-5c98-42b1-b799-ee1d8b0b4840
2025-04-18 14:22:25,016 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c09cad71-453a-4e3a-aa0e-b2f11caec300
2025-04-18 14:22:25,024 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c09cad71-453a-4e3a-aa0e-b2f11caec300
2025-04-18 14:22:25,030 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/06d3cc9c-d57c-42e0-802f-0eba642a5ab1
2025-04-18 14:22:25,036 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-18 14:22:25,036 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b20ebccd-5c98-42b1-b799-ee1d8b0b4840
2025-04-18 14:22:25,048 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c09cad71-453a-4e3a-aa0e-b2f11caec300
2025-04-18 14:22:25,131 - INFO - Verified VN network id 8 for VN b20ebccd-5c98-42b1-b799-ee1d8b0b4840
2025-04-18 14:22:25,131 - INFO - Verifications in API Server for VN ctest-vn-35694882 passed
2025-04-18 14:22:25,131 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b20ebccd-5c98-42b1-b799-ee1d8b0b4840
2025-04-18 14:22:25,145 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c09cad71-453a-4e3a-aa0e-b2f11caec300
2025-04-18 14:22:25,153 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c09cad71-453a-4e3a-aa0e-b2f11caec300
2025-04-18 14:22:25,160 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/06d3cc9c-d57c-42e0-802f-0eba642a5ab1
2025-04-18 14:22:25,173 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-35694882', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40615267', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12830399978632921777', 'uuid-lslong': '13229867191031777344'}, 'enable': 'true', 'created': '2025-04-18T14:22:22', 'last-modified': '2025-04-18T14:22:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.561831'}
2025-04-18 14:22:25,183 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-18 14:22:25,183 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35694882 passed
2025-04-18 14:22:25,184 - DEBUG - ====Verifying policy data for ctest-vn-35694882 in API_Server ======
2025-04-18 14:22:25,184 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-18 14:22:25,191 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d82b7f05-3d9b-49e0-a456-b1cf62e77f98
2025-04-18 14:22:25,206 - DEBUG - Requesting: http://10.0.0.254:8082/project/693f2560-aa35-4742-82a4-1fb14fafd459
2025-04-18 14:22:25,278 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b20ebccd-5c98-42b1-b799-ee1d8b0b4840
2025-04-18 14:22:25,288 - DEBUG - ==>Verifying data for policy with id: 26de6be9-63d5-4785-bcc1-64f9fab62cd3, fqn: ['default-domain', 'ctest-TestBasicPolicy-40615267', 'ctest-policy-allow-all-34966410']
2025-04-18 14:22:25,288 - INFO - VN ctest-vn-35694882 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-18 14:22:25,288 - DEBUG - Verifying the vn in opserver
2025-04-18 14:22:25,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-35694882 virtual network link through opserver 10.0.0.254
2025-04-18 14:22:25,288 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-18 14:22:25,299 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-35694882', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-35694882?flat'}
2025-04-18 14:22:25,299 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40615267:ctest-vn-35694882 is found in opserver
2025-04-18 14:22:25,311 - DEBUG - Do not have enough data to verify VN in agent
2025-04-18 14:22:25,319 - DEBUG - VRF ids for VN ctest-vn-35694882: {}
2025-04-18 14:22:25,386 - DEBUG - Services list from nova: [