2025-03-13 02:20:36,088 - INFO - Domain Default found not creating 2025-03-13 02:20:36,244 - INFO - Project ctest-TestBasicPolicy-57412192 not found, creating it 2025-03-13 02:20:36,991 - INFO - Created Project:ctest-TestBasicPolicy-57412192, ID : 729268e3-1d5d-4420-a7da-b55086ded922 2025-03-13 02:20:38,478 - INFO - ================================================================================ 2025-03-13 02:20:38,478 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-13 02:20:38,478 - 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-03-13 02:20:39,746 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.20': '0', '10.20.0.28': '0'}, '10.0.0.23': {'10.20.0.6': '0', '10.20.0.20': '0'}} with 2025-03-13 02:20:39,746 - INFO - Initial checks done. Running the testcase now 2025-03-13 02:20:39,746 - INFO - 2025-03-13 02:20:40,518 - DEBUG - Response for create_network : {'network': {'id': '0d9dab74-f1e3-40e6-b671-f0793de6a311', 'name': 'ctest-vn-06281395', 'tenant_id': '729268e31d5d4420a7dab55086ded922', 'project_id': '729268e31d5d4420a7dab55086ded922', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57412192', 'ctest-vn-06281395'], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:20:40,816 - DEBUG - Response for create_subnet : {'subnet': {'id': '35189e3d-6b83-426d-893b-baf61b11c265', 'name': '', 'tenant_id': '729268e31d5d4420a7dab55086ded922', 'network_id': '0d9dab74-f1e3-40e6-b671-f0793de6a311', 'ip_version': 4, 'cidr': '162.229.108.64/26', 'allocation_pools': [{'start': '162.229.108.66', 'end': '162.229.108.126'}], 'gateway_ip': '162.229.108.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.229.108.66', 'tags': [], 'project_id': '729268e31d5d4420a7dab55086ded922'}} 2025-03-13 02:20:40,848 - INFO - Created VN ctest-vn-06281395 2025-03-13 02:20:40,868 - DEBUG - VN ctest-vn-06281395 UUID is 0d9dab74-f1e3-40e6-b671-f0793de6a311 2025-03-13 02:20:41,325 - DEBUG - Response for create_network : {'network': {'id': '77736f24-471b-495c-a2c9-0c1df27f124c', 'name': 'ctest-vn-59679527', 'tenant_id': '729268e31d5d4420a7dab55086ded922', 'project_id': '729268e31d5d4420a7dab55086ded922', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57412192', 'ctest-vn-59679527'], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:20:41,585 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4189695-2d2e-4ffd-9451-f3b15adabebb', 'name': '', 'tenant_id': '729268e31d5d4420a7dab55086ded922', 'network_id': '77736f24-471b-495c-a2c9-0c1df27f124c', 'ip_version': 4, 'cidr': '98.168.22.128/26', 'allocation_pools': [{'start': '98.168.22.130', 'end': '98.168.22.190'}], 'gateway_ip': '98.168.22.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.168.22.130', 'tags': [], 'project_id': '729268e31d5d4420a7dab55086ded922'}} 2025-03-13 02:20:41,621 - INFO - Created VN ctest-vn-59679527 2025-03-13 02:20:41,640 - DEBUG - VN ctest-vn-59679527 UUID is 77736f24-471b-495c-a2c9-0c1df27f124c 2025-03-13 02:20:41,768 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395, 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-57412192:ctest-vn-59679527, 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-03-13 02:20:42,213 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d9dab74-f1e3-40e6-b671-f0793de6a311', 'name': 'ctest-vn-06281395', 'tenant_id': '729268e31d5d4420a7dab55086ded922', 'project_id': '729268e31d5d4420a7dab55086ded922', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35189e3d-6b83-426d-893b-baf61b11c265'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57412192', 'ctest-vn-06281395'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57412192', 'ctest-policy-allow-all-90489183']], 'subnet_ipam': [{'subnet_cidr': '162.229.108.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:20:42,489 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77736f24-471b-495c-a2c9-0c1df27f124c', 'name': 'ctest-vn-59679527', 'tenant_id': '729268e31d5d4420a7dab55086ded922', 'project_id': '729268e31d5d4420a7dab55086ded922', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4189695-2d2e-4ffd-9451-f3b15adabebb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57412192', 'ctest-vn-59679527'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57412192', 'ctest-policy-allow-all-90489183']], 'subnet_ipam': [{'subnet_cidr': '98.168.22.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:20:42,594 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-13 02:20:42,946 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-13 02:20:42,977 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7073dd22-c5ea-4305-beca-a7c1118b823d 2025-03-13 02:20:43,001 - DEBUG - Requesting: http://10.0.0.22:8082/project/729268e3-1d5d-4420-a7da-b55086ded922 2025-03-13 02:20:43,115 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0d9dab74-f1e3-40e6-b671-f0793de6a311 2025-03-13 02:20:43,135 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0d9dab74-f1e3-40e6-b671-f0793de6a311 2025-03-13 02:20:43,151 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dd7d3825-e22a-4fb5-810f-2c3cdb10060e 2025-03-13 02:20:43,169 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dd7d3825-e22a-4fb5-810f-2c3cdb10060e 2025-03-13 02:20:43,184 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cd676eb9-84b6-4686-adb5-f61c33373d10 2025-03-13 02:20:43,196 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-13 02:20:43,196 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0d9dab74-f1e3-40e6-b671-f0793de6a311 2025-03-13 02:20:43,212 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dd7d3825-e22a-4fb5-810f-2c3cdb10060e 2025-03-13 02:20:43,235 - INFO - Verified VN network id 8 for VN 0d9dab74-f1e3-40e6-b671-f0793de6a311 2025-03-13 02:20:43,235 - INFO - Verifications in API Server for VN ctest-vn-06281395 passed 2025-03-13 02:20:43,235 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0d9dab74-f1e3-40e6-b671-f0793de6a311 2025-03-13 02:20:43,248 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dd7d3825-e22a-4fb5-810f-2c3cdb10060e 2025-03-13 02:20:43,258 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dd7d3825-e22a-4fb5-810f-2c3cdb10060e 2025-03-13 02:20:43,268 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cd676eb9-84b6-4686-adb5-f61c33373d10 2025-03-13 02:20:43,285 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57412192', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '981128812599394534', 'uuid-lslong': '13146553190791422737'}, 'enable': 'true', 'created': '2025-03-13T02:20:40', 'last-modified': '2025-03-13T02:20:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.143503'} 2025-03-13 02:20:43,294 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-13 02:20:43,302 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57412192', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '981128812599394534', 'uuid-lslong': '13146553190791422737'}, 'enable': 'true', 'created': '2025-03-13T02:20:40', 'last-modified': '2025-03-13T02:20:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.161297'} 2025-03-13 02:20:43,312 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-13 02:20:43,323 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57412192', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '981128812599394534', 'uuid-lslong': '13146553190791422737'}, 'enable': 'true', 'created': '2025-03-13T02:20:40', 'last-modified': '2025-03-13T02:20:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.182514'} 2025-03-13 02:20:43,333 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-13 02:20:43,333 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06281395 passed 2025-03-13 02:20:43,334 - DEBUG - ====Verifying policy data for ctest-vn-06281395 in API_Server ====== 2025-03-13 02:20:43,334 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-13 02:20:43,342 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7073dd22-c5ea-4305-beca-a7c1118b823d 2025-03-13 02:20:43,358 - DEBUG - Requesting: http://10.0.0.22:8082/project/729268e3-1d5d-4420-a7da-b55086ded922 2025-03-13 02:20:43,495 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0d9dab74-f1e3-40e6-b671-f0793de6a311 2025-03-13 02:20:43,508 - DEBUG - ==>Verifying data for policy with id: f414413f-da2e-4646-b698-8549c8dc6d35, fqn: ['default-domain', 'ctest-TestBasicPolicy-57412192', 'ctest-policy-allow-all-90489183'] 2025-03-13 02:20:43,508 - INFO - VN ctest-vn-06281395 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-13 02:20:43,508 - DEBUG - Verifying the vn in opserver 2025-03-13 02:20:43,508 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395 virtual network link through opserver 10.0.0.22 2025-03-13 02:20:43,509 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-03-13 02:20:43,813 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-03-13 02:20:43,889 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395?flat'} 2025-03-13 02:20:43,889 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395 virtual network link through opserver 10.0.0.27 2025-03-13 02:20:43,889 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-13 02:20:44,182 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-13 02:20:44,246 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395?flat'} 2025-03-13 02:20:44,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395 virtual network link through opserver 10.0.0.36 2025-03-13 02:20:44,247 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2025-03-13 02:20:44,544 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2025-03-13 02:20:44,621 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395?flat'} 2025-03-13 02:20:44,621 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395 is found in opserver 2025-03-13 02:20:44,653 - DEBUG - Do not have enough data to verify VN in agent 2025-03-13 02:20:44,667 - DEBUG - VRF ids for VN ctest-vn-06281395: {} 2025-03-13 02:20:44,667 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-13 02:20:44,676 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7073dd22-c5ea-4305-beca-a7c1118b823d 2025-03-13 02:20:44,692 - DEBUG - Requesting: http://10.0.0.22:8082/project/729268e3-1d5d-4420-a7da-b55086ded922 2025-03-13 02:20:44,811 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/77736f24-471b-495c-a2c9-0c1df27f124c 2025-03-13 02:20:44,834 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/77736f24-471b-495c-a2c9-0c1df27f124c 2025-03-13 02:20:44,846 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7774103b-f3d0-47c4-a0f9-d2062adad3c2 2025-03-13 02:20:44,857 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7774103b-f3d0-47c4-a0f9-d2062adad3c2 2025-03-13 02:20:44,867 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3aa1e638-2bba-45f3-b84f-183c029b5639 2025-03-13 02:20:44,875 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-13 02:20:44,875 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/77736f24-471b-495c-a2c9-0c1df27f124c 2025-03-13 02:20:44,891 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7774103b-f3d0-47c4-a0f9-d2062adad3c2 2025-03-13 02:20:44,915 - INFO - Verified VN network id 9 for VN 77736f24-471b-495c-a2c9-0c1df27f124c 2025-03-13 02:20:44,915 - INFO - Verifications in API Server for VN ctest-vn-59679527 passed 2025-03-13 02:20:44,915 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/77736f24-471b-495c-a2c9-0c1df27f124c 2025-03-13 02:20:44,928 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7774103b-f3d0-47c4-a0f9-d2062adad3c2 2025-03-13 02:20:44,939 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7774103b-f3d0-47c4-a0f9-d2062adad3c2 2025-03-13 02:20:44,949 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3aa1e638-2bba-45f3-b84f-183c029b5639 2025-03-13 02:20:44,965 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57412192', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8607345514437626204', 'uuid-lslong': '11729920027225166412'}, 'enable': 'true', 'created': '2025-03-13T02:20:41', 'last-modified': '2025-03-13T02:20:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.527201'} 2025-03-13 02:20:44,972 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-13 02:20:44,980 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57412192', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8607345514437626204', 'uuid-lslong': '11729920027225166412'}, 'enable': 'true', 'created': '2025-03-13T02:20:41', 'last-modified': '2025-03-13T02:20:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.546520'} 2025-03-13 02:20:44,989 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-13 02:20:44,997 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57412192', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8607345514437626204', 'uuid-lslong': '11729920027225166412'}, 'enable': 'true', 'created': '2025-03-13T02:20:41', 'last-modified': '2025-03-13T02:20:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.549216'} 2025-03-13 02:20:45,005 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-13 02:20:45,005 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59679527 passed 2025-03-13 02:20:45,006 - DEBUG - ====Verifying policy data for ctest-vn-59679527 in API_Server ====== 2025-03-13 02:20:45,006 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-13 02:20:45,015 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7073dd22-c5ea-4305-beca-a7c1118b823d 2025-03-13 02:20:45,031 - DEBUG - Requesting: http://10.0.0.22:8082/project/729268e3-1d5d-4420-a7da-b55086ded922 2025-03-13 02:20:45,145 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/77736f24-471b-495c-a2c9-0c1df27f124c 2025-03-13 02:20:45,166 - DEBUG - ==>Verifying data for policy with id: f414413f-da2e-4646-b698-8549c8dc6d35, fqn: ['default-domain', 'ctest-TestBasicPolicy-57412192', 'ctest-policy-allow-all-90489183'] 2025-03-13 02:20:45,166 - INFO - VN ctest-vn-59679527 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-13 02:20:45,166 - DEBUG - Verifying the vn in opserver 2025-03-13 02:20:45,166 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527 virtual network link through opserver 10.0.0.22 2025-03-13 02:20:45,167 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-03-13 02:20:45,237 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527?flat'} 2025-03-13 02:20:45,238 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527 virtual network link through opserver 10.0.0.27 2025-03-13 02:20:45,238 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-13 02:20:45,330 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527?flat'} 2025-03-13 02:20:45,330 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527 virtual network link through opserver 10.0.0.36 2025-03-13 02:20:45,330 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2025-03-13 02:20:45,416 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527?flat'} 2025-03-13 02:20:45,416 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-59679527 is found in opserver 2025-03-13 02:20:45,449 - DEBUG - Do not have enough data to verify VN in agent 2025-03-13 02:20:45,468 - DEBUG - VRF ids for VN ctest-vn-59679527: {} 2025-03-13 02:20:45,548 - DEBUG - Services list from nova: [, , , ] 2025-03-13 02:20:46,802 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2857-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2857-1) 2025-03-13 02:20:48,318 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2857-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2857-2) 2025-03-13 02:20:48,318 - INFO - Waiting for VM ctest-TestBasicPolicy-57412192-88048925 to be up.. 2025-03-13 02:20:48,456 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-13 02:20:53,563 - DEBUG - VM is in ACTIVE state now 2025-03-13 02:20:53,563 - INFO - VM name : ctest-TestBasicPolicy-57412192-88048925 2025-03-13 02:20:53,668 - DEBUG - VM ctest-TestBasicPolicy-57412192-88048925 ID is 08c07faa-4b96-466c-ac88-9160821dff67 2025-03-13 02:20:53,696 - DEBUG - VM ctest-TestBasicPolicy-57412192-88048925 launched on Node an-jenkins-deploy-platform-ansible-os-2857-1 2025-03-13 02:20:53,804 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/08c07faa-4b96-466c-ac88-9160821dff67 2025-03-13 02:20:54,108 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/08c07faa-4b96-466c-ac88-9160821dff67 2025-03-13 02:20:54,153 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/1dd18bb3-426c-426c-b5fa-fdba381e2025 2025-03-13 02:20:57,407 - 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-03-13 02:20:57,407 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57412192-88048925 failed! 2025-03-13 02:20:57,425 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57412192:ctest-vn-06281395 is 162.229.108.65 and allocation pool is NOT set 2025-03-13 02:20:59,489 - 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.10 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.418 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.418/3.259/6.101/2.841 ms') 2025-03-13 02:20:59,489 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57412192-88048925 passed 2025-03-13 02:20:59,621 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:20:59,621 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57412192-88048925, IP 162.229.108.67, Port 22 2025-03-13 02:20:59,783 - DEBUG - VM ctest-TestBasicPolicy-57412192-88048925 is ready for SSH connections 2025-03-13 02:20:59,783 - INFO - Waiting for VM ctest-TestBasicPolicy-57412192-48775534 to be up.. 2025-03-13 02:20:59,885 - DEBUG - VM is in ACTIVE state now 2025-03-13 02:20:59,885 - INFO - VM name : ctest-TestBasicPolicy-57412192-48775534 2025-03-13 02:20:59,980 - DEBUG - VM ctest-TestBasicPolicy-57412192-48775534 ID is 2920da7d-ea15-4d11-95bf-478aebcbfb3e 2025-03-13 02:20:59,980 - DEBUG - VM ctest-TestBasicPolicy-57412192-48775534 launched on Node an-jenkins-deploy-platform-ansible-os-2857-2 2025-03-13 02:21:00,110 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/2920da7d-ea15-4d11-95bf-478aebcbfb3e 2025-03-13 02:21:00,144 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/00230210-da73-4a44-91e6-c2d8a2ec6082 2025-03-13 02:21:01,392 - 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.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.441 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.441/2.885/5.329/2.444 ms') 2025-03-13 02:21:01,392 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57412192-48775534 passed 2025-03-13 02:21:01,519 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:21:01,519 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57412192-48775534, IP 98.168.22.131, Port 22 2025-03-13 02:21:01,701 - DEBUG - VM ctest-TestBasicPolicy-57412192-48775534 is ready for SSH connections 2025-03-13 02:21:01,702 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:21:01,702 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 98.168.22.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-03-13 02:21:01,702 - DEBUG - ping -s 56 -c 3 -W 1 98.168.22.131 2025-03-13 02:21:05,646 - DEBUG - PING 98.168.22.131 (98.168.22.131): 56 data bytes 64 bytes from 98.168.22.131: seq=0 ttl=63 time=6.847 ms 64 bytes from 98.168.22.131: seq=1 ttl=63 time=2.049 ms 64 bytes from 98.168.22.131: seq=2 ttl=63 time=1.595 ms --- 98.168.22.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.595/3.497/6.847 ms 2025-03-13 02:21:05,647 - INFO - Ping to IP 98.168.22.131 from VM ctest-TestBasicPolicy-57412192-88048925 passed 2025-03-13 02:21:05,911 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f414413f-da2e-4646-b698-8549c8dc6d35", "href": "http://10.0.0.36:8082/network-policy/f414413f-da2e-4646-b698-8549c8dc6d35"}} 2025-03-13 02:21:05,911 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:21:05,911 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 98.168.22.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-03-13 02:21:05,911 - DEBUG - ping -s 56 -c 3 -W 1 98.168.22.131 2025-03-13 02:21:09,115 - DEBUG - PING 98.168.22.131 (98.168.22.131): 56 data bytes --- 98.168.22.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-03-13 02:21:09,116 - WARNING - Ping to IP 98.168.22.131 from VM ctest-TestBasicPolicy-57412192-88048925 failed 2025-03-13 02:21:09,116 - INFO - Deleting VM ctest-TestBasicPolicy-57412192-48775534 2025-03-13 02:21:09,191 - INFO - Deleting VM ctest-TestBasicPolicy-57412192-88048925 2025-03-13 02:21:09,878 - INFO - Deleted policy ctest-policy-allow-all-90489183 2025-03-13 02:21:09,878 - INFO - Deleting VN ctest-vn-59679527 2025-03-13 02:21:09,961 - DEBUG - VN 77736f24-471b-495c-a2c9-0c1df27f124c still in use: Unable to complete operation on network 77736f24-471b-495c-a2c9-0c1df27f124c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8ff9f231-460c-4c1c-81a2-6216742a6763'] 2025-03-13 02:21:09,961 - WARNING - Deleting VN ctest-vn-59679527 failed..Will retry 2025-03-13 02:21:12,232 - DEBUG - Response for deleting network () 2025-03-13 02:21:12,232 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7774103b-f3d0-47c4-a0f9-d2062adad3c2 2025-03-13 02:21:12,244 - DEBUG - Response Code: 404 2025-03-13 02:21:12,244 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-13 02:21:12,251 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7073dd22-c5ea-4305-beca-a7c1118b823d 2025-03-13 02:21:12,318 - DEBUG - Requesting: http://10.0.0.22:8082/project/729268e3-1d5d-4420-a7da-b55086ded922 2025-03-13 02:21:12,442 - INFO - Validated that VN ctest-vn-59679527 is not found in API Server 2025-03-13 02:21:12,455 - DEBUG - VN ctest-vn-59679527 is not present in Agent 10.0.0.48 2025-03-13 02:21:12,469 - DEBUG - VN ctest-vn-59679527 is not present in Agent 10.0.0.23 2025-03-13 02:21:12,469 - INFO - Validated that VN ctest-vn-59679527 is not in any agent 2025-03-13 02:21:12,515 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59679527 info 2025-03-13 02:21:12,515 - INFO - Deleting VN ctest-vn-06281395 2025-03-13 02:21:12,752 - DEBUG - Response for deleting network () 2025-03-13 02:21:12,752 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/dd7d3825-e22a-4fb5-810f-2c3cdb10060e 2025-03-13 02:21:12,762 - DEBUG - Response Code: 404 2025-03-13 02:21:12,762 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-03-13 02:21:12,770 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7073dd22-c5ea-4305-beca-a7c1118b823d 2025-03-13 02:21:12,797 - DEBUG - Requesting: http://10.0.0.22:8082/project/729268e3-1d5d-4420-a7da-b55086ded922 2025-03-13 02:21:12,921 - INFO - Validated that VN ctest-vn-06281395 is not found in API Server 2025-03-13 02:21:12,938 - DEBUG - VN ctest-vn-06281395 is not present in Agent 10.0.0.48 2025-03-13 02:21:12,954 - DEBUG - VN ctest-vn-06281395 is not present in Agent 10.0.0.23 2025-03-13 02:21:12,955 - INFO - Validated that VN ctest-vn-06281395 is not in any agent 2025-03-13 02:21:13,005 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06281395 info 2025-03-13 02:21:14,325 - DEBUG - No XMPP flaps were noticed during the test
2025-03-13 02:21:14,325 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-03-13 02:21:14,325 - INFO - -------------------------------------------------------------------------------- 2025-03-13 02:21:15,202 - INFO - Deleted project: ctest-TestBasicPolicy-57412192, ID : 729268e3-1d5d-4420-a7da-b55086ded922