2025-03-22 09:16:01,147 - INFO - Domain Default found not creating
2025-03-22 09:16:01,345 - INFO - Project ctest-TestBasicPolicy-03153245 not found, creating it
2025-03-22 09:16:01,900 - INFO - Created Project:ctest-TestBasicPolicy-03153245, ID : c13da4dd-9fa1-4bd7-9891-6181348b93f6
2025-03-22 09:16:03,636 - INFO - ================================================================================
2025-03-22 09:16:03,636 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-22 09:16:03,636 - 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-03-22 09:16:03,903 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.6': '0'}} with
2025-03-22 09:16:03,903 - INFO - Initial checks done. Running the testcase now
2025-03-22 09:16:03,904 - INFO -
2025-03-22 09:16:04,576 - DEBUG - Response for create_network : {'network': {'id': 'd8045a18-6a1b-47fa-9768-13eb7cb8bfa8', 'name': 'ctest-vn-48742074', 'tenant_id': 'c13da4dd9fa14bd798916181348b93f6', 'project_id': 'c13da4dd9fa14bd798916181348b93f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03153245', 'ctest-vn-48742074'], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:16:04,788 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a15d8adb-53f1-4926-88e0-300478e55a37', 'name': '', 'tenant_id': 'c13da4dd9fa14bd798916181348b93f6', 'network_id': 'd8045a18-6a1b-47fa-9768-13eb7cb8bfa8', 'ip_version': 4, 'cidr': '203.37.206.128/26', 'allocation_pools': [{'start': '203.37.206.130', 'end': '203.37.206.190'}], 'gateway_ip': '203.37.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.37.206.130', 'tags': [], 'project_id': 'c13da4dd9fa14bd798916181348b93f6'}}
2025-03-22 09:16:04,813 - INFO - Created VN ctest-vn-48742074
2025-03-22 09:16:04,877 - DEBUG - VN ctest-vn-48742074 UUID is d8045a18-6a1b-47fa-9768-13eb7cb8bfa8
2025-03-22 09:16:05,259 - DEBUG - Response for create_network : {'network': {'id': '865fde67-76fe-4211-993b-c7f7779e74e4', 'name': 'ctest-vn-67202804', 'tenant_id': 'c13da4dd9fa14bd798916181348b93f6', 'project_id': 'c13da4dd9fa14bd798916181348b93f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03153245', 'ctest-vn-67202804'], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:16:05,462 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d2a7684-41d3-4aaa-a034-6274d11f28cb', 'name': '', 'tenant_id': 'c13da4dd9fa14bd798916181348b93f6', 'network_id': '865fde67-76fe-4211-993b-c7f7779e74e4', 'ip_version': 4, 'cidr': '22.103.51.0/26', 'allocation_pools': [{'start': '22.103.51.2', 'end': '22.103.51.62'}], 'gateway_ip': '22.103.51.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.103.51.2', 'tags': [], 'project_id': 'c13da4dd9fa14bd798916181348b93f6'}}
2025-03-22 09:16:05,486 - INFO - Created VN ctest-vn-67202804
2025-03-22 09:16:05,541 - DEBUG - VN ctest-vn-67202804 UUID is 865fde67-76fe-4211-993b-c7f7779e74e4
2025-03-22 09:16:05,669 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03153245:ctest-vn-48742074, 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-03153245:ctest-vn-67202804, 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-03-22 09:16:06,023 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8045a18-6a1b-47fa-9768-13eb7cb8bfa8', 'name': 'ctest-vn-48742074', 'tenant_id': 'c13da4dd9fa14bd798916181348b93f6', 'project_id': 'c13da4dd9fa14bd798916181348b93f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a15d8adb-53f1-4926-88e0-300478e55a37'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03153245', 'ctest-vn-48742074'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03153245', 'ctest-policy-allow-all-48243312']], 'subnet_ipam': [{'subnet_cidr': '203.37.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:16:06,299 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '865fde67-76fe-4211-993b-c7f7779e74e4', 'name': 'ctest-vn-67202804', 'tenant_id': 'c13da4dd9fa14bd798916181348b93f6', 'project_id': 'c13da4dd9fa14bd798916181348b93f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d2a7684-41d3-4aaa-a034-6274d11f28cb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03153245', 'ctest-vn-67202804'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03153245', 'ctest-policy-allow-all-48243312']], 'subnet_ipam': [{'subnet_cidr': '22.103.51.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:16:06,477 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-22 09:16:06,779 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-22 09:16:06,815 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0fb162dd-63b4-40c2-a447-4c5004da30a2
2025-03-22 09:16:06,834 - DEBUG - Requesting: http://10.0.0.22:8082/project/c13da4dd-9fa1-4bd7-9891-6181348b93f6
2025-03-22 09:16:06,934 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d8045a18-6a1b-47fa-9768-13eb7cb8bfa8
2025-03-22 09:16:06,950 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d8045a18-6a1b-47fa-9768-13eb7cb8bfa8
2025-03-22 09:16:06,963 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0cc195b1-f700-427b-aefb-8e6df88813e0
2025-03-22 09:16:06,974 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0cc195b1-f700-427b-aefb-8e6df88813e0
2025-03-22 09:16:06,985 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0e8b4867-b36f-4ed9-8b45-35cfcdd45f18
2025-03-22 09:16:06,995 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-22 09:16:06,995 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d8045a18-6a1b-47fa-9768-13eb7cb8bfa8
2025-03-22 09:16:07,008 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0cc195b1-f700-427b-aefb-8e6df88813e0
2025-03-22 09:16:07,029 - INFO - Verified VN network id 9 for VN d8045a18-6a1b-47fa-9768-13eb7cb8bfa8
2025-03-22 09:16:07,029 - INFO - Verifications in API Server for VN ctest-vn-48742074 passed
2025-03-22 09:16:07,029 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d8045a18-6a1b-47fa-9768-13eb7cb8bfa8
2025-03-22 09:16:07,056 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0cc195b1-f700-427b-aefb-8e6df88813e0
2025-03-22 09:16:07,067 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0cc195b1-f700-427b-aefb-8e6df88813e0
2025-03-22 09:16:07,079 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0e8b4867-b36f-4ed9-8b45-35cfcdd45f18
2025-03-22 09:16:07,103 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03153245:ctest-vn-48742074', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03153245', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15565665273005164538', 'uuid-lslong': '10909991999435751336'}, 'enable': 'true', 'created': '2025-03-22T09:16:04', 'last-modified': '2025-03-22T09:16:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.122483'}
2025-03-22 09:16:07,111 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-22 09:16:07,111 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48742074 passed
2025-03-22 09:16:07,111 - DEBUG - ====Verifying policy data for ctest-vn-48742074 in API_Server ======
2025-03-22 09:16:07,111 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-22 09:16:07,120 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0fb162dd-63b4-40c2-a447-4c5004da30a2
2025-03-22 09:16:07,140 - DEBUG - Requesting: http://10.0.0.22:8082/project/c13da4dd-9fa1-4bd7-9891-6181348b93f6
2025-03-22 09:16:07,231 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d8045a18-6a1b-47fa-9768-13eb7cb8bfa8
2025-03-22 09:16:07,243 - DEBUG - ==>Verifying data for policy with id: 61ae934e-0ed3-4bbf-8db1-7ff188dbc172, fqn: ['default-domain', 'ctest-TestBasicPolicy-03153245', 'ctest-policy-allow-all-48243312']
2025-03-22 09:16:07,243 - INFO - VN ctest-vn-48742074 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-22 09:16:07,243 - DEBUG - Verifying the vn in opserver
2025-03-22 09:16:07,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03153245:ctest-vn-48742074 virtual network link through opserver 10.0.0.22
2025-03-22 09:16:07,244 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-22 09:16:07,543 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-22 09:16:07,610 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03153245:ctest-vn-48742074', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03153245:ctest-vn-48742074?flat'}
2025-03-22 09:16:07,610 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03153245:ctest-vn-48742074 is found in opserver
2025-03-22 09:16:07,623 - DEBUG - Do not have enough data to verify VN in agent
2025-03-22 09:16:07,629 - DEBUG - VRF ids for VN ctest-vn-48742074: {}
2025-03-22 09:16:07,629 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-22 09:16:07,636 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0fb162dd-63b4-40c2-a447-4c5004da30a2
2025-03-22 09:16:07,652 - DEBUG - Requesting: http://10.0.0.22:8082/project/c13da4dd-9fa1-4bd7-9891-6181348b93f6
2025-03-22 09:16:07,735 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/865fde67-76fe-4211-993b-c7f7779e74e4
2025-03-22 09:16:07,751 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/865fde67-76fe-4211-993b-c7f7779e74e4
2025-03-22 09:16:07,763 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/84f221d2-cdad-4c55-8171-1b8de62ad811
2025-03-22 09:16:07,774 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/84f221d2-cdad-4c55-8171-1b8de62ad811
2025-03-22 09:16:07,783 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a23325fd-4efa-4654-a179-a95fffed0780
2025-03-22 09:16:07,793 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-22 09:16:07,793 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/865fde67-76fe-4211-993b-c7f7779e74e4
2025-03-22 09:16:07,805 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/84f221d2-cdad-4c55-8171-1b8de62ad811
2025-03-22 09:16:07,825 - INFO - Verified VN network id 10 for VN 865fde67-76fe-4211-993b-c7f7779e74e4
2025-03-22 09:16:07,826 - INFO - Verifications in API Server for VN ctest-vn-67202804 passed
2025-03-22 09:16:07,826 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/865fde67-76fe-4211-993b-c7f7779e74e4
2025-03-22 09:16:07,838 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/84f221d2-cdad-4c55-8171-1b8de62ad811
2025-03-22 09:16:07,848 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/84f221d2-cdad-4c55-8171-1b8de62ad811
2025-03-22 09:16:07,856 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a23325fd-4efa-4654-a179-a95fffed0780
2025-03-22 09:16:07,873 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03153245:ctest-vn-67202804', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03153245', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9682702259829228049', 'uuid-lslong': '11041638777106625764'}, 'enable': 'true', 'created': '2025-03-22T09:16:05', 'last-modified': '2025-03-22T09:16:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.606748'}
2025-03-22 09:16:07,882 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-22 09:16:07,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67202804 passed
2025-03-22 09:16:07,882 - DEBUG - ====Verifying policy data for ctest-vn-67202804 in API_Server ======
2025-03-22 09:16:07,882 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-22 09:16:07,890 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0fb162dd-63b4-40c2-a447-4c5004da30a2
2025-03-22 09:16:07,906 - DEBUG - Requesting: http://10.0.0.22:8082/project/c13da4dd-9fa1-4bd7-9891-6181348b93f6
2025-03-22 09:16:07,991 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/865fde67-76fe-4211-993b-c7f7779e74e4
2025-03-22 09:16:08,004 - DEBUG - ==>Verifying data for policy with id: 61ae934e-0ed3-4bbf-8db1-7ff188dbc172, fqn: ['default-domain', 'ctest-TestBasicPolicy-03153245', 'ctest-policy-allow-all-48243312']
2025-03-22 09:16:08,004 - INFO - VN ctest-vn-67202804 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-22 09:16:08,005 - DEBUG - Verifying the vn in opserver
2025-03-22 09:16:08,005 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03153245:ctest-vn-67202804 virtual network link through opserver 10.0.0.22
2025-03-22 09:16:08,005 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-22 09:16:08,018 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03153245:ctest-vn-67202804', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03153245:ctest-vn-67202804?flat'}
2025-03-22 09:16:08,018 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03153245:ctest-vn-67202804 is found in opserver
2025-03-22 09:16:08,032 - DEBUG - Do not have enough data to verify VN in agent
2025-03-22 09:16:08,040 - DEBUG - VRF ids for VN ctest-vn-67202804: {}
2025-03-22 09:16:08,118 - DEBUG - Services list from nova: [