2025-01-05 13:49:45,986 - INFO - Domain Default found not creating 2025-01-05 13:49:46,165 - INFO - Project ctest-TestBasicPolicy-65436887 not found, creating it 2025-01-05 13:49:46,858 - INFO - Created Project:ctest-TestBasicPolicy-65436887, ID : b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8 2025-01-05 13:49:48,222 - INFO - ================================================================================ 2025-01-05 13:49:48,222 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-05 13:49:48,222 - 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-01-05 13:49:48,478 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.5': '0'}} with 2025-01-05 13:49:48,478 - INFO - Initial checks done. Running the testcase now 2025-01-05 13:49:48,479 - INFO - 2025-01-05 13:49:49,037 - DEBUG - Response for create_network : {'network': {'id': 'f71088d6-07c0-464e-8a49-db49ce2725b3', 'name': 'ctest-vn-45527245', 'tenant_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'project_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-vn-45527245'], 'port_security_enabled': True, 'description': ''}} 2025-01-05 13:49:49,227 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6c23062-44e5-4951-91ff-bf7c603c4c4a', 'name': '', 'tenant_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'network_id': 'f71088d6-07c0-464e-8a49-db49ce2725b3', 'ip_version': 4, 'cidr': '131.250.9.128/26', 'allocation_pools': [{'start': '131.250.9.130', 'end': '131.250.9.190'}], 'gateway_ip': '131.250.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.250.9.130', 'tags': [], 'project_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8'}} 2025-01-05 13:49:49,243 - INFO - Created VN ctest-vn-45527245 2025-01-05 13:49:49,297 - DEBUG - VN ctest-vn-45527245 UUID is f71088d6-07c0-464e-8a49-db49ce2725b3 2025-01-05 13:49:49,583 - DEBUG - Response for create_network : {'network': {'id': '862d5bb7-a1a4-4849-819f-9dd35bd116a5', 'name': 'ctest-vn-44327915', 'tenant_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'project_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-vn-44327915'], 'port_security_enabled': True, 'description': ''}} 2025-01-05 13:49:49,724 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f12148b-50ef-4558-b9a1-b3f583dc2dc5', 'name': '', 'tenant_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'network_id': '862d5bb7-a1a4-4849-819f-9dd35bd116a5', 'ip_version': 4, 'cidr': '118.189.121.0/26', 'allocation_pools': [{'start': '118.189.121.2', 'end': '118.189.121.62'}], 'gateway_ip': '118.189.121.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.189.121.2', 'tags': [], 'project_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8'}} 2025-01-05 13:49:49,741 - INFO - Created VN ctest-vn-44327915 2025-01-05 13:49:49,793 - DEBUG - VN ctest-vn-44327915 UUID is 862d5bb7-a1a4-4849-819f-9dd35bd116a5 2025-01-05 13:49:49,941 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245, 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-65436887:ctest-vn-44327915, 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-01-05 13:49:50,261 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f71088d6-07c0-464e-8a49-db49ce2725b3', 'name': 'ctest-vn-45527245', 'tenant_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'project_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6c23062-44e5-4951-91ff-bf7c603c4c4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-vn-45527245'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-policy-allow-all-81283075']], 'subnet_ipam': [{'subnet_cidr': '131.250.9.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-05 13:49:50,562 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '862d5bb7-a1a4-4849-819f-9dd35bd116a5', 'name': 'ctest-vn-44327915', 'tenant_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'project_id': 'b34c19d38f7d4b3ab7f3f9ec285daea8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f12148b-50ef-4558-b9a1-b3f583dc2dc5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-vn-44327915'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-policy-allow-all-81283075']], 'subnet_ipam': [{'subnet_cidr': '118.189.121.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-05 13:49:50,717 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-05 13:49:51,011 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-05 13:49:51,037 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6642df56-a8b9-45df-a925-1b1824378616 2025-01-05 13:49:51,050 - DEBUG - Requesting: http://10.0.0.42:8082/project/b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8 2025-01-05 13:49:51,119 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f71088d6-07c0-464e-8a49-db49ce2725b3 2025-01-05 13:49:51,131 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f71088d6-07c0-464e-8a49-db49ce2725b3 2025-01-05 13:49:51,142 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c613b664-0ddf-4ce3-ae7e-9ed3711a5bdf 2025-01-05 13:49:51,149 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c613b664-0ddf-4ce3-ae7e-9ed3711a5bdf 2025-01-05 13:49:51,156 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/7e32ef58-1062-4584-815d-b5e97c8af793 2025-01-05 13:49:51,162 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-05 13:49:51,162 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f71088d6-07c0-464e-8a49-db49ce2725b3 2025-01-05 13:49:51,171 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c613b664-0ddf-4ce3-ae7e-9ed3711a5bdf 2025-01-05 13:49:51,183 - INFO - Verified VN network id 8 for VN f71088d6-07c0-464e-8a49-db49ce2725b3 2025-01-05 13:49:51,183 - INFO - Verifications in API Server for VN ctest-vn-45527245 passed 2025-01-05 13:49:51,183 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f71088d6-07c0-464e-8a49-db49ce2725b3 2025-01-05 13:49:51,193 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c613b664-0ddf-4ce3-ae7e-9ed3711a5bdf 2025-01-05 13:49:51,202 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c613b664-0ddf-4ce3-ae7e-9ed3711a5bdf 2025-01-05 13:49:51,211 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/7e32ef58-1062-4584-815d-b5e97c8af793 2025-01-05 13:49:51,226 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65436887', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17802879779829990990', 'uuid-lslong': '9964736760571700659'}, 'enable': 'true', 'created': '2025-01-05T13:49:49', 'last-modified': '2025-01-05T13:49:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999508'} 2025-01-05 13:49:51,232 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-05 13:49:51,232 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45527245 passed 2025-01-05 13:49:51,232 - DEBUG - ====Verifying policy data for ctest-vn-45527245 in API_Server ====== 2025-01-05 13:49:51,232 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-05 13:49:51,237 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6642df56-a8b9-45df-a925-1b1824378616 2025-01-05 13:49:51,248 - DEBUG - Requesting: http://10.0.0.42:8082/project/b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8 2025-01-05 13:49:51,322 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f71088d6-07c0-464e-8a49-db49ce2725b3 2025-01-05 13:49:51,331 - DEBUG - ==>Verifying data for policy with id: 4e6f4eb0-29b0-405c-b76f-543d76a93e5b, fqn: ['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-policy-allow-all-81283075'] 2025-01-05 13:49:51,331 - INFO - VN ctest-vn-45527245 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-05 13:49:51,331 - DEBUG - Verifying the vn in opserver 2025-01-05 13:49:51,331 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245 virtual network link through opserver 10.0.0.42 2025-01-05 13:49:51,331 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-01-05 13:49:51,623 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-01-05 13:49:51,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245?flat'} 2025-01-05 13:49:51,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245 is found in opserver 2025-01-05 13:49:51,691 - DEBUG - Do not have enough data to verify VN in agent 2025-01-05 13:49:51,696 - DEBUG - VRF ids for VN ctest-vn-45527245: {} 2025-01-05 13:49:51,696 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-05 13:49:51,701 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6642df56-a8b9-45df-a925-1b1824378616 2025-01-05 13:49:51,713 - DEBUG - Requesting: http://10.0.0.42:8082/project/b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8 2025-01-05 13:49:51,784 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/862d5bb7-a1a4-4849-819f-9dd35bd116a5 2025-01-05 13:49:51,797 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/862d5bb7-a1a4-4849-819f-9dd35bd116a5 2025-01-05 13:49:51,808 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9b622fa-f694-44bd-b39b-af799990fdb1 2025-01-05 13:49:51,817 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9b622fa-f694-44bd-b39b-af799990fdb1 2025-01-05 13:49:51,824 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/bb74565e-8b8d-4ccf-b2bf-0ddff3c9c0ba 2025-01-05 13:49:51,832 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-05 13:49:51,832 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/862d5bb7-a1a4-4849-819f-9dd35bd116a5 2025-01-05 13:49:51,842 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9b622fa-f694-44bd-b39b-af799990fdb1 2025-01-05 13:49:51,858 - INFO - Verified VN network id 9 for VN 862d5bb7-a1a4-4849-819f-9dd35bd116a5 2025-01-05 13:49:51,858 - INFO - Verifications in API Server for VN ctest-vn-44327915 passed 2025-01-05 13:49:51,858 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/862d5bb7-a1a4-4849-819f-9dd35bd116a5 2025-01-05 13:49:51,868 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9b622fa-f694-44bd-b39b-af799990fdb1 2025-01-05 13:49:51,876 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9b622fa-f694-44bd-b39b-af799990fdb1 2025-01-05 13:49:51,883 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/bb74565e-8b8d-4ccf-b2bf-0ddff3c9c0ba 2025-01-05 13:49:51,895 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-44327915', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65436887', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9668484819283363913', 'uuid-lslong': '9340357683293787813'}, 'enable': 'true', 'created': '2025-01-05T13:49:49', 'last-modified': '2025-01-05T13:49:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.418403'} 2025-01-05 13:49:51,901 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-05 13:49:51,901 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44327915 passed 2025-01-05 13:49:51,902 - DEBUG - ====Verifying policy data for ctest-vn-44327915 in API_Server ====== 2025-01-05 13:49:51,902 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-05 13:49:51,908 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6642df56-a8b9-45df-a925-1b1824378616 2025-01-05 13:49:51,920 - DEBUG - Requesting: http://10.0.0.42:8082/project/b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8 2025-01-05 13:49:51,996 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/862d5bb7-a1a4-4849-819f-9dd35bd116a5 2025-01-05 13:49:52,006 - DEBUG - ==>Verifying data for policy with id: 4e6f4eb0-29b0-405c-b76f-543d76a93e5b, fqn: ['default-domain', 'ctest-TestBasicPolicy-65436887', 'ctest-policy-allow-all-81283075'] 2025-01-05 13:49:52,006 - INFO - VN ctest-vn-44327915 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-05 13:49:52,006 - DEBUG - Verifying the vn in opserver 2025-01-05 13:49:52,006 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-44327915 virtual network link through opserver 10.0.0.42 2025-01-05 13:49:52,006 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-01-05 13:49:52,016 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-44327915', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-44327915?flat'} 2025-01-05 13:49:52,016 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-44327915 is found in opserver 2025-01-05 13:49:52,026 - DEBUG - Do not have enough data to verify VN in agent 2025-01-05 13:49:52,030 - DEBUG - VRF ids for VN ctest-vn-44327915: {} 2025-01-05 13:49:52,084 - DEBUG - Services list from nova: [, , ] 2025-01-05 13:49:53,055 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2535-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2535-1) 2025-01-05 13:49:54,253 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2535-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2535-1) 2025-01-05 13:49:54,253 - INFO - Waiting for VM ctest-TestBasicPolicy-65436887-39911616 to be up.. 2025-01-05 13:49:54,342 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-05 13:49:59,420 - DEBUG - VM is in ACTIVE state now 2025-01-05 13:49:59,420 - INFO - VM name : ctest-TestBasicPolicy-65436887-39911616 2025-01-05 13:49:59,494 - DEBUG - VM ctest-TestBasicPolicy-65436887-39911616 ID is 6bcabe7b-d6b4-41a2-aa50-30acd668f53c 2025-01-05 13:49:59,514 - DEBUG - VM ctest-TestBasicPolicy-65436887-39911616 launched on Node cn-jenkins-deploy-platform-ansible-os-2535-1 2025-01-05 13:49:59,607 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/6bcabe7b-d6b4-41a2-aa50-30acd668f53c 2025-01-05 13:49:59,620 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/5be805f6-e0e8-4bb5-9c28-07330e9a6f5e 2025-01-05 13:50:02,880 - 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 1009ms') 2025-01-05 13:50:02,880 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-65436887-39911616 failed! 2025-01-05 13:50:02,937 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-65436887:ctest-vn-45527245 is 131.250.9.129 and allocation pool is NOT set 2025-01-05 13:50:04,993 - 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=3.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.490 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.490/1.784/3.078/1.294 ms') 2025-01-05 13:50:04,993 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-65436887-39911616 passed 2025-01-05 13:50:05,145 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-05 13:50:05,145 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-65436887-39911616, IP 131.250.9.131, Port 22 2025-01-05 13:50:05,297 - DEBUG - VM ctest-TestBasicPolicy-65436887-39911616 is ready for SSH connections 2025-01-05 13:50:05,297 - INFO - Waiting for VM ctest-TestBasicPolicy-65436887-47922496 to be up.. 2025-01-05 13:50:05,378 - DEBUG - VM is in ACTIVE state now 2025-01-05 13:50:05,378 - INFO - VM name : ctest-TestBasicPolicy-65436887-47922496 2025-01-05 13:50:05,448 - DEBUG - VM ctest-TestBasicPolicy-65436887-47922496 ID is 70a408cc-2cb3-449d-95d2-889d0c6273f6 2025-01-05 13:50:05,448 - DEBUG - VM ctest-TestBasicPolicy-65436887-47922496 launched on Node cn-jenkins-deploy-platform-ansible-os-2535-1 2025-01-05 13:50:05,519 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/70a408cc-2cb3-449d-95d2-889d0c6273f6 2025-01-05 13:50:05,529 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/a367efb9-7f9a-48e4-86a3-f4aa87b67de7 2025-01-05 13:50:06,774 - 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.50 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.352 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.352/1.424/2.497/1.072 ms') 2025-01-05 13:50:06,774 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-65436887-47922496 passed 2025-01-05 13:50:06,921 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-05 13:50:06,921 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-65436887-47922496, IP 118.189.121.3, Port 22 2025-01-05 13:50:07,073 - DEBUG - VM ctest-TestBasicPolicy-65436887-47922496 is ready for SSH connections 2025-01-05 13:50:07,073 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-05 13:50:07,073 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 118.189.121.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-01-05 13:50:07,073 - DEBUG - ping -s 56 -c 3 -W 1 118.189.121.3 2025-01-05 13:50:10,745 - DEBUG - PING 118.189.121.3 (118.189.121.3): 56 data bytes 64 bytes from 118.189.121.3: seq=0 ttl=63 time=3.152 ms 64 bytes from 118.189.121.3: seq=1 ttl=63 time=0.866 ms 64 bytes from 118.189.121.3: seq=2 ttl=63 time=0.715 ms --- 118.189.121.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.715/1.577/3.152 ms 2025-01-05 13:50:10,745 - INFO - Ping to IP 118.189.121.3 from VM ctest-TestBasicPolicy-65436887-39911616 passed 2025-01-05 13:50:10,929 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4e6f4eb0-29b0-405c-b76f-543d76a93e5b", "href": "http://10.0.0.42:8082/network-policy/4e6f4eb0-29b0-405c-b76f-543d76a93e5b"}} 2025-01-05 13:50:10,929 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-05 13:50:10,929 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 118.189.121.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-01-05 13:50:10,929 - DEBUG - ping -s 56 -c 3 -W 1 118.189.121.3 2025-01-05 13:50:14,133 - DEBUG - PING 118.189.121.3 (118.189.121.3): 56 data bytes --- 118.189.121.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-01-05 13:50:14,133 - WARNING - Ping to IP 118.189.121.3 from VM ctest-TestBasicPolicy-65436887-39911616 failed 2025-01-05 13:50:14,133 - INFO - Deleting VM ctest-TestBasicPolicy-65436887-47922496 2025-01-05 13:50:14,208 - INFO - Deleting VM ctest-TestBasicPolicy-65436887-39911616 2025-01-05 13:50:14,577 - INFO - Deleted policy ctest-policy-allow-all-81283075 2025-01-05 13:50:14,577 - INFO - Deleting VN ctest-vn-44327915 2025-01-05 13:50:14,615 - DEBUG - VN 862d5bb7-a1a4-4849-819f-9dd35bd116a5 still in use: Unable to complete operation on network 862d5bb7-a1a4-4849-819f-9dd35bd116a5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-987e165a-c2c9-4ef0-bb5c-c9f7754c6001'] 2025-01-05 13:50:14,615 - WARNING - Deleting VN ctest-vn-44327915 failed..Will retry 2025-01-05 13:50:16,729 - DEBUG - Response for deleting network () 2025-01-05 13:50:16,729 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9b622fa-f694-44bd-b39b-af799990fdb1 2025-01-05 13:50:16,735 - DEBUG - Response Code: 404 2025-01-05 13:50:16,735 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-05 13:50:16,746 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6642df56-a8b9-45df-a925-1b1824378616 2025-01-05 13:50:16,805 - DEBUG - Requesting: http://10.0.0.42:8082/project/b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8 2025-01-05 13:50:16,947 - INFO - Validated that VN ctest-vn-44327915 is not found in API Server 2025-01-05 13:50:16,959 - DEBUG - VN ctest-vn-44327915 is not present in Agent 10.0.0.42 2025-01-05 13:50:16,959 - INFO - Validated that VN ctest-vn-44327915 is not in any agent 2025-01-05 13:50:16,974 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-44327915 info 2025-01-05 13:50:16,974 - INFO - Deleting VN ctest-vn-45527245 2025-01-05 13:50:17,072 - DEBUG - Response for deleting network () 2025-01-05 13:50:17,072 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c613b664-0ddf-4ce3-ae7e-9ed3711a5bdf 2025-01-05 13:50:17,078 - DEBUG - Response Code: 404 2025-01-05 13:50:17,078 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-05 13:50:17,085 - DEBUG - Requesting: http://10.0.0.42:8082/domain/6642df56-a8b9-45df-a925-1b1824378616 2025-01-05 13:50:17,138 - DEBUG - Requesting: http://10.0.0.42:8082/project/b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8 2025-01-05 13:50:17,206 - INFO - Validated that VN ctest-vn-45527245 is not found in API Server 2025-01-05 13:50:17,216 - DEBUG - VN ctest-vn-45527245 is not present in Agent 10.0.0.42 2025-01-05 13:50:17,216 - INFO - Validated that VN ctest-vn-45527245 is not in any agent 2025-01-05 13:50:17,230 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45527245 info 2025-01-05 13:50:17,488 - DEBUG - No XMPP flaps were noticed during the test 2025-01-05 13:50:17,488 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2025-01-05 13:50:17,488 - INFO - -------------------------------------------------------------------------------- 2025-01-05 13:50:18,176 - INFO - Deleted project: ctest-TestBasicPolicy-65436887, ID : b34c19d3-8f7d-4b3a-b7f3-f9ec285daea8