2025-08-11 06:33:36,133 - INFO - Domain Default found not creating 2025-08-11 06:33:36,274 - INFO - Project ctest-TestBasicPolicy-95282708 not found, creating it 2025-08-11 06:33:36,801 - INFO - Created Project:ctest-TestBasicPolicy-95282708, ID : 9599dad2-1877-470b-8577-ee48ba22609a 2025-08-11 06:33:38,371 - INFO - ================================================================================ 2025-08-11 06:33:38,372 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-11 06:33:38,372 - 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-08-11 06:33:39,620 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.57': {'10.20.0.17': '0', '10.20.0.254': '0'}} with 2025-08-11 06:33:39,620 - INFO - Initial checks done. Running the testcase now 2025-08-11 06:33:39,621 - INFO - 2025-08-11 06:33:40,242 - DEBUG - Response for create_network : {'network': {'id': 'afa77ef2-6dd2-4f6c-85e3-95f1209ba2ab', 'name': 'ctest-vn-87820374', 'tenant_id': '9599dad21877470b8577ee48ba22609a', 'project_id': '9599dad21877470b8577ee48ba22609a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95282708', 'ctest-vn-87820374'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 06:33:40,468 - DEBUG - Response for create_subnet : {'subnet': {'id': '697b59eb-cbf1-4145-a4db-af134b6090f8', 'name': '', 'tenant_id': '9599dad21877470b8577ee48ba22609a', 'network_id': 'afa77ef2-6dd2-4f6c-85e3-95f1209ba2ab', 'ip_version': 4, 'cidr': '37.50.99.192/26', 'allocation_pools': [{'start': '37.50.99.194', 'end': '37.50.99.254'}], 'gateway_ip': '37.50.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.50.99.194', 'tags': [], 'project_id': '9599dad21877470b8577ee48ba22609a'}} 2025-08-11 06:33:40,489 - INFO - Created VN ctest-vn-87820374 2025-08-11 06:33:40,501 - DEBUG - VN ctest-vn-87820374 UUID is afa77ef2-6dd2-4f6c-85e3-95f1209ba2ab 2025-08-11 06:33:40,857 - DEBUG - Response for create_network : {'network': {'id': '331274c8-1bc3-4347-935b-36314cdd787b', 'name': 'ctest-vn-95020569', 'tenant_id': '9599dad21877470b8577ee48ba22609a', 'project_id': '9599dad21877470b8577ee48ba22609a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95282708', 'ctest-vn-95020569'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 06:33:41,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '28052866-c093-4d78-9a14-79fba4be528a', 'name': '', 'tenant_id': '9599dad21877470b8577ee48ba22609a', 'network_id': '331274c8-1bc3-4347-935b-36314cdd787b', 'ip_version': 4, 'cidr': '81.175.176.0/26', 'allocation_pools': [{'start': '81.175.176.2', 'end': '81.175.176.62'}], 'gateway_ip': '81.175.176.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.175.176.2', 'tags': [], 'project_id': '9599dad21877470b8577ee48ba22609a'}} 2025-08-11 06:33:41,078 - INFO - Created VN ctest-vn-95020569 2025-08-11 06:33:41,091 - DEBUG - VN ctest-vn-95020569 UUID is 331274c8-1bc3-4347-935b-36314cdd787b 2025-08-11 06:33:41,169 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374, 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-95282708:ctest-vn-95020569, 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-08-11 06:33:41,522 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afa77ef2-6dd2-4f6c-85e3-95f1209ba2ab', 'name': 'ctest-vn-87820374', 'tenant_id': '9599dad21877470b8577ee48ba22609a', 'project_id': '9599dad21877470b8577ee48ba22609a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['697b59eb-cbf1-4145-a4db-af134b6090f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95282708', 'ctest-vn-87820374'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95282708', 'ctest-policy-allow-all-69866440']], 'subnet_ipam': [{'subnet_cidr': '37.50.99.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 06:33:41,739 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '331274c8-1bc3-4347-935b-36314cdd787b', 'name': 'ctest-vn-95020569', 'tenant_id': '9599dad21877470b8577ee48ba22609a', 'project_id': '9599dad21877470b8577ee48ba22609a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['28052866-c093-4d78-9a14-79fba4be528a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95282708', 'ctest-vn-95020569'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95282708', 'ctest-policy-allow-all-69866440']], 'subnet_ipam': [{'subnet_cidr': '81.175.176.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 06:33:41,845 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 06:33:42,186 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 06:33:42,214 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979 2025-08-11 06:33:42,230 - DEBUG - Requesting: http://10.0.0.254:8082/project/9599dad2-1877-470b-8577-ee48ba22609a 2025-08-11 06:33:42,344 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/afa77ef2-6dd2-4f6c-85e3-95f1209ba2ab 2025-08-11 06:33:42,358 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/afa77ef2-6dd2-4f6c-85e3-95f1209ba2ab 2025-08-11 06:33:42,367 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e7d0c9c-1a0a-4d74-abce-ea646636128a 2025-08-11 06:33:42,375 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e7d0c9c-1a0a-4d74-abce-ea646636128a 2025-08-11 06:33:42,382 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8729eacf-359f-4d28-a42b-89c39960e316 2025-08-11 06:33:42,389 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 06:33:42,389 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/afa77ef2-6dd2-4f6c-85e3-95f1209ba2ab 2025-08-11 06:33:42,399 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e7d0c9c-1a0a-4d74-abce-ea646636128a 2025-08-11 06:33:42,415 - INFO - Verified VN network id 14 for VN afa77ef2-6dd2-4f6c-85e3-95f1209ba2ab 2025-08-11 06:33:42,415 - INFO - Verifications in API Server for VN ctest-vn-87820374 passed 2025-08-11 06:33:42,415 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/afa77ef2-6dd2-4f6c-85e3-95f1209ba2ab 2025-08-11 06:33:42,428 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e7d0c9c-1a0a-4d74-abce-ea646636128a 2025-08-11 06:33:42,437 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e7d0c9c-1a0a-4d74-abce-ea646636128a 2025-08-11 06:33:42,455 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8729eacf-359f-4d28-a42b-89c39960e316 2025-08-11 06:33:42,485 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95282708', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12657224857437753196', 'uuid-lslong': '9647719689624461995'}, 'enable': 'true', 'created': '2025-08-11T06:33:40', 'last-modified': '2025-08-11T06:33:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.010134'} 2025-08-11 06:33:42,505 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 06:33:42,516 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95282708', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12657224857437753196', 'uuid-lslong': '9647719689624461995'}, 'enable': 'true', 'created': '2025-08-11T06:33:40', 'last-modified': '2025-08-11T06:33:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.041833'} 2025-08-11 06:33:42,528 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 06:33:42,536 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95282708', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12657224857437753196', 'uuid-lslong': '9647719689624461995'}, 'enable': 'true', 'created': '2025-08-11T06:33:40', 'last-modified': '2025-08-11T06:33:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.051651'} 2025-08-11 06:33:42,544 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 06:33:42,544 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87820374 passed 2025-08-11 06:33:42,544 - DEBUG - ====Verifying policy data for ctest-vn-87820374 in API_Server ====== 2025-08-11 06:33:42,544 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 06:33:42,552 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979 2025-08-11 06:33:42,566 - DEBUG - Requesting: http://10.0.0.254:8082/project/9599dad2-1877-470b-8577-ee48ba22609a 2025-08-11 06:33:42,657 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/afa77ef2-6dd2-4f6c-85e3-95f1209ba2ab 2025-08-11 06:33:42,668 - DEBUG - ==>Verifying data for policy with id: b005fb95-7238-4516-ae42-390b69bc40bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-95282708', 'ctest-policy-allow-all-69866440'] 2025-08-11 06:33:42,668 - INFO - VN ctest-vn-87820374 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 06:33:42,668 - DEBUG - Verifying the vn in opserver 2025-08-11 06:33:42,668 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374 virtual network link through opserver 10.0.0.254 2025-08-11 06:33:42,668 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-11 06:33:42,961 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-11 06:33:43,017 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374?flat'} 2025-08-11 06:33:43,017 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374 virtual network link through opserver 10.0.0.38 2025-08-11 06:33:43,017 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 06:33:43,304 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 06:33:43,355 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374?flat'} 2025-08-11 06:33:43,355 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374 virtual network link through opserver 10.0.0.50 2025-08-11 06:33:43,355 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-11 06:33:43,651 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-11 06:33:43,704 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374?flat'} 2025-08-11 06:33:43,704 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374 is found in opserver 2025-08-11 06:33:43,725 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 06:33:43,736 - DEBUG - VRF ids for VN ctest-vn-87820374: {} 2025-08-11 06:33:43,736 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 06:33:43,742 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979 2025-08-11 06:33:43,755 - DEBUG - Requesting: http://10.0.0.254:8082/project/9599dad2-1877-470b-8577-ee48ba22609a 2025-08-11 06:33:43,844 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/331274c8-1bc3-4347-935b-36314cdd787b 2025-08-11 06:33:43,859 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/331274c8-1bc3-4347-935b-36314cdd787b 2025-08-11 06:33:43,871 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9d5c1afe-8f3a-4b74-ba7c-127aff2ec44a 2025-08-11 06:33:43,881 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9d5c1afe-8f3a-4b74-ba7c-127aff2ec44a 2025-08-11 06:33:43,890 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/93cc13ba-6cc3-46af-ab57-a07ba21c15dd 2025-08-11 06:33:43,900 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 06:33:43,901 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/331274c8-1bc3-4347-935b-36314cdd787b 2025-08-11 06:33:43,912 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9d5c1afe-8f3a-4b74-ba7c-127aff2ec44a 2025-08-11 06:33:43,929 - INFO - Verified VN network id 15 for VN 331274c8-1bc3-4347-935b-36314cdd787b 2025-08-11 06:33:43,929 - INFO - Verifications in API Server for VN ctest-vn-95020569 passed 2025-08-11 06:33:43,929 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/331274c8-1bc3-4347-935b-36314cdd787b 2025-08-11 06:33:43,942 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9d5c1afe-8f3a-4b74-ba7c-127aff2ec44a 2025-08-11 06:33:43,950 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9d5c1afe-8f3a-4b74-ba7c-127aff2ec44a 2025-08-11 06:33:43,958 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/93cc13ba-6cc3-46af-ab57-a07ba21c15dd 2025-08-11 06:33:43,972 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95282708', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3680132248323179335', 'uuid-lslong': '10618140131826956411'}, 'enable': 'true', 'created': '2025-08-11T06:33:40', 'last-modified': '2025-08-11T06:33:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.284632'} 2025-08-11 06:33:43,980 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 06:33:43,985 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95282708', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3680132248323179335', 'uuid-lslong': '10618140131826956411'}, 'enable': 'true', 'created': '2025-08-11T06:33:40', 'last-modified': '2025-08-11T06:33:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.300339'} 2025-08-11 06:33:43,992 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 06:33:43,999 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95282708', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3680132248323179335', 'uuid-lslong': '10618140131826956411'}, 'enable': 'true', 'created': '2025-08-11T06:33:40', 'last-modified': '2025-08-11T06:33:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.311564'} 2025-08-11 06:33:44,005 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 06:33:44,006 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95020569 passed 2025-08-11 06:33:44,006 - DEBUG - ====Verifying policy data for ctest-vn-95020569 in API_Server ====== 2025-08-11 06:33:44,006 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 06:33:44,012 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979 2025-08-11 06:33:44,023 - DEBUG - Requesting: http://10.0.0.254:8082/project/9599dad2-1877-470b-8577-ee48ba22609a 2025-08-11 06:33:44,138 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/331274c8-1bc3-4347-935b-36314cdd787b 2025-08-11 06:33:44,148 - DEBUG - ==>Verifying data for policy with id: b005fb95-7238-4516-ae42-390b69bc40bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-95282708', 'ctest-policy-allow-all-69866440'] 2025-08-11 06:33:44,148 - INFO - VN ctest-vn-95020569 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 06:33:44,149 - DEBUG - Verifying the vn in opserver 2025-08-11 06:33:44,149 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569 virtual network link through opserver 10.0.0.254 2025-08-11 06:33:44,149 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-11 06:33:44,204 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569?flat'} 2025-08-11 06:33:44,204 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569 virtual network link through opserver 10.0.0.38 2025-08-11 06:33:44,204 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 06:33:44,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569?flat'} 2025-08-11 06:33:44,257 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569 virtual network link through opserver 10.0.0.50 2025-08-11 06:33:44,257 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-11 06:33:44,312 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569?flat'} 2025-08-11 06:33:44,313 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-95020569 is found in opserver 2025-08-11 06:33:44,335 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 06:33:44,346 - DEBUG - VRF ids for VN ctest-vn-95020569: {} 2025-08-11 06:33:44,402 - DEBUG - Services list from nova: [, , , ] 2025-08-11 06:33:45,527 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3798-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3798-2) 2025-08-11 06:33:47,033 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3798-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3798-1) 2025-08-11 06:33:47,033 - INFO - Waiting for VM ctest-TestBasicPolicy-95282708-94145735 to be up.. 2025-08-11 06:33:47,136 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-11 06:33:52,209 - DEBUG - VM is in ACTIVE state now 2025-08-11 06:33:52,209 - INFO - VM name : ctest-TestBasicPolicy-95282708-94145735 2025-08-11 06:33:52,287 - DEBUG - VM ctest-TestBasicPolicy-95282708-94145735 ID is f56ee391-2952-4a42-b25b-283b0760c824 2025-08-11 06:33:52,309 - DEBUG - VM ctest-TestBasicPolicy-95282708-94145735 launched on Node an-jenkins-deploy-platform-ansible-os-3798-2 2025-08-11 06:33:52,383 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/f56ee391-2952-4a42-b25b-283b0760c824 2025-08-11 06:33:52,689 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/f56ee391-2952-4a42-b25b-283b0760c824 2025-08-11 06:33:52,721 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/538522bb-b913-45d1-8a3f-91e35cfae7a3 2025-08-11 06:33:55,926 - 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 1003ms') 2025-08-11 06:33:55,926 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95282708-94145735 failed! 2025-08-11 06:33:55,940 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374 is 37.50.99.193 and allocation pool is NOT set 2025-08-11 06:34:00,031 - 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 1028ms') 2025-08-11 06:34:00,031 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95282708-94145735 failed! 2025-08-11 06:34:00,045 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374 is 37.50.99.193 and allocation pool is NOT set 2025-08-11 06:34:04,120 - 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 1012ms') 2025-08-11 06:34:04,120 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95282708-94145735 failed! 2025-08-11 06:34:04,138 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374 is 37.50.99.193 and allocation pool is NOT set 2025-08-11 06:34:08,214 - 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 1017ms') 2025-08-11 06:34:08,214 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95282708-94145735 failed! 2025-08-11 06:34:08,231 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374 is 37.50.99.193 and allocation pool is NOT set 2025-08-11 06:34:12,306 - 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 1019ms') 2025-08-11 06:34:12,306 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95282708-94145735 failed! 2025-08-11 06:34:12,320 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374 is 37.50.99.193 and allocation pool is NOT set 2025-08-11 06:34:16,412 - 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-08-11 06:34:16,412 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95282708-94145735 failed! 2025-08-11 06:34:16,431 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374 is 37.50.99.193 and allocation pool is NOT set 2025-08-11 06:34:20,504 - 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 1012ms') 2025-08-11 06:34:20,504 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95282708-94145735 failed! 2025-08-11 06:34:20,518 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-95282708:ctest-vn-87820374 is 37.50.99.193 and allocation pool is NOT set 2025-08-11 06:34:22,583 - 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=4.44 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.45 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 = 3.445/3.941/4.438/0.496 ms') 2025-08-11 06:34:22,583 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95282708-94145735 passed 2025-08-11 06:34:22,704 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 06:34:22,705 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95282708-94145735, IP 37.50.99.195, Port 22 2025-08-11 06:34:22,770 - 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-08-11 06:34:22,855 - DEBUG - VM ctest-TestBasicPolicy-95282708-94145735 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 06:34:27,855 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 06:34:27,855 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95282708-94145735, IP 37.50.99.195, Port 22 2025-08-11 06:34:27,913 - 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-08-11 06:34:27,996 - DEBUG - VM ctest-TestBasicPolicy-95282708-94145735 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 06:34:32,997 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 06:34:32,997 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95282708-94145735, IP 37.50.99.195, Port 22 2025-08-11 06:34:33,067 - 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-08-11 06:34:33,142 - DEBUG - VM ctest-TestBasicPolicy-95282708-94145735 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 06:34:38,143 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 06:34:38,143 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95282708-94145735, IP 37.50.99.195, Port 22 2025-08-11 06:34:38,200 - 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-08-11 06:34:38,271 - DEBUG - VM ctest-TestBasicPolicy-95282708-94145735 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-11 06:34:43,272 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 06:34:43,272 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95282708-94145735, IP 37.50.99.195, Port 22 2025-08-11 06:34:43,439 - DEBUG - VM ctest-TestBasicPolicy-95282708-94145735 is ready for SSH connections 2025-08-11 06:34:43,439 - INFO - Waiting for VM ctest-TestBasicPolicy-95282708-13747829 to be up.. 2025-08-11 06:34:43,526 - DEBUG - VM is in ACTIVE state now 2025-08-11 06:34:43,526 - INFO - VM name : ctest-TestBasicPolicy-95282708-13747829 2025-08-11 06:34:43,608 - DEBUG - VM ctest-TestBasicPolicy-95282708-13747829 ID is b31e400f-8c53-4d53-968e-4987e0fcda43 2025-08-11 06:34:43,608 - DEBUG - VM ctest-TestBasicPolicy-95282708-13747829 launched on Node an-jenkins-deploy-platform-ansible-os-3798-1 2025-08-11 06:34:43,697 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/b31e400f-8c53-4d53-968e-4987e0fcda43 2025-08-11 06:34:43,707 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/c15abd32-901c-4efe-88d2-5f0768d1ab98 2025-08-11 06:34:44,930 - 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.47 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.19 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 = 3.190/3.328/3.466/0.138 ms') 2025-08-11 06:34:44,930 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-95282708-13747829 passed 2025-08-11 06:34:45,051 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 06:34:45,051 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-95282708-13747829, IP 81.175.176.3, Port 22 2025-08-11 06:34:45,206 - DEBUG - VM ctest-TestBasicPolicy-95282708-13747829 is ready for SSH connections 2025-08-11 06:34:45,206 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 06:34:45,206 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.175.176.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-08-11 06:34:45,206 - DEBUG - ping -s 56 -c 3 -W 1 81.175.176.3 2025-08-11 06:35:01,348 - DEBUG - PING 81.175.176.3 (81.175.176.3) 56(84) bytes of data. 64 bytes from 81.175.176.3: icmp_req=1 ttl=63 time=5.53 ms 64 bytes from 81.175.176.3: icmp_req=2 ttl=63 time=1.12 ms 64 bytes from 81.175.176.3: icmp_req=3 ttl=63 time=3.46 ms --- 81.175.176.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.125/3.375/5.532/1.800 ms 2025-08-11 06:35:01,348 - INFO - Ping to IP 81.175.176.3 from VM ctest-TestBasicPolicy-95282708-94145735 passed 2025-08-11 06:35:01,557 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b005fb95-7238-4516-ae42-390b69bc40bc", "href": "http://10.0.0.50:8082/network-policy/b005fb95-7238-4516-ae42-390b69bc40bc"}} 2025-08-11 06:35:01,557 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 06:35:01,557 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.175.176.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-08-11 06:35:01,557 - DEBUG - ping -s 56 -c 3 -W 1 81.175.176.3 2025-08-11 06:35:04,999 - DEBUG - PING 81.175.176.3 (81.175.176.3) 56(84) bytes of data. 64 bytes from 81.175.176.3: icmp_req=1 ttl=63 time=4.64 ms --- 81.175.176.3 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2011ms rtt min/avg/max/mdev = 4.645/4.645/4.645/0.000 ms 2025-08-11 06:35:04,999 - WARNING - Ping to IP 81.175.176.3 from VM ctest-TestBasicPolicy-95282708-94145735 failed 2025-08-11 06:35:05,000 - INFO - Deleting VM ctest-TestBasicPolicy-95282708-13747829 2025-08-11 06:35:05,100 - INFO - Deleting VM ctest-TestBasicPolicy-95282708-94145735 2025-08-11 06:35:05,556 - INFO - Deleted policy ctest-policy-allow-all-69866440 2025-08-11 06:35:05,556 - INFO - Deleting VN ctest-vn-95020569 2025-08-11 06:35:05,618 - DEBUG - VN 331274c8-1bc3-4347-935b-36314cdd787b still in use: Unable to complete operation on network 331274c8-1bc3-4347-935b-36314cdd787b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6ddfe5c2-5928-4166-a59a-a130822c41ba'] 2025-08-11 06:35:05,618 - WARNING - Deleting VN ctest-vn-95020569 failed..Will retry 2025-08-11 06:35:07,802 - DEBUG - Response for deleting network () 2025-08-11 06:35:07,802 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9d5c1afe-8f3a-4b74-ba7c-127aff2ec44a 2025-08-11 06:35:07,809 - DEBUG - Response Code: 404 2025-08-11 06:35:07,810 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 06:35:07,825 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979 2025-08-11 06:35:07,841 - DEBUG - Requesting: http://10.0.0.254:8082/project/9599dad2-1877-470b-8577-ee48ba22609a 2025-08-11 06:35:07,936 - INFO - Validated that VN ctest-vn-95020569 is not found in API Server 2025-08-11 06:35:07,952 - DEBUG - VN ctest-vn-95020569 is not present in Agent 10.0.0.49 2025-08-11 06:35:07,963 - DEBUG - VN ctest-vn-95020569 is not present in Agent 10.0.0.57 2025-08-11 06:35:07,963 - INFO - Validated that VN ctest-vn-95020569 is not in any agent 2025-08-11 06:35:07,997 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95020569 info 2025-08-11 06:35:07,997 - INFO - Deleting VN ctest-vn-87820374 2025-08-11 06:35:08,167 - DEBUG - Response for deleting network () 2025-08-11 06:35:08,167 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e7d0c9c-1a0a-4d74-abce-ea646636128a 2025-08-11 06:35:08,176 - DEBUG - Response Code: 404 2025-08-11 06:35:08,176 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 06:35:08,183 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979 2025-08-11 06:35:08,198 - DEBUG - Requesting: http://10.0.0.254:8082/project/9599dad2-1877-470b-8577-ee48ba22609a 2025-08-11 06:35:08,324 - INFO - Validated that VN ctest-vn-87820374 is not found in API Server 2025-08-11 06:35:08,338 - DEBUG - VN ctest-vn-87820374 is not present in Agent 10.0.0.49 2025-08-11 06:35:08,350 - DEBUG - VN ctest-vn-87820374 is not present in Agent 10.0.0.57 2025-08-11 06:35:08,350 - INFO - Validated that VN ctest-vn-87820374 is not in any agent 2025-08-11 06:35:08,387 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-87820374 info 2025-08-11 06:35:09,681 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 06:35:09,681 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:31]
2025-08-11 06:35:09,681 - INFO - -------------------------------------------------------------------------------- 2025-08-11 06:35:10,412 - INFO - Deleted project: ctest-TestBasicPolicy-95282708, ID : 9599dad2-1877-470b-8577-ee48ba22609a