2025-04-09 14:16:44,790 - INFO - Domain Default found not creating
2025-04-09 14:16:44,953 - INFO - Project ctest-TestBasicPolicy-49227628 not found, creating it
2025-04-09 14:16:45,424 - INFO - Created Project:ctest-TestBasicPolicy-49227628, ID : 4be8301d-6ba8-4fe8-8d33-1bfac85e20bb
2025-04-09 14:16:46,863 - INFO - ================================================================================
2025-04-09 14:16:46,863 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 14:16:46,864 - 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-09 14:16:47,118 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2025-04-09 14:16:47,118 - INFO - Initial checks done. Running the testcase now
2025-04-09 14:16:47,118 - INFO -
2025-04-09 14:16:47,658 - DEBUG - Response for create_network : {'network': {'id': '98bc5b60-7463-4858-855a-d213aefd0115', 'name': 'ctest-vn-47038400', 'tenant_id': '4be8301d6ba84fe88d331bfac85e20bb', 'project_id': '4be8301d6ba84fe88d331bfac85e20bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-vn-47038400'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 14:16:47,875 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da2b04c1-127a-43f1-bae7-ba78b2b06c51', 'name': '', 'tenant_id': '4be8301d6ba84fe88d331bfac85e20bb', 'network_id': '98bc5b60-7463-4858-855a-d213aefd0115', 'ip_version': 4, 'cidr': '89.183.16.192/26', 'allocation_pools': [{'start': '89.183.16.194', 'end': '89.183.16.254'}], 'gateway_ip': '89.183.16.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.183.16.194', 'tags': [], 'project_id': '4be8301d6ba84fe88d331bfac85e20bb'}}
2025-04-09 14:16:47,893 - INFO - Created VN ctest-vn-47038400
2025-04-09 14:16:47,945 - DEBUG - VN ctest-vn-47038400 UUID is 98bc5b60-7463-4858-855a-d213aefd0115
2025-04-09 14:16:48,248 - DEBUG - Response for create_network : {'network': {'id': '9f279213-def4-4150-8324-31a71b85cfb3', 'name': 'ctest-vn-28771282', 'tenant_id': '4be8301d6ba84fe88d331bfac85e20bb', 'project_id': '4be8301d6ba84fe88d331bfac85e20bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-vn-28771282'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 14:16:48,439 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f12d1ec-6bc8-44f2-a5e7-307a9f5b7f2e', 'name': '', 'tenant_id': '4be8301d6ba84fe88d331bfac85e20bb', 'network_id': '9f279213-def4-4150-8324-31a71b85cfb3', 'ip_version': 4, 'cidr': '168.101.166.0/26', 'allocation_pools': [{'start': '168.101.166.2', 'end': '168.101.166.62'}], 'gateway_ip': '168.101.166.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.101.166.2', 'tags': [], 'project_id': '4be8301d6ba84fe88d331bfac85e20bb'}}
2025-04-09 14:16:48,456 - INFO - Created VN ctest-vn-28771282
2025-04-09 14:16:48,508 - DEBUG - VN ctest-vn-28771282 UUID is 9f279213-def4-4150-8324-31a71b85cfb3
2025-04-09 14:16:48,621 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400, 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-49227628:ctest-vn-28771282, 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-09 14:16:48,926 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98bc5b60-7463-4858-855a-d213aefd0115', 'name': 'ctest-vn-47038400', 'tenant_id': '4be8301d6ba84fe88d331bfac85e20bb', 'project_id': '4be8301d6ba84fe88d331bfac85e20bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da2b04c1-127a-43f1-bae7-ba78b2b06c51'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-vn-47038400'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-policy-allow-all-41515893']], 'subnet_ipam': [{'subnet_cidr': '89.183.16.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 14:16:49,165 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f279213-def4-4150-8324-31a71b85cfb3', 'name': 'ctest-vn-28771282', 'tenant_id': '4be8301d6ba84fe88d331bfac85e20bb', 'project_id': '4be8301d6ba84fe88d331bfac85e20bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f12d1ec-6bc8-44f2-a5e7-307a9f5b7f2e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-vn-28771282'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-policy-allow-all-41515893']], 'subnet_ipam': [{'subnet_cidr': '168.101.166.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 14:16:49,329 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-09 14:16:49,622 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-09 14:16:49,656 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a1376607-b02d-42e9-9bc7-fb3ffbca2458
2025-04-09 14:16:49,669 - DEBUG - Requesting: http://10.0.0.249:8082/project/4be8301d-6ba8-4fe8-8d33-1bfac85e20bb
2025-04-09 14:16:49,745 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/98bc5b60-7463-4858-855a-d213aefd0115
2025-04-09 14:16:49,756 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/98bc5b60-7463-4858-855a-d213aefd0115
2025-04-09 14:16:49,768 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ed2b4f1b-22e9-4ede-bfe3-91f94162f209
2025-04-09 14:16:49,777 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ed2b4f1b-22e9-4ede-bfe3-91f94162f209
2025-04-09 14:16:49,785 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/daf20c70-c7b9-4bd9-b53b-ac1fd2158a96
2025-04-09 14:16:49,792 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 14:16:49,792 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/98bc5b60-7463-4858-855a-d213aefd0115
2025-04-09 14:16:49,803 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ed2b4f1b-22e9-4ede-bfe3-91f94162f209
2025-04-09 14:16:49,818 - INFO - Verified VN network id 8 for VN 98bc5b60-7463-4858-855a-d213aefd0115
2025-04-09 14:16:49,819 - INFO - Verifications in API Server for VN ctest-vn-47038400 passed
2025-04-09 14:16:49,819 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/98bc5b60-7463-4858-855a-d213aefd0115
2025-04-09 14:16:49,829 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ed2b4f1b-22e9-4ede-bfe3-91f94162f209
2025-04-09 14:16:49,837 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ed2b4f1b-22e9-4ede-bfe3-91f94162f209
2025-04-09 14:16:49,844 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/daf20c70-c7b9-4bd9-b53b-ac1fd2158a96
2025-04-09 14:16:49,856 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49227628', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11005772059214301272', 'uuid-lslong': '9609223736930402581'}, 'enable': 'true', 'created': '2025-04-09T14:16:47', 'last-modified': '2025-04-09T14:16:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957106'}
2025-04-09 14:16:49,864 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 14:16:49,864 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47038400 passed
2025-04-09 14:16:49,864 - DEBUG - ====Verifying policy data for ctest-vn-47038400 in API_Server ======
2025-04-09 14:16:49,864 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-09 14:16:49,870 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a1376607-b02d-42e9-9bc7-fb3ffbca2458
2025-04-09 14:16:49,882 - DEBUG - Requesting: http://10.0.0.249:8082/project/4be8301d-6ba8-4fe8-8d33-1bfac85e20bb
2025-04-09 14:16:49,961 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/98bc5b60-7463-4858-855a-d213aefd0115
2025-04-09 14:16:49,971 - DEBUG - ==>Verifying data for policy with id: 2efa0f7c-f67b-40f7-b963-a9eef22c16f1, fqn: ['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-policy-allow-all-41515893']
2025-04-09 14:16:49,971 - INFO - VN ctest-vn-47038400 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 14:16:49,971 - DEBUG - Verifying the vn in opserver
2025-04-09 14:16:49,971 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400 virtual network link through opserver 10.0.0.249
2025-04-09 14:16:49,971 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-09 14:16:50,261 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-09 14:16:50,320 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400?flat'}
2025-04-09 14:16:50,320 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400 is found in opserver
2025-04-09 14:16:50,331 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 14:16:50,337 - DEBUG - VRF ids for VN ctest-vn-47038400: {}
2025-04-09 14:16:50,337 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-09 14:16:50,343 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a1376607-b02d-42e9-9bc7-fb3ffbca2458
2025-04-09 14:16:50,357 - DEBUG - Requesting: http://10.0.0.249:8082/project/4be8301d-6ba8-4fe8-8d33-1bfac85e20bb
2025-04-09 14:16:50,434 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9f279213-def4-4150-8324-31a71b85cfb3
2025-04-09 14:16:50,447 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9f279213-def4-4150-8324-31a71b85cfb3
2025-04-09 14:16:50,460 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee54286b-6a13-4fc7-9eca-f3940a40bebf
2025-04-09 14:16:50,469 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee54286b-6a13-4fc7-9eca-f3940a40bebf
2025-04-09 14:16:50,477 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d205037b-c1fe-4164-b4c4-058156bcaf6c
2025-04-09 14:16:50,485 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 14:16:50,485 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9f279213-def4-4150-8324-31a71b85cfb3
2025-04-09 14:16:50,495 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee54286b-6a13-4fc7-9eca-f3940a40bebf
2025-04-09 14:16:50,512 - INFO - Verified VN network id 9 for VN 9f279213-def4-4150-8324-31a71b85cfb3
2025-04-09 14:16:50,512 - INFO - Verifications in API Server for VN ctest-vn-28771282 passed
2025-04-09 14:16:50,512 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9f279213-def4-4150-8324-31a71b85cfb3
2025-04-09 14:16:50,525 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee54286b-6a13-4fc7-9eca-f3940a40bebf
2025-04-09 14:16:50,536 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee54286b-6a13-4fc7-9eca-f3940a40bebf
2025-04-09 14:16:50,545 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d205037b-c1fe-4164-b4c4-058156bcaf6c
2025-04-09 14:16:50,559 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-28771282', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49227628', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11468295590164840784', 'uuid-lslong': '9449732511921196979'}, 'enable': 'true', 'created': '2025-04-09T14:16:48', 'last-modified': '2025-04-09T14:16:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.417577'}
2025-04-09 14:16:50,565 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 14:16:50,566 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28771282 passed
2025-04-09 14:16:50,566 - DEBUG - ====Verifying policy data for ctest-vn-28771282 in API_Server ======
2025-04-09 14:16:50,566 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-09 14:16:50,573 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a1376607-b02d-42e9-9bc7-fb3ffbca2458
2025-04-09 14:16:50,586 - DEBUG - Requesting: http://10.0.0.249:8082/project/4be8301d-6ba8-4fe8-8d33-1bfac85e20bb
2025-04-09 14:16:50,666 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9f279213-def4-4150-8324-31a71b85cfb3
2025-04-09 14:16:50,677 - DEBUG - ==>Verifying data for policy with id: 2efa0f7c-f67b-40f7-b963-a9eef22c16f1, fqn: ['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-policy-allow-all-41515893']
2025-04-09 14:16:50,677 - INFO - VN ctest-vn-28771282 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 14:16:50,677 - DEBUG - Verifying the vn in opserver
2025-04-09 14:16:50,677 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-28771282 virtual network link through opserver 10.0.0.249
2025-04-09 14:16:50,677 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-09 14:16:50,687 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-28771282', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-28771282?flat'}
2025-04-09 14:16:50,687 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-28771282 is found in opserver
2025-04-09 14:16:50,698 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 14:16:50,704 - DEBUG - VRF ids for VN ctest-vn-28771282: {}
2025-04-09 14:16:50,773 - DEBUG - Services list from nova: [