2024-11-03 20:13:36,042 - INFO - Domain Default found not creating 2024-11-03 20:13:36,252 - INFO - Project ctest-TestBasicPolicy-44327286 not found, creating it 2024-11-03 20:13:36,778 - INFO - Created Project:ctest-TestBasicPolicy-44327286, ID : 1e778f97-d1e7-4106-99bc-963d4134a6e0 2024-11-03 20:13:38,571 - INFO - ================================================================================ 2024-11-03 20:13:38,572 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-03 20:13:38,572 - 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 2024-11-03 20:13:38,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.5': '0'}} with 2024-11-03 20:13:38,844 - INFO - Initial checks done. Running the testcase now 2024-11-03 20:13:38,844 - INFO - 2024-11-03 20:13:39,530 - DEBUG - Response for create_network : {'network': {'id': 'aebbe29c-d396-4e80-a9f4-8e2e9e3b84be', 'name': 'ctest-vn-09992360', 'tenant_id': '1e778f97d1e7410699bc963d4134a6e0', 'project_id': '1e778f97d1e7410699bc963d4134a6e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-vn-09992360'], 'port_security_enabled': True, 'description': ''}} 2024-11-03 20:13:39,725 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a66d9596-286d-4f02-bdbd-a92d0312918e', 'name': '', 'tenant_id': '1e778f97d1e7410699bc963d4134a6e0', 'network_id': 'aebbe29c-d396-4e80-a9f4-8e2e9e3b84be', 'ip_version': 4, 'cidr': '160.65.63.128/26', 'allocation_pools': [{'start': '160.65.63.130', 'end': '160.65.63.190'}], 'gateway_ip': '160.65.63.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.65.63.130', 'tags': [], 'project_id': '1e778f97d1e7410699bc963d4134a6e0'}} 2024-11-03 20:13:39,752 - INFO - Created VN ctest-vn-09992360 2024-11-03 20:13:39,814 - DEBUG - VN ctest-vn-09992360 UUID is aebbe29c-d396-4e80-a9f4-8e2e9e3b84be 2024-11-03 20:13:40,181 - DEBUG - Response for create_network : {'network': {'id': '8bb22a80-f346-4fa6-b564-5231e88f3ce9', 'name': 'ctest-vn-62486797', 'tenant_id': '1e778f97d1e7410699bc963d4134a6e0', 'project_id': '1e778f97d1e7410699bc963d4134a6e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-vn-62486797'], 'port_security_enabled': True, 'description': ''}} 2024-11-03 20:13:40,406 - DEBUG - Response for create_subnet : {'subnet': {'id': '78e2def5-eb79-423b-be7a-73ad249bfa85', 'name': '', 'tenant_id': '1e778f97d1e7410699bc963d4134a6e0', 'network_id': '8bb22a80-f346-4fa6-b564-5231e88f3ce9', 'ip_version': 4, 'cidr': '59.111.140.128/26', 'allocation_pools': [{'start': '59.111.140.130', 'end': '59.111.140.190'}], 'gateway_ip': '59.111.140.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.111.140.130', 'tags': [], 'project_id': '1e778f97d1e7410699bc963d4134a6e0'}} 2024-11-03 20:13:40,432 - INFO - Created VN ctest-vn-62486797 2024-11-03 20:13:40,498 - DEBUG - VN ctest-vn-62486797 UUID is 8bb22a80-f346-4fa6-b564-5231e88f3ce9 2024-11-03 20:13:40,638 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360, 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-44327286:ctest-vn-62486797, 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] 2024-11-03 20:13:40,983 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aebbe29c-d396-4e80-a9f4-8e2e9e3b84be', 'name': 'ctest-vn-09992360', 'tenant_id': '1e778f97d1e7410699bc963d4134a6e0', 'project_id': '1e778f97d1e7410699bc963d4134a6e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a66d9596-286d-4f02-bdbd-a92d0312918e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-vn-09992360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-policy-allow-all-74984897']], 'subnet_ipam': [{'subnet_cidr': '160.65.63.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-03 20:13:41,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8bb22a80-f346-4fa6-b564-5231e88f3ce9', 'name': 'ctest-vn-62486797', 'tenant_id': '1e778f97d1e7410699bc963d4134a6e0', 'project_id': '1e778f97d1e7410699bc963d4134a6e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78e2def5-eb79-423b-be7a-73ad249bfa85'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-vn-62486797'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-policy-allow-all-74984897']], 'subnet_ipam': [{'subnet_cidr': '59.111.140.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-03 20:13:41,414 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-03 20:13:41,760 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-03 20:13:41,797 - DEBUG - Requesting: http://10.0.0.34:8082/domain/d5d79ce6-1888-4d79-8698-cb46f7b3524e 2024-11-03 20:13:41,816 - DEBUG - Requesting: http://10.0.0.34:8082/project/1e778f97-d1e7-4106-99bc-963d4134a6e0 2024-11-03 20:13:41,912 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/aebbe29c-d396-4e80-a9f4-8e2e9e3b84be 2024-11-03 20:13:41,929 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/aebbe29c-d396-4e80-a9f4-8e2e9e3b84be 2024-11-03 20:13:41,944 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/35acbb28-a60f-4248-a409-40ee6f75c293 2024-11-03 20:13:41,953 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/35acbb28-a60f-4248-a409-40ee6f75c293 2024-11-03 20:13:41,962 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/6f84cc2b-bf29-4651-86e2-baf204f050d7 2024-11-03 20:13:41,970 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-03 20:13:41,970 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/aebbe29c-d396-4e80-a9f4-8e2e9e3b84be 2024-11-03 20:13:41,986 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/35acbb28-a60f-4248-a409-40ee6f75c293 2024-11-03 20:13:42,010 - INFO - Verified VN network id 7 for VN aebbe29c-d396-4e80-a9f4-8e2e9e3b84be 2024-11-03 20:13:42,013 - INFO - Verifications in API Server for VN ctest-vn-09992360 passed 2024-11-03 20:13:42,013 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/aebbe29c-d396-4e80-a9f4-8e2e9e3b84be 2024-11-03 20:13:42,029 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/35acbb28-a60f-4248-a409-40ee6f75c293 2024-11-03 20:13:42,041 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/35acbb28-a60f-4248-a409-40ee6f75c293 2024-11-03 20:13:42,053 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/6f84cc2b-bf29-4651-86e2-baf204f050d7 2024-11-03 20:13:42,069 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44327286', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12590906346436972160', 'uuid-lslong': '12246569617601561790'}, 'enable': 'true', 'created': '2024-11-03T20:13:39', 'last-modified': '2024-11-03T20:13:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.115028'} 2024-11-03 20:13:42,076 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-03 20:13:42,076 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09992360 passed 2024-11-03 20:13:42,077 - DEBUG - ====Verifying policy data for ctest-vn-09992360 in API_Server ====== 2024-11-03 20:13:42,077 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-03 20:13:42,084 - DEBUG - Requesting: http://10.0.0.34:8082/domain/d5d79ce6-1888-4d79-8698-cb46f7b3524e 2024-11-03 20:13:42,101 - DEBUG - Requesting: http://10.0.0.34:8082/project/1e778f97-d1e7-4106-99bc-963d4134a6e0 2024-11-03 20:13:42,185 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/aebbe29c-d396-4e80-a9f4-8e2e9e3b84be 2024-11-03 20:13:42,202 - DEBUG - ==>Verifying data for policy with id: 30eb9f16-0147-466e-8323-b538996818df, fqn: ['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-policy-allow-all-74984897'] 2024-11-03 20:13:42,202 - INFO - VN ctest-vn-09992360 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-03 20:13:42,202 - DEBUG - Verifying the vn in opserver 2024-11-03 20:13:42,202 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360 virtual network link through opserver 10.0.0.34 2024-11-03 20:13:42,202 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-11-03 20:13:42,547 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-11-03 20:13:42,640 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360?flat'} 2024-11-03 20:13:42,640 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360 is found in opserver 2024-11-03 20:13:42,654 - DEBUG - Do not have enough data to verify VN in agent 2024-11-03 20:13:42,660 - DEBUG - VRF ids for VN ctest-vn-09992360: {} 2024-11-03 20:13:42,660 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-03 20:13:42,670 - DEBUG - Requesting: http://10.0.0.34:8082/domain/d5d79ce6-1888-4d79-8698-cb46f7b3524e 2024-11-03 20:13:42,697 - DEBUG - Requesting: http://10.0.0.34:8082/project/1e778f97-d1e7-4106-99bc-963d4134a6e0 2024-11-03 20:13:42,783 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8bb22a80-f346-4fa6-b564-5231e88f3ce9 2024-11-03 20:13:42,804 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8bb22a80-f346-4fa6-b564-5231e88f3ce9 2024-11-03 20:13:42,819 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/40350592-978a-444c-be61-62a08e2a5a0d 2024-11-03 20:13:42,830 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/40350592-978a-444c-be61-62a08e2a5a0d 2024-11-03 20:13:42,840 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/f332af67-8c1d-4c15-93ae-67e23a8f2e3d 2024-11-03 20:13:42,849 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-03 20:13:42,849 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8bb22a80-f346-4fa6-b564-5231e88f3ce9 2024-11-03 20:13:42,868 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/40350592-978a-444c-be61-62a08e2a5a0d 2024-11-03 20:13:42,897 - INFO - Verified VN network id 8 for VN 8bb22a80-f346-4fa6-b564-5231e88f3ce9 2024-11-03 20:13:42,898 - INFO - Verifications in API Server for VN ctest-vn-62486797 passed 2024-11-03 20:13:42,898 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8bb22a80-f346-4fa6-b564-5231e88f3ce9 2024-11-03 20:13:42,916 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/40350592-978a-444c-be61-62a08e2a5a0d 2024-11-03 20:13:42,927 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/40350592-978a-444c-be61-62a08e2a5a0d 2024-11-03 20:13:42,937 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/f332af67-8c1d-4c15-93ae-67e23a8f2e3d 2024-11-03 20:13:42,951 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-62486797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44327286', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10066154850452131750', 'uuid-lslong': '13070662392844598505'}, 'enable': 'true', 'created': '2024-11-03T20:13:40', 'last-modified': '2024-11-03T20:13:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.742871'} 2024-11-03 20:13:42,959 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-03 20:13:42,959 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62486797 passed 2024-11-03 20:13:42,959 - DEBUG - ====Verifying policy data for ctest-vn-62486797 in API_Server ====== 2024-11-03 20:13:42,959 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-03 20:13:42,965 - DEBUG - Requesting: http://10.0.0.34:8082/domain/d5d79ce6-1888-4d79-8698-cb46f7b3524e 2024-11-03 20:13:42,980 - DEBUG - Requesting: http://10.0.0.34:8082/project/1e778f97-d1e7-4106-99bc-963d4134a6e0 2024-11-03 20:13:43,066 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/8bb22a80-f346-4fa6-b564-5231e88f3ce9 2024-11-03 20:13:43,084 - DEBUG - ==>Verifying data for policy with id: 30eb9f16-0147-466e-8323-b538996818df, fqn: ['default-domain', 'ctest-TestBasicPolicy-44327286', 'ctest-policy-allow-all-74984897'] 2024-11-03 20:13:43,084 - INFO - VN ctest-vn-62486797 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-03 20:13:43,084 - DEBUG - Verifying the vn in opserver 2024-11-03 20:13:43,084 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-62486797 virtual network link through opserver 10.0.0.34 2024-11-03 20:13:43,084 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-11-03 20:13:43,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-62486797', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-62486797?flat'} 2024-11-03 20:13:43,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-62486797 is found in opserver 2024-11-03 20:13:43,109 - DEBUG - Do not have enough data to verify VN in agent 2024-11-03 20:13:43,114 - DEBUG - VRF ids for VN ctest-vn-62486797: {} 2024-11-03 20:13:43,173 - DEBUG - Services list from nova: [, , ] 2024-11-03 20:13:44,439 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2189-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2189-1) 2024-11-03 20:13:46,031 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2189-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2189-1) 2024-11-03 20:13:46,031 - INFO - Waiting for VM ctest-TestBasicPolicy-44327286-25877338 to be up.. 2024-11-03 20:13:46,157 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-03 20:13:51,259 - DEBUG - VM is in ACTIVE state now 2024-11-03 20:13:51,259 - INFO - VM name : ctest-TestBasicPolicy-44327286-25877338 2024-11-03 20:13:51,369 - DEBUG - VM ctest-TestBasicPolicy-44327286-25877338 ID is ed146c85-724a-4337-96c3-d0b9e7464703 2024-11-03 20:13:51,389 - DEBUG - VM ctest-TestBasicPolicy-44327286-25877338 launched on Node cn-jenkins-deploy-platform-ansible-os-2189-1 2024-11-03 20:13:51,482 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/ed146c85-724a-4337-96c3-d0b9e7464703 2024-11-03 20:13:51,503 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/a1a1170f-8c41-4016-9e36-a3de8222b606 2024-11-03 20:13:54,794 - 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 1029ms') 2024-11-03 20:13:54,795 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-44327286-25877338 failed! 2024-11-03 20:13:54,862 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-44327286:ctest-vn-09992360 is 160.65.63.129 and allocation pool is NOT set 2024-11-03 20:13:56,932 - 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=7.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.63 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.634/4.358/7.082/2.724 ms') 2024-11-03 20:13:56,932 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-44327286-25877338 passed 2024-11-03 20:13:57,106 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 20:13:57,106 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44327286-25877338, IP 160.65.63.131, Port 22 2024-11-03 20:13:57,276 - DEBUG - VM ctest-TestBasicPolicy-44327286-25877338 is ready for SSH connections 2024-11-03 20:13:57,276 - INFO - Waiting for VM ctest-TestBasicPolicy-44327286-64318085 to be up.. 2024-11-03 20:13:57,383 - DEBUG - VM is in ACTIVE state now 2024-11-03 20:13:57,383 - INFO - VM name : ctest-TestBasicPolicy-44327286-64318085 2024-11-03 20:13:57,475 - DEBUG - VM ctest-TestBasicPolicy-44327286-64318085 ID is 56e972a5-b05b-4159-bc39-c9f73f1616b5 2024-11-03 20:13:57,475 - DEBUG - VM ctest-TestBasicPolicy-44327286-64318085 launched on Node cn-jenkins-deploy-platform-ansible-os-2189-1 2024-11-03 20:13:57,583 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/56e972a5-b05b-4159-bc39-c9f73f1616b5 2024-11-03 20:13:57,595 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/6211d584-9916-446b-8c5e-8ed6d7a7189b 2024-11-03 20:13:58,865 - 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=5.45 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.25 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.254/3.852/5.450/1.598 ms') 2024-11-03 20:13:58,865 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-44327286-64318085 passed 2024-11-03 20:13:59,030 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 20:13:59,030 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44327286-64318085, IP 59.111.140.131, Port 22 2024-11-03 20:13:59,097 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-11-03 20:13:59,190 - DEBUG - VM ctest-TestBasicPolicy-44327286-64318085 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-03 20:14:04,190 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 20:14:04,190 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44327286-64318085, IP 59.111.140.131, Port 22 2024-11-03 20:14:04,346 - DEBUG - VM ctest-TestBasicPolicy-44327286-64318085 is ready for SSH connections 2024-11-03 20:14:04,346 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 20:14:04,346 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 59.111.140.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-11-03 20:14:04,346 - DEBUG - ping -s 56 -c 3 -W 1 59.111.140.131 2024-11-03 20:14:08,449 - DEBUG - PING 59.111.140.131 (59.111.140.131): 56 data bytes 64 bytes from 59.111.140.131: seq=0 ttl=63 time=3.925 ms 64 bytes from 59.111.140.131: seq=1 ttl=63 time=1.194 ms 64 bytes from 59.111.140.131: seq=2 ttl=63 time=0.844 ms --- 59.111.140.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.844/1.987/3.925 ms 2024-11-03 20:14:08,450 - INFO - Ping to IP 59.111.140.131 from VM ctest-TestBasicPolicy-44327286-25877338 passed 2024-11-03 20:14:08,654 - DEBUG - Policy Update Response {"network-policy": {"uuid": "30eb9f16-0147-466e-8323-b538996818df", "href": "http://10.0.0.34:8082/network-policy/30eb9f16-0147-466e-8323-b538996818df"}} 2024-11-03 20:14:08,654 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-03 20:14:08,654 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 59.111.140.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-11-03 20:14:08,654 - DEBUG - ping -s 56 -c 3 -W 1 59.111.140.131 2024-11-03 20:14:11,893 - DEBUG - PING 59.111.140.131 (59.111.140.131): 56 data bytes --- 59.111.140.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-03 20:14:11,893 - WARNING - Ping to IP 59.111.140.131 from VM ctest-TestBasicPolicy-44327286-25877338 failed 2024-11-03 20:14:11,894 - INFO - Deleting VM ctest-TestBasicPolicy-44327286-64318085 2024-11-03 20:14:11,982 - INFO - Deleting VM ctest-TestBasicPolicy-44327286-25877338 2024-11-03 20:14:12,465 - INFO - Deleted policy ctest-policy-allow-all-74984897 2024-11-03 20:14:12,465 - INFO - Deleting VN ctest-vn-62486797 2024-11-03 20:14:12,519 - DEBUG - VN 8bb22a80-f346-4fa6-b564-5231e88f3ce9 still in use: Unable to complete operation on network 8bb22a80-f346-4fa6-b564-5231e88f3ce9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-296598a9-9ef0-4a01-b86c-bc16ce96a7d6'] 2024-11-03 20:14:12,520 - WARNING - Deleting VN ctest-vn-62486797 failed..Will retry 2024-11-03 20:14:14,651 - DEBUG - Response for deleting network () 2024-11-03 20:14:14,651 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/40350592-978a-444c-be61-62a08e2a5a0d 2024-11-03 20:14:14,659 - DEBUG - Response Code: 404 2024-11-03 20:14:14,659 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-03 20:14:14,666 - DEBUG - Requesting: http://10.0.0.34:8082/domain/d5d79ce6-1888-4d79-8698-cb46f7b3524e 2024-11-03 20:14:14,725 - DEBUG - Requesting: http://10.0.0.34:8082/project/1e778f97-d1e7-4106-99bc-963d4134a6e0 2024-11-03 20:14:14,812 - INFO - Validated that VN ctest-vn-62486797 is not found in API Server 2024-11-03 20:14:14,827 - DEBUG - VN ctest-vn-62486797 is not present in Agent 10.0.0.34 2024-11-03 20:14:14,827 - INFO - Validated that VN ctest-vn-62486797 is not in any agent 2024-11-03 20:14:14,847 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-62486797 info 2024-11-03 20:14:14,847 - INFO - Deleting VN ctest-vn-09992360 2024-11-03 20:14:14,997 - DEBUG - Response for deleting network () 2024-11-03 20:14:14,998 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/35acbb28-a60f-4248-a409-40ee6f75c293 2024-11-03 20:14:15,004 - DEBUG - Response Code: 404 2024-11-03 20:14:15,004 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-03 20:14:15,011 - DEBUG - Requesting: http://10.0.0.34:8082/domain/d5d79ce6-1888-4d79-8698-cb46f7b3524e 2024-11-03 20:14:15,069 - DEBUG - Requesting: http://10.0.0.34:8082/project/1e778f97-d1e7-4106-99bc-963d4134a6e0 2024-11-03 20:14:15,160 - INFO - Validated that VN ctest-vn-09992360 is not found in API Server 2024-11-03 20:14:15,172 - DEBUG - VN ctest-vn-09992360 is not present in Agent 10.0.0.34 2024-11-03 20:14:15,172 - INFO - Validated that VN ctest-vn-09992360 is not in any agent 2024-11-03 20:14:15,191 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-09992360 info 2024-11-03 20:14:15,448 - DEBUG - No XMPP flaps were noticed during the test
2024-11-03 20:14:15,448 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-11-03 20:14:15,448 - INFO - -------------------------------------------------------------------------------- 2024-11-03 20:14:16,214 - INFO - Deleted project: ctest-TestBasicPolicy-44327286, ID : 1e778f97-d1e7-4106-99bc-963d4134a6e0