2025-12-29 02:42:28,069 - INFO - Domain Default found not creating 2025-12-29 02:42:28,313 - INFO - Project ctest-TestBasicPolicy-58551394 not found, creating it 2025-12-29 02:42:28,807 - INFO - Created Project:ctest-TestBasicPolicy-58551394, ID : 04ebb045-7008-4773-951f-7f1c125627a2 2025-12-29 02:42:30,251 - INFO - ================================================================================ 2025-12-29 02:42:30,252 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-12-29 02:42:30,252 - 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-12-29 02:42:31,522 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.145': '0', '10.20.0.18': '0'}, '10.0.0.240': {'10.20.0.252': '0', '10.20.0.18': '0'}} with 2025-12-29 02:42:31,523 - INFO - Initial checks done. Running the testcase now 2025-12-29 02:42:31,523 - INFO - 2025-12-29 02:42:32,212 - DEBUG - Response for create_network : {'network': {'id': '4616b020-1b34-4a70-8dd8-59c063c2e48f', 'name': 'ctest-vn-35663660', 'tenant_id': '04ebb04570084773951f7f1c125627a2', 'project_id': '04ebb04570084773951f7f1c125627a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58551394', 'ctest-vn-35663660'], 'port_security_enabled': True, 'description': ''}} 2025-12-29 02:42:32,538 - DEBUG - Response for create_subnet : {'subnet': {'id': '51fff878-e16a-41be-9cb3-db3294fc0054', 'name': '', 'tenant_id': '04ebb04570084773951f7f1c125627a2', 'network_id': '4616b020-1b34-4a70-8dd8-59c063c2e48f', 'ip_version': 4, 'cidr': '34.122.48.128/26', 'allocation_pools': [{'start': '34.122.48.130', 'end': '34.122.48.190'}], 'gateway_ip': '34.122.48.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.122.48.130', 'tags': [], 'project_id': '04ebb04570084773951f7f1c125627a2'}} 2025-12-29 02:42:32,578 - INFO - Created VN ctest-vn-35663660 2025-12-29 02:42:32,589 - DEBUG - VN ctest-vn-35663660 UUID is 4616b020-1b34-4a70-8dd8-59c063c2e48f 2025-12-29 02:42:32,955 - DEBUG - Response for create_network : {'network': {'id': '60e640b7-745d-436f-9e22-6789a405ba31', 'name': 'ctest-vn-83349040', 'tenant_id': '04ebb04570084773951f7f1c125627a2', 'project_id': '04ebb04570084773951f7f1c125627a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58551394', 'ctest-vn-83349040'], 'port_security_enabled': True, 'description': ''}} 2025-12-29 02:42:33,217 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0e9eabc-81dd-4353-a9b9-7bc7e5c58b4d', 'name': '', 'tenant_id': '04ebb04570084773951f7f1c125627a2', 'network_id': '60e640b7-745d-436f-9e22-6789a405ba31', 'ip_version': 4, 'cidr': '137.19.32.64/26', 'allocation_pools': [{'start': '137.19.32.66', 'end': '137.19.32.126'}], 'gateway_ip': '137.19.32.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.19.32.66', 'tags': [], 'project_id': '04ebb04570084773951f7f1c125627a2'}} 2025-12-29 02:42:33,239 - INFO - Created VN ctest-vn-83349040 2025-12-29 02:42:33,257 - DEBUG - VN ctest-vn-83349040 UUID is 60e640b7-745d-436f-9e22-6789a405ba31 2025-12-29 02:42:33,336 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660, 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-58551394:ctest-vn-83349040, 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-12-29 02:42:33,665 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4616b020-1b34-4a70-8dd8-59c063c2e48f', 'name': 'ctest-vn-35663660', 'tenant_id': '04ebb04570084773951f7f1c125627a2', 'project_id': '04ebb04570084773951f7f1c125627a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51fff878-e16a-41be-9cb3-db3294fc0054'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58551394', 'ctest-vn-35663660'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58551394', 'ctest-policy-allow-all-52384083']], 'subnet_ipam': [{'subnet_cidr': '34.122.48.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-29 02:42:33,877 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60e640b7-745d-436f-9e22-6789a405ba31', 'name': 'ctest-vn-83349040', 'tenant_id': '04ebb04570084773951f7f1c125627a2', 'project_id': '04ebb04570084773951f7f1c125627a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0e9eabc-81dd-4353-a9b9-7bc7e5c58b4d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58551394', 'ctest-vn-83349040'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58551394', 'ctest-policy-allow-all-52384083']], 'subnet_ipam': [{'subnet_cidr': '137.19.32.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-29 02:42:33,985 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-29 02:42:34,338 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-29 02:42:34,378 - DEBUG - Requesting: http://10.0.0.61:8082/domain/ea4b09a7-31d2-48cf-9e60-035b93d3d81c 2025-12-29 02:42:34,393 - DEBUG - Requesting: http://10.0.0.61:8082/project/04ebb045-7008-4773-951f-7f1c125627a2 2025-12-29 02:42:34,487 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/4616b020-1b34-4a70-8dd8-59c063c2e48f 2025-12-29 02:42:34,500 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/4616b020-1b34-4a70-8dd8-59c063c2e48f 2025-12-29 02:42:34,511 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/2f211319-0456-49c0-b0df-9c4670c3fb27 2025-12-29 02:42:34,519 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/2f211319-0456-49c0-b0df-9c4670c3fb27 2025-12-29 02:42:34,527 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/5b832743-8bf0-4c48-903d-ca8a636ab7e9 2025-12-29 02:42:34,534 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 02:42:34,534 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/4616b020-1b34-4a70-8dd8-59c063c2e48f 2025-12-29 02:42:34,544 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/2f211319-0456-49c0-b0df-9c4670c3fb27 2025-12-29 02:42:34,560 - INFO - Verified VN network id 11 for VN 4616b020-1b34-4a70-8dd8-59c063c2e48f 2025-12-29 02:42:34,560 - INFO - Verifications in API Server for VN ctest-vn-35663660 passed 2025-12-29 02:42:34,560 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/4616b020-1b34-4a70-8dd8-59c063c2e48f 2025-12-29 02:42:34,573 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/2f211319-0456-49c0-b0df-9c4670c3fb27 2025-12-29 02:42:34,581 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/2f211319-0456-49c0-b0df-9c4670c3fb27 2025-12-29 02:42:34,588 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/5b832743-8bf0-4c48-903d-ca8a636ab7e9 2025-12-29 02:42:34,602 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58551394', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5050417684084443760', 'uuid-lslong': '10221018037159650447'}, 'enable': 'true', 'created': '2025-12-29T02:42:32', 'last-modified': '2025-12-29T02:42:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987749'} 2025-12-29 02:42:34,608 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 02:42:34,613 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58551394', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5050417684084443760', 'uuid-lslong': '10221018037159650447'}, 'enable': 'true', 'created': '2025-12-29T02:42:32', 'last-modified': '2025-12-29T02:42:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.998355'} 2025-12-29 02:42:34,618 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 02:42:34,623 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58551394', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5050417684084443760', 'uuid-lslong': '10221018037159650447'}, 'enable': 'true', 'created': '2025-12-29T02:42:32', 'last-modified': '2025-12-29T02:42:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.006138'} 2025-12-29 02:42:34,628 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 02:42:34,628 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35663660 passed 2025-12-29 02:42:34,628 - DEBUG - ====Verifying policy data for ctest-vn-35663660 in API_Server ====== 2025-12-29 02:42:34,628 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-29 02:42:34,634 - DEBUG - Requesting: http://10.0.0.61:8082/domain/ea4b09a7-31d2-48cf-9e60-035b93d3d81c 2025-12-29 02:42:34,644 - DEBUG - Requesting: http://10.0.0.61:8082/project/04ebb045-7008-4773-951f-7f1c125627a2 2025-12-29 02:42:34,736 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/4616b020-1b34-4a70-8dd8-59c063c2e48f 2025-12-29 02:42:34,747 - DEBUG - ==>Verifying data for policy with id: 24dde331-b4fe-48f6-85e7-b83f01111fae, fqn: ['default-domain', 'ctest-TestBasicPolicy-58551394', 'ctest-policy-allow-all-52384083'] 2025-12-29 02:42:34,747 - INFO - VN ctest-vn-35663660 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-29 02:42:34,747 - DEBUG - Verifying the vn in opserver 2025-12-29 02:42:34,747 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 virtual network link through opserver 10.0.0.61 2025-12-29 02:42:34,748 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-12-29 02:42:35,046 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-12-29 02:42:35,115 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660?flat'} 2025-12-29 02:42:35,115 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 virtual network link through opserver 10.0.0.22 2025-12-29 02:42:35,115 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-29 02:42:35,408 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-29 02:42:35,469 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660?flat'} 2025-12-29 02:42:35,469 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 virtual network link through opserver 10.0.0.27 2025-12-29 02:42:35,469 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-29 02:42:35,770 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-29 02:42:35,854 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660?flat'} 2025-12-29 02:42:35,855 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 is found in opserver 2025-12-29 02:42:35,877 - DEBUG - Do not have enough data to verify VN in agent 2025-12-29 02:42:35,888 - DEBUG - VRF ids for VN ctest-vn-35663660: {} 2025-12-29 02:42:35,888 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-29 02:42:35,895 - DEBUG - Requesting: http://10.0.0.61:8082/domain/ea4b09a7-31d2-48cf-9e60-035b93d3d81c 2025-12-29 02:42:35,904 - DEBUG - Requesting: http://10.0.0.61:8082/project/04ebb045-7008-4773-951f-7f1c125627a2 2025-12-29 02:42:35,992 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/60e640b7-745d-436f-9e22-6789a405ba31 2025-12-29 02:42:36,009 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/60e640b7-745d-436f-9e22-6789a405ba31 2025-12-29 02:42:36,020 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/6eb910ab-34f8-4dcc-875d-20ecd1fe3058 2025-12-29 02:42:36,029 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/6eb910ab-34f8-4dcc-875d-20ecd1fe3058 2025-12-29 02:42:36,036 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/4227d8f5-7bf2-45d7-b701-fd0819d90574 2025-12-29 02:42:36,045 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-29 02:42:36,045 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/60e640b7-745d-436f-9e22-6789a405ba31 2025-12-29 02:42:36,059 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/6eb910ab-34f8-4dcc-875d-20ecd1fe3058 2025-12-29 02:42:36,076 - INFO - Verified VN network id 12 for VN 60e640b7-745d-436f-9e22-6789a405ba31 2025-12-29 02:42:36,076 - INFO - Verifications in API Server for VN ctest-vn-83349040 passed 2025-12-29 02:42:36,076 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/60e640b7-745d-436f-9e22-6789a405ba31 2025-12-29 02:42:36,087 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/6eb910ab-34f8-4dcc-875d-20ecd1fe3058 2025-12-29 02:42:36,099 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/6eb910ab-34f8-4dcc-875d-20ecd1fe3058 2025-12-29 02:42:36,106 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/4227d8f5-7bf2-45d7-b701-fd0819d90574 2025-12-29 02:42:36,118 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58551394', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6982339428959994735', 'uuid-lslong': '11394783848060795441'}, 'enable': 'true', 'created': '2025-12-29T02:42:32', 'last-modified': '2025-12-29T02:42:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.284990'} 2025-12-29 02:42:36,124 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-29 02:42:36,129 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58551394', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6982339428959994735', 'uuid-lslong': '11394783848060795441'}, 'enable': 'true', 'created': '2025-12-29T02:42:32', 'last-modified': '2025-12-29T02:42:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.295335'} 2025-12-29 02:42:36,135 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-29 02:42:36,139 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58551394', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6982339428959994735', 'uuid-lslong': '11394783848060795441'}, 'enable': 'true', 'created': '2025-12-29T02:42:32', 'last-modified': '2025-12-29T02:42:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.309215'} 2025-12-29 02:42:36,145 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-29 02:42:36,145 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83349040 passed 2025-12-29 02:42:36,145 - DEBUG - ====Verifying policy data for ctest-vn-83349040 in API_Server ====== 2025-12-29 02:42:36,145 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-29 02:42:36,151 - DEBUG - Requesting: http://10.0.0.61:8082/domain/ea4b09a7-31d2-48cf-9e60-035b93d3d81c 2025-12-29 02:42:36,162 - DEBUG - Requesting: http://10.0.0.61:8082/project/04ebb045-7008-4773-951f-7f1c125627a2 2025-12-29 02:42:36,254 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/60e640b7-745d-436f-9e22-6789a405ba31 2025-12-29 02:42:36,265 - DEBUG - ==>Verifying data for policy with id: 24dde331-b4fe-48f6-85e7-b83f01111fae, fqn: ['default-domain', 'ctest-TestBasicPolicy-58551394', 'ctest-policy-allow-all-52384083'] 2025-12-29 02:42:36,265 - INFO - VN ctest-vn-83349040 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-29 02:42:36,265 - DEBUG - Verifying the vn in opserver 2025-12-29 02:42:36,265 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040 virtual network link through opserver 10.0.0.61 2025-12-29 02:42:36,265 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-12-29 02:42:36,328 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040?flat'} 2025-12-29 02:42:36,328 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040 virtual network link through opserver 10.0.0.22 2025-12-29 02:42:36,328 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-29 02:42:36,385 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040?flat'} 2025-12-29 02:42:36,386 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040 virtual network link through opserver 10.0.0.27 2025-12-29 02:42:36,386 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-29 02:42:36,443 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040?flat'} 2025-12-29 02:42:36,443 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-83349040 is found in opserver 2025-12-29 02:42:36,463 - DEBUG - Do not have enough data to verify VN in agent 2025-12-29 02:42:36,474 - DEBUG - VRF ids for VN ctest-vn-83349040: {} 2025-12-29 02:42:36,529 - DEBUG - Services list from nova: [, , , ] 2025-12-29 02:42:37,639 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4934-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4934-1) 2025-12-29 02:42:38,986 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4934-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4934-2) 2025-12-29 02:42:38,987 - INFO - Waiting for VM ctest-TestBasicPolicy-58551394-87066305 to be up.. 2025-12-29 02:42:39,081 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-29 02:42:44,164 - DEBUG - VM is in ACTIVE state now 2025-12-29 02:42:44,164 - INFO - VM name : ctest-TestBasicPolicy-58551394-87066305 2025-12-29 02:42:44,242 - DEBUG - VM ctest-TestBasicPolicy-58551394-87066305 ID is 4ba2905c-f15a-4e74-8915-f0a34dcb7d47 2025-12-29 02:42:44,267 - DEBUG - VM ctest-TestBasicPolicy-58551394-87066305 launched on Node an-jenkins-deploy-platform-ansible-os-4934-1 2025-12-29 02:42:44,346 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/4ba2905c-f15a-4e74-8915-f0a34dcb7d47 2025-12-29 02:42:44,643 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/4ba2905c-f15a-4e74-8915-f0a34dcb7d47 2025-12-29 02:42:44,678 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/22dcf28c-7b58-4e09-9380-e25c27d7c99c 2025-12-29 02:42:47,858 - 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 1018ms') 2025-12-29 02:42:47,858 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58551394-87066305 failed! 2025-12-29 02:42:47,870 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 is 34.122.48.129 and allocation pool is NOT set 2025-12-29 02:42:51,956 - 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 1016ms') 2025-12-29 02:42:51,956 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58551394-87066305 failed! 2025-12-29 02:42:51,970 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 is 34.122.48.129 and allocation pool is NOT set 2025-12-29 02:42:56,044 - 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 1015ms') 2025-12-29 02:42:56,044 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58551394-87066305 failed! 2025-12-29 02:42:56,057 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 is 34.122.48.129 and allocation pool is NOT set 2025-12-29 02:43:00,142 - 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 1022ms') 2025-12-29 02:43:00,142 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58551394-87066305 failed! 2025-12-29 02:43:00,156 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 is 34.122.48.129 and allocation pool is NOT set 2025-12-29 02:43:04,246 - 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 1025ms') 2025-12-29 02:43:04,246 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58551394-87066305 failed! 2025-12-29 02:43:04,265 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 is 34.122.48.129 and allocation pool is NOT set 2025-12-29 02:43:08,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 1010ms') 2025-12-29 02:43:08,332 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58551394-87066305 failed! 2025-12-29 02:43:08,345 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 is 34.122.48.129 and allocation pool is NOT set 2025-12-29 02:43:12,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 1016ms') 2025-12-29 02:43:12,432 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58551394-87066305 failed! 2025-12-29 02:43:12,445 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 is 34.122.48.129 and allocation pool is NOT set 2025-12-29 02:43:16,532 - 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 1018ms') 2025-12-29 02:43:16,532 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58551394-87066305 failed! 2025-12-29 02:43:16,546 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 is 34.122.48.129 and allocation pool is NOT set 2025-12-29 02:43:20,620 - 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-12-29 02:43:20,621 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58551394-87066305 failed! 2025-12-29 02:43:20,633 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58551394:ctest-vn-35663660 is 34.122.48.129 and allocation pool is NOT set 2025-12-29 02:43:22,704 - 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.54 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.68 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.683/4.110/6.537/2.427 ms') 2025-12-29 02:43:22,704 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58551394-87066305 passed 2025-12-29 02:43:22,773 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-29 02:43:22,773 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58551394-87066305, IP 34.122.48.131, Port 22 2025-12-29 02:43:22,840 - 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-12-29 02:43:22,926 - DEBUG - VM ctest-TestBasicPolicy-58551394-87066305 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-29 02:43:27,926 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-29 02:43:27,926 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58551394-87066305, IP 34.122.48.131, Port 22 2025-12-29 02:43:27,996 - 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-12-29 02:43:28,090 - DEBUG - VM ctest-TestBasicPolicy-58551394-87066305 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-29 02:43:33,091 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-29 02:43:33,091 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58551394-87066305, IP 34.122.48.131, Port 22 2025-12-29 02:43:33,159 - 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-12-29 02:43:33,264 - DEBUG - VM ctest-TestBasicPolicy-58551394-87066305 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-29 02:43:38,265 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-29 02:43:38,266 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58551394-87066305, IP 34.122.48.131, Port 22 2025-12-29 02:43:38,335 - 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-12-29 02:43:38,415 - DEBUG - VM ctest-TestBasicPolicy-58551394-87066305 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-29 02:43:43,416 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-29 02:43:43,416 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58551394-87066305, IP 34.122.48.131, Port 22 2025-12-29 02:43:43,597 - DEBUG - VM ctest-TestBasicPolicy-58551394-87066305 is ready for SSH connections 2025-12-29 02:43:43,597 - INFO - Waiting for VM ctest-TestBasicPolicy-58551394-37875609 to be up.. 2025-12-29 02:43:43,680 - DEBUG - VM is in ACTIVE state now 2025-12-29 02:43:43,681 - INFO - VM name : ctest-TestBasicPolicy-58551394-37875609 2025-12-29 02:43:43,756 - DEBUG - VM ctest-TestBasicPolicy-58551394-37875609 ID is 33c6456e-5a50-4458-a786-b326bb369e0e 2025-12-29 02:43:43,756 - DEBUG - VM ctest-TestBasicPolicy-58551394-37875609 launched on Node an-jenkins-deploy-platform-ansible-os-4934-2 2025-12-29 02:43:43,834 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/33c6456e-5a50-4458-a786-b326bb369e0e 2025-12-29 02:43:43,844 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/a9dd07e6-cd65-4d73-92d1-4e2b1e81963e 2025-12-29 02:43:45,003 - 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=12.8 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.42 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.423/7.102/12.782/5.679 ms') 2025-12-29 02:43:45,003 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58551394-37875609 passed 2025-12-29 02:43:45,073 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-29 02:43:45,073 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58551394-37875609, IP 137.19.32.67, Port 22 2025-12-29 02:43:45,244 - DEBUG - VM ctest-TestBasicPolicy-58551394-37875609 is ready for SSH connections 2025-12-29 02:43:45,244 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-29 02:43:45,244 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.19.32.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-12-29 02:43:45,245 - DEBUG - ping -s 56 -c 3 -W 1 137.19.32.67 2025-12-29 02:44:10,494 - DEBUG - PING 137.19.32.67 (137.19.32.67) 56(84) bytes of data. 64 bytes from 137.19.32.67: icmp_req=1 ttl=63 time=6.77 ms 64 bytes from 137.19.32.67: icmp_req=2 ttl=63 time=1.48 ms 64 bytes from 137.19.32.67: icmp_req=3 ttl=63 time=1.43 ms --- 137.19.32.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 1.431/3.231/6.773/2.504 ms 2025-12-29 02:44:10,494 - INFO - Ping to IP 137.19.32.67 from VM ctest-TestBasicPolicy-58551394-87066305 passed 2025-12-29 02:44:10,696 - DEBUG - Policy Update Response {"network-policy": {"uuid": "24dde331-b4fe-48f6-85e7-b83f01111fae", "href": "http://10.0.0.27:8082/network-policy/24dde331-b4fe-48f6-85e7-b83f01111fae"}} 2025-12-29 02:44:10,696 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-29 02:44:10,696 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.19.32.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-12-29 02:44:10,696 - DEBUG - ping -s 56 -c 3 -W 1 137.19.32.67 2025-12-29 02:44:14,762 - DEBUG - PING 137.19.32.67 (137.19.32.67) 56(84) bytes of data. --- 137.19.32.67 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2016ms 2025-12-29 02:44:14,762 - WARNING - Ping to IP 137.19.32.67 from VM ctest-TestBasicPolicy-58551394-87066305 failed 2025-12-29 02:44:14,763 - INFO - Deleting VM ctest-TestBasicPolicy-58551394-37875609 2025-12-29 02:44:14,838 - INFO - Deleting VM ctest-TestBasicPolicy-58551394-87066305 2025-12-29 02:44:15,288 - INFO - Deleted policy ctest-policy-allow-all-52384083 2025-12-29 02:44:15,288 - INFO - Deleting VN ctest-vn-83349040 2025-12-29 02:44:15,341 - DEBUG - VN 60e640b7-745d-436f-9e22-6789a405ba31 still in use: Unable to complete operation on network 60e640b7-745d-436f-9e22-6789a405ba31. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7c9f2b25-ec5e-45a0-b251-ccb70c157412'] 2025-12-29 02:44:15,341 - WARNING - Deleting VN ctest-vn-83349040 failed..Will retry 2025-12-29 02:44:17,490 - DEBUG - Response for deleting network () 2025-12-29 02:44:17,490 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/6eb910ab-34f8-4dcc-875d-20ecd1fe3058 2025-12-29 02:44:17,496 - DEBUG - Response Code: 404 2025-12-29 02:44:17,496 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-29 02:44:17,502 - DEBUG - Requesting: http://10.0.0.61:8082/domain/ea4b09a7-31d2-48cf-9e60-035b93d3d81c 2025-12-29 02:44:17,533 - DEBUG - Requesting: http://10.0.0.61:8082/project/04ebb045-7008-4773-951f-7f1c125627a2 2025-12-29 02:44:17,634 - INFO - Validated that VN ctest-vn-83349040 is not found in API Server 2025-12-29 02:44:17,648 - DEBUG - VN ctest-vn-83349040 is not present in Agent 10.0.0.56 2025-12-29 02:44:17,658 - DEBUG - VN ctest-vn-83349040 is not present in Agent 10.0.0.240 2025-12-29 02:44:17,658 - INFO - Validated that VN ctest-vn-83349040 is not in any agent 2025-12-29 02:44:17,688 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83349040 info 2025-12-29 02:44:17,688 - INFO - Deleting VN ctest-vn-35663660 2025-12-29 02:44:17,842 - DEBUG - Response for deleting network () 2025-12-29 02:44:17,842 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/2f211319-0456-49c0-b0df-9c4670c3fb27 2025-12-29 02:44:17,851 - DEBUG - Response Code: 404 2025-12-29 02:44:17,851 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-29 02:44:17,860 - DEBUG - Requesting: http://10.0.0.61:8082/domain/ea4b09a7-31d2-48cf-9e60-035b93d3d81c 2025-12-29 02:44:17,915 - DEBUG - Requesting: http://10.0.0.61:8082/project/04ebb045-7008-4773-951f-7f1c125627a2 2025-12-29 02:44:18,013 - INFO - Validated that VN ctest-vn-35663660 is not found in API Server 2025-12-29 02:44:18,025 - DEBUG - VN ctest-vn-35663660 is not present in Agent 10.0.0.56 2025-12-29 02:44:18,035 - DEBUG - VN ctest-vn-35663660 is not present in Agent 10.0.0.240 2025-12-29 02:44:18,035 - INFO - Validated that VN ctest-vn-35663660 is not in any agent 2025-12-29 02:44:18,069 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35663660 info 2025-12-29 02:44:19,335 - DEBUG - No XMPP flaps were noticed during the test
2025-12-29 02:44:19,335 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:49]
2025-12-29 02:44:19,335 - INFO - -------------------------------------------------------------------------------- 2025-12-29 02:44:20,058 - INFO - Deleted project: ctest-TestBasicPolicy-58551394, ID : 04ebb045-7008-4773-951f-7f1c125627a2