2024-08-30 14:51:28,383 - INFO - Domain Default found not creating 2024-08-30 14:51:28,602 - INFO - Project ctest-TestBasicPolicy-27896850 not found, creating it 2024-08-30 14:51:29,286 - INFO - Created Project:ctest-TestBasicPolicy-27896850, ID : 2bf1a81b-16bd-4d36-b97d-9911bf57fd22 2024-08-30 14:51:30,847 - INFO - ================================================================================ 2024-08-30 14:51:30,847 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-30 14:51:30,847 - 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-08-30 14:51:31,112 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.5': '0'}} with 2024-08-30 14:51:31,112 - INFO - Initial checks done. Running the testcase now 2024-08-30 14:51:31,112 - INFO - 2024-08-30 14:51:31,693 - DEBUG - Response for create_network : {'network': {'id': '830df2f3-69ec-429f-b10a-cd63d027bac0', 'name': 'ctest-vn-17382581', 'tenant_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'project_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-vn-17382581'], 'port_security_enabled': True, 'description': ''}} 2024-08-30 14:51:31,882 - DEBUG - Response for create_subnet : {'subnet': {'id': '5638d02a-cdd8-4cd7-895c-e6f74d94b0d4', 'name': '', 'tenant_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'network_id': '830df2f3-69ec-429f-b10a-cd63d027bac0', 'ip_version': 4, 'cidr': '150.97.127.128/26', 'allocation_pools': [{'start': '150.97.127.130', 'end': '150.97.127.190'}], 'gateway_ip': '150.97.127.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.97.127.130', 'tags': [], 'project_id': '2bf1a81b16bd4d36b97d9911bf57fd22'}} 2024-08-30 14:51:31,905 - INFO - Created VN ctest-vn-17382581 2024-08-30 14:51:31,957 - DEBUG - VN ctest-vn-17382581 UUID is 830df2f3-69ec-429f-b10a-cd63d027bac0 2024-08-30 14:51:32,252 - DEBUG - Response for create_network : {'network': {'id': 'aecc66d8-846d-474b-8948-105508ee2420', 'name': 'ctest-vn-01975228', 'tenant_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'project_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-vn-01975228'], 'port_security_enabled': True, 'description': ''}} 2024-08-30 14:51:32,428 - DEBUG - Response for create_subnet : {'subnet': {'id': '33162c98-3432-4521-a2eb-3cb882faa709', 'name': '', 'tenant_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'network_id': 'aecc66d8-846d-474b-8948-105508ee2420', 'ip_version': 4, 'cidr': '142.65.156.64/26', 'allocation_pools': [{'start': '142.65.156.66', 'end': '142.65.156.126'}], 'gateway_ip': '142.65.156.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.65.156.66', 'tags': [], 'project_id': '2bf1a81b16bd4d36b97d9911bf57fd22'}} 2024-08-30 14:51:32,452 - INFO - Created VN ctest-vn-01975228 2024-08-30 14:51:32,505 - DEBUG - VN ctest-vn-01975228 UUID is aecc66d8-846d-474b-8948-105508ee2420 2024-08-30 14:51:32,621 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581, 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-27896850:ctest-vn-01975228, 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-08-30 14:51:32,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '830df2f3-69ec-429f-b10a-cd63d027bac0', 'name': 'ctest-vn-17382581', 'tenant_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'project_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5638d02a-cdd8-4cd7-895c-e6f74d94b0d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-vn-17382581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-policy-allow-all-93753087']], 'subnet_ipam': [{'subnet_cidr': '150.97.127.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-30 14:51:33,236 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aecc66d8-846d-474b-8948-105508ee2420', 'name': 'ctest-vn-01975228', 'tenant_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'project_id': '2bf1a81b16bd4d36b97d9911bf57fd22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33162c98-3432-4521-a2eb-3cb882faa709'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-vn-01975228'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-policy-allow-all-93753087']], 'subnet_ipam': [{'subnet_cidr': '142.65.156.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-30 14:51:33,405 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-30 14:51:33,709 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-30 14:51:33,747 - DEBUG - Requesting: http://10.0.0.17:8082/domain/cfe7febe-275c-4b00-983f-59ad0804bc20 2024-08-30 14:51:33,763 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bf1a81b-16bd-4d36-b97d-9911bf57fd22 2024-08-30 14:51:33,834 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/830df2f3-69ec-429f-b10a-cd63d027bac0 2024-08-30 14:51:33,850 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/830df2f3-69ec-429f-b10a-cd63d027bac0 2024-08-30 14:51:33,859 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a35f735d-c9a4-46b1-9199-411c8e0fb4a8 2024-08-30 14:51:33,867 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a35f735d-c9a4-46b1-9199-411c8e0fb4a8 2024-08-30 14:51:33,875 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/1c87becb-9145-4a9e-87e1-6585a0d73695 2024-08-30 14:51:33,883 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-30 14:51:33,883 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/830df2f3-69ec-429f-b10a-cd63d027bac0 2024-08-30 14:51:33,892 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a35f735d-c9a4-46b1-9199-411c8e0fb4a8 2024-08-30 14:51:33,906 - INFO - Verified VN network id 8 for VN 830df2f3-69ec-429f-b10a-cd63d027bac0 2024-08-30 14:51:33,906 - INFO - Verifications in API Server for VN ctest-vn-17382581 passed 2024-08-30 14:51:33,906 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/830df2f3-69ec-429f-b10a-cd63d027bac0 2024-08-30 14:51:33,917 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a35f735d-c9a4-46b1-9199-411c8e0fb4a8 2024-08-30 14:51:33,925 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a35f735d-c9a4-46b1-9199-411c8e0fb4a8 2024-08-30 14:51:33,932 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/1c87becb-9145-4a9e-87e1-6585a0d73695 2024-08-30 14:51:33,946 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27896850', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9443471120933864095', 'uuid-lslong': '12757234723058072256'}, 'enable': 'true', 'created': '2024-08-30T14:51:31', 'last-modified': '2024-08-30T14:51:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030887'} 2024-08-30 14:51:33,952 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-30 14:51:33,953 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17382581 passed 2024-08-30 14:51:33,953 - DEBUG - ====Verifying policy data for ctest-vn-17382581 in API_Server ====== 2024-08-30 14:51:33,953 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-30 14:51:33,960 - DEBUG - Requesting: http://10.0.0.17:8082/domain/cfe7febe-275c-4b00-983f-59ad0804bc20 2024-08-30 14:51:33,973 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bf1a81b-16bd-4d36-b97d-9911bf57fd22 2024-08-30 14:51:34,044 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/830df2f3-69ec-429f-b10a-cd63d027bac0 2024-08-30 14:51:34,055 - DEBUG - ==>Verifying data for policy with id: 09231218-11ce-4609-bab6-5c3c25287f06, fqn: ['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-policy-allow-all-93753087'] 2024-08-30 14:51:34,055 - INFO - VN ctest-vn-17382581 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-30 14:51:34,055 - DEBUG - Verifying the vn in opserver 2024-08-30 14:51:34,055 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581 virtual network link through opserver 10.0.0.17 2024-08-30 14:51:34,055 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-08-30 14:51:34,366 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-08-30 14:51:34,440 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581?flat'} 2024-08-30 14:51:34,440 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581 is found in opserver 2024-08-30 14:51:34,451 - DEBUG - Do not have enough data to verify VN in agent 2024-08-30 14:51:34,457 - DEBUG - VRF ids for VN ctest-vn-17382581: {} 2024-08-30 14:51:34,457 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-30 14:51:34,464 - DEBUG - Requesting: http://10.0.0.17:8082/domain/cfe7febe-275c-4b00-983f-59ad0804bc20 2024-08-30 14:51:34,478 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bf1a81b-16bd-4d36-b97d-9911bf57fd22 2024-08-30 14:51:34,550 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/aecc66d8-846d-474b-8948-105508ee2420 2024-08-30 14:51:34,561 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/aecc66d8-846d-474b-8948-105508ee2420 2024-08-30 14:51:34,569 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a22f364a-89a6-4e03-860d-4a256ffbd29a 2024-08-30 14:51:34,577 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a22f364a-89a6-4e03-860d-4a256ffbd29a 2024-08-30 14:51:34,586 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/c7226460-af66-429d-a398-e77e88804dd9 2024-08-30 14:51:34,593 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-30 14:51:34,593 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/aecc66d8-846d-474b-8948-105508ee2420 2024-08-30 14:51:34,602 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a22f364a-89a6-4e03-860d-4a256ffbd29a 2024-08-30 14:51:34,625 - INFO - Verified VN network id 9 for VN aecc66d8-846d-474b-8948-105508ee2420 2024-08-30 14:51:34,625 - INFO - Verifications in API Server for VN ctest-vn-01975228 passed 2024-08-30 14:51:34,625 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/aecc66d8-846d-474b-8948-105508ee2420 2024-08-30 14:51:34,636 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a22f364a-89a6-4e03-860d-4a256ffbd29a 2024-08-30 14:51:34,644 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a22f364a-89a6-4e03-860d-4a256ffbd29a 2024-08-30 14:51:34,652 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/c7226460-af66-429d-a398-e77e88804dd9 2024-08-30 14:51:34,666 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-01975228', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27896850', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12595555337969157963', 'uuid-lslong': '9892174538927383584'}, 'enable': 'true', 'created': '2024-08-30T14:51:32', 'last-modified': '2024-08-30T14:51:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.463055'} 2024-08-30 14:51:34,673 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-30 14:51:34,673 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01975228 passed 2024-08-30 14:51:34,673 - DEBUG - ====Verifying policy data for ctest-vn-01975228 in API_Server ====== 2024-08-30 14:51:34,673 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-30 14:51:34,680 - DEBUG - Requesting: http://10.0.0.17:8082/domain/cfe7febe-275c-4b00-983f-59ad0804bc20 2024-08-30 14:51:34,692 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bf1a81b-16bd-4d36-b97d-9911bf57fd22 2024-08-30 14:51:34,763 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/aecc66d8-846d-474b-8948-105508ee2420 2024-08-30 14:51:34,772 - DEBUG - ==>Verifying data for policy with id: 09231218-11ce-4609-bab6-5c3c25287f06, fqn: ['default-domain', 'ctest-TestBasicPolicy-27896850', 'ctest-policy-allow-all-93753087'] 2024-08-30 14:51:34,773 - INFO - VN ctest-vn-01975228 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-30 14:51:34,773 - DEBUG - Verifying the vn in opserver 2024-08-30 14:51:34,773 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-01975228 virtual network link through opserver 10.0.0.17 2024-08-30 14:51:34,773 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-08-30 14:51:34,785 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-01975228', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-01975228?flat'} 2024-08-30 14:51:34,785 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-01975228 is found in opserver 2024-08-30 14:51:34,796 - DEBUG - Do not have enough data to verify VN in agent 2024-08-30 14:51:34,802 - DEBUG - VRF ids for VN ctest-vn-01975228: {} 2024-08-30 14:51:34,867 - DEBUG - Services list from nova: [, , ] 2024-08-30 14:51:35,989 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1824-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1824-1) 2024-08-30 14:51:37,322 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1824-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1824-1) 2024-08-30 14:51:37,322 - INFO - Waiting for VM ctest-TestBasicPolicy-27896850-32526730 to be up.. 2024-08-30 14:51:37,414 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-30 14:51:42,498 - DEBUG - VM is in ACTIVE state now 2024-08-30 14:51:42,498 - INFO - VM name : ctest-TestBasicPolicy-27896850-32526730 2024-08-30 14:51:42,581 - DEBUG - VM ctest-TestBasicPolicy-27896850-32526730 ID is c3fc6cf5-9124-40ed-8f70-e625df487e8d 2024-08-30 14:51:42,603 - DEBUG - VM ctest-TestBasicPolicy-27896850-32526730 launched on Node cn-jenkins-deploy-platform-ansible-os-1824-1 2024-08-30 14:51:42,696 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/c3fc6cf5-9124-40ed-8f70-e625df487e8d 2024-08-30 14:51:42,706 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/db116e92-b5a0-4d9d-842a-ce4495c3a655 2024-08-30 14:51:45,976 - 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 1027ms') 2024-08-30 14:51:45,976 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27896850-32526730 failed! 2024-08-30 14:51:46,037 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27896850:ctest-vn-17382581 is 150.97.127.129 and allocation pool is NOT set 2024-08-30 14:51:48,096 - 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.45 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.377 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 = 0.377/4.414/8.452/4.037 ms') 2024-08-30 14:51:48,096 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27896850-32526730 passed 2024-08-30 14:51:48,249 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 14:51:48,249 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27896850-32526730, IP 150.97.127.131, Port 22 2024-08-30 14:51:48,414 - DEBUG - VM ctest-TestBasicPolicy-27896850-32526730 is ready for SSH connections 2024-08-30 14:51:48,414 - INFO - Waiting for VM ctest-TestBasicPolicy-27896850-81943597 to be up.. 2024-08-30 14:51:48,533 - DEBUG - VM is in ACTIVE state now 2024-08-30 14:51:48,534 - INFO - VM name : ctest-TestBasicPolicy-27896850-81943597 2024-08-30 14:51:48,639 - DEBUG - VM ctest-TestBasicPolicy-27896850-81943597 ID is 9b45a8f5-7fbc-4aaf-a534-9a0de9ba4915 2024-08-30 14:51:48,639 - DEBUG - VM ctest-TestBasicPolicy-27896850-81943597 launched on Node cn-jenkins-deploy-platform-ansible-os-1824-1 2024-08-30 14:51:48,735 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/9b45a8f5-7fbc-4aaf-a534-9a0de9ba4915 2024-08-30 14:51:48,745 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/96b77b72-83d2-484c-828a-9883f02e008b 2024-08-30 14:51:50,001 - 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=4.55 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.15 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 = 2.154/3.354/4.554/1.200 ms') 2024-08-30 14:51:50,001 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-27896850-81943597 passed 2024-08-30 14:51:50,149 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 14:51:50,149 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27896850-81943597, IP 142.65.156.67, Port 22 2024-08-30 14:51:50,316 - DEBUG - VM ctest-TestBasicPolicy-27896850-81943597 is ready for SSH connections 2024-08-30 14:51:50,316 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 14:51:50,316 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 142.65.156.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-08-30 14:51:50,316 - DEBUG - ping -s 56 -c 3 -W 1 142.65.156.67 2024-08-30 14:51:54,321 - DEBUG - PING 142.65.156.67 (142.65.156.67): 56 data bytes 64 bytes from 142.65.156.67: seq=0 ttl=63 time=4.227 ms 64 bytes from 142.65.156.67: seq=1 ttl=63 time=1.056 ms 64 bytes from 142.65.156.67: seq=2 ttl=63 time=0.804 ms --- 142.65.156.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.804/2.029/4.227 ms 2024-08-30 14:51:54,321 - INFO - Ping to IP 142.65.156.67 from VM ctest-TestBasicPolicy-27896850-32526730 passed 2024-08-30 14:51:54,496 - DEBUG - Policy Update Response {"network-policy": {"uuid": "09231218-11ce-4609-bab6-5c3c25287f06", "href": "http://10.0.0.17:8082/network-policy/09231218-11ce-4609-bab6-5c3c25287f06"}} 2024-08-30 14:51:54,497 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 14:51:54,497 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 142.65.156.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-08-30 14:51:54,497 - DEBUG - ping -s 56 -c 3 -W 1 142.65.156.67 2024-08-30 14:51:57,708 - DEBUG - PING 142.65.156.67 (142.65.156.67): 56 data bytes 64 bytes from 142.65.156.67: seq=0 ttl=63 time=1.271 ms --- 142.65.156.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.271/1.271/1.271 ms 2024-08-30 14:51:57,708 - WARNING - Ping to IP 142.65.156.67 from VM ctest-TestBasicPolicy-27896850-32526730 failed 2024-08-30 14:51:57,708 - INFO - Deleting VM ctest-TestBasicPolicy-27896850-81943597 2024-08-30 14:51:57,786 - INFO - Deleting VM ctest-TestBasicPolicy-27896850-32526730 2024-08-30 14:51:58,264 - INFO - Deleted policy ctest-policy-allow-all-93753087 2024-08-30 14:51:58,264 - INFO - Deleting VN ctest-vn-01975228 2024-08-30 14:51:58,320 - DEBUG - VN aecc66d8-846d-474b-8948-105508ee2420 still in use: Unable to complete operation on network aecc66d8-846d-474b-8948-105508ee2420. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-87ad3655-d9c6-4666-84dc-a4466b105b8c'] 2024-08-30 14:51:58,321 - WARNING - Deleting VN ctest-vn-01975228 failed..Will retry 2024-08-30 14:52:00,441 - DEBUG - Response for deleting network () 2024-08-30 14:52:00,442 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a22f364a-89a6-4e03-860d-4a256ffbd29a 2024-08-30 14:52:00,450 - DEBUG - Response Code: 404 2024-08-30 14:52:00,450 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-30 14:52:00,456 - DEBUG - Requesting: http://10.0.0.17:8082/domain/cfe7febe-275c-4b00-983f-59ad0804bc20 2024-08-30 14:52:00,514 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bf1a81b-16bd-4d36-b97d-9911bf57fd22 2024-08-30 14:52:00,584 - INFO - Validated that VN ctest-vn-01975228 is not found in API Server 2024-08-30 14:52:00,596 - DEBUG - VN ctest-vn-01975228 is not present in Agent 10.0.0.17 2024-08-30 14:52:00,596 - INFO - Validated that VN ctest-vn-01975228 is not in any agent 2024-08-30 14:52:00,613 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01975228 info 2024-08-30 14:52:00,613 - INFO - Deleting VN ctest-vn-17382581 2024-08-30 14:52:00,724 - DEBUG - Response for deleting network () 2024-08-30 14:52:00,724 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/a35f735d-c9a4-46b1-9199-411c8e0fb4a8 2024-08-30 14:52:00,731 - DEBUG - Response Code: 404 2024-08-30 14:52:00,732 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-30 14:52:00,741 - DEBUG - Requesting: http://10.0.0.17:8082/domain/cfe7febe-275c-4b00-983f-59ad0804bc20 2024-08-30 14:52:00,799 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bf1a81b-16bd-4d36-b97d-9911bf57fd22 2024-08-30 14:52:00,870 - INFO - Validated that VN ctest-vn-17382581 is not found in API Server 2024-08-30 14:52:00,881 - DEBUG - VN ctest-vn-17382581 is not present in Agent 10.0.0.17 2024-08-30 14:52:00,881 - INFO - Validated that VN ctest-vn-17382581 is not in any agent 2024-08-30 14:52:00,898 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17382581 info 2024-08-30 14:52:01,159 - DEBUG - No XMPP flaps were noticed during the test 2024-08-30 14:52:01,159 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-08-30 14:52:01,159 - INFO - -------------------------------------------------------------------------------- 2024-08-30 14:52:01,894 - INFO - Deleted project: ctest-TestBasicPolicy-27896850, ID : 2bf1a81b-16bd-4d36-b97d-9911bf57fd22