2025-06-23 22:10:51,576 - INFO - Domain Default found not creating
2025-06-23 22:10:51,689 - INFO - Project ctest-TestBasicPolicy-13439946 not found, creating it
2025-06-23 22:10:52,193 - INFO - Created Project:ctest-TestBasicPolicy-13439946, ID : 6fdbdaf5-51ce-4b63-bac5-169faad0ce2e
2025-06-23 22:10:53,522 - INFO - ================================================================================
2025-06-23 22:10:53,522 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-23 22:10:53,522 - 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-23 22:10:53,778 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-23 22:10:53,778 - INFO - Initial checks done. Running the testcase now
2025-06-23 22:10:53,778 - INFO -
2025-06-23 22:10:54,281 - DEBUG - Response for create_network : {'network': {'id': '6d09024c-76d3-4778-b889-a247d5560024', 'name': 'ctest-vn-22032282', 'tenant_id': '6fdbdaf551ce4b63bac5169faad0ce2e', 'project_id': '6fdbdaf551ce4b63bac5169faad0ce2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13439946', 'ctest-vn-22032282'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 22:10:54,528 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a19d7850-d6f1-4c01-a12d-d1ef44aca192', 'name': '', 'tenant_id': '6fdbdaf551ce4b63bac5169faad0ce2e', 'network_id': '6d09024c-76d3-4778-b889-a247d5560024', 'ip_version': 4, 'cidr': '99.42.6.0/26', 'allocation_pools': [{'start': '99.42.6.2', 'end': '99.42.6.62'}], 'gateway_ip': '99.42.6.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.42.6.2', 'tags': [], 'project_id': '6fdbdaf551ce4b63bac5169faad0ce2e'}}
2025-06-23 22:10:54,543 - INFO - Created VN ctest-vn-22032282
2025-06-23 22:10:54,593 - DEBUG - VN ctest-vn-22032282 UUID is 6d09024c-76d3-4778-b889-a247d5560024
2025-06-23 22:10:54,879 - DEBUG - Response for create_network : {'network': {'id': 'd4865738-0f18-4d25-b400-be83c1054627', 'name': 'ctest-vn-87801216', 'tenant_id': '6fdbdaf551ce4b63bac5169faad0ce2e', 'project_id': '6fdbdaf551ce4b63bac5169faad0ce2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13439946', 'ctest-vn-87801216'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 22:10:55,041 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cea6b9cd-8445-41c0-ace7-b1e9153b4093', 'name': '', 'tenant_id': '6fdbdaf551ce4b63bac5169faad0ce2e', 'network_id': 'd4865738-0f18-4d25-b400-be83c1054627', 'ip_version': 4, 'cidr': '87.190.211.192/26', 'allocation_pools': [{'start': '87.190.211.194', 'end': '87.190.211.254'}], 'gateway_ip': '87.190.211.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.190.211.194', 'tags': [], 'project_id': '6fdbdaf551ce4b63bac5169faad0ce2e'}}
2025-06-23 22:10:55,056 - INFO - Created VN ctest-vn-87801216
2025-06-23 22:10:55,105 - DEBUG - VN ctest-vn-87801216 UUID is d4865738-0f18-4d25-b400-be83c1054627
2025-06-23 22:10:55,241 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13439946:ctest-vn-22032282, 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-13439946:ctest-vn-87801216, 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-23 22:10:55,519 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d09024c-76d3-4778-b889-a247d5560024', 'name': 'ctest-vn-22032282', 'tenant_id': '6fdbdaf551ce4b63bac5169faad0ce2e', 'project_id': '6fdbdaf551ce4b63bac5169faad0ce2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a19d7850-d6f1-4c01-a12d-d1ef44aca192'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13439946', 'ctest-vn-22032282'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13439946', 'ctest-policy-allow-all-22895117']], 'subnet_ipam': [{'subnet_cidr': '99.42.6.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 22:10:55,728 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4865738-0f18-4d25-b400-be83c1054627', 'name': 'ctest-vn-87801216', 'tenant_id': '6fdbdaf551ce4b63bac5169faad0ce2e', 'project_id': '6fdbdaf551ce4b63bac5169faad0ce2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cea6b9cd-8445-41c0-ace7-b1e9153b4093'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13439946', 'ctest-vn-87801216'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13439946', 'ctest-policy-allow-all-22895117']], 'subnet_ipam': [{'subnet_cidr': '87.190.211.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 22:10:55,869 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 22:10:56,161 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 22:10:56,185 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4cbe0ed7-ac14-48a4-949a-577e5f54f960
2025-06-23 22:10:56,197 - DEBUG - Requesting: http://10.0.0.38:8082/project/6fdbdaf5-51ce-4b63-bac5-169faad0ce2e
2025-06-23 22:10:56,267 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d09024c-76d3-4778-b889-a247d5560024
2025-06-23 22:10:56,277 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d09024c-76d3-4778-b889-a247d5560024
2025-06-23 22:10:56,285 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4d901fb-8ee1-4a51-b74b-4bdd8ce0137e
2025-06-23 22:10:56,291 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4d901fb-8ee1-4a51-b74b-4bdd8ce0137e
2025-06-23 22:10:56,297 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b615f122-c5a2-47cc-aac0-acfd02e0afd5
2025-06-23 22:10:56,302 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 22:10:56,302 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d09024c-76d3-4778-b889-a247d5560024
2025-06-23 22:10:56,310 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4d901fb-8ee1-4a51-b74b-4bdd8ce0137e
2025-06-23 22:10:56,324 - INFO - Verified VN network id 9 for VN 6d09024c-76d3-4778-b889-a247d5560024
2025-06-23 22:10:56,324 - INFO - Verifications in API Server for VN ctest-vn-22032282 passed
2025-06-23 22:10:56,324 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d09024c-76d3-4778-b889-a247d5560024
2025-06-23 22:10:56,332 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4d901fb-8ee1-4a51-b74b-4bdd8ce0137e
2025-06-23 22:10:56,338 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4d901fb-8ee1-4a51-b74b-4bdd8ce0137e
2025-06-23 22:10:56,343 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b615f122-c5a2-47cc-aac0-acfd02e0afd5
2025-06-23 22:10:56,354 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13439946:ctest-vn-22032282', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13439946', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7856813552358868856', 'uuid-lslong': '13297337804193660964'}, 'enable': 'true', 'created': '2025-06-23T22:10:54', 'last-modified': '2025-06-23T22:10:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.856557'}
2025-06-23 22:10:56,360 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 22:10:56,360 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22032282 passed
2025-06-23 22:10:56,360 - DEBUG - ====Verifying policy data for ctest-vn-22032282 in API_Server ======
2025-06-23 22:10:56,360 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 22:10:56,364 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4cbe0ed7-ac14-48a4-949a-577e5f54f960
2025-06-23 22:10:56,375 - DEBUG - Requesting: http://10.0.0.38:8082/project/6fdbdaf5-51ce-4b63-bac5-169faad0ce2e
2025-06-23 22:10:56,440 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d09024c-76d3-4778-b889-a247d5560024
2025-06-23 22:10:56,449 - DEBUG - ==>Verifying data for policy with id: 165e4961-5c3c-4008-9417-b4b15aaf811f, fqn: ['default-domain', 'ctest-TestBasicPolicy-13439946', 'ctest-policy-allow-all-22895117']
2025-06-23 22:10:56,449 - INFO - VN ctest-vn-22032282 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 22:10:56,449 - DEBUG - Verifying the vn in opserver
2025-06-23 22:10:56,449 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13439946:ctest-vn-22032282 virtual network link through opserver 10.0.0.38
2025-06-23 22:10:56,449 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-23 22:10:56,736 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-23 22:10:56,782 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13439946:ctest-vn-22032282', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13439946:ctest-vn-22032282?flat'}
2025-06-23 22:10:56,782 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13439946:ctest-vn-22032282 is found in opserver
2025-06-23 22:10:56,792 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 22:10:56,797 - DEBUG - VRF ids for VN ctest-vn-22032282: {}
2025-06-23 22:10:56,797 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 22:10:56,803 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4cbe0ed7-ac14-48a4-949a-577e5f54f960
2025-06-23 22:10:56,813 - DEBUG - Requesting: http://10.0.0.38:8082/project/6fdbdaf5-51ce-4b63-bac5-169faad0ce2e
2025-06-23 22:10:56,882 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4865738-0f18-4d25-b400-be83c1054627
2025-06-23 22:10:56,893 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4865738-0f18-4d25-b400-be83c1054627
2025-06-23 22:10:56,902 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc1b6467-bdde-4d36-be30-b8cd8ca1d533
2025-06-23 22:10:56,908 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc1b6467-bdde-4d36-be30-b8cd8ca1d533
2025-06-23 22:10:56,914 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8a10b812-93a2-4c4a-952f-0623020a9d4e
2025-06-23 22:10:56,919 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 22:10:56,919 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4865738-0f18-4d25-b400-be83c1054627
2025-06-23 22:10:56,928 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc1b6467-bdde-4d36-be30-b8cd8ca1d533
2025-06-23 22:10:56,940 - INFO - Verified VN network id 10 for VN d4865738-0f18-4d25-b400-be83c1054627
2025-06-23 22:10:56,940 - INFO - Verifications in API Server for VN ctest-vn-87801216 passed
2025-06-23 22:10:56,940 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4865738-0f18-4d25-b400-be83c1054627
2025-06-23 22:10:56,948 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc1b6467-bdde-4d36-be30-b8cd8ca1d533
2025-06-23 22:10:56,953 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc1b6467-bdde-4d36-be30-b8cd8ca1d533
2025-06-23 22:10:56,959 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8a10b812-93a2-4c4a-952f-0623020a9d4e
2025-06-23 22:10:56,970 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13439946:ctest-vn-87801216', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13439946', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15314023481202986277', 'uuid-lslong': '12970576399915370023'}, 'enable': 'true', 'created': '2025-06-23T22:10:54', 'last-modified': '2025-06-23T22:10:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.260488'}
2025-06-23 22:10:56,976 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 22:10:56,976 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87801216 passed
2025-06-23 22:10:56,976 - DEBUG - ====Verifying policy data for ctest-vn-87801216 in API_Server ======
2025-06-23 22:10:56,976 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 22:10:56,981 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4cbe0ed7-ac14-48a4-949a-577e5f54f960
2025-06-23 22:10:56,991 - DEBUG - Requesting: http://10.0.0.38:8082/project/6fdbdaf5-51ce-4b63-bac5-169faad0ce2e
2025-06-23 22:10:57,061 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4865738-0f18-4d25-b400-be83c1054627
2025-06-23 22:10:57,070 - DEBUG - ==>Verifying data for policy with id: 165e4961-5c3c-4008-9417-b4b15aaf811f, fqn: ['default-domain', 'ctest-TestBasicPolicy-13439946', 'ctest-policy-allow-all-22895117']
2025-06-23 22:10:57,070 - INFO - VN ctest-vn-87801216 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 22:10:57,070 - DEBUG - Verifying the vn in opserver
2025-06-23 22:10:57,070 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13439946:ctest-vn-87801216 virtual network link through opserver 10.0.0.38
2025-06-23 22:10:57,070 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-23 22:10:57,079 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13439946:ctest-vn-87801216', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13439946:ctest-vn-87801216?flat'}
2025-06-23 22:10:57,079 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13439946:ctest-vn-87801216 is found in opserver
2025-06-23 22:10:57,089 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 22:10:57,093 - DEBUG - VRF ids for VN ctest-vn-87801216: {}
2025-06-23 22:10:57,143 - DEBUG - Services list from nova: [