2025-07-31 03:47:57,495 - INFO - Domain Default found not creating 2025-07-31 03:47:57,683 - INFO - Project ctest-TestBasicPolicy-16079499 not found, creating it 2025-07-31 03:47:58,246 - INFO - Created Project:ctest-TestBasicPolicy-16079499, ID : e2bdcb3c-4ef9-4add-a635-5af79a2a37b1 2025-07-31 03:47:59,887 - INFO - ================================================================================ 2025-07-31 03:47:59,888 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-31 03:47:59,888 - 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-07-31 03:48:01,198 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.193': '0', '10.20.0.18': '0'}, '10.0.0.57': {'10.20.0.18': '0', '10.20.0.193': '0'}} with 2025-07-31 03:48:01,198 - INFO - Initial checks done. Running the testcase now 2025-07-31 03:48:01,198 - INFO - 2025-07-31 03:48:01,903 - DEBUG - Response for create_network : {'network': {'id': 'ec7de41d-4bea-4ba2-bc5a-bec6a758710d', 'name': 'ctest-vn-69633244', 'tenant_id': 'e2bdcb3c4ef94adda6355af79a2a37b1', 'project_id': 'e2bdcb3c4ef94adda6355af79a2a37b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16079499', 'ctest-vn-69633244'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 03:48:02,178 - DEBUG - Response for create_subnet : {'subnet': {'id': '105487c5-506c-4115-907d-3c0ede75acbe', 'name': '', 'tenant_id': 'e2bdcb3c4ef94adda6355af79a2a37b1', 'network_id': 'ec7de41d-4bea-4ba2-bc5a-bec6a758710d', 'ip_version': 4, 'cidr': '15.166.66.64/26', 'allocation_pools': [{'start': '15.166.66.66', 'end': '15.166.66.126'}], 'gateway_ip': '15.166.66.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.166.66.66', 'tags': [], 'project_id': 'e2bdcb3c4ef94adda6355af79a2a37b1'}} 2025-07-31 03:48:02,212 - INFO - Created VN ctest-vn-69633244 2025-07-31 03:48:02,227 - DEBUG - VN ctest-vn-69633244 UUID is ec7de41d-4bea-4ba2-bc5a-bec6a758710d 2025-07-31 03:48:02,671 - DEBUG - Response for create_network : {'network': {'id': '0f609199-c23a-4dcc-b33b-7ebfcde0bf9c', 'name': 'ctest-vn-60697224', 'tenant_id': 'e2bdcb3c4ef94adda6355af79a2a37b1', 'project_id': 'e2bdcb3c4ef94adda6355af79a2a37b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16079499', 'ctest-vn-60697224'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 03:48:02,923 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4b3990c-57fe-4954-966b-411a5f67df07', 'name': '', 'tenant_id': 'e2bdcb3c4ef94adda6355af79a2a37b1', 'network_id': '0f609199-c23a-4dcc-b33b-7ebfcde0bf9c', 'ip_version': 4, 'cidr': '85.237.4.64/26', 'allocation_pools': [{'start': '85.237.4.66', 'end': '85.237.4.126'}], 'gateway_ip': '85.237.4.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.237.4.66', 'tags': [], 'project_id': 'e2bdcb3c4ef94adda6355af79a2a37b1'}} 2025-07-31 03:48:02,945 - INFO - Created VN ctest-vn-60697224 2025-07-31 03:48:02,957 - DEBUG - VN ctest-vn-60697224 UUID is 0f609199-c23a-4dcc-b33b-7ebfcde0bf9c 2025-07-31 03:48:03,044 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244, 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-16079499:ctest-vn-60697224, 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-07-31 03:48:03,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec7de41d-4bea-4ba2-bc5a-bec6a758710d', 'name': 'ctest-vn-69633244', 'tenant_id': 'e2bdcb3c4ef94adda6355af79a2a37b1', 'project_id': 'e2bdcb3c4ef94adda6355af79a2a37b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['105487c5-506c-4115-907d-3c0ede75acbe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16079499', 'ctest-vn-69633244'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16079499', 'ctest-policy-allow-all-26336541']], 'subnet_ipam': [{'subnet_cidr': '15.166.66.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 03:48:03,670 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f609199-c23a-4dcc-b33b-7ebfcde0bf9c', 'name': 'ctest-vn-60697224', 'tenant_id': 'e2bdcb3c4ef94adda6355af79a2a37b1', 'project_id': 'e2bdcb3c4ef94adda6355af79a2a37b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a4b3990c-57fe-4954-966b-411a5f67df07'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16079499', 'ctest-vn-60697224'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16079499', 'ctest-policy-allow-all-26336541']], 'subnet_ipam': [{'subnet_cidr': '85.237.4.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 03:48:03,801 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-07-31 03:48:04,118 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-07-31 03:48:04,188 - DEBUG - Requesting: http://10.0.0.41:8082/domain/34dad5b7-e30d-42c7-8ff4-7b0d7fa576d7 2025-07-31 03:48:04,210 - DEBUG - Requesting: http://10.0.0.41:8082/project/e2bdcb3c-4ef9-4add-a635-5af79a2a37b1 2025-07-31 03:48:04,341 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ec7de41d-4bea-4ba2-bc5a-bec6a758710d 2025-07-31 03:48:04,373 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ec7de41d-4bea-4ba2-bc5a-bec6a758710d 2025-07-31 03:48:04,391 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2244c8a3-1eb5-40e5-917e-fef679fe25c5 2025-07-31 03:48:04,405 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2244c8a3-1eb5-40e5-917e-fef679fe25c5 2025-07-31 03:48:04,419 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/84da229e-31fa-49b3-bcbb-960ac66f58d8 2025-07-31 03:48:04,431 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 03:48:04,432 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ec7de41d-4bea-4ba2-bc5a-bec6a758710d 2025-07-31 03:48:04,459 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2244c8a3-1eb5-40e5-917e-fef679fe25c5 2025-07-31 03:48:04,500 - INFO - Verified VN network id 11 for VN ec7de41d-4bea-4ba2-bc5a-bec6a758710d 2025-07-31 03:48:04,500 - INFO - Verifications in API Server for VN ctest-vn-69633244 passed 2025-07-31 03:48:04,500 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ec7de41d-4bea-4ba2-bc5a-bec6a758710d 2025-07-31 03:48:04,538 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2244c8a3-1eb5-40e5-917e-fef679fe25c5 2025-07-31 03:48:04,564 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2244c8a3-1eb5-40e5-917e-fef679fe25c5 2025-07-31 03:48:04,598 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/84da229e-31fa-49b3-bcbb-960ac66f58d8 2025-07-31 03:48:04,628 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16079499', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17041027379518655394', 'uuid-lslong': '13572370187454804237'}, 'enable': 'true', 'created': '2025-07-31T03:48:01', 'last-modified': '2025-07-31T03:48:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.242401'} 2025-07-31 03:48:04,652 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 03:48:04,665 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16079499', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17041027379518655394', 'uuid-lslong': '13572370187454804237'}, 'enable': 'true', 'created': '2025-07-31T03:48:01', 'last-modified': '2025-07-31T03:48:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.284590'} 2025-07-31 03:48:04,677 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 03:48:04,687 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16079499', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17041027379518655394', 'uuid-lslong': '13572370187454804237'}, 'enable': 'true', 'created': '2025-07-31T03:48:01', 'last-modified': '2025-07-31T03:48:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.306053'} 2025-07-31 03:48:04,700 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 03:48:04,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69633244 passed 2025-07-31 03:48:04,701 - DEBUG - ====Verifying policy data for ctest-vn-69633244 in API_Server ====== 2025-07-31 03:48:04,701 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-07-31 03:48:04,716 - DEBUG - Requesting: http://10.0.0.41:8082/domain/34dad5b7-e30d-42c7-8ff4-7b0d7fa576d7 2025-07-31 03:48:04,762 - DEBUG - Requesting: http://10.0.0.41:8082/project/e2bdcb3c-4ef9-4add-a635-5af79a2a37b1 2025-07-31 03:48:04,941 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ec7de41d-4bea-4ba2-bc5a-bec6a758710d 2025-07-31 03:48:04,957 - DEBUG - ==>Verifying data for policy with id: 4cf8bac6-82de-4f72-8ba9-689227ed0912, fqn: ['default-domain', 'ctest-TestBasicPolicy-16079499', 'ctest-policy-allow-all-26336541'] 2025-07-31 03:48:04,957 - INFO - VN ctest-vn-69633244 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 03:48:04,957 - DEBUG - Verifying the vn in opserver 2025-07-31 03:48:04,957 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244 virtual network link through opserver 10.0.0.41 2025-07-31 03:48:04,957 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-07-31 03:48:05,259 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-07-31 03:48:05,368 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244?flat'} 2025-07-31 03:48:05,368 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244 virtual network link through opserver 10.0.0.38 2025-07-31 03:48:05,368 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-31 03:48:05,679 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-31 03:48:05,815 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244?flat'} 2025-07-31 03:48:05,815 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244 virtual network link through opserver 10.0.0.61 2025-07-31 03:48:05,815 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-07-31 03:48:06,165 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-07-31 03:48:06,239 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244?flat'} 2025-07-31 03:48:06,239 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244 is found in opserver 2025-07-31 03:48:06,292 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 03:48:06,317 - DEBUG - VRF ids for VN ctest-vn-69633244: {} 2025-07-31 03:48:06,317 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-07-31 03:48:06,334 - DEBUG - Requesting: http://10.0.0.41:8082/domain/34dad5b7-e30d-42c7-8ff4-7b0d7fa576d7 2025-07-31 03:48:06,363 - DEBUG - Requesting: http://10.0.0.41:8082/project/e2bdcb3c-4ef9-4add-a635-5af79a2a37b1 2025-07-31 03:48:06,480 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0f609199-c23a-4dcc-b33b-7ebfcde0bf9c 2025-07-31 03:48:06,499 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0f609199-c23a-4dcc-b33b-7ebfcde0bf9c 2025-07-31 03:48:06,516 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/95f6586f-bd88-4253-9300-9ab4ca1e379a 2025-07-31 03:48:06,529 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/95f6586f-bd88-4253-9300-9ab4ca1e379a 2025-07-31 03:48:06,541 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/367b578d-0748-4087-8d1b-e5bebc943d0e 2025-07-31 03:48:06,555 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-31 03:48:06,555 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0f609199-c23a-4dcc-b33b-7ebfcde0bf9c 2025-07-31 03:48:06,574 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/95f6586f-bd88-4253-9300-9ab4ca1e379a 2025-07-31 03:48:06,599 - INFO - Verified VN network id 12 for VN 0f609199-c23a-4dcc-b33b-7ebfcde0bf9c 2025-07-31 03:48:06,599 - INFO - Verifications in API Server for VN ctest-vn-60697224 passed 2025-07-31 03:48:06,599 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0f609199-c23a-4dcc-b33b-7ebfcde0bf9c 2025-07-31 03:48:06,622 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/95f6586f-bd88-4253-9300-9ab4ca1e379a 2025-07-31 03:48:06,635 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/95f6586f-bd88-4253-9300-9ab4ca1e379a 2025-07-31 03:48:06,645 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/367b578d-0748-4087-8d1b-e5bebc943d0e 2025-07-31 03:48:06,659 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16079499', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1108045597907766732', 'uuid-lslong': '12915055718672940956'}, 'enable': 'true', 'created': '2025-07-31T03:48:02', 'last-modified': '2025-07-31T03:48:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.043888'} 2025-07-31 03:48:06,671 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-31 03:48:06,682 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16079499', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1108045597907766732', 'uuid-lslong': '12915055718672940956'}, 'enable': 'true', 'created': '2025-07-31T03:48:02', 'last-modified': '2025-07-31T03:48:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.062141'} 2025-07-31 03:48:06,691 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-31 03:48:06,698 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16079499', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1108045597907766732', 'uuid-lslong': '12915055718672940956'}, 'enable': 'true', 'created': '2025-07-31T03:48:02', 'last-modified': '2025-07-31T03:48:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.083159'} 2025-07-31 03:48:06,706 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-31 03:48:06,707 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60697224 passed 2025-07-31 03:48:06,707 - DEBUG - ====Verifying policy data for ctest-vn-60697224 in API_Server ====== 2025-07-31 03:48:06,707 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-07-31 03:48:06,717 - DEBUG - Requesting: http://10.0.0.41:8082/domain/34dad5b7-e30d-42c7-8ff4-7b0d7fa576d7 2025-07-31 03:48:06,737 - DEBUG - Requesting: http://10.0.0.41:8082/project/e2bdcb3c-4ef9-4add-a635-5af79a2a37b1 2025-07-31 03:48:06,870 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0f609199-c23a-4dcc-b33b-7ebfcde0bf9c 2025-07-31 03:48:06,891 - DEBUG - ==>Verifying data for policy with id: 4cf8bac6-82de-4f72-8ba9-689227ed0912, fqn: ['default-domain', 'ctest-TestBasicPolicy-16079499', 'ctest-policy-allow-all-26336541'] 2025-07-31 03:48:06,891 - INFO - VN ctest-vn-60697224 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 03:48:06,891 - DEBUG - Verifying the vn in opserver 2025-07-31 03:48:06,892 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224 virtual network link through opserver 10.0.0.41 2025-07-31 03:48:06,892 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-07-31 03:48:06,988 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224?flat'} 2025-07-31 03:48:06,988 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224 virtual network link through opserver 10.0.0.38 2025-07-31 03:48:06,988 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-31 03:48:07,085 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224?flat'} 2025-07-31 03:48:07,085 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224 virtual network link through opserver 10.0.0.61 2025-07-31 03:48:07,085 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-07-31 03:48:07,199 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224?flat'} 2025-07-31 03:48:07,199 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-60697224 is found in opserver 2025-07-31 03:48:07,259 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 03:48:07,286 - DEBUG - VRF ids for VN ctest-vn-60697224: {} 2025-07-31 03:48:07,440 - DEBUG - Services list from nova: [, , , ] 2025-07-31 03:48:09,192 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3732-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3732-1) 2025-07-31 03:48:10,951 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3732-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3732-2) 2025-07-31 03:48:10,951 - INFO - Waiting for VM ctest-TestBasicPolicy-16079499-96362421 to be up.. 2025-07-31 03:48:11,086 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-31 03:48:16,249 - DEBUG - VM is in ACTIVE state now 2025-07-31 03:48:16,249 - INFO - VM name : ctest-TestBasicPolicy-16079499-96362421 2025-07-31 03:48:16,407 - DEBUG - VM ctest-TestBasicPolicy-16079499-96362421 ID is 6d408f54-7360-4a5b-a591-9d731104640b 2025-07-31 03:48:16,465 - DEBUG - VM ctest-TestBasicPolicy-16079499-96362421 launched on Node an-jenkins-deploy-platform-ansible-os-3732-1 2025-07-31 03:48:16,657 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/6d408f54-7360-4a5b-a591-9d731104640b 2025-07-31 03:48:17,023 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/6d408f54-7360-4a5b-a591-9d731104640b 2025-07-31 03:48:17,097 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/b81aa72c-1ac4-4a18-b32a-c7bd0f853a25 2025-07-31 03:48:20,332 - 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 1002ms') 2025-07-31 03:48:20,332 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16079499-96362421 failed! 2025-07-31 03:48:20,355 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244 is 15.166.66.65 and allocation pool is NOT set 2025-07-31 03:48:24,431 - 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 1010ms') 2025-07-31 03:48:24,432 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16079499-96362421 failed! 2025-07-31 03:48:24,456 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244 is 15.166.66.65 and allocation pool is NOT set 2025-07-31 03:48:28,561 - 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 1038ms') 2025-07-31 03:48:28,561 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16079499-96362421 failed! 2025-07-31 03:48:28,586 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244 is 15.166.66.65 and allocation pool is NOT set 2025-07-31 03:48:32,685 - 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') 2025-07-31 03:48:32,685 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16079499-96362421 failed! 2025-07-31 03:48:32,706 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244 is 15.166.66.65 and allocation pool is NOT set 2025-07-31 03:48:36,779 - 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 1007ms') 2025-07-31 03:48:36,780 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16079499-96362421 failed! 2025-07-31 03:48:36,805 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244 is 15.166.66.65 and allocation pool is NOT set 2025-07-31 03:48:40,877 - 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 1001ms') 2025-07-31 03:48:40,877 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16079499-96362421 failed! 2025-07-31 03:48:40,902 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244 is 15.166.66.65 and allocation pool is NOT set 2025-07-31 03:48:44,970 - 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 1007ms') 2025-07-31 03:48:44,970 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16079499-96362421 failed! 2025-07-31 03:48:44,988 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244 is 15.166.66.65 and allocation pool is NOT set 2025-07-31 03:48:49,069 - 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 1014ms') 2025-07-31 03:48:49,069 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16079499-96362421 failed! 2025-07-31 03:48:49,093 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16079499:ctest-vn-69633244 is 15.166.66.65 and allocation pool is NOT set 2025-07-31 03:48:51,161 - 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=5.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.56 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 = 1.562/3.567/5.572/2.005 ms') 2025-07-31 03:48:51,161 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16079499-96362421 passed 2025-07-31 03:48:51,291 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 03:48:51,291 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16079499-96362421, IP 15.166.66.67, Port 22 2025-07-31 03:48:51,363 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /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': ''} 2025-07-31 03:48:51,538 - DEBUG - VM ctest-TestBasicPolicy-16079499-96362421 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-31 03:48:56,538 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 03:48:56,539 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16079499-96362421, IP 15.166.66.67, Port 22 2025-07-31 03:48:56,601 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /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': ''} 2025-07-31 03:48:56,713 - DEBUG - VM ctest-TestBasicPolicy-16079499-96362421 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-31 03:49:01,714 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 03:49:01,714 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16079499-96362421, IP 15.166.66.67, Port 22 2025-07-31 03:49:01,781 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /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': ''} 2025-07-31 03:49:01,869 - DEBUG - VM ctest-TestBasicPolicy-16079499-96362421 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-31 03:49:06,870 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 03:49:06,871 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16079499-96362421, IP 15.166.66.67, Port 22 2025-07-31 03:49:06,943 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /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': ''} 2025-07-31 03:49:07,100 - DEBUG - VM ctest-TestBasicPolicy-16079499-96362421 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-31 03:49:12,102 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 03:49:12,102 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16079499-96362421, IP 15.166.66.67, Port 22 2025-07-31 03:49:12,269 - DEBUG - VM ctest-TestBasicPolicy-16079499-96362421 is ready for SSH connections 2025-07-31 03:49:12,269 - INFO - Waiting for VM ctest-TestBasicPolicy-16079499-37784754 to be up.. 2025-07-31 03:49:12,363 - DEBUG - VM is in ACTIVE state now 2025-07-31 03:49:12,364 - INFO - VM name : ctest-TestBasicPolicy-16079499-37784754 2025-07-31 03:49:12,451 - DEBUG - VM ctest-TestBasicPolicy-16079499-37784754 ID is fbc3f0d5-2051-4e68-956f-ec28475a6963 2025-07-31 03:49:12,452 - DEBUG - VM ctest-TestBasicPolicy-16079499-37784754 launched on Node an-jenkins-deploy-platform-ansible-os-3732-2 2025-07-31 03:49:12,579 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/fbc3f0d5-2051-4e68-956f-ec28475a6963 2025-07-31 03:49:12,590 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/5225ca33-d2e7-4352-951e-7950cf15d198 2025-07-31 03:49:13,822 - 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=6.73 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.57 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.569/4.149/6.729/2.580 ms') 2025-07-31 03:49:13,822 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16079499-37784754 passed 2025-07-31 03:49:13,961 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 03:49:13,961 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16079499-37784754, IP 85.237.4.67, Port 22 2025-07-31 03:49:14,034 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /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': ''} 2025-07-31 03:49:14,168 - DEBUG - VM ctest-TestBasicPolicy-16079499-37784754 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-31 03:49:19,169 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 03:49:19,169 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16079499-37784754, IP 85.237.4.67, Port 22 2025-07-31 03:49:19,350 - DEBUG - VM ctest-TestBasicPolicy-16079499-37784754 is ready for SSH connections 2025-07-31 03:49:19,351 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 03:49:19,351 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 85.237.4.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-07-31 03:49:19,351 - DEBUG - ping -s 56 -c 3 -W 1 85.237.4.67 2025-07-31 03:49:36,089 - DEBUG - PING 85.237.4.67 (85.237.4.67) 56(84) bytes of data. 64 bytes from 85.237.4.67: icmp_req=1 ttl=63 time=6.88 ms 64 bytes from 85.237.4.67: icmp_req=2 ttl=63 time=1.92 ms 64 bytes from 85.237.4.67: icmp_req=3 ttl=63 time=1.98 ms --- 85.237.4.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.923/3.598/6.888/2.326 ms 2025-07-31 03:49:36,089 - INFO - Ping to IP 85.237.4.67 from VM ctest-TestBasicPolicy-16079499-96362421 passed 2025-07-31 03:49:36,333 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4cf8bac6-82de-4f72-8ba9-689227ed0912", "href": "http://10.0.0.61:8082/network-policy/4cf8bac6-82de-4f72-8ba9-689227ed0912"}} 2025-07-31 03:49:36,333 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 03:49:36,333 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 85.237.4.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-07-31 03:49:36,333 - DEBUG - ping -s 56 -c 3 -W 1 85.237.4.67 2025-07-31 03:49:39,822 - DEBUG - PING 85.237.4.67 (85.237.4.67) 56(84) bytes of data. 64 bytes from 85.237.4.67: icmp_req=1 ttl=63 time=5.65 ms --- 85.237.4.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2010ms rtt min/avg/max/mdev = 5.651/5.651/5.651/0.000 ms 2025-07-31 03:49:39,822 - WARNING - Ping to IP 85.237.4.67 from VM ctest-TestBasicPolicy-16079499-96362421 failed 2025-07-31 03:49:39,823 - INFO - Deleting VM ctest-TestBasicPolicy-16079499-37784754 2025-07-31 03:49:40,028 - INFO - Deleting VM ctest-TestBasicPolicy-16079499-96362421 2025-07-31 03:49:40,701 - INFO - Deleted policy ctest-policy-allow-all-26336541 2025-07-31 03:49:40,702 - INFO - Deleting VN ctest-vn-60697224 2025-07-31 03:49:40,779 - DEBUG - VN 0f609199-c23a-4dcc-b33b-7ebfcde0bf9c still in use: Unable to complete operation on network 0f609199-c23a-4dcc-b33b-7ebfcde0bf9c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8b4f613d-e3ce-4773-bb85-7c125d02693a'] 2025-07-31 03:49:40,779 - WARNING - Deleting VN ctest-vn-60697224 failed..Will retry 2025-07-31 03:49:43,011 - DEBUG - Response for deleting network () 2025-07-31 03:49:43,011 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/95f6586f-bd88-4253-9300-9ab4ca1e379a 2025-07-31 03:49:43,021 - DEBUG - Response Code: 404 2025-07-31 03:49:43,021 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-07-31 03:49:43,028 - DEBUG - Requesting: http://10.0.0.41:8082/domain/34dad5b7-e30d-42c7-8ff4-7b0d7fa576d7 2025-07-31 03:49:43,093 - DEBUG - Requesting: http://10.0.0.41:8082/project/e2bdcb3c-4ef9-4add-a635-5af79a2a37b1 2025-07-31 03:49:43,242 - INFO - Validated that VN ctest-vn-60697224 is not found in API Server 2025-07-31 03:49:43,256 - DEBUG - VN ctest-vn-60697224 is not present in Agent 10.0.0.27 2025-07-31 03:49:43,268 - DEBUG - VN ctest-vn-60697224 is not present in Agent 10.0.0.57 2025-07-31 03:49:43,268 - INFO - Validated that VN ctest-vn-60697224 is not in any agent 2025-07-31 03:49:43,305 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60697224 info 2025-07-31 03:49:43,305 - INFO - Deleting VN ctest-vn-69633244 2025-07-31 03:49:43,498 - DEBUG - Response for deleting network () 2025-07-31 03:49:43,498 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2244c8a3-1eb5-40e5-917e-fef679fe25c5 2025-07-31 03:49:43,511 - DEBUG - Response Code: 404 2025-07-31 03:49:43,512 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-07-31 03:49:43,521 - DEBUG - Requesting: http://10.0.0.41:8082/domain/34dad5b7-e30d-42c7-8ff4-7b0d7fa576d7 2025-07-31 03:49:43,536 - DEBUG - Requesting: http://10.0.0.41:8082/project/e2bdcb3c-4ef9-4add-a635-5af79a2a37b1 2025-07-31 03:49:43,667 - INFO - Validated that VN ctest-vn-69633244 is not found in API Server 2025-07-31 03:49:43,686 - DEBUG - VN ctest-vn-69633244 is not present in Agent 10.0.0.27 2025-07-31 03:49:43,701 - DEBUG - VN ctest-vn-69633244 is not present in Agent 10.0.0.57 2025-07-31 03:49:43,701 - INFO - Validated that VN ctest-vn-69633244 is not in any agent 2025-07-31 03:49:43,765 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69633244 info 2025-07-31 03:49:45,167 - DEBUG - No XMPP flaps were noticed during the test
2025-07-31 03:49:45,167 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:46]
2025-07-31 03:49:45,167 - INFO - -------------------------------------------------------------------------------- 2025-07-31 03:49:45,945 - INFO - Deleted project: ctest-TestBasicPolicy-16079499, ID : e2bdcb3c-4ef9-4add-a635-5af79a2a37b1