2024-09-13 21:32:37,923 - INFO - Reading existing Domain with UUID c825d847-91d2-46e5-9bb6-0d300075fcb1 2024-09-13 21:32:37,938 - INFO - Using existing domain ['admin_domain'](c825d847-91d2-46e5-9bb6-0d300075fcb1) 2024-09-13 21:32:38,192 - INFO - Project ctest-TestBasicPolicy-18797750 not found, creating it 2024-09-13 21:32:38,895 - INFO - Created Project:ctest-TestBasicPolicy-18797750, ID : b6cfcc83-5fd9-468f-a565-3a0af2805894 2024-09-13 21:32:40,961 - INFO - ================================================================================ 2024-09-13 21:32:40,962 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-13 21:32:40,962 - 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-09-13 21:32:41,738 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.12': '0', '10.0.0.41': '2'}, '10.0.0.36': {'10.0.0.12': '3', '10.0.0.41': '3'}} with 2024-09-13 21:32:41,738 - INFO - Initial checks done. Running the testcase now 2024-09-13 21:32:41,739 - INFO - 2024-09-13 21:32:42,563 - DEBUG - Response for create_network : {'network': {'id': '008520fd-79e2-4518-855d-0a6b60207ad0', 'name': 'ctest-vn-66620407', 'tenant_id': 'b6cfcc835fd9468fa5653a0af2805894', 'project_id': 'b6cfcc835fd9468fa5653a0af2805894', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-18797750', 'ctest-vn-66620407'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-13 21:32:42,988 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c99866b2-49e9-4c5f-b3e0-39121c251d24', 'name': '', 'tenant_id': 'b6cfcc835fd9468fa5653a0af2805894', 'network_id': '008520fd-79e2-4518-855d-0a6b60207ad0', 'ip_version': 4, 'cidr': '191.235.130.64/26', 'allocation_pools': [{'start': '191.235.130.66', 'end': '191.235.130.126'}], 'gateway_ip': '191.235.130.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-13T21:32:42.735196', 'updated_at': '2024-09-13T21:32:42.735196', 'dns_server_address': '191.235.130.66', 'tags': [], 'project_id': 'b6cfcc835fd9468fa5653a0af2805894'}} 2024-09-13 21:32:43,011 - INFO - Created VN ctest-vn-66620407 2024-09-13 21:32:43,037 - DEBUG - VN ctest-vn-66620407 UUID is 008520fd-79e2-4518-855d-0a6b60207ad0 2024-09-13 21:32:43,387 - DEBUG - Response for create_network : {'network': {'id': '6eb05cc1-236c-4973-ab0c-59e43df14d37', 'name': 'ctest-vn-67729261', 'tenant_id': 'b6cfcc835fd9468fa5653a0af2805894', 'project_id': 'b6cfcc835fd9468fa5653a0af2805894', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-18797750', 'ctest-vn-67729261'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-13 21:32:43,700 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb98d5f6-ba4f-4e2d-b7df-297587c1a30c', 'name': '', 'tenant_id': 'b6cfcc835fd9468fa5653a0af2805894', 'network_id': '6eb05cc1-236c-4973-ab0c-59e43df14d37', 'ip_version': 4, 'cidr': '218.137.82.0/26', 'allocation_pools': [{'start': '218.137.82.2', 'end': '218.137.82.62'}], 'gateway_ip': '218.137.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-13T21:32:43.513220', 'updated_at': '2024-09-13T21:32:43.513220', 'dns_server_address': '218.137.82.2', 'tags': [], 'project_id': 'b6cfcc835fd9468fa5653a0af2805894'}} 2024-09-13 21:32:43,722 - INFO - Created VN ctest-vn-67729261 2024-09-13 21:32:43,741 - DEBUG - VN ctest-vn-67729261 UUID is 6eb05cc1-236c-4973-ab0c-59e43df14d37 2024-09-13 21:32:43,833 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261, 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-09-13 21:32:44,130 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '008520fd-79e2-4518-855d-0a6b60207ad0', 'name': 'ctest-vn-66620407', 'tenant_id': 'b6cfcc835fd9468fa5653a0af2805894', 'project_id': 'b6cfcc835fd9468fa5653a0af2805894', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c99866b2-49e9-4c5f-b3e0-39121c251d24'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-18797750', 'ctest-vn-66620407'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-18797750', 'ctest-policy-allow-all-45247184']], 'subnet_ipam': [{'subnet_cidr': '191.235.130.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-13T21:32:42.480605', 'updated_at': '2024-09-13T21:32:42.765126'}} 2024-09-13 21:32:44,346 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6eb05cc1-236c-4973-ab0c-59e43df14d37', 'name': 'ctest-vn-67729261', 'tenant_id': 'b6cfcc835fd9468fa5653a0af2805894', 'project_id': 'b6cfcc835fd9468fa5653a0af2805894', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb98d5f6-ba4f-4e2d-b7df-297587c1a30c'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-18797750', 'ctest-vn-67729261'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-18797750', 'ctest-policy-allow-all-45247184']], 'subnet_ipam': [{'subnet_cidr': '218.137.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-13T21:32:43.307183', 'updated_at': '2024-09-13T21:32:43.567310'}} 2024-09-13 21:32:44,407 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-13 21:32:44,738 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-13 21:32:44,781 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c825d847-91d2-46e5-9bb6-0d300075fcb1 2024-09-13 21:32:44,823 - DEBUG - Requesting: http://10.0.0.12:8082/project/b6cfcc83-5fd9-468f-a565-3a0af2805894 2024-09-13 21:32:44,888 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/008520fd-79e2-4518-855d-0a6b60207ad0 2024-09-13 21:32:44,906 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/008520fd-79e2-4518-855d-0a6b60207ad0 2024-09-13 21:32:44,925 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/52e67eda-c645-48c0-a30b-d0facbcabbc8 2024-09-13 21:32:44,937 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/52e67eda-c645-48c0-a30b-d0facbcabbc8 2024-09-13 21:32:44,948 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/09212381-d1c7-4ecd-841d-53e9ec37b743 2024-09-13 21:32:44,962 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 21:32:44,962 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/008520fd-79e2-4518-855d-0a6b60207ad0 2024-09-13 21:32:44,983 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/52e67eda-c645-48c0-a30b-d0facbcabbc8 2024-09-13 21:32:45,009 - INFO - Verified VN network id 7 for VN 008520fd-79e2-4518-855d-0a6b60207ad0 2024-09-13 21:32:45,010 - INFO - Verifications in API Server for VN ctest-vn-66620407 passed 2024-09-13 21:32:45,010 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/008520fd-79e2-4518-855d-0a6b60207ad0 2024-09-13 21:32:45,033 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/52e67eda-c645-48c0-a30b-d0facbcabbc8 2024-09-13 21:32:45,044 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/52e67eda-c645-48c0-a30b-d0facbcabbc8 2024-09-13 21:32:45,056 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/09212381-d1c7-4ecd-841d-53e9ec37b743 2024-09-13 21:32:45,077 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18797750', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '37472444946203928', 'uuid-lslong': '9609848636169026256'}, 'enable': 'true', 'created': '2024-09-13T21:32:42', 'last-modified': '2024-09-13T21:32:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984775'} 2024-09-13 21:32:45,087 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 21:32:45,093 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18797750', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '37472444946203928', 'uuid-lslong': '9609848636169026256'}, 'enable': 'true', 'created': '2024-09-13T21:32:42', 'last-modified': '2024-09-13T21:32:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001489'} 2024-09-13 21:32:45,101 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 21:32:45,107 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18797750', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '37472444946203928', 'uuid-lslong': '9609848636169026256'}, 'enable': 'true', 'created': '2024-09-13T21:32:42', 'last-modified': '2024-09-13T21:32:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.018698'} 2024-09-13 21:32:45,114 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 21:32:45,114 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66620407 passed 2024-09-13 21:32:45,115 - DEBUG - ====Verifying policy data for ctest-vn-66620407 in API_Server ====== 2024-09-13 21:32:45,115 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-13 21:32:45,124 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c825d847-91d2-46e5-9bb6-0d300075fcb1 2024-09-13 21:32:45,142 - DEBUG - Requesting: http://10.0.0.12:8082/project/b6cfcc83-5fd9-468f-a565-3a0af2805894 2024-09-13 21:32:45,212 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/008520fd-79e2-4518-855d-0a6b60207ad0 2024-09-13 21:32:45,234 - DEBUG - ==>Verifying data for policy with id: 97047d31-3b46-47f2-82b2-a5fc920f11db, fqn: ['admin_domain', 'ctest-TestBasicPolicy-18797750', 'ctest-policy-allow-all-45247184'] 2024-09-13 21:32:45,234 - INFO - VN ctest-vn-66620407 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 21:32:45,235 - DEBUG - Verifying the vn in opserver 2024-09-13 21:32:45,235 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407 virtual network link through opserver 10.0.0.12 2024-09-13 21:32:45,235 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-09-13 21:32:45,562 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-09-13 21:32:46,005 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407?flat'} 2024-09-13 21:32:46,005 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407 virtual network link through opserver 10.0.0.29 2024-09-13 21:32:46,005 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-13 21:32:46,316 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-13 21:32:46,405 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407?flat'} 2024-09-13 21:32:46,405 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407 virtual network link through opserver 10.0.0.41 2024-09-13 21:32:46,405 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-09-13 21:32:46,727 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-09-13 21:32:46,836 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407?flat'} 2024-09-13 21:32:46,836 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407 is found in opserver 2024-09-13 21:32:46,859 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 21:32:46,870 - DEBUG - VRF ids for VN ctest-vn-66620407: {} 2024-09-13 21:32:46,870 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-13 21:32:46,883 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c825d847-91d2-46e5-9bb6-0d300075fcb1 2024-09-13 21:32:46,905 - DEBUG - Requesting: http://10.0.0.12:8082/project/b6cfcc83-5fd9-468f-a565-3a0af2805894 2024-09-13 21:32:47,066 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6eb05cc1-236c-4973-ab0c-59e43df14d37 2024-09-13 21:32:47,099 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6eb05cc1-236c-4973-ab0c-59e43df14d37 2024-09-13 21:32:47,121 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/605365b8-2ffd-4586-b756-15cd067bc8dc 2024-09-13 21:32:47,135 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/605365b8-2ffd-4586-b756-15cd067bc8dc 2024-09-13 21:32:47,151 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d439e570-d552-4da2-a6e6-edf105b2e263 2024-09-13 21:32:47,162 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 21:32:47,162 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6eb05cc1-236c-4973-ab0c-59e43df14d37 2024-09-13 21:32:47,182 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/605365b8-2ffd-4586-b756-15cd067bc8dc 2024-09-13 21:32:48,661 - INFO - Verified VN network id 8 for VN 6eb05cc1-236c-4973-ab0c-59e43df14d37 2024-09-13 21:32:48,662 - INFO - Verifications in API Server for VN ctest-vn-67729261 passed 2024-09-13 21:32:48,662 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6eb05cc1-236c-4973-ab0c-59e43df14d37 2024-09-13 21:32:48,680 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/605365b8-2ffd-4586-b756-15cd067bc8dc 2024-09-13 21:32:48,693 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/605365b8-2ffd-4586-b756-15cd067bc8dc 2024-09-13 21:32:48,703 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d439e570-d552-4da2-a6e6-edf105b2e263 2024-09-13 21:32:48,736 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18797750', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7975976924665891187', 'uuid-lslong': '12325325117032844599'}, 'enable': 'true', 'created': '2024-09-13T21:32:43', 'last-modified': '2024-09-13T21:32:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.448131'} 2024-09-13 21:32:48,743 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 21:32:48,750 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18797750', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7975976924665891187', 'uuid-lslong': '12325325117032844599'}, 'enable': 'true', 'created': '2024-09-13T21:32:43', 'last-modified': '2024-09-13T21:32:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.461467'} 2024-09-13 21:32:48,758 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 21:32:48,764 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18797750', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7975976924665891187', 'uuid-lslong': '12325325117032844599'}, 'enable': 'true', 'created': '2024-09-13T21:32:43', 'last-modified': '2024-09-13T21:32:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.476538'} 2024-09-13 21:32:48,770 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 21:32:48,770 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67729261 passed 2024-09-13 21:32:48,771 - DEBUG - ====Verifying policy data for ctest-vn-67729261 in API_Server ====== 2024-09-13 21:32:48,771 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-13 21:32:48,780 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c825d847-91d2-46e5-9bb6-0d300075fcb1 2024-09-13 21:32:48,797 - DEBUG - Requesting: http://10.0.0.12:8082/project/b6cfcc83-5fd9-468f-a565-3a0af2805894 2024-09-13 21:32:48,873 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6eb05cc1-236c-4973-ab0c-59e43df14d37 2024-09-13 21:32:48,893 - DEBUG - ==>Verifying data for policy with id: 97047d31-3b46-47f2-82b2-a5fc920f11db, fqn: ['admin_domain', 'ctest-TestBasicPolicy-18797750', 'ctest-policy-allow-all-45247184'] 2024-09-13 21:32:48,893 - INFO - VN ctest-vn-67729261 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 21:32:48,893 - DEBUG - Verifying the vn in opserver 2024-09-13 21:32:48,893 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261 virtual network link through opserver 10.0.0.12 2024-09-13 21:32:48,893 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-09-13 21:32:48,980 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261?flat'} 2024-09-13 21:32:48,980 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261 virtual network link through opserver 10.0.0.29 2024-09-13 21:32:48,980 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-13 21:32:49,066 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261?flat'} 2024-09-13 21:32:49,066 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261 virtual network link through opserver 10.0.0.41 2024-09-13 21:32:49,066 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-09-13 21:32:49,146 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261?flat'} 2024-09-13 21:32:49,146 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-67729261 is found in opserver 2024-09-13 21:32:49,169 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 21:32:49,180 - DEBUG - VRF ids for VN ctest-vn-67729261: {} 2024-09-13 21:32:49,303 - DEBUG - Services list from nova: [, , , ] 2024-09-13 21:32:50,955 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-juju-os-424-1), Zone: (nova:an-jenkins-deploy-platform-juju-os-424-1) 2024-09-13 21:32:52,891 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-juju-os-424-2), Zone: (nova:an-jenkins-deploy-platform-juju-os-424-2) 2024-09-13 21:32:52,892 - INFO - Waiting for VM ctest-TestBasicPolicy-18797750-48450416 to be up.. 2024-09-13 21:32:53,047 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-13 21:32:58,185 - DEBUG - VM is in ACTIVE state now 2024-09-13 21:32:58,185 - INFO - VM name : ctest-TestBasicPolicy-18797750-48450416 2024-09-13 21:32:58,310 - DEBUG - VM ctest-TestBasicPolicy-18797750-48450416 ID is 4cab46b5-3cba-495b-89fe-20cfab56a69d 2024-09-13 21:32:58,352 - DEBUG - VM ctest-TestBasicPolicy-18797750-48450416 launched on Node an-jenkins-deploy-platform-juju-os-424-1 2024-09-13 21:32:58,481 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/4cab46b5-3cba-495b-89fe-20cfab56a69d 2024-09-13 21:32:58,801 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/4cab46b5-3cba-495b-89fe-20cfab56a69d 2024-09-13 21:32:58,849 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/e5c894e3-c69a-4898-ba4b-61c84badf6d3 2024-09-13 21:33:02,023 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1030ms') 2024-09-13 21:33:02,023 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-18797750-48450416 failed! 2024-09-13 21:33:02,042 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-18797750:ctest-vn-66620407 is 191.235.130.65 and allocation pool is NOT set 2024-09-13 21:33:04,071 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.14 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.393 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.393/1.765/3.137/1.372 ms') 2024-09-13 21:33:04,071 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-18797750-48450416 passed 2024-09-13 21:33:04,103 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 21:33:04,103 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-18797750-48450416, IP 191.235.130.67, Port 22 2024-09-13 21:33:04,152 - DEBUG - VM ctest-TestBasicPolicy-18797750-48450416 is ready for SSH connections 2024-09-13 21:33:04,152 - INFO - Waiting for VM ctest-TestBasicPolicy-18797750-49754821 to be up.. 2024-09-13 21:33:04,329 - DEBUG - VM is in ACTIVE state now 2024-09-13 21:33:04,329 - INFO - VM name : ctest-TestBasicPolicy-18797750-49754821 2024-09-13 21:33:04,485 - DEBUG - VM ctest-TestBasicPolicy-18797750-49754821 ID is 892e0a92-65ac-4526-98e7-26bf7e3b041a 2024-09-13 21:33:04,485 - DEBUG - VM ctest-TestBasicPolicy-18797750-49754821 launched on Node an-jenkins-deploy-platform-juju-os-424-2 2024-09-13 21:33:04,643 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/892e0a92-65ac-4526-98e7-26bf7e3b041a 2024-09-13 21:33:04,663 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/dcb8b85f-17bf-4158-afec-48e001a6bed9 2024-09-13 21:33:05,760 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=2.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.61 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.608/2.725/2.842/0.117 ms') 2024-09-13 21:33:05,760 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-18797750-49754821 passed 2024-09-13 21:33:05,803 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 21:33:05,803 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-18797750-49754821, IP 218.137.82.3, Port 22 2024-09-13 21:33:05,869 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-13 21:33:06,023 - DEBUG - VM ctest-TestBasicPolicy-18797750-49754821 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-13 21:33:11,023 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 21:33:11,024 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-18797750-49754821, IP 218.137.82.3, Port 22 2024-09-13 21:33:11,120 - DEBUG - VM ctest-TestBasicPolicy-18797750-49754821 is ready for SSH connections 2024-09-13 21:33:11,120 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 21:33:11,121 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.137.82.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-13 21:33:11,121 - DEBUG - ping -s 56 -c 3 -W 1 218.137.82.3 2024-09-13 21:33:14,739 - DEBUG - PING 218.137.82.3 (218.137.82.3): 56 data bytes 64 bytes from 218.137.82.3: seq=0 ttl=63 time=5.636 ms 64 bytes from 218.137.82.3: seq=1 ttl=63 time=1.068 ms 64 bytes from 218.137.82.3: seq=2 ttl=63 time=1.275 ms --- 218.137.82.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.068/2.659/5.636 ms 2024-09-13 21:33:14,740 - INFO - Ping to IP 218.137.82.3 from VM ctest-TestBasicPolicy-18797750-48450416 passed 2024-09-13 21:33:14,874 - DEBUG - Policy Update Response {"network-policy": {"uuid": "97047d31-3b46-47f2-82b2-a5fc920f11db", "href": "http://10.0.0.41:8082/network-policy/97047d31-3b46-47f2-82b2-a5fc920f11db"}} 2024-09-13 21:33:14,874 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 21:33:14,874 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.137.82.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-13 21:33:14,874 - DEBUG - ping -s 56 -c 3 -W 1 218.137.82.3 2024-09-13 21:33:18,059 - DEBUG - PING 218.137.82.3 (218.137.82.3): 56 data bytes --- 218.137.82.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-13 21:33:18,059 - WARNING - Ping to IP 218.137.82.3 from VM ctest-TestBasicPolicy-18797750-48450416 failed 2024-09-13 21:33:18,059 - INFO - Deleting VM ctest-TestBasicPolicy-18797750-49754821 2024-09-13 21:33:18,231 - INFO - Deleting VM ctest-TestBasicPolicy-18797750-48450416 2024-09-13 21:33:18,918 - INFO - Deleted policy ctest-policy-allow-all-45247184 2024-09-13 21:33:18,919 - INFO - Deleting VN ctest-vn-67729261 2024-09-13 21:33:18,970 - DEBUG - VN 6eb05cc1-236c-4973-ab0c-59e43df14d37 still in use: Unable to complete operation on network 6eb05cc1-236c-4973-ab0c-59e43df14d37. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-36c1c688-0418-4406-b0ce-fd9789e36452'] 2024-09-13 21:33:18,970 - WARNING - Deleting VN ctest-vn-67729261 failed..Will retry 2024-09-13 21:33:21,219 - DEBUG - Response for deleting network () 2024-09-13 21:33:21,220 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/605365b8-2ffd-4586-b756-15cd067bc8dc 2024-09-13 21:33:21,228 - DEBUG - Response Code: 404 2024-09-13 21:33:21,228 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-13 21:33:21,240 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c825d847-91d2-46e5-9bb6-0d300075fcb1 2024-09-13 21:33:21,259 - DEBUG - Requesting: http://10.0.0.12:8082/project/b6cfcc83-5fd9-468f-a565-3a0af2805894 2024-09-13 21:33:21,320 - INFO - Validated that VN ctest-vn-67729261 is not found in API Server 2024-09-13 21:33:21,332 - DEBUG - VN ctest-vn-67729261 is not present in Agent 10.0.0.27 2024-09-13 21:33:21,345 - DEBUG - VN ctest-vn-67729261 is not present in Agent 10.0.0.36 2024-09-13 21:33:21,345 - INFO - Validated that VN ctest-vn-67729261 is not in any agent 2024-09-13 21:33:22,008 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-67729261 info 2024-09-13 21:33:22,009 - INFO - Deleting VN ctest-vn-66620407 2024-09-13 21:33:22,218 - DEBUG - Response for deleting network () 2024-09-13 21:33:22,218 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/52e67eda-c645-48c0-a30b-d0facbcabbc8 2024-09-13 21:33:22,233 - DEBUG - Response Code: 404 2024-09-13 21:33:22,233 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-09-13 21:33:22,242 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c825d847-91d2-46e5-9bb6-0d300075fcb1 2024-09-13 21:33:22,257 - DEBUG - Requesting: http://10.0.0.12:8082/project/b6cfcc83-5fd9-468f-a565-3a0af2805894 2024-09-13 21:33:22,329 - INFO - Validated that VN ctest-vn-66620407 is not found in API Server 2024-09-13 21:33:22,342 - DEBUG - VN ctest-vn-66620407 is not present in Agent 10.0.0.27 2024-09-13 21:33:22,353 - DEBUG - VN ctest-vn-66620407 is not present in Agent 10.0.0.36 2024-09-13 21:33:22,353 - INFO - Validated that VN ctest-vn-66620407 is not in any agent 2024-09-13 21:33:22,388 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-66620407 info 2024-09-13 21:33:23,123 - DEBUG - No XMPP flaps were noticed during the test 2024-09-13 21:33:23,123 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:43] 2024-09-13 21:33:23,124 - INFO - -------------------------------------------------------------------------------- 2024-09-13 21:33:23,915 - INFO - Deleted project: ctest-TestBasicPolicy-18797750, ID : b6cfcc83-5fd9-468f-a565-3a0af2805894