2024-11-08 11:24:10,820 - INFO - Domain Default found not creating
2024-11-08 11:24:10,995 - INFO - Project ctest-TestBasicPolicy-25667001 not found, creating it
2024-11-08 11:24:11,527 - INFO - Created Project:ctest-TestBasicPolicy-25667001, ID : 562bcdff-f892-4530-ba2a-31749145e53c
2024-11-08 11:24:13,173 - INFO - ================================================================================
2024-11-08 11:24:13,174 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 11:24:13,174 - 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
2024-11-08 11:24:13,438 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.5': '0'}} with
2024-11-08 11:24:13,439 - INFO - Initial checks done. Running the testcase now
2024-11-08 11:24:13,439 - INFO -
2024-11-08 11:24:14,082 - DEBUG - Response for create_network : {'network': {'id': '7247c3d8-1c11-4d68-a647-426b8fc8e756', 'name': 'ctest-vn-92228429', 'tenant_id': '562bcdfff8924530ba2a31749145e53c', 'project_id': '562bcdfff8924530ba2a31749145e53c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-vn-92228429'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 11:24:14,247 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cce200ef-4dc3-48f6-8a69-c4bb6d3e4ed9', 'name': '', 'tenant_id': '562bcdfff8924530ba2a31749145e53c', 'network_id': '7247c3d8-1c11-4d68-a647-426b8fc8e756', 'ip_version': 4, 'cidr': '170.43.130.192/26', 'allocation_pools': [{'start': '170.43.130.194', 'end': '170.43.130.254'}], 'gateway_ip': '170.43.130.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.43.130.194', 'tags': [], 'project_id': '562bcdfff8924530ba2a31749145e53c'}}
2024-11-08 11:24:14,272 - INFO - Created VN ctest-vn-92228429
2024-11-08 11:24:14,332 - DEBUG - VN ctest-vn-92228429 UUID is 7247c3d8-1c11-4d68-a647-426b8fc8e756
2024-11-08 11:24:14,702 - DEBUG - Response for create_network : {'network': {'id': '35b958da-5e83-46b7-bd23-59d4f839eeb8', 'name': 'ctest-vn-18834572', 'tenant_id': '562bcdfff8924530ba2a31749145e53c', 'project_id': '562bcdfff8924530ba2a31749145e53c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-vn-18834572'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 11:24:14,919 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d989140-3557-44cf-b6c3-b9f6aace3158', 'name': '', 'tenant_id': '562bcdfff8924530ba2a31749145e53c', 'network_id': '35b958da-5e83-46b7-bd23-59d4f839eeb8', 'ip_version': 4, 'cidr': '43.78.78.192/26', 'allocation_pools': [{'start': '43.78.78.194', 'end': '43.78.78.254'}], 'gateway_ip': '43.78.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.78.78.194', 'tags': [], 'project_id': '562bcdfff8924530ba2a31749145e53c'}}
2024-11-08 11:24:14,942 - INFO - Created VN ctest-vn-18834572
2024-11-08 11:24:15,004 - DEBUG - VN ctest-vn-18834572 UUID is 35b958da-5e83-46b7-bd23-59d4f839eeb8
2024-11-08 11:24:15,142 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429, 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-25667001:ctest-vn-18834572, 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]
2024-11-08 11:24:15,474 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7247c3d8-1c11-4d68-a647-426b8fc8e756', 'name': 'ctest-vn-92228429', 'tenant_id': '562bcdfff8924530ba2a31749145e53c', 'project_id': '562bcdfff8924530ba2a31749145e53c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cce200ef-4dc3-48f6-8a69-c4bb6d3e4ed9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-vn-92228429'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-policy-allow-all-69491276']], 'subnet_ipam': [{'subnet_cidr': '170.43.130.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 11:24:15,711 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35b958da-5e83-46b7-bd23-59d4f839eeb8', 'name': 'ctest-vn-18834572', 'tenant_id': '562bcdfff8924530ba2a31749145e53c', 'project_id': '562bcdfff8924530ba2a31749145e53c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d989140-3557-44cf-b6c3-b9f6aace3158'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-vn-18834572'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-policy-allow-all-69491276']], 'subnet_ipam': [{'subnet_cidr': '43.78.78.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 11:24:15,892 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-11-08 11:24:16,209 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-11-08 11:24:16,254 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b5e77f0-428f-4cfb-992d-86c89513a3d5
2024-11-08 11:24:16,271 - DEBUG - Requesting: http://10.0.0.46:8082/project/562bcdff-f892-4530-ba2a-31749145e53c
2024-11-08 11:24:16,363 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7247c3d8-1c11-4d68-a647-426b8fc8e756
2024-11-08 11:24:16,382 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7247c3d8-1c11-4d68-a647-426b8fc8e756
2024-11-08 11:24:16,398 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/40943b8c-e656-4513-bd1b-73c95a3f14ae
2024-11-08 11:24:16,410 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/40943b8c-e656-4513-bd1b-73c95a3f14ae
2024-11-08 11:24:16,420 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/99ef8f36-3671-4e2d-9490-a4128cb8b6e7
2024-11-08 11:24:16,430 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 11:24:16,430 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7247c3d8-1c11-4d68-a647-426b8fc8e756
2024-11-08 11:24:16,444 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/40943b8c-e656-4513-bd1b-73c95a3f14ae
2024-11-08 11:24:16,468 - INFO - Verified VN network id 8 for VN 7247c3d8-1c11-4d68-a647-426b8fc8e756
2024-11-08 11:24:16,468 - INFO - Verifications in API Server for VN ctest-vn-92228429 passed
2024-11-08 11:24:16,468 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7247c3d8-1c11-4d68-a647-426b8fc8e756
2024-11-08 11:24:16,483 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/40943b8c-e656-4513-bd1b-73c95a3f14ae
2024-11-08 11:24:16,494 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/40943b8c-e656-4513-bd1b-73c95a3f14ae
2024-11-08 11:24:16,504 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/99ef8f36-3671-4e2d-9490-a4128cb8b6e7
2024-11-08 11:24:16,520 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25667001', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8234765776621489512', 'uuid-lslong': '11981618363383736150'}, 'enable': 'true', 'created': '2024-11-08T11:24:14', 'last-modified': '2024-11-08T11:24:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.072323'}
2024-11-08 11:24:16,527 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 11:24:16,527 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92228429 passed
2024-11-08 11:24:16,528 - DEBUG - ====Verifying policy data for ctest-vn-92228429 in API_Server ======
2024-11-08 11:24:16,528 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-11-08 11:24:16,536 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b5e77f0-428f-4cfb-992d-86c89513a3d5
2024-11-08 11:24:16,554 - DEBUG - Requesting: http://10.0.0.46:8082/project/562bcdff-f892-4530-ba2a-31749145e53c
2024-11-08 11:24:16,640 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7247c3d8-1c11-4d68-a647-426b8fc8e756
2024-11-08 11:24:16,656 - DEBUG - ==>Verifying data for policy with id: 73c12d93-8a0a-4342-b98e-e33b92e9fa46, fqn: ['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-policy-allow-all-69491276']
2024-11-08 11:24:16,656 - INFO - VN ctest-vn-92228429 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 11:24:16,656 - DEBUG - Verifying the vn in opserver
2024-11-08 11:24:16,656 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429 virtual network link through opserver 10.0.0.46
2024-11-08 11:24:16,656 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2024-11-08 11:24:16,963 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2024-11-08 11:24:17,042 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429?flat'}
2024-11-08 11:24:17,042 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429 is found in opserver
2024-11-08 11:24:17,056 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 11:24:17,062 - DEBUG - VRF ids for VN ctest-vn-92228429: {}
2024-11-08 11:24:17,062 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-11-08 11:24:17,069 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b5e77f0-428f-4cfb-992d-86c89513a3d5
2024-11-08 11:24:17,086 - DEBUG - Requesting: http://10.0.0.46:8082/project/562bcdff-f892-4530-ba2a-31749145e53c
2024-11-08 11:24:17,174 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/35b958da-5e83-46b7-bd23-59d4f839eeb8
2024-11-08 11:24:17,192 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/35b958da-5e83-46b7-bd23-59d4f839eeb8
2024-11-08 11:24:17,208 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/98d8ba28-9a5a-4b95-b2e0-b45a063d3968
2024-11-08 11:24:17,218 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/98d8ba28-9a5a-4b95-b2e0-b45a063d3968
2024-11-08 11:24:17,227 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/7cedb749-7a64-493c-b4c7-c9eaeadcd614
2024-11-08 11:24:17,238 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 11:24:17,238 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/35b958da-5e83-46b7-bd23-59d4f839eeb8
2024-11-08 11:24:17,252 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/98d8ba28-9a5a-4b95-b2e0-b45a063d3968
2024-11-08 11:24:17,274 - INFO - Verified VN network id 9 for VN 35b958da-5e83-46b7-bd23-59d4f839eeb8
2024-11-08 11:24:17,274 - INFO - Verifications in API Server for VN ctest-vn-18834572 passed
2024-11-08 11:24:17,275 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/35b958da-5e83-46b7-bd23-59d4f839eeb8
2024-11-08 11:24:17,290 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/98d8ba28-9a5a-4b95-b2e0-b45a063d3968
2024-11-08 11:24:17,299 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/98d8ba28-9a5a-4b95-b2e0-b45a063d3968
2024-11-08 11:24:17,309 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/7cedb749-7a64-493c-b4c7-c9eaeadcd614
2024-11-08 11:24:17,328 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-18834572', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25667001', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3871223049613428407', 'uuid-lslong': '13628835668585737912'}, 'enable': 'true', 'created': '2024-11-08T11:24:14', 'last-modified': '2024-11-08T11:24:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.639314'}
2024-11-08 11:24:17,336 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 11:24:17,336 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18834572 passed
2024-11-08 11:24:17,337 - DEBUG - ====Verifying policy data for ctest-vn-18834572 in API_Server ======
2024-11-08 11:24:17,337 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2024-11-08 11:24:17,345 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b5e77f0-428f-4cfb-992d-86c89513a3d5
2024-11-08 11:24:17,364 - DEBUG - Requesting: http://10.0.0.46:8082/project/562bcdff-f892-4530-ba2a-31749145e53c
2024-11-08 11:24:17,455 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/35b958da-5e83-46b7-bd23-59d4f839eeb8
2024-11-08 11:24:17,470 - DEBUG - ==>Verifying data for policy with id: 73c12d93-8a0a-4342-b98e-e33b92e9fa46, fqn: ['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-policy-allow-all-69491276']
2024-11-08 11:24:17,470 - INFO - VN ctest-vn-18834572 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 11:24:17,470 - DEBUG - Verifying the vn in opserver
2024-11-08 11:24:17,470 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-18834572 virtual network link through opserver 10.0.0.46
2024-11-08 11:24:17,470 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2024-11-08 11:24:17,483 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-18834572', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-18834572?flat'}
2024-11-08 11:24:17,483 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-18834572 is found in opserver
2024-11-08 11:24:17,497 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 11:24:17,504 - DEBUG - VRF ids for VN ctest-vn-18834572: {}
2024-11-08 11:24:17,568 - DEBUG - Services list from nova: [