2024-11-07 09:25:29,318 - INFO - Domain Default found not creating 2024-11-07 09:25:29,492 - INFO - Project ctest-TestBasicPolicy-82181151 not found, creating it 2024-11-07 09:25:29,973 - INFO - Created Project:ctest-TestBasicPolicy-82181151, ID : c10dd580-7b3d-459a-b9fb-be0b5599dda2 2024-11-07 09:25:32,183 - INFO - ================================================================================ 2024-11-07 09:25:32,183 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-07 09:25:32,184 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-11-07 09:25:32,440 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.8': '0'}} with 2024-11-07 09:25:32,441 - INFO - Initial checks done. Running the testcase now 2024-11-07 09:25:32,441 - INFO - 2024-11-07 09:25:33,027 - DEBUG - Response for create_network : {'network': {'id': 'e1f06c74-6260-4ed7-9e4a-e3a39a2de73a', 'name': 'ctest-vn-88495179', 'tenant_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'project_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-vn-88495179'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 09:25:33,204 - DEBUG - Response for create_subnet : {'subnet': {'id': '746d16be-b6df-4c9e-981e-563f9f0431f2', 'name': '', 'tenant_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'network_id': 'e1f06c74-6260-4ed7-9e4a-e3a39a2de73a', 'ip_version': 4, 'cidr': '213.133.145.0/26', 'allocation_pools': [{'start': '213.133.145.2', 'end': '213.133.145.62'}], 'gateway_ip': '213.133.145.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.133.145.2', 'tags': [], 'project_id': 'c10dd5807b3d459ab9fbbe0b5599dda2'}} 2024-11-07 09:25:33,227 - INFO - Created VN ctest-vn-88495179 2024-11-07 09:25:33,283 - DEBUG - VN ctest-vn-88495179 UUID is e1f06c74-6260-4ed7-9e4a-e3a39a2de73a 2024-11-07 09:25:33,634 - DEBUG - Response for create_network : {'network': {'id': 'b559fd15-5a0d-4f88-8030-7bb17987ea11', 'name': 'ctest-vn-71471204', 'tenant_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'project_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-vn-71471204'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 09:25:33,852 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b65f79c7-d45d-48a4-9561-478244010475', 'name': '', 'tenant_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'network_id': 'b559fd15-5a0d-4f88-8030-7bb17987ea11', 'ip_version': 4, 'cidr': '197.181.236.64/26', 'allocation_pools': [{'start': '197.181.236.66', 'end': '197.181.236.126'}], 'gateway_ip': '197.181.236.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.181.236.66', 'tags': [], 'project_id': 'c10dd5807b3d459ab9fbbe0b5599dda2'}} 2024-11-07 09:25:33,874 - INFO - Created VN ctest-vn-71471204 2024-11-07 09:25:33,931 - DEBUG - VN ctest-vn-71471204 UUID is b559fd15-5a0d-4f88-8030-7bb17987ea11 2024-11-07 09:25:34,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179, 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-82181151:ctest-vn-71471204, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-11-07 09:25:34,397 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1f06c74-6260-4ed7-9e4a-e3a39a2de73a', 'name': 'ctest-vn-88495179', 'tenant_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'project_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['746d16be-b6df-4c9e-981e-563f9f0431f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-vn-88495179'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-policy-allow-all-97368774']], 'subnet_ipam': [{'subnet_cidr': '213.133.145.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 09:25:34,659 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b559fd15-5a0d-4f88-8030-7bb17987ea11', 'name': 'ctest-vn-71471204', 'tenant_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'project_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b65f79c7-d45d-48a4-9561-478244010475'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-vn-71471204'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-policy-allow-all-97368774']], 'subnet_ipam': [{'subnet_cidr': '197.181.236.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 09:25:34,814 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 09:25:35,117 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 09:25:35,147 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b217daf3-e5e1-4464-8241-3a02dff0f5b5 2024-11-07 09:25:35,165 - DEBUG - Requesting: http://10.0.0.22:8082/project/c10dd580-7b3d-459a-b9fb-be0b5599dda2 2024-11-07 09:25:35,250 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e1f06c74-6260-4ed7-9e4a-e3a39a2de73a 2024-11-07 09:25:35,266 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e1f06c74-6260-4ed7-9e4a-e3a39a2de73a 2024-11-07 09:25:35,279 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ae901a82-4f7c-476e-b899-2f31d8ca152f 2024-11-07 09:25:35,288 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ae901a82-4f7c-476e-b899-2f31d8ca152f 2024-11-07 09:25:35,297 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a417e495-d497-4cdb-bc64-da0b199e8fb6 2024-11-07 09:25:35,304 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 09:25:35,305 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e1f06c74-6260-4ed7-9e4a-e3a39a2de73a 2024-11-07 09:25:35,320 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ae901a82-4f7c-476e-b899-2f31d8ca152f 2024-11-07 09:25:35,342 - INFO - Verified VN network id 8 for VN e1f06c74-6260-4ed7-9e4a-e3a39a2de73a 2024-11-07 09:25:35,342 - INFO - Verifications in API Server for VN ctest-vn-88495179 passed 2024-11-07 09:25:35,342 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e1f06c74-6260-4ed7-9e4a-e3a39a2de73a 2024-11-07 09:25:35,356 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ae901a82-4f7c-476e-b899-2f31d8ca152f 2024-11-07 09:25:35,366 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ae901a82-4f7c-476e-b899-2f31d8ca152f 2024-11-07 09:25:35,375 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a417e495-d497-4cdb-bc64-da0b199e8fb6 2024-11-07 09:25:35,388 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82181151', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16280631900066827991', 'uuid-lslong': '11406179298075076410'}, 'enable': 'true', 'created': '2024-11-07T09:25:32', 'last-modified': '2024-11-07T09:25:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014632'} 2024-11-07 09:25:35,395 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 09:25:35,395 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88495179 passed 2024-11-07 09:25:35,396 - DEBUG - ====Verifying policy data for ctest-vn-88495179 in API_Server ====== 2024-11-07 09:25:35,396 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 09:25:35,402 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b217daf3-e5e1-4464-8241-3a02dff0f5b5 2024-11-07 09:25:35,415 - DEBUG - Requesting: http://10.0.0.22:8082/project/c10dd580-7b3d-459a-b9fb-be0b5599dda2 2024-11-07 09:25:35,498 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e1f06c74-6260-4ed7-9e4a-e3a39a2de73a 2024-11-07 09:25:35,514 - DEBUG - ==>Verifying data for policy with id: 7768477c-d71b-49b8-9774-0e5195a5df40, fqn: ['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-policy-allow-all-97368774'] 2024-11-07 09:25:35,514 - INFO - VN ctest-vn-88495179 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 09:25:35,514 - DEBUG - Verifying the vn in opserver 2024-11-07 09:25:35,514 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179 virtual network link through opserver 10.0.0.22 2024-11-07 09:25:35,514 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-11-07 09:25:35,815 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-11-07 09:25:35,884 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179?flat'} 2024-11-07 09:25:35,884 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179 is found in opserver 2024-11-07 09:25:35,894 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 09:25:35,899 - DEBUG - VRF ids for VN ctest-vn-88495179: {} 2024-11-07 09:25:35,899 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 09:25:35,908 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b217daf3-e5e1-4464-8241-3a02dff0f5b5 2024-11-07 09:25:35,921 - DEBUG - Requesting: http://10.0.0.22:8082/project/c10dd580-7b3d-459a-b9fb-be0b5599dda2 2024-11-07 09:25:36,001 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b559fd15-5a0d-4f88-8030-7bb17987ea11 2024-11-07 09:25:36,017 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b559fd15-5a0d-4f88-8030-7bb17987ea11 2024-11-07 09:25:36,030 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bbe46a53-0e36-4f6f-ae30-665181eb93c3 2024-11-07 09:25:36,040 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bbe46a53-0e36-4f6f-ae30-665181eb93c3 2024-11-07 09:25:36,049 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0e7fef2d-ed63-40fa-88c0-db0c4e092710 2024-11-07 09:25:36,057 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 09:25:36,057 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b559fd15-5a0d-4f88-8030-7bb17987ea11 2024-11-07 09:25:36,072 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bbe46a53-0e36-4f6f-ae30-665181eb93c3 2024-11-07 09:25:36,096 - INFO - Verified VN network id 9 for VN b559fd15-5a0d-4f88-8030-7bb17987ea11 2024-11-07 09:25:36,096 - INFO - Verifications in API Server for VN ctest-vn-71471204 passed 2024-11-07 09:25:36,097 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b559fd15-5a0d-4f88-8030-7bb17987ea11 2024-11-07 09:25:36,110 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bbe46a53-0e36-4f6f-ae30-665181eb93c3 2024-11-07 09:25:36,119 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bbe46a53-0e36-4f6f-ae30-665181eb93c3 2024-11-07 09:25:36,131 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0e7fef2d-ed63-40fa-88c0-db0c4e092710 2024-11-07 09:25:36,144 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-71471204', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82181151', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13067754061939167112', 'uuid-lslong': '9237018837915265553'}, 'enable': 'true', 'created': '2024-11-07T09:25:33', 'last-modified': '2024-11-07T09:25:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.510368'} 2024-11-07 09:25:36,150 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 09:25:36,150 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71471204 passed 2024-11-07 09:25:36,150 - DEBUG - ====Verifying policy data for ctest-vn-71471204 in API_Server ====== 2024-11-07 09:25:36,150 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 09:25:36,156 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b217daf3-e5e1-4464-8241-3a02dff0f5b5 2024-11-07 09:25:36,168 - DEBUG - Requesting: http://10.0.0.22:8082/project/c10dd580-7b3d-459a-b9fb-be0b5599dda2 2024-11-07 09:25:36,247 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b559fd15-5a0d-4f88-8030-7bb17987ea11 2024-11-07 09:25:36,261 - DEBUG - ==>Verifying data for policy with id: 7768477c-d71b-49b8-9774-0e5195a5df40, fqn: ['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-policy-allow-all-97368774'] 2024-11-07 09:25:36,261 - INFO - VN ctest-vn-71471204 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 09:25:36,261 - DEBUG - Verifying the vn in opserver 2024-11-07 09:25:36,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-71471204 virtual network link through opserver 10.0.0.22 2024-11-07 09:25:36,261 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-11-07 09:25:36,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-71471204', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-71471204?flat'} 2024-11-07 09:25:36,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-71471204 is found in opserver 2024-11-07 09:25:36,284 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 09:25:36,288 - DEBUG - VRF ids for VN ctest-vn-71471204: {} 2024-11-07 09:25:36,343 - DEBUG - Services list from nova: [, , ] 2024-11-07 09:25:37,510 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2215-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2215-1) 2024-11-07 09:25:38,704 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2215-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2215-1) 2024-11-07 09:25:38,704 - INFO - Waiting for VM ctest-TestBasicPolicy-82181151-20132666 to be up.. 2024-11-07 09:25:38,799 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 09:25:43,901 - DEBUG - VM is in ACTIVE state now 2024-11-07 09:25:43,902 - INFO - VM name : ctest-TestBasicPolicy-82181151-20132666 2024-11-07 09:25:44,032 - DEBUG - VM ctest-TestBasicPolicy-82181151-20132666 ID is b354a253-7486-4307-b054-24cc933f48cc 2024-11-07 09:25:44,055 - DEBUG - VM ctest-TestBasicPolicy-82181151-20132666 launched on Node cn-jenkins-deploy-platform-ansible-os-2215-1 2024-11-07 09:25:44,159 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/b354a253-7486-4307-b054-24cc933f48cc 2024-11-07 09:25:44,169 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/e7fef7bf-dc0d-4d20-a785-58b61d53ba35 2024-11-07 09:25:47,441 - 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 1023ms') 2024-11-07 09:25:47,441 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82181151-20132666 failed! 2024-11-07 09:25:47,507 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179 is 213.133.145.1 and allocation pool is NOT set 2024-11-07 09:25:49,570 - 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=128 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.400 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.400/64.427/128.455/64.027 ms') 2024-11-07 09:25:49,570 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82181151-20132666 passed 2024-11-07 09:25:49,734 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 09:25:49,735 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82181151-20132666, IP 213.133.145.3, Port 22 2024-11-07 09:25:49,902 - DEBUG - VM ctest-TestBasicPolicy-82181151-20132666 is ready for SSH connections 2024-11-07 09:25:49,902 - INFO - Waiting for VM ctest-TestBasicPolicy-82181151-26352024 to be up.. 2024-11-07 09:25:49,989 - DEBUG - VM is in ACTIVE state now 2024-11-07 09:25:49,989 - INFO - VM name : ctest-TestBasicPolicy-82181151-26352024 2024-11-07 09:25:50,077 - DEBUG - VM ctest-TestBasicPolicy-82181151-26352024 ID is e9ca906e-0004-4e83-b6cf-d4e1138c3de4 2024-11-07 09:25:50,078 - DEBUG - VM ctest-TestBasicPolicy-82181151-26352024 launched on Node cn-jenkins-deploy-platform-ansible-os-2215-1 2024-11-07 09:25:50,159 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/e9ca906e-0004-4e83-b6cf-d4e1138c3de4 2024-11-07 09:25:50,169 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/b1109846-c172-45dc-8f5a-baa6accc2095 2024-11-07 09:25:51,423 - 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.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.406 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.406/1.767/3.129/1.361 ms') 2024-11-07 09:25:51,423 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-82181151-26352024 passed 2024-11-07 09:25:51,586 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 09:25:51,587 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82181151-26352024, IP 197.181.236.67, Port 22 2024-11-07 09:25:51,757 - DEBUG - VM ctest-TestBasicPolicy-82181151-26352024 is ready for SSH connections 2024-11-07 09:25:51,757 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 09:25:51,757 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 197.181.236.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-11-07 09:25:51,757 - DEBUG - ping -s 56 -c 3 -W 1 197.181.236.67 2024-11-07 09:25:55,772 - DEBUG - PING 197.181.236.67 (197.181.236.67): 56 data bytes 64 bytes from 197.181.236.67: seq=0 ttl=63 time=3.481 ms 64 bytes from 197.181.236.67: seq=1 ttl=63 time=0.911 ms 64 bytes from 197.181.236.67: seq=2 ttl=63 time=0.745 ms --- 197.181.236.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.745/1.712/3.481 ms 2024-11-07 09:25:55,772 - INFO - Ping to IP 197.181.236.67 from VM ctest-TestBasicPolicy-82181151-20132666 passed 2024-11-07 09:25:55,998 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7768477c-d71b-49b8-9774-0e5195a5df40", "href": "http://10.0.0.22:8082/network-policy/7768477c-d71b-49b8-9774-0e5195a5df40"}} 2024-11-07 09:25:55,998 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 09:25:55,998 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 197.181.236.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-11-07 09:25:55,999 - DEBUG - ping -s 56 -c 3 -W 1 197.181.236.67 2024-11-07 09:25:59,208 - DEBUG - PING 197.181.236.67 (197.181.236.67): 56 data bytes --- 197.181.236.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-07 09:25:59,208 - WARNING - Ping to IP 197.181.236.67 from VM ctest-TestBasicPolicy-82181151-20132666 failed 2024-11-07 09:25:59,208 - INFO - Deleting VM ctest-TestBasicPolicy-82181151-26352024 2024-11-07 09:25:59,280 - INFO - Deleting VM ctest-TestBasicPolicy-82181151-20132666 2024-11-07 09:25:59,733 - INFO - Deleted policy ctest-policy-allow-all-97368774 2024-11-07 09:25:59,734 - INFO - Deleting VN ctest-vn-71471204 2024-11-07 09:25:59,780 - DEBUG - VN b559fd15-5a0d-4f88-8030-7bb17987ea11 still in use: Unable to complete operation on network b559fd15-5a0d-4f88-8030-7bb17987ea11. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-36dd79a4-e6a4-4429-b210-bf9c6a586541'] 2024-11-07 09:25:59,780 - WARNING - Deleting VN ctest-vn-71471204 failed..Will retry 2024-11-07 09:26:01,890 - DEBUG - Response for deleting network () 2024-11-07 09:26:01,890 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bbe46a53-0e36-4f6f-ae30-665181eb93c3 2024-11-07 09:26:01,895 - DEBUG - Response Code: 404 2024-11-07 09:26:01,895 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 09:26:01,907 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b217daf3-e5e1-4464-8241-3a02dff0f5b5 2024-11-07 09:26:01,961 - DEBUG - Requesting: http://10.0.0.22:8082/project/c10dd580-7b3d-459a-b9fb-be0b5599dda2 2024-11-07 09:26:02,039 - INFO - Validated that VN ctest-vn-71471204 is not found in API Server 2024-11-07 09:26:02,050 - DEBUG - VN ctest-vn-71471204 is not present in Agent 10.0.0.22 2024-11-07 09:26:02,050 - INFO - Validated that VN ctest-vn-71471204 is not in any agent 2024-11-07 09:26:02,066 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71471204 info 2024-11-07 09:26:02,066 - INFO - Deleting VN ctest-vn-88495179 2024-11-07 09:26:02,195 - DEBUG - Response for deleting network () 2024-11-07 09:26:02,195 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ae901a82-4f7c-476e-b899-2f31d8ca152f 2024-11-07 09:26:02,200 - DEBUG - Response Code: 404 2024-11-07 09:26:02,201 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-11-07 09:26:02,207 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b217daf3-e5e1-4464-8241-3a02dff0f5b5 2024-11-07 09:26:02,270 - DEBUG - Requesting: http://10.0.0.22:8082/project/c10dd580-7b3d-459a-b9fb-be0b5599dda2 2024-11-07 09:26:02,357 - INFO - Validated that VN ctest-vn-88495179 is not found in API Server 2024-11-07 09:26:02,368 - DEBUG - VN ctest-vn-88495179 is not present in Agent 10.0.0.22 2024-11-07 09:26:02,368 - INFO - Validated that VN ctest-vn-88495179 is not in any agent 2024-11-07 09:26:02,383 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-88495179 info 2024-11-07 09:26:02,643 - DEBUG - No XMPP flaps were noticed during the test
2024-11-07 09:26:02,644 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-11-07 09:26:02,644 - INFO - -------------------------------------------------------------------------------- 2024-11-07 09:26:03,373 - INFO - Deleted project: ctest-TestBasicPolicy-82181151, ID : c10dd580-7b3d-459a-b9fb-be0b5599dda2