2024-10-22 19:25:16,316 - INFO - Domain Default found not creating 2024-10-22 19:25:16,498 - INFO - Project ctest-TestBasicPolicy-11006573 not found, creating it 2024-10-22 19:25:17,033 - INFO - Created Project:ctest-TestBasicPolicy-11006573, ID : c7ea8a13-d6e1-4ac4-80ca-00a05511102a 2024-10-22 19:25:18,692 - INFO - ================================================================================ 2024-10-22 19:25:18,692 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-22 19:25:18,693 - 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-10-22 19:25:18,949 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.7': '0'}} with 2024-10-22 19:25:18,949 - INFO - Initial checks done. Running the testcase now 2024-10-22 19:25:18,949 - INFO - 2024-10-22 19:25:19,580 - DEBUG - Response for create_network : {'network': {'id': 'eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0', 'name': 'ctest-vn-49643643', 'tenant_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'project_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-vn-49643643'], 'port_security_enabled': True, 'description': ''}} 2024-10-22 19:25:19,781 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4bcaa4d-68d7-4047-81fb-1a705a01b856', 'name': '', 'tenant_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'network_id': 'eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0', 'ip_version': 4, 'cidr': '30.208.185.64/26', 'allocation_pools': [{'start': '30.208.185.66', 'end': '30.208.185.126'}], 'gateway_ip': '30.208.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.208.185.66', 'tags': [], 'project_id': 'c7ea8a13d6e14ac480ca00a05511102a'}} 2024-10-22 19:25:19,801 - INFO - Created VN ctest-vn-49643643 2024-10-22 19:25:19,860 - DEBUG - VN ctest-vn-49643643 UUID is eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0 2024-10-22 19:25:20,223 - DEBUG - Response for create_network : {'network': {'id': '475dc663-9e9d-4af4-b5c0-f6b54fb3589e', 'name': 'ctest-vn-64484183', 'tenant_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'project_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-vn-64484183'], 'port_security_enabled': True, 'description': ''}} 2024-10-22 19:25:20,463 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2fbf096-abdd-457b-97b2-a7aa67a991dd', 'name': '', 'tenant_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'network_id': '475dc663-9e9d-4af4-b5c0-f6b54fb3589e', 'ip_version': 4, 'cidr': '33.179.97.128/26', 'allocation_pools': [{'start': '33.179.97.130', 'end': '33.179.97.190'}], 'gateway_ip': '33.179.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.179.97.130', 'tags': [], 'project_id': 'c7ea8a13d6e14ac480ca00a05511102a'}} 2024-10-22 19:25:20,485 - INFO - Created VN ctest-vn-64484183 2024-10-22 19:25:20,544 - DEBUG - VN ctest-vn-64484183 UUID is 475dc663-9e9d-4af4-b5c0-f6b54fb3589e 2024-10-22 19:25:20,676 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643, 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-11006573:ctest-vn-64484183, 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-10-22 19:25:21,035 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0', 'name': 'ctest-vn-49643643', 'tenant_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'project_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c4bcaa4d-68d7-4047-81fb-1a705a01b856'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-vn-49643643'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-policy-allow-all-25518951']], 'subnet_ipam': [{'subnet_cidr': '30.208.185.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-22 19:25:21,340 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '475dc663-9e9d-4af4-b5c0-f6b54fb3589e', 'name': 'ctest-vn-64484183', 'tenant_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'project_id': 'c7ea8a13d6e14ac480ca00a05511102a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2fbf096-abdd-457b-97b2-a7aa67a991dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-vn-64484183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-policy-allow-all-25518951']], 'subnet_ipam': [{'subnet_cidr': '33.179.97.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-22 19:25:21,500 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-10-22 19:25:21,812 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-10-22 19:25:21,850 - DEBUG - Requesting: http://10.0.0.36:8082/domain/48315f67-f7f5-43cd-86cd-f1d70d27ef79 2024-10-22 19:25:21,869 - DEBUG - Requesting: http://10.0.0.36:8082/project/c7ea8a13-d6e1-4ac4-80ca-00a05511102a 2024-10-22 19:25:21,965 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0 2024-10-22 19:25:21,982 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0 2024-10-22 19:25:21,999 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/83956df0-8a83-481f-ac82-c6188dba56f7 2024-10-22 19:25:22,011 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/83956df0-8a83-481f-ac82-c6188dba56f7 2024-10-22 19:25:22,023 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/9b4c0800-9348-40c7-8e40-9ea9de2a1f51 2024-10-22 19:25:22,035 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-22 19:25:22,035 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0 2024-10-22 19:25:22,054 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/83956df0-8a83-481f-ac82-c6188dba56f7 2024-10-22 19:25:22,080 - INFO - Verified VN network id 8 for VN eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0 2024-10-22 19:25:22,080 - INFO - Verifications in API Server for VN ctest-vn-49643643 passed 2024-10-22 19:25:22,080 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0 2024-10-22 19:25:22,096 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/83956df0-8a83-481f-ac82-c6188dba56f7 2024-10-22 19:25:22,107 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/83956df0-8a83-481f-ac82-c6188dba56f7 2024-10-22 19:25:22,118 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/9b4c0800-9348-40c7-8e40-9ea9de2a1f51 2024-10-22 19:25:22,135 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11006573', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16954392117261584975', 'uuid-lslong': '9288549713589113840'}, 'enable': 'true', 'created': '2024-10-22T19:25:19', 'last-modified': '2024-10-22T19:25:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.147605'} 2024-10-22 19:25:22,145 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-22 19:25:22,145 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49643643 passed 2024-10-22 19:25:22,145 - DEBUG - ====Verifying policy data for ctest-vn-49643643 in API_Server ====== 2024-10-22 19:25:22,145 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-10-22 19:25:22,153 - DEBUG - Requesting: http://10.0.0.36:8082/domain/48315f67-f7f5-43cd-86cd-f1d70d27ef79 2024-10-22 19:25:22,169 - DEBUG - Requesting: http://10.0.0.36:8082/project/c7ea8a13-d6e1-4ac4-80ca-00a05511102a 2024-10-22 19:25:22,265 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/eb4a19cd-6c0f-4a4f-80e7-8ec06d0913f0 2024-10-22 19:25:22,283 - DEBUG - ==>Verifying data for policy with id: a1826688-7b4f-4a6d-9699-f402a191c65c, fqn: ['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-policy-allow-all-25518951'] 2024-10-22 19:25:22,283 - INFO - VN ctest-vn-49643643 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-22 19:25:22,283 - DEBUG - Verifying the vn in opserver 2024-10-22 19:25:22,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643 virtual network link through opserver 10.0.0.36 2024-10-22 19:25:22,283 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-10-22 19:25:22,584 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-10-22 19:25:22,655 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643?flat'} 2024-10-22 19:25:22,656 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643 is found in opserver 2024-10-22 19:25:22,667 - DEBUG - Do not have enough data to verify VN in agent 2024-10-22 19:25:22,674 - DEBUG - VRF ids for VN ctest-vn-49643643: {} 2024-10-22 19:25:22,674 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-10-22 19:25:22,681 - DEBUG - Requesting: http://10.0.0.36:8082/domain/48315f67-f7f5-43cd-86cd-f1d70d27ef79 2024-10-22 19:25:22,698 - DEBUG - Requesting: http://10.0.0.36:8082/project/c7ea8a13-d6e1-4ac4-80ca-00a05511102a 2024-10-22 19:25:22,785 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/475dc663-9e9d-4af4-b5c0-f6b54fb3589e 2024-10-22 19:25:22,804 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/475dc663-9e9d-4af4-b5c0-f6b54fb3589e 2024-10-22 19:25:22,822 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/0313f2cd-0c3d-485d-9449-da2220d1a74f 2024-10-22 19:25:22,832 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/0313f2cd-0c3d-485d-9449-da2220d1a74f 2024-10-22 19:25:22,842 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/d84f1804-cd83-4fd4-a6d1-60aaa9776225 2024-10-22 19:25:22,851 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-22 19:25:22,851 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/475dc663-9e9d-4af4-b5c0-f6b54fb3589e 2024-10-22 19:25:22,866 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/0313f2cd-0c3d-485d-9449-da2220d1a74f 2024-10-22 19:25:22,888 - INFO - Verified VN network id 9 for VN 475dc663-9e9d-4af4-b5c0-f6b54fb3589e 2024-10-22 19:25:22,888 - INFO - Verifications in API Server for VN ctest-vn-64484183 passed 2024-10-22 19:25:22,888 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/475dc663-9e9d-4af4-b5c0-f6b54fb3589e 2024-10-22 19:25:22,905 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/0313f2cd-0c3d-485d-9449-da2220d1a74f 2024-10-22 19:25:22,915 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/0313f2cd-0c3d-485d-9449-da2220d1a74f 2024-10-22 19:25:22,925 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/d84f1804-cd83-4fd4-a6d1-60aaa9776225 2024-10-22 19:25:22,940 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-64484183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11006573', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5142484480692144884', 'uuid-lslong': '13096738974980069534'}, 'enable': 'true', 'created': '2024-10-22T19:25:20', 'last-modified': '2024-10-22T19:25:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.669646'} 2024-10-22 19:25:22,948 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-22 19:25:22,948 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64484183 passed 2024-10-22 19:25:22,949 - DEBUG - ====Verifying policy data for ctest-vn-64484183 in API_Server ====== 2024-10-22 19:25:22,949 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-10-22 19:25:22,955 - DEBUG - Requesting: http://10.0.0.36:8082/domain/48315f67-f7f5-43cd-86cd-f1d70d27ef79 2024-10-22 19:25:22,970 - DEBUG - Requesting: http://10.0.0.36:8082/project/c7ea8a13-d6e1-4ac4-80ca-00a05511102a 2024-10-22 19:25:23,063 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/475dc663-9e9d-4af4-b5c0-f6b54fb3589e 2024-10-22 19:25:23,081 - DEBUG - ==>Verifying data for policy with id: a1826688-7b4f-4a6d-9699-f402a191c65c, fqn: ['default-domain', 'ctest-TestBasicPolicy-11006573', 'ctest-policy-allow-all-25518951'] 2024-10-22 19:25:23,081 - INFO - VN ctest-vn-64484183 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-22 19:25:23,081 - DEBUG - Verifying the vn in opserver 2024-10-22 19:25:23,081 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-64484183 virtual network link through opserver 10.0.0.36 2024-10-22 19:25:23,081 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-10-22 19:25:23,094 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-64484183', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-64484183?flat'} 2024-10-22 19:25:23,094 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-64484183 is found in opserver 2024-10-22 19:25:23,109 - DEBUG - Do not have enough data to verify VN in agent 2024-10-22 19:25:23,117 - DEBUG - VRF ids for VN ctest-vn-64484183: {} 2024-10-22 19:25:23,181 - DEBUG - Services list from nova: [, , ] 2024-10-22 19:25:24,377 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2126-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2126-1) 2024-10-22 19:25:25,621 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2126-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2126-1) 2024-10-22 19:25:25,621 - INFO - Waiting for VM ctest-TestBasicPolicy-11006573-75995543 to be up.. 2024-10-22 19:25:25,712 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-22 19:25:30,814 - DEBUG - VM is in ACTIVE state now 2024-10-22 19:25:30,814 - INFO - VM name : ctest-TestBasicPolicy-11006573-75995543 2024-10-22 19:25:30,906 - DEBUG - VM ctest-TestBasicPolicy-11006573-75995543 ID is bbc6675f-0ada-4490-a842-72cbdfdcb427 2024-10-22 19:25:30,927 - DEBUG - VM ctest-TestBasicPolicy-11006573-75995543 launched on Node cn-jenkins-deploy-platform-ansible-os-2126-1 2024-10-22 19:25:31,032 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/bbc6675f-0ada-4490-a842-72cbdfdcb427 2024-10-22 19:25:31,042 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/233b3b4d-289e-4059-a30e-69241b967080 2024-10-22 19:25:34,266 - 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 1007ms') 2024-10-22 19:25:34,266 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11006573-75995543 failed! 2024-10-22 19:25:34,332 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11006573:ctest-vn-49643643 is 30.208.185.65 and allocation pool is NOT set 2024-10-22 19:25:36,388 - 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.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.29 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.288/4.208/7.128/2.920 ms') 2024-10-22 19:25:36,389 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11006573-75995543 passed 2024-10-22 19:25:36,552 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 19:25:36,552 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11006573-75995543, IP 30.208.185.67, Port 22 2024-10-22 19:25:36,718 - DEBUG - VM ctest-TestBasicPolicy-11006573-75995543 is ready for SSH connections 2024-10-22 19:25:36,718 - INFO - Waiting for VM ctest-TestBasicPolicy-11006573-01145289 to be up.. 2024-10-22 19:25:36,820 - DEBUG - VM is in ACTIVE state now 2024-10-22 19:25:36,820 - INFO - VM name : ctest-TestBasicPolicy-11006573-01145289 2024-10-22 19:25:36,909 - DEBUG - VM ctest-TestBasicPolicy-11006573-01145289 ID is 58d148e0-f905-413a-aaa2-cbe5b9335936 2024-10-22 19:25:36,909 - DEBUG - VM ctest-TestBasicPolicy-11006573-01145289 launched on Node cn-jenkins-deploy-platform-ansible-os-2126-1 2024-10-22 19:25:36,991 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/58d148e0-f905-413a-aaa2-cbe5b9335936 2024-10-22 19:25:37,003 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/1ea032a7-2e65-4017-bbb4-a877da897136 2024-10-22 19:25:38,261 - 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=3.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.636 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 = 0.636/1.861/3.086/1.225 ms') 2024-10-22 19:25:38,261 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-11006573-01145289 passed 2024-10-22 19:25:38,420 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 19:25:38,420 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11006573-01145289, IP 33.179.97.131, Port 22 2024-10-22 19:25:38,576 - DEBUG - VM ctest-TestBasicPolicy-11006573-01145289 is ready for SSH connections 2024-10-22 19:25:38,576 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 19:25:38,576 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 33.179.97.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-10-22 19:25:38,576 - DEBUG - ping -s 56 -c 3 -W 1 33.179.97.131 2024-10-22 19:25:42,656 - DEBUG - PING 33.179.97.131 (33.179.97.131): 56 data bytes 64 bytes from 33.179.97.131: seq=0 ttl=63 time=3.674 ms 64 bytes from 33.179.97.131: seq=1 ttl=63 time=1.075 ms 64 bytes from 33.179.97.131: seq=2 ttl=63 time=1.058 ms --- 33.179.97.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.058/1.935/3.674 ms 2024-10-22 19:25:42,656 - INFO - Ping to IP 33.179.97.131 from VM ctest-TestBasicPolicy-11006573-75995543 passed 2024-10-22 19:25:42,851 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a1826688-7b4f-4a6d-9699-f402a191c65c", "href": "http://10.0.0.36:8082/network-policy/a1826688-7b4f-4a6d-9699-f402a191c65c"}} 2024-10-22 19:25:42,852 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 19:25:42,852 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 33.179.97.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-10-22 19:25:42,852 - DEBUG - ping -s 56 -c 3 -W 1 33.179.97.131 2024-10-22 19:25:46,057 - DEBUG - PING 33.179.97.131 (33.179.97.131): 56 data bytes 64 bytes from 33.179.97.131: seq=0 ttl=63 time=1.678 ms --- 33.179.97.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.678/1.678/1.678 ms 2024-10-22 19:25:46,057 - WARNING - Ping to IP 33.179.97.131 from VM ctest-TestBasicPolicy-11006573-75995543 failed 2024-10-22 19:25:46,057 - INFO - Deleting VM ctest-TestBasicPolicy-11006573-01145289 2024-10-22 19:25:46,133 - INFO - Deleting VM ctest-TestBasicPolicy-11006573-75995543 2024-10-22 19:25:46,582 - INFO - Deleted policy ctest-policy-allow-all-25518951 2024-10-22 19:25:46,582 - INFO - Deleting VN ctest-vn-64484183 2024-10-22 19:25:46,635 - DEBUG - VN 475dc663-9e9d-4af4-b5c0-f6b54fb3589e still in use: Unable to complete operation on network 475dc663-9e9d-4af4-b5c0-f6b54fb3589e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f59a211a-af1b-41d4-a70c-43d71abbe350'] 2024-10-22 19:25:46,635 - WARNING - Deleting VN ctest-vn-64484183 failed..Will retry 2024-10-22 19:25:48,783 - DEBUG - Response for deleting network () 2024-10-22 19:25:48,783 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/0313f2cd-0c3d-485d-9449-da2220d1a74f 2024-10-22 19:25:48,792 - DEBUG - Response Code: 404 2024-10-22 19:25:48,792 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-10-22 19:25:48,799 - DEBUG - Requesting: http://10.0.0.36:8082/domain/48315f67-f7f5-43cd-86cd-f1d70d27ef79 2024-10-22 19:25:48,855 - DEBUG - Requesting: http://10.0.0.36:8082/project/c7ea8a13-d6e1-4ac4-80ca-00a05511102a 2024-10-22 19:25:48,941 - INFO - Validated that VN ctest-vn-64484183 is not found in API Server 2024-10-22 19:25:48,952 - DEBUG - VN ctest-vn-64484183 is not present in Agent 10.0.0.36 2024-10-22 19:25:48,953 - INFO - Validated that VN ctest-vn-64484183 is not in any agent 2024-10-22 19:25:48,970 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-64484183 info 2024-10-22 19:25:48,970 - INFO - Deleting VN ctest-vn-49643643 2024-10-22 19:25:49,104 - DEBUG - Response for deleting network () 2024-10-22 19:25:49,104 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/83956df0-8a83-481f-ac82-c6188dba56f7 2024-10-22 19:25:49,110 - DEBUG - Response Code: 404 2024-10-22 19:25:49,111 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-10-22 19:25:49,118 - DEBUG - Requesting: http://10.0.0.36:8082/domain/48315f67-f7f5-43cd-86cd-f1d70d27ef79 2024-10-22 19:25:49,175 - DEBUG - Requesting: http://10.0.0.36:8082/project/c7ea8a13-d6e1-4ac4-80ca-00a05511102a 2024-10-22 19:25:49,261 - INFO - Validated that VN ctest-vn-49643643 is not found in API Server 2024-10-22 19:25:49,275 - DEBUG - VN ctest-vn-49643643 is not present in Agent 10.0.0.36 2024-10-22 19:25:49,275 - INFO - Validated that VN ctest-vn-49643643 is not in any agent 2024-10-22 19:25:49,296 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-49643643 info 2024-10-22 19:25:49,559 - DEBUG - No XMPP flaps were noticed during the test 2024-10-22 19:25:49,559 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-10-22 19:25:49,559 - INFO - -------------------------------------------------------------------------------- 2024-10-22 19:25:50,299 - INFO - Deleted project: ctest-TestBasicPolicy-11006573, ID : c7ea8a13-d6e1-4ac4-80ca-00a05511102a