2025-04-09 13:02:26,096 - INFO - Domain Default found not creating 2025-04-09 13:02:26,248 - INFO - Project ctest-TestBasicPolicy-56861623 not found, creating it 2025-04-09 13:02:26,736 - INFO - Created Project:ctest-TestBasicPolicy-56861623, ID : a406d8c3-9a6b-4bf3-ac32-41d3a455ba78 2025-04-09 13:02:28,247 - INFO - ================================================================================ 2025-04-09 13:02:28,247 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-09 13:02:28,247 - 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-04-09 13:02:28,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.252': {'10.20.0.14': '0'}} with 2025-04-09 13:02:28,508 - INFO - Initial checks done. Running the testcase now 2025-04-09 13:02:28,508 - INFO - 2025-04-09 13:02:29,104 - DEBUG - Response for create_network : {'network': {'id': '924f7d8c-6b36-4d35-89b5-ad9b85d07955', 'name': 'ctest-vn-47933603', 'tenant_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'project_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-vn-47933603'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 13:02:29,278 - DEBUG - Response for create_subnet : {'subnet': {'id': '562fa904-4d5c-4819-8e25-e6d2506e5b57', 'name': '', 'tenant_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'network_id': '924f7d8c-6b36-4d35-89b5-ad9b85d07955', 'ip_version': 4, 'cidr': '41.94.72.128/26', 'allocation_pools': [{'start': '41.94.72.130', 'end': '41.94.72.190'}], 'gateway_ip': '41.94.72.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.94.72.130', 'tags': [], 'project_id': 'a406d8c39a6b4bf3ac3241d3a455ba78'}} 2025-04-09 13:02:29,300 - INFO - Created VN ctest-vn-47933603 2025-04-09 13:02:29,353 - DEBUG - VN ctest-vn-47933603 UUID is 924f7d8c-6b36-4d35-89b5-ad9b85d07955 2025-04-09 13:02:29,677 - DEBUG - Response for create_network : {'network': {'id': '09d86ab9-3f93-4e17-bdc0-3ddde169da8a', 'name': 'ctest-vn-16718764', 'tenant_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'project_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-vn-16718764'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 13:02:29,913 - DEBUG - Response for create_subnet : {'subnet': {'id': '02d6b6e5-bed5-4efc-97db-ce15c1ff56eb', 'name': '', 'tenant_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'network_id': '09d86ab9-3f93-4e17-bdc0-3ddde169da8a', 'ip_version': 4, 'cidr': '28.80.240.64/26', 'allocation_pools': [{'start': '28.80.240.66', 'end': '28.80.240.126'}], 'gateway_ip': '28.80.240.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.80.240.66', 'tags': [], 'project_id': 'a406d8c39a6b4bf3ac3241d3a455ba78'}} 2025-04-09 13:02:29,933 - INFO - Created VN ctest-vn-16718764 2025-04-09 13:02:29,989 - DEBUG - VN ctest-vn-16718764 UUID is 09d86ab9-3f93-4e17-bdc0-3ddde169da8a 2025-04-09 13:02:30,114 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603, 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-56861623:ctest-vn-16718764, 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-04-09 13:02:30,426 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '924f7d8c-6b36-4d35-89b5-ad9b85d07955', 'name': 'ctest-vn-47933603', 'tenant_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'project_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['562fa904-4d5c-4819-8e25-e6d2506e5b57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-vn-47933603'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-policy-allow-all-16775434']], 'subnet_ipam': [{'subnet_cidr': '41.94.72.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 13:02:30,677 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09d86ab9-3f93-4e17-bdc0-3ddde169da8a', 'name': 'ctest-vn-16718764', 'tenant_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'project_id': 'a406d8c39a6b4bf3ac3241d3a455ba78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02d6b6e5-bed5-4efc-97db-ce15c1ff56eb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-vn-16718764'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-policy-allow-all-16775434']], 'subnet_ipam': [{'subnet_cidr': '28.80.240.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 13:02:30,845 - DEBUG - Requesting: http://10.0.0.252:8082/domains 2025-04-09 13:02:31,166 - DEBUG - Requesting: http://10.0.0.252:8082/domains 2025-04-09 13:02:31,197 - DEBUG - Requesting: http://10.0.0.252:8082/domain/85709522-408b-4e3b-8164-efbda098ca63 2025-04-09 13:02:31,211 - DEBUG - Requesting: http://10.0.0.252:8082/project/a406d8c3-9a6b-4bf3-ac32-41d3a455ba78 2025-04-09 13:02:31,289 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/924f7d8c-6b36-4d35-89b5-ad9b85d07955 2025-04-09 13:02:31,303 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/924f7d8c-6b36-4d35-89b5-ad9b85d07955 2025-04-09 13:02:31,315 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/2ec51295-d4e1-41ec-81a9-e86e0b86a6d6 2025-04-09 13:02:31,323 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/2ec51295-d4e1-41ec-81a9-e86e0b86a6d6 2025-04-09 13:02:31,331 - DEBUG - Requesting: http://10.0.0.252:8082/route-target/98631f5c-d0ef-4029-a8c6-e21d6d1e6e40 2025-04-09 13:02:31,339 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-09 13:02:31,339 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/924f7d8c-6b36-4d35-89b5-ad9b85d07955 2025-04-09 13:02:31,349 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/2ec51295-d4e1-41ec-81a9-e86e0b86a6d6 2025-04-09 13:02:31,366 - INFO - Verified VN network id 8 for VN 924f7d8c-6b36-4d35-89b5-ad9b85d07955 2025-04-09 13:02:31,366 - INFO - Verifications in API Server for VN ctest-vn-47933603 passed 2025-04-09 13:02:31,367 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/924f7d8c-6b36-4d35-89b5-ad9b85d07955 2025-04-09 13:02:31,378 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/2ec51295-d4e1-41ec-81a9-e86e0b86a6d6 2025-04-09 13:02:31,386 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/2ec51295-d4e1-41ec-81a9-e86e0b86a6d6 2025-04-09 13:02:31,394 - DEBUG - Requesting: http://10.0.0.252:8082/route-target/98631f5c-d0ef-4029-a8c6-e21d6d1e6e40 2025-04-09 13:02:31,408 - DEBUG - Control-node 10.0.0.252 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56861623', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10542783294745234741', 'uuid-lslong': '9923028237457324373'}, 'enable': 'true', 'created': '2025-04-09T13:02:29', 'last-modified': '2025-04-09T13:02:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007097'} 2025-04-09 13:02:31,416 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-09 13:02:31,416 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47933603 passed 2025-04-09 13:02:31,416 - DEBUG - ====Verifying policy data for ctest-vn-47933603 in API_Server ====== 2025-04-09 13:02:31,416 - DEBUG - Requesting: http://10.0.0.252:8082/domains 2025-04-09 13:02:31,423 - DEBUG - Requesting: http://10.0.0.252:8082/domain/85709522-408b-4e3b-8164-efbda098ca63 2025-04-09 13:02:31,435 - DEBUG - Requesting: http://10.0.0.252:8082/project/a406d8c3-9a6b-4bf3-ac32-41d3a455ba78 2025-04-09 13:02:31,513 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/924f7d8c-6b36-4d35-89b5-ad9b85d07955 2025-04-09 13:02:31,527 - DEBUG - ==>Verifying data for policy with id: f208e9dd-034f-4d58-b72f-24ff870ef4fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-policy-allow-all-16775434'] 2025-04-09 13:02:31,527 - INFO - VN ctest-vn-47933603 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 13:02:31,527 - DEBUG - Verifying the vn in opserver 2025-04-09 13:02:31,527 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603 virtual network link through opserver 10.0.0.252 2025-04-09 13:02:31,528 - DEBUG - Requesting: http://10.0.0.252:8081/analytics/uves/virtual-networks 2025-04-09 13:02:31,819 - DEBUG - Requesting: http://10.0.0.252:8081/analytics/uves/virtual-networks 2025-04-09 13:02:31,878 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603', 'href': 'http://10.0.0.252:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603?flat'} 2025-04-09 13:02:31,878 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603 is found in opserver 2025-04-09 13:02:31,890 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 13:02:31,898 - DEBUG - VRF ids for VN ctest-vn-47933603: {} 2025-04-09 13:02:31,898 - DEBUG - Requesting: http://10.0.0.252:8082/domains 2025-04-09 13:02:31,905 - DEBUG - Requesting: http://10.0.0.252:8082/domain/85709522-408b-4e3b-8164-efbda098ca63 2025-04-09 13:02:31,919 - DEBUG - Requesting: http://10.0.0.252:8082/project/a406d8c3-9a6b-4bf3-ac32-41d3a455ba78 2025-04-09 13:02:32,005 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/09d86ab9-3f93-4e17-bdc0-3ddde169da8a 2025-04-09 13:02:32,019 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/09d86ab9-3f93-4e17-bdc0-3ddde169da8a 2025-04-09 13:02:32,030 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/ad267fd4-cf5a-4eaf-864a-fc5661bee946 2025-04-09 13:02:32,038 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/ad267fd4-cf5a-4eaf-864a-fc5661bee946 2025-04-09 13:02:32,045 - DEBUG - Requesting: http://10.0.0.252:8082/route-target/02d06598-be92-42d6-a4f3-a94386863a64 2025-04-09 13:02:32,052 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 13:02:32,052 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/09d86ab9-3f93-4e17-bdc0-3ddde169da8a 2025-04-09 13:02:32,063 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/ad267fd4-cf5a-4eaf-864a-fc5661bee946 2025-04-09 13:02:32,079 - INFO - Verified VN network id 9 for VN 09d86ab9-3f93-4e17-bdc0-3ddde169da8a 2025-04-09 13:02:32,079 - INFO - Verifications in API Server for VN ctest-vn-16718764 passed 2025-04-09 13:02:32,079 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/09d86ab9-3f93-4e17-bdc0-3ddde169da8a 2025-04-09 13:02:32,091 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/ad267fd4-cf5a-4eaf-864a-fc5661bee946 2025-04-09 13:02:32,098 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/ad267fd4-cf5a-4eaf-864a-fc5661bee946 2025-04-09 13:02:32,106 - DEBUG - Requesting: http://10.0.0.252:8082/route-target/02d06598-be92-42d6-a4f3-a94386863a64 2025-04-09 13:02:32,118 - DEBUG - Control-node 10.0.0.252 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-16718764', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56861623', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '709434285178965527', 'uuid-lslong': '13672996491875703434'}, 'enable': 'true', 'created': '2025-04-09T13:02:29', 'last-modified': '2025-04-09T13:02:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466286'} 2025-04-09 13:02:32,126 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 13:02:32,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16718764 passed 2025-04-09 13:02:32,126 - DEBUG - ====Verifying policy data for ctest-vn-16718764 in API_Server ====== 2025-04-09 13:02:32,126 - DEBUG - Requesting: http://10.0.0.252:8082/domains 2025-04-09 13:02:32,132 - DEBUG - Requesting: http://10.0.0.252:8082/domain/85709522-408b-4e3b-8164-efbda098ca63 2025-04-09 13:02:32,153 - DEBUG - Requesting: http://10.0.0.252:8082/project/a406d8c3-9a6b-4bf3-ac32-41d3a455ba78 2025-04-09 13:02:32,234 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-network/09d86ab9-3f93-4e17-bdc0-3ddde169da8a 2025-04-09 13:02:32,246 - DEBUG - ==>Verifying data for policy with id: f208e9dd-034f-4d58-b72f-24ff870ef4fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-56861623', 'ctest-policy-allow-all-16775434'] 2025-04-09 13:02:32,246 - INFO - VN ctest-vn-16718764 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 13:02:32,246 - DEBUG - Verifying the vn in opserver 2025-04-09 13:02:32,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-16718764 virtual network link through opserver 10.0.0.252 2025-04-09 13:02:32,246 - DEBUG - Requesting: http://10.0.0.252:8081/analytics/uves/virtual-networks 2025-04-09 13:02:32,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-16718764', 'href': 'http://10.0.0.252:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-16718764?flat'} 2025-04-09 13:02:32,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-16718764 is found in opserver 2025-04-09 13:02:32,268 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 13:02:32,273 - DEBUG - VRF ids for VN ctest-vn-16718764: {} 2025-04-09 13:02:32,328 - DEBUG - Services list from nova: [, , ] 2025-04-09 13:02:33,330 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3066-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3066-1) 2025-04-09 13:02:34,668 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3066-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3066-1) 2025-04-09 13:02:34,668 - INFO - Waiting for VM ctest-TestBasicPolicy-56861623-10911677 to be up.. 2025-04-09 13:02:34,751 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 13:02:39,836 - DEBUG - VM is in ACTIVE state now 2025-04-09 13:02:39,836 - INFO - VM name : ctest-TestBasicPolicy-56861623-10911677 2025-04-09 13:02:39,916 - DEBUG - VM ctest-TestBasicPolicy-56861623-10911677 ID is e3c811d6-d045-44d5-bf3e-34749bdcfd74 2025-04-09 13:02:39,936 - DEBUG - VM ctest-TestBasicPolicy-56861623-10911677 launched on Node cn-jenkins-deploy-platform-ansible-os-3066-1 2025-04-09 13:02:40,022 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-machine/e3c811d6-d045-44d5-bf3e-34749bdcfd74 2025-04-09 13:02:40,034 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-machine-interface/44c1c3a1-999f-4e5a-8e57-50e2a5be562f 2025-04-09 13:02:43,307 - 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-04-09 13:02:43,307 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56861623-10911677 failed! 2025-04-09 13:02:43,361 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-56861623:ctest-vn-47933603 is 41.94.72.129 and allocation pool is NOT set 2025-04-09 13:02:45,424 - 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=8.17 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.766 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.766/4.468/8.171/3.702 ms') 2025-04-09 13:02:45,424 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56861623-10911677 passed 2025-04-09 13:02:45,581 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 13:02:45,581 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56861623-10911677, IP 41.94.72.131, Port 22 2025-04-09 13:02:45,740 - DEBUG - VM ctest-TestBasicPolicy-56861623-10911677 is ready for SSH connections 2025-04-09 13:02:45,740 - INFO - Waiting for VM ctest-TestBasicPolicy-56861623-65053919 to be up.. 2025-04-09 13:02:45,819 - DEBUG - VM is in ACTIVE state now 2025-04-09 13:02:45,819 - INFO - VM name : ctest-TestBasicPolicy-56861623-65053919 2025-04-09 13:02:45,899 - DEBUG - VM ctest-TestBasicPolicy-56861623-65053919 ID is 82162636-42e0-4708-ab72-19e81beded9d 2025-04-09 13:02:45,899 - DEBUG - VM ctest-TestBasicPolicy-56861623-65053919 launched on Node cn-jenkins-deploy-platform-ansible-os-3066-1 2025-04-09 13:02:45,987 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-machine/82162636-42e0-4708-ab72-19e81beded9d 2025-04-09 13:02:46,000 - DEBUG - Requesting: http://10.0.0.252:8082/virtual-machine-interface/28eab96b-8886-44ff-8ef9-ec9e03bf0371 2025-04-09 13:02:47,250 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.453 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.453/1.621/2.789/1.168 ms') 2025-04-09 13:02:47,250 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-56861623-65053919 passed 2025-04-09 13:02:47,405 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 13:02:47,405 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56861623-65053919, IP 28.80.240.67, Port 22 2025-04-09 13:02:47,560 - DEBUG - VM ctest-TestBasicPolicy-56861623-65053919 is ready for SSH connections 2025-04-09 13:02:47,561 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 13:02:47,561 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 28.80.240.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.252, gateway password: c0ntrail123 2025-04-09 13:02:47,561 - DEBUG - ping -s 56 -c 3 -W 1 28.80.240.67 2025-04-09 13:02:51,286 - DEBUG - PING 28.80.240.67 (28.80.240.67): 56 data bytes 64 bytes from 28.80.240.67: seq=0 ttl=63 time=3.334 ms 64 bytes from 28.80.240.67: seq=1 ttl=63 time=0.931 ms 64 bytes from 28.80.240.67: seq=2 ttl=63 time=0.816 ms --- 28.80.240.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.816/1.693/3.334 ms 2025-04-09 13:02:51,287 - INFO - Ping to IP 28.80.240.67 from VM ctest-TestBasicPolicy-56861623-10911677 passed 2025-04-09 13:02:51,477 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f208e9dd-034f-4d58-b72f-24ff870ef4fb", "href": "http://10.0.0.252:8082/network-policy/f208e9dd-034f-4d58-b72f-24ff870ef4fb"}} 2025-04-09 13:02:51,477 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 13:02:51,477 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 28.80.240.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.252, gateway password: c0ntrail123 2025-04-09 13:02:51,477 - DEBUG - ping -s 56 -c 3 -W 1 28.80.240.67 2025-04-09 13:02:54,691 - DEBUG - PING 28.80.240.67 (28.80.240.67): 56 data bytes 64 bytes from 28.80.240.67: seq=0 ttl=63 time=1.377 ms --- 28.80.240.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.377/1.377/1.377 ms 2025-04-09 13:02:54,691 - WARNING - Ping to IP 28.80.240.67 from VM ctest-TestBasicPolicy-56861623-10911677 failed 2025-04-09 13:02:54,691 - INFO - Deleting VM ctest-TestBasicPolicy-56861623-65053919 2025-04-09 13:02:54,772 - INFO - Deleting VM ctest-TestBasicPolicy-56861623-10911677 2025-04-09 13:02:55,202 - INFO - Deleted policy ctest-policy-allow-all-16775434 2025-04-09 13:02:55,202 - INFO - Deleting VN ctest-vn-16718764 2025-04-09 13:02:55,247 - DEBUG - VN 09d86ab9-3f93-4e17-bdc0-3ddde169da8a still in use: Unable to complete operation on network 09d86ab9-3f93-4e17-bdc0-3ddde169da8a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a73260e4-dda3-41a5-8db0-6f11156d0a6c'] 2025-04-09 13:02:55,247 - WARNING - Deleting VN ctest-vn-16718764 failed..Will retry 2025-04-09 13:02:57,358 - DEBUG - Response for deleting network () 2025-04-09 13:02:57,359 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/ad267fd4-cf5a-4eaf-864a-fc5661bee946 2025-04-09 13:02:57,365 - DEBUG - Response Code: 404 2025-04-09 13:02:57,366 - DEBUG - Requesting: http://10.0.0.252:8082/domains 2025-04-09 13:02:57,372 - DEBUG - Requesting: http://10.0.0.252:8082/domain/85709522-408b-4e3b-8164-efbda098ca63 2025-04-09 13:02:57,427 - DEBUG - Requesting: http://10.0.0.252:8082/project/a406d8c3-9a6b-4bf3-ac32-41d3a455ba78 2025-04-09 13:02:57,502 - INFO - Validated that VN ctest-vn-16718764 is not found in API Server 2025-04-09 13:02:57,516 - DEBUG - VN ctest-vn-16718764 is not present in Agent 10.0.0.252 2025-04-09 13:02:57,516 - INFO - Validated that VN ctest-vn-16718764 is not in any agent 2025-04-09 13:02:57,534 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16718764 info 2025-04-09 13:02:57,535 - INFO - Deleting VN ctest-vn-47933603 2025-04-09 13:02:57,656 - DEBUG - Response for deleting network () 2025-04-09 13:02:57,656 - DEBUG - Requesting: http://10.0.0.252:8082/routing-instance/2ec51295-d4e1-41ec-81a9-e86e0b86a6d6 2025-04-09 13:02:57,664 - DEBUG - Response Code: 404 2025-04-09 13:02:57,664 - DEBUG - Requesting: http://10.0.0.252:8082/domains 2025-04-09 13:02:57,669 - DEBUG - Requesting: http://10.0.0.252:8082/domain/85709522-408b-4e3b-8164-efbda098ca63 2025-04-09 13:02:57,724 - DEBUG - Requesting: http://10.0.0.252:8082/project/a406d8c3-9a6b-4bf3-ac32-41d3a455ba78 2025-04-09 13:02:57,797 - INFO - Validated that VN ctest-vn-47933603 is not found in API Server 2025-04-09 13:02:57,811 - DEBUG - VN ctest-vn-47933603 is not present in Agent 10.0.0.252 2025-04-09 13:02:57,811 - INFO - Validated that VN ctest-vn-47933603 is not in any agent 2025-04-09 13:02:57,828 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-47933603 info 2025-04-09 13:02:58,084 - DEBUG - No XMPP flaps were noticed during the test
2025-04-09 13:02:58,084 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-04-09 13:02:58,085 - INFO - -------------------------------------------------------------------------------- 2025-04-09 13:02:58,798 - INFO - Deleted project: ctest-TestBasicPolicy-56861623, ID : a406d8c3-9a6b-4bf3-ac32-41d3a455ba78