2024-09-05 19:20:26,829 - INFO - Domain Default found not creating 2024-09-05 19:20:27,254 - INFO - Project ctest-TestBasicPolicy-60786401 not found, creating it 2024-09-05 19:20:28,145 - INFO - Created Project:ctest-TestBasicPolicy-60786401, ID : ab2c3ae8-5c48-4712-a177-a30bfd1e1a7a 2024-09-05 19:20:30,585 - INFO - ================================================================================ 2024-09-05 19:20:30,585 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-05 19:20:30,585 - 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-09-05 19:20:30,900 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.8': '0'}} with 2024-09-05 19:20:30,900 - INFO - Initial checks done. Running the testcase now 2024-09-05 19:20:30,900 - INFO - 2024-09-05 19:20:31,807 - DEBUG - Response for create_network : {'network': {'id': '6531cdc0-66ff-4cd2-9795-b1b59e253300', 'name': 'ctest-vn-04977950', 'tenant_id': 'ab2c3ae85c484712a177a30bfd1e1a7a', 'project_id': 'ab2c3ae85c484712a177a30bfd1e1a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60786401', 'ctest-vn-04977950'], 'port_security_enabled': True, 'description': ''}} 2024-09-05 19:20:32,072 - DEBUG - Response for create_subnet : {'subnet': {'id': '4683b2b9-6361-46fe-b252-7433ee85b402', 'name': '', 'tenant_id': 'ab2c3ae85c484712a177a30bfd1e1a7a', 'network_id': '6531cdc0-66ff-4cd2-9795-b1b59e253300', 'ip_version': 4, 'cidr': '29.212.132.0/26', 'allocation_pools': [{'start': '29.212.132.2', 'end': '29.212.132.62'}], 'gateway_ip': '29.212.132.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.212.132.2', 'tags': [], 'project_id': 'ab2c3ae85c484712a177a30bfd1e1a7a'}} 2024-09-05 19:20:32,107 - INFO - Created VN ctest-vn-04977950 2024-09-05 19:20:32,174 - DEBUG - VN ctest-vn-04977950 UUID is 6531cdc0-66ff-4cd2-9795-b1b59e253300 2024-09-05 19:20:32,635 - DEBUG - Response for create_network : {'network': {'id': '94478603-1b0d-4b41-9c7d-c6d0dc2fb75a', 'name': 'ctest-vn-57825337', 'tenant_id': 'ab2c3ae85c484712a177a30bfd1e1a7a', 'project_id': 'ab2c3ae85c484712a177a30bfd1e1a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60786401', 'ctest-vn-57825337'], 'port_security_enabled': True, 'description': ''}} 2024-09-05 19:20:32,840 - DEBUG - Response for create_subnet : {'subnet': {'id': '15abbe92-22c1-447a-98b3-af190f8137fd', 'name': '', 'tenant_id': 'ab2c3ae85c484712a177a30bfd1e1a7a', 'network_id': '94478603-1b0d-4b41-9c7d-c6d0dc2fb75a', 'ip_version': 4, 'cidr': '6.142.64.192/26', 'allocation_pools': [{'start': '6.142.64.194', 'end': '6.142.64.254'}], 'gateway_ip': '6.142.64.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.142.64.194', 'tags': [], 'project_id': 'ab2c3ae85c484712a177a30bfd1e1a7a'}} 2024-09-05 19:20:32,867 - INFO - Created VN ctest-vn-57825337 2024-09-05 19:20:32,925 - DEBUG - VN ctest-vn-57825337 UUID is 94478603-1b0d-4b41-9c7d-c6d0dc2fb75a 2024-09-05 19:20:33,147 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60786401:ctest-vn-04977950, 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-60786401:ctest-vn-57825337, 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-09-05 19:20:33,655 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6531cdc0-66ff-4cd2-9795-b1b59e253300', 'name': 'ctest-vn-04977950', 'tenant_id': 'ab2c3ae85c484712a177a30bfd1e1a7a', 'project_id': 'ab2c3ae85c484712a177a30bfd1e1a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4683b2b9-6361-46fe-b252-7433ee85b402'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60786401', 'ctest-vn-04977950'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60786401', 'ctest-policy-allow-all-84308844']], 'subnet_ipam': [{'subnet_cidr': '29.212.132.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-05 19:20:34,110 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94478603-1b0d-4b41-9c7d-c6d0dc2fb75a', 'name': 'ctest-vn-57825337', 'tenant_id': 'ab2c3ae85c484712a177a30bfd1e1a7a', 'project_id': 'ab2c3ae85c484712a177a30bfd1e1a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['15abbe92-22c1-447a-98b3-af190f8137fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60786401', 'ctest-vn-57825337'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60786401', 'ctest-policy-allow-all-84308844']], 'subnet_ipam': [{'subnet_cidr': '6.142.64.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-05 19:20:34,314 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-05 19:20:34,638 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-05 19:20:34,716 - DEBUG - Requesting: http://10.0.0.22:8082/domain/007ae462-6489-4fa3-a288-75ec8d6b0d2b 2024-09-05 19:20:34,741 - DEBUG - Requesting: http://10.0.0.22:8082/project/ab2c3ae8-5c48-4712-a177-a30bfd1e1a7a 2024-09-05 19:20:34,846 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6531cdc0-66ff-4cd2-9795-b1b59e253300 2024-09-05 19:20:34,860 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6531cdc0-66ff-4cd2-9795-b1b59e253300 2024-09-05 19:20:34,870 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f543b7f-0d7a-4e2d-a02e-f8b1eea459ba 2024-09-05 19:20:34,878 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f543b7f-0d7a-4e2d-a02e-f8b1eea459ba 2024-09-05 19:20:34,892 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6f04692a-b95a-402e-91ae-94d5776a8ac6 2024-09-05 19:20:34,911 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-05 19:20:34,912 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6531cdc0-66ff-4cd2-9795-b1b59e253300 2024-09-05 19:20:34,928 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f543b7f-0d7a-4e2d-a02e-f8b1eea459ba 2024-09-05 19:20:34,959 - INFO - Verified VN network id 7 for VN 6531cdc0-66ff-4cd2-9795-b1b59e253300 2024-09-05 19:20:34,959 - INFO - Verifications in API Server for VN ctest-vn-04977950 passed 2024-09-05 19:20:34,960 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6531cdc0-66ff-4cd2-9795-b1b59e253300 2024-09-05 19:20:34,983 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f543b7f-0d7a-4e2d-a02e-f8b1eea459ba 2024-09-05 19:20:35,004 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f543b7f-0d7a-4e2d-a02e-f8b1eea459ba 2024-09-05 19:20:35,021 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6f04692a-b95a-402e-91ae-94d5776a8ac6 2024-09-05 19:20:35,052 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60786401:ctest-vn-04977950', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60786401', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7291835497934965970', 'uuid-lslong': '10922831864857441024'}, 'enable': 'true', 'created': '2024-09-05T19:20:31', 'last-modified': '2024-09-05T19:20:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.461464'} 2024-09-05 19:20:35,072 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-05 19:20:35,072 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04977950 passed 2024-09-05 19:20:35,073 - DEBUG - ====Verifying policy data for ctest-vn-04977950 in API_Server ====== 2024-09-05 19:20:35,073 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-05 19:20:35,088 - DEBUG - Requesting: http://10.0.0.22:8082/domain/007ae462-6489-4fa3-a288-75ec8d6b0d2b 2024-09-05 19:20:35,120 - DEBUG - Requesting: http://10.0.0.22:8082/project/ab2c3ae8-5c48-4712-a177-a30bfd1e1a7a 2024-09-05 19:20:35,246 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6531cdc0-66ff-4cd2-9795-b1b59e253300 2024-09-05 19:20:35,267 - DEBUG - ==>Verifying data for policy with id: 7bbf1401-fcba-43f6-a25c-81aa9492ae00, fqn: ['default-domain', 'ctest-TestBasicPolicy-60786401', 'ctest-policy-allow-all-84308844'] 2024-09-05 19:20:35,267 - INFO - VN ctest-vn-04977950 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-05 19:20:35,267 - DEBUG - Verifying the vn in opserver 2024-09-05 19:20:35,267 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60786401:ctest-vn-04977950 virtual network link through opserver 10.0.0.22 2024-09-05 19:20:35,268 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-09-05 19:20:35,610 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-09-05 19:20:35,719 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60786401:ctest-vn-04977950', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60786401:ctest-vn-04977950?flat'} 2024-09-05 19:20:35,720 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60786401:ctest-vn-04977950 is found in opserver 2024-09-05 19:20:35,756 - DEBUG - Do not have enough data to verify VN in agent 2024-09-05 19:20:35,772 - DEBUG - VRF ids for VN ctest-vn-04977950: {} 2024-09-05 19:20:35,772 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-05 19:20:35,793 - DEBUG - Requesting: http://10.0.0.22:8082/domain/007ae462-6489-4fa3-a288-75ec8d6b0d2b 2024-09-05 19:20:35,837 - DEBUG - Requesting: http://10.0.0.22:8082/project/ab2c3ae8-5c48-4712-a177-a30bfd1e1a7a 2024-09-05 19:20:35,928 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/94478603-1b0d-4b41-9c7d-c6d0dc2fb75a 2024-09-05 19:20:35,963 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/94478603-1b0d-4b41-9c7d-c6d0dc2fb75a 2024-09-05 19:20:35,991 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9caa4ac8-b999-4166-a56e-40008e52b054 2024-09-05 19:20:36,012 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9caa4ac8-b999-4166-a56e-40008e52b054 2024-09-05 19:20:36,036 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5de97a8e-1287-41c8-bc9a-6f25febd778a 2024-09-05 19:20:36,059 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-05 19:20:36,059 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/94478603-1b0d-4b41-9c7d-c6d0dc2fb75a 2024-09-05 19:20:36,087 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9caa4ac8-b999-4166-a56e-40008e52b054 2024-09-05 19:20:36,135 - INFO - Verified VN network id 8 for VN 94478603-1b0d-4b41-9c7d-c6d0dc2fb75a 2024-09-05 19:20:36,136 - INFO - Verifications in API Server for VN ctest-vn-57825337 passed 2024-09-05 19:20:36,136 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/94478603-1b0d-4b41-9c7d-c6d0dc2fb75a 2024-09-05 19:20:36,166 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9caa4ac8-b999-4166-a56e-40008e52b054 2024-09-05 19:20:36,192 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9caa4ac8-b999-4166-a56e-40008e52b054 2024-09-05 19:20:36,212 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5de97a8e-1287-41c8-bc9a-6f25febd778a 2024-09-05 19:20:36,253 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60786401:ctest-vn-57825337', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60786401', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10684655988856671041', 'uuid-lslong': '11276387642355201882'}, 'enable': 'true', 'created': '2024-09-05T19:20:32', 'last-modified': '2024-09-05T19:20:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.257851'} 2024-09-05 19:20:36,270 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-05 19:20:36,270 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57825337 passed 2024-09-05 19:20:36,271 - DEBUG - ====Verifying policy data for ctest-vn-57825337 in API_Server ====== 2024-09-05 19:20:36,271 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-05 19:20:36,290 - DEBUG - Requesting: http://10.0.0.22:8082/domain/007ae462-6489-4fa3-a288-75ec8d6b0d2b 2024-09-05 19:20:36,334 - DEBUG - Requesting: http://10.0.0.22:8082/project/ab2c3ae8-5c48-4712-a177-a30bfd1e1a7a 2024-09-05 19:20:36,455 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/94478603-1b0d-4b41-9c7d-c6d0dc2fb75a 2024-09-05 19:20:36,471 - DEBUG - ==>Verifying data for policy with id: 7bbf1401-fcba-43f6-a25c-81aa9492ae00, fqn: ['default-domain', 'ctest-TestBasicPolicy-60786401', 'ctest-policy-allow-all-84308844'] 2024-09-05 19:20:36,471 - INFO - VN ctest-vn-57825337 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-05 19:20:36,471 - DEBUG - Verifying the vn in opserver 2024-09-05 19:20:36,471 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60786401:ctest-vn-57825337 virtual network link through opserver 10.0.0.22 2024-09-05 19:20:36,471 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-09-05 19:20:36,496 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60786401:ctest-vn-57825337', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60786401:ctest-vn-57825337?flat'} 2024-09-05 19:20:36,496 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60786401:ctest-vn-57825337 is found in opserver 2024-09-05 19:20:36,528 - DEBUG - Do not have enough data to verify VN in agent 2024-09-05 19:20:36,544 - DEBUG - VRF ids for VN ctest-vn-57825337: {} 2024-09-05 19:20:36,710 - DEBUG - Services list from nova: [, , ] 2024-09-05 19:20:38,549 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1857-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1857-1) 2024-09-05 19:20:40,132 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1857-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1857-1) 2024-09-05 19:20:40,132 - INFO - Waiting for VM ctest-TestBasicPolicy-60786401-56291410 to be up.. 2024-09-05 19:20:40,249 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-05 19:20:45,395 - DEBUG - VM is in ACTIVE state now 2024-09-05 19:20:45,395 - INFO - VM name : ctest-TestBasicPolicy-60786401-56291410 2024-09-05 19:20:45,508 - DEBUG - VM ctest-TestBasicPolicy-60786401-56291410 ID is c0c6fa47-bd49-4d46-847e-02a0daad7cb6 2024-09-05 19:20:45,528 - DEBUG - VM ctest-TestBasicPolicy-60786401-56291410 launched on Node cn-jenkins-deploy-platform-ansible-os-1857-1 2024-09-05 19:20:45,667 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/c0c6fa47-bd49-4d46-847e-02a0daad7cb6 2024-09-05 19:20:45,689 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/820abac0-a1fa-4179-9a28-6670cffd268d 2024-09-05 19:20:49,018 - 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-09-05 19:20:49,019 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60786401-56291410 failed! 2024-09-05 19:20:49,073 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60786401:ctest-vn-04977950 is 29.212.132.1 and allocation pool is NOT set 2024-09-05 19:20:51,131 - 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=12.1 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.424 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.424/6.266/12.109/5.842 ms') 2024-09-05 19:20:51,131 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60786401-56291410 passed 2024-09-05 19:20:51,306 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 19:20:51,306 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60786401-56291410, IP 29.212.132.3, Port 22 2024-09-05 19:20:51,501 - DEBUG - VM ctest-TestBasicPolicy-60786401-56291410 is ready for SSH connections 2024-09-05 19:20:51,502 - INFO - Waiting for VM ctest-TestBasicPolicy-60786401-88405241 to be up.. 2024-09-05 19:20:51,676 - DEBUG - VM is in ACTIVE state now 2024-09-05 19:20:51,678 - INFO - VM name : ctest-TestBasicPolicy-60786401-88405241 2024-09-05 19:20:51,812 - DEBUG - VM ctest-TestBasicPolicy-60786401-88405241 ID is a81948e0-37a4-4d18-b94e-483281d583c7 2024-09-05 19:20:51,812 - DEBUG - VM ctest-TestBasicPolicy-60786401-88405241 launched on Node cn-jenkins-deploy-platform-ansible-os-1857-1 2024-09-05 19:20:51,936 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/a81948e0-37a4-4d18-b94e-483281d583c7 2024-09-05 19:20:51,947 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/2273f788-87c1-4d9b-82aa-1867e6703fcd 2024-09-05 19:20:53,248 - 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.85 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.30 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.298/4.076/5.854/1.778 ms') 2024-09-05 19:20:53,248 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-60786401-88405241 passed 2024-09-05 19:20:53,442 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 19:20:53,443 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60786401-88405241, IP 6.142.64.195, Port 22 2024-09-05 19:20:53,642 - DEBUG - VM ctest-TestBasicPolicy-60786401-88405241 is ready for SSH connections 2024-09-05 19:20:53,642 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 19:20:53,643 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 6.142.64.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-09-05 19:20:53,643 - DEBUG - ping -s 56 -c 3 -W 1 6.142.64.195 2024-09-05 19:20:58,302 - DEBUG - PING 6.142.64.195 (6.142.64.195): 56 data bytes 64 bytes from 6.142.64.195: seq=0 ttl=63 time=8.915 ms 64 bytes from 6.142.64.195: seq=1 ttl=63 time=1.458 ms 64 bytes from 6.142.64.195: seq=2 ttl=63 time=2.304 ms --- 6.142.64.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.458/4.225/8.915 ms 2024-09-05 19:20:58,303 - INFO - Ping to IP 6.142.64.195 from VM ctest-TestBasicPolicy-60786401-56291410 passed 2024-09-05 19:20:58,577 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7bbf1401-fcba-43f6-a25c-81aa9492ae00", "href": "http://10.0.0.22:8082/network-policy/7bbf1401-fcba-43f6-a25c-81aa9492ae00"}} 2024-09-05 19:20:58,578 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 19:20:58,578 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 6.142.64.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-09-05 19:20:58,578 - DEBUG - ping -s 56 -c 3 -W 1 6.142.64.195 2024-09-05 19:21:01,939 - DEBUG - PING 6.142.64.195 (6.142.64.195): 56 data bytes --- 6.142.64.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-05 19:21:01,939 - WARNING - Ping to IP 6.142.64.195 from VM ctest-TestBasicPolicy-60786401-56291410 failed 2024-09-05 19:21:01,940 - INFO - Deleting VM ctest-TestBasicPolicy-60786401-88405241 2024-09-05 19:21:02,074 - INFO - Deleting VM ctest-TestBasicPolicy-60786401-56291410 2024-09-05 19:21:02,574 - INFO - Deleted policy ctest-policy-allow-all-84308844 2024-09-05 19:21:02,574 - INFO - Deleting VN ctest-vn-57825337 2024-09-05 19:21:02,617 - DEBUG - VN 94478603-1b0d-4b41-9c7d-c6d0dc2fb75a still in use: Unable to complete operation on network 94478603-1b0d-4b41-9c7d-c6d0dc2fb75a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-362d69c4-5014-4538-ba07-8438767b785e'] 2024-09-05 19:21:02,617 - WARNING - Deleting VN ctest-vn-57825337 failed..Will retry 2024-09-05 19:21:04,875 - DEBUG - Response for deleting network () 2024-09-05 19:21:04,875 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9caa4ac8-b999-4166-a56e-40008e52b054 2024-09-05 19:21:04,886 - DEBUG - Response Code: 404 2024-09-05 19:21:04,886 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-05 19:21:04,895 - DEBUG - Requesting: http://10.0.0.22:8082/domain/007ae462-6489-4fa3-a288-75ec8d6b0d2b 2024-09-05 19:21:04,954 - DEBUG - Requesting: http://10.0.0.22:8082/project/ab2c3ae8-5c48-4712-a177-a30bfd1e1a7a 2024-09-05 19:21:05,031 - INFO - Validated that VN ctest-vn-57825337 is not found in API Server 2024-09-05 19:21:05,049 - DEBUG - VN ctest-vn-57825337 is not present in Agent 10.0.0.22 2024-09-05 19:21:05,049 - INFO - Validated that VN ctest-vn-57825337 is not in any agent 2024-09-05 19:21:05,071 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57825337 info 2024-09-05 19:21:05,072 - INFO - Deleting VN ctest-vn-04977950 2024-09-05 19:21:05,190 - DEBUG - Response for deleting network () 2024-09-05 19:21:05,190 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0f543b7f-0d7a-4e2d-a02e-f8b1eea459ba 2024-09-05 19:21:05,198 - DEBUG - Response Code: 404 2024-09-05 19:21:05,199 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-05 19:21:05,204 - DEBUG - Requesting: http://10.0.0.22:8082/domain/007ae462-6489-4fa3-a288-75ec8d6b0d2b 2024-09-05 19:21:05,261 - DEBUG - Requesting: http://10.0.0.22:8082/project/ab2c3ae8-5c48-4712-a177-a30bfd1e1a7a 2024-09-05 19:21:05,345 - INFO - Validated that VN ctest-vn-04977950 is not found in API Server 2024-09-05 19:21:05,361 - DEBUG - VN ctest-vn-04977950 is not present in Agent 10.0.0.22 2024-09-05 19:21:05,361 - INFO - Validated that VN ctest-vn-04977950 is not in any agent 2024-09-05 19:21:05,382 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04977950 info 2024-09-05 19:21:05,656 - DEBUG - No XMPP flaps were noticed during the test 2024-09-05 19:21:05,656 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2024-09-05 19:21:05,656 - INFO - -------------------------------------------------------------------------------- 2024-09-05 19:21:06,413 - INFO - Deleted project: ctest-TestBasicPolicy-60786401, ID : ab2c3ae8-5c48-4712-a177-a30bfd1e1a7a