2024-11-10 19:30:19,623 - INFO - Domain Default found not creating 2024-11-10 19:30:19,784 - INFO - Project ctest-TestBasicPolicy-16575001 not found, creating it 2024-11-10 19:30:20,277 - INFO - Created Project:ctest-TestBasicPolicy-16575001, ID : 21084be0-8a72-4561-9061-3a2190611ccf 2024-11-10 19:30:21,879 - INFO - ================================================================================ 2024-11-10 19:30:21,879 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-10 19:30:21,879 - 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-10 19:30:22,139 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.10': '0'}} with 2024-11-10 19:30:22,139 - INFO - Initial checks done. Running the testcase now 2024-11-10 19:30:22,139 - INFO - 2024-11-10 19:30:22,753 - DEBUG - Response for create_network : {'network': {'id': 'eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad', 'name': 'ctest-vn-43150353', 'tenant_id': '21084be08a72456190613a2190611ccf', 'project_id': '21084be08a72456190613a2190611ccf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-vn-43150353'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 19:30:22,945 - DEBUG - Response for create_subnet : {'subnet': {'id': '38cb0d0d-d7aa-4711-8181-6aa6b8ca4de8', 'name': '', 'tenant_id': '21084be08a72456190613a2190611ccf', 'network_id': 'eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad', 'ip_version': 4, 'cidr': '197.49.36.0/26', 'allocation_pools': [{'start': '197.49.36.2', 'end': '197.49.36.62'}], 'gateway_ip': '197.49.36.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.49.36.2', 'tags': [], 'project_id': '21084be08a72456190613a2190611ccf'}} 2024-11-10 19:30:22,965 - INFO - Created VN ctest-vn-43150353 2024-11-10 19:30:23,021 - DEBUG - VN ctest-vn-43150353 UUID is eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad 2024-11-10 19:30:23,385 - DEBUG - Response for create_network : {'network': {'id': 'aa39258c-a10c-4bd6-b0f8-5a39443eefe8', 'name': 'ctest-vn-34637960', 'tenant_id': '21084be08a72456190613a2190611ccf', 'project_id': '21084be08a72456190613a2190611ccf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-vn-34637960'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 19:30:23,569 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b24ec520-e4c0-47d2-8948-74ac0dcb9aea', 'name': '', 'tenant_id': '21084be08a72456190613a2190611ccf', 'network_id': 'aa39258c-a10c-4bd6-b0f8-5a39443eefe8', 'ip_version': 4, 'cidr': '126.41.151.192/26', 'allocation_pools': [{'start': '126.41.151.194', 'end': '126.41.151.254'}], 'gateway_ip': '126.41.151.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.41.151.194', 'tags': [], 'project_id': '21084be08a72456190613a2190611ccf'}} 2024-11-10 19:30:23,591 - INFO - Created VN ctest-vn-34637960 2024-11-10 19:30:23,649 - DEBUG - VN ctest-vn-34637960 UUID is aa39258c-a10c-4bd6-b0f8-5a39443eefe8 2024-11-10 19:30:23,796 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353, 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-16575001:ctest-vn-34637960, 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-10 19:30:24,151 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad', 'name': 'ctest-vn-43150353', 'tenant_id': '21084be08a72456190613a2190611ccf', 'project_id': '21084be08a72456190613a2190611ccf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['38cb0d0d-d7aa-4711-8181-6aa6b8ca4de8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-vn-43150353'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-policy-allow-all-91168861']], 'subnet_ipam': [{'subnet_cidr': '197.49.36.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 19:30:24,429 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa39258c-a10c-4bd6-b0f8-5a39443eefe8', 'name': 'ctest-vn-34637960', 'tenant_id': '21084be08a72456190613a2190611ccf', 'project_id': '21084be08a72456190613a2190611ccf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b24ec520-e4c0-47d2-8948-74ac0dcb9aea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-vn-34637960'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-policy-allow-all-91168861']], 'subnet_ipam': [{'subnet_cidr': '126.41.151.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 19:30:24,609 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-11-10 19:30:24,947 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-11-10 19:30:24,980 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3ce32a09-9753-46a1-b877-6f01cbf88076 2024-11-10 19:30:24,995 - DEBUG - Requesting: http://10.0.0.56:8082/project/21084be0-8a72-4561-9061-3a2190611ccf 2024-11-10 19:30:25,100 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad 2024-11-10 19:30:25,120 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad 2024-11-10 19:30:25,139 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/dd46728c-3acf-43fa-bae7-46e3304b6585 2024-11-10 19:30:25,149 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/dd46728c-3acf-43fa-bae7-46e3304b6585 2024-11-10 19:30:25,158 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/4d48a4a0-cbf8-4f3a-b54f-d5169f00f358 2024-11-10 19:30:25,166 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 19:30:25,166 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad 2024-11-10 19:30:25,181 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/dd46728c-3acf-43fa-bae7-46e3304b6585 2024-11-10 19:30:25,206 - INFO - Verified VN network id 8 for VN eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad 2024-11-10 19:30:25,206 - INFO - Verifications in API Server for VN ctest-vn-43150353 passed 2024-11-10 19:30:25,207 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad 2024-11-10 19:30:25,224 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/dd46728c-3acf-43fa-bae7-46e3304b6585 2024-11-10 19:30:25,234 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/dd46728c-3acf-43fa-bae7-46e3304b6585 2024-11-10 19:30:25,245 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/4d48a4a0-cbf8-4f3a-b54f-d5169f00f358 2024-11-10 19:30:25,262 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16575001', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17196646358377253809', 'uuid-lslong': '11492696321746145709'}, 'enable': 'true', 'created': '2024-11-10T19:30:22', 'last-modified': '2024-11-10T19:30:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.138114'} 2024-11-10 19:30:25,273 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 19:30:25,273 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43150353 passed 2024-11-10 19:30:25,274 - DEBUG - ====Verifying policy data for ctest-vn-43150353 in API_Server ====== 2024-11-10 19:30:25,274 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-11-10 19:30:25,285 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3ce32a09-9753-46a1-b877-6f01cbf88076 2024-11-10 19:30:25,311 - DEBUG - Requesting: http://10.0.0.56:8082/project/21084be0-8a72-4561-9061-3a2190611ccf 2024-11-10 19:30:25,406 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/eea6c2c0-4f17-4bb1-9f7e-4269e91e11ad 2024-11-10 19:30:25,421 - DEBUG - ==>Verifying data for policy with id: 355a273e-a3b0-4c33-9ba8-1ddc74673815, fqn: ['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-policy-allow-all-91168861'] 2024-11-10 19:30:25,422 - INFO - VN ctest-vn-43150353 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 19:30:25,422 - DEBUG - Verifying the vn in opserver 2024-11-10 19:30:25,422 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353 virtual network link through opserver 10.0.0.56 2024-11-10 19:30:25,422 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2024-11-10 19:30:25,758 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2024-11-10 19:30:25,825 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353?flat'} 2024-11-10 19:30:25,825 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353 is found in opserver 2024-11-10 19:30:25,842 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 19:30:25,852 - DEBUG - VRF ids for VN ctest-vn-43150353: {} 2024-11-10 19:30:25,852 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-11-10 19:30:25,859 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3ce32a09-9753-46a1-b877-6f01cbf88076 2024-11-10 19:30:25,874 - DEBUG - Requesting: http://10.0.0.56:8082/project/21084be0-8a72-4561-9061-3a2190611ccf 2024-11-10 19:30:25,966 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa39258c-a10c-4bd6-b0f8-5a39443eefe8 2024-11-10 19:30:25,984 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa39258c-a10c-4bd6-b0f8-5a39443eefe8 2024-11-10 19:30:26,000 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d7d144d4-3488-47a2-8f4e-ec0a89d4ec07 2024-11-10 19:30:26,010 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d7d144d4-3488-47a2-8f4e-ec0a89d4ec07 2024-11-10 19:30:26,019 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/a7323bb5-5197-4c6b-8835-bc00c00e06c2 2024-11-10 19:30:26,027 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 19:30:26,027 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa39258c-a10c-4bd6-b0f8-5a39443eefe8 2024-11-10 19:30:26,042 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d7d144d4-3488-47a2-8f4e-ec0a89d4ec07 2024-11-10 19:30:26,065 - INFO - Verified VN network id 9 for VN aa39258c-a10c-4bd6-b0f8-5a39443eefe8 2024-11-10 19:30:26,066 - INFO - Verifications in API Server for VN ctest-vn-34637960 passed 2024-11-10 19:30:26,066 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa39258c-a10c-4bd6-b0f8-5a39443eefe8 2024-11-10 19:30:26,081 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d7d144d4-3488-47a2-8f4e-ec0a89d4ec07 2024-11-10 19:30:26,091 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d7d144d4-3488-47a2-8f4e-ec0a89d4ec07 2024-11-10 19:30:26,102 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/a7323bb5-5197-4c6b-8835-bc00c00e06c2 2024-11-10 19:30:26,123 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-34637960', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16575001', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12265876346047843286', 'uuid-lslong': '12752041546904170472'}, 'enable': 'true', 'created': '2024-11-10T19:30:23', 'last-modified': '2024-11-10T19:30:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.723922'} 2024-11-10 19:30:26,132 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 19:30:26,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34637960 passed 2024-11-10 19:30:26,133 - DEBUG - ====Verifying policy data for ctest-vn-34637960 in API_Server ====== 2024-11-10 19:30:26,133 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-11-10 19:30:26,139 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3ce32a09-9753-46a1-b877-6f01cbf88076 2024-11-10 19:30:26,154 - DEBUG - Requesting: http://10.0.0.56:8082/project/21084be0-8a72-4561-9061-3a2190611ccf 2024-11-10 19:30:26,263 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa39258c-a10c-4bd6-b0f8-5a39443eefe8 2024-11-10 19:30:26,282 - DEBUG - ==>Verifying data for policy with id: 355a273e-a3b0-4c33-9ba8-1ddc74673815, fqn: ['default-domain', 'ctest-TestBasicPolicy-16575001', 'ctest-policy-allow-all-91168861'] 2024-11-10 19:30:26,282 - INFO - VN ctest-vn-34637960 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 19:30:26,282 - DEBUG - Verifying the vn in opserver 2024-11-10 19:30:26,282 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-34637960 virtual network link through opserver 10.0.0.56 2024-11-10 19:30:26,282 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2024-11-10 19:30:26,294 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-34637960', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-34637960?flat'} 2024-11-10 19:30:26,294 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-34637960 is found in opserver 2024-11-10 19:30:26,307 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 19:30:26,313 - DEBUG - VRF ids for VN ctest-vn-34637960: {} 2024-11-10 19:30:26,373 - DEBUG - Services list from nova: [, , ] 2024-11-10 19:30:27,540 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2261-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2261-1) 2024-11-10 19:30:29,073 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2261-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2261-1) 2024-11-10 19:30:29,074 - INFO - Waiting for VM ctest-TestBasicPolicy-16575001-35167502 to be up.. 2024-11-10 19:30:29,176 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 19:30:34,259 - DEBUG - VM is in ACTIVE state now 2024-11-10 19:30:34,260 - INFO - VM name : ctest-TestBasicPolicy-16575001-35167502 2024-11-10 19:30:34,343 - DEBUG - VM ctest-TestBasicPolicy-16575001-35167502 ID is cd878e2e-3246-4ed6-84e1-a5fe8ed26174 2024-11-10 19:30:34,363 - DEBUG - VM ctest-TestBasicPolicy-16575001-35167502 launched on Node cn-jenkins-deploy-platform-ansible-os-2261-1 2024-11-10 19:30:34,447 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/cd878e2e-3246-4ed6-84e1-a5fe8ed26174 2024-11-10 19:30:34,458 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/a7deca04-1e2b-4c2c-b0bd-46e32b79946a 2024-11-10 19:30:37,747 - 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 1031ms') 2024-11-10 19:30:37,747 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16575001-35167502 failed! 2024-11-10 19:30:37,809 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16575001:ctest-vn-43150353 is 197.49.36.1 and allocation pool is NOT set 2024-11-10 19:30:39,866 - 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.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.445 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.445/3.886/7.327/3.441 ms') 2024-11-10 19:30:39,866 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16575001-35167502 passed 2024-11-10 19:30:40,029 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 19:30:40,029 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16575001-35167502, IP 197.49.36.3, Port 22 2024-11-10 19:30:40,184 - DEBUG - VM ctest-TestBasicPolicy-16575001-35167502 is ready for SSH connections 2024-11-10 19:30:40,185 - INFO - Waiting for VM ctest-TestBasicPolicy-16575001-57302502 to be up.. 2024-11-10 19:30:40,285 - DEBUG - VM is in ACTIVE state now 2024-11-10 19:30:40,285 - INFO - VM name : ctest-TestBasicPolicy-16575001-57302502 2024-11-10 19:30:40,383 - DEBUG - VM ctest-TestBasicPolicy-16575001-57302502 ID is 2625c0c8-c521-4010-ae58-37ce961176e9 2024-11-10 19:30:40,383 - DEBUG - VM ctest-TestBasicPolicy-16575001-57302502 launched on Node cn-jenkins-deploy-platform-ansible-os-2261-1 2024-11-10 19:30:40,466 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/2625c0c8-c521-4010-ae58-37ce961176e9 2024-11-10 19:30:40,476 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/e1d69c9b-3b84-4beb-942f-60705e0f091f 2024-11-10 19:30:41,728 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.43 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.812 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.812/2.619/4.427/1.807 ms') 2024-11-10 19:30:41,728 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-16575001-57302502 passed 2024-11-10 19:30:41,885 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 19:30:41,885 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16575001-57302502, IP 126.41.151.195, Port 22 2024-11-10 19:30:42,040 - DEBUG - VM ctest-TestBasicPolicy-16575001-57302502 is ready for SSH connections 2024-11-10 19:30:42,040 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 19:30:42,041 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 126.41.151.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2024-11-10 19:30:42,041 - DEBUG - ping -s 56 -c 3 -W 1 126.41.151.195 2024-11-10 19:30:45,791 - DEBUG - PING 126.41.151.195 (126.41.151.195): 56 data bytes 64 bytes from 126.41.151.195: seq=0 ttl=63 time=3.620 ms 64 bytes from 126.41.151.195: seq=1 ttl=63 time=0.860 ms 64 bytes from 126.41.151.195: seq=2 ttl=63 time=0.717 ms --- 126.41.151.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.717/1.732/3.620 ms 2024-11-10 19:30:45,791 - INFO - Ping to IP 126.41.151.195 from VM ctest-TestBasicPolicy-16575001-35167502 passed 2024-11-10 19:30:45,985 - DEBUG - Policy Update Response {"network-policy": {"uuid": "355a273e-a3b0-4c33-9ba8-1ddc74673815", "href": "http://10.0.0.56:8082/network-policy/355a273e-a3b0-4c33-9ba8-1ddc74673815"}} 2024-11-10 19:30:45,985 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 19:30:45,985 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 126.41.151.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2024-11-10 19:30:45,985 - DEBUG - ping -s 56 -c 3 -W 1 126.41.151.195 2024-11-10 19:30:49,209 - DEBUG - PING 126.41.151.195 (126.41.151.195): 56 data bytes --- 126.41.151.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-10 19:30:49,209 - WARNING - Ping to IP 126.41.151.195 from VM ctest-TestBasicPolicy-16575001-35167502 failed 2024-11-10 19:30:49,210 - INFO - Deleting VM ctest-TestBasicPolicy-16575001-57302502 2024-11-10 19:30:49,287 - INFO - Deleting VM ctest-TestBasicPolicy-16575001-35167502 2024-11-10 19:30:49,791 - INFO - Deleted policy ctest-policy-allow-all-91168861 2024-11-10 19:30:49,791 - INFO - Deleting VN ctest-vn-34637960 2024-11-10 19:30:49,843 - DEBUG - VN aa39258c-a10c-4bd6-b0f8-5a39443eefe8 still in use: Unable to complete operation on network aa39258c-a10c-4bd6-b0f8-5a39443eefe8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7693a6f9-6694-4310-882b-310a97d06474'] 2024-11-10 19:30:49,843 - WARNING - Deleting VN ctest-vn-34637960 failed..Will retry 2024-11-10 19:30:52,010 - DEBUG - Response for deleting network () 2024-11-10 19:30:52,010 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d7d144d4-3488-47a2-8f4e-ec0a89d4ec07 2024-11-10 19:30:52,016 - DEBUG - Response Code: 404 2024-11-10 19:30:52,016 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-11-10 19:30:52,025 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3ce32a09-9753-46a1-b877-6f01cbf88076 2024-11-10 19:30:52,082 - DEBUG - Requesting: http://10.0.0.56:8082/project/21084be0-8a72-4561-9061-3a2190611ccf 2024-11-10 19:30:52,164 - INFO - Validated that VN ctest-vn-34637960 is not found in API Server 2024-11-10 19:30:52,175 - DEBUG - VN ctest-vn-34637960 is not present in Agent 10.0.0.56 2024-11-10 19:30:52,175 - INFO - Validated that VN ctest-vn-34637960 is not in any agent 2024-11-10 19:30:52,191 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-34637960 info 2024-11-10 19:30:52,192 - INFO - Deleting VN ctest-vn-43150353 2024-11-10 19:30:52,352 - DEBUG - Response for deleting network () 2024-11-10 19:30:52,352 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/dd46728c-3acf-43fa-bae7-46e3304b6585 2024-11-10 19:30:52,359 - DEBUG - Response Code: 404 2024-11-10 19:30:52,359 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2024-11-10 19:30:52,365 - DEBUG - Requesting: http://10.0.0.56:8082/domain/3ce32a09-9753-46a1-b877-6f01cbf88076 2024-11-10 19:30:52,424 - DEBUG - Requesting: http://10.0.0.56:8082/project/21084be0-8a72-4561-9061-3a2190611ccf 2024-11-10 19:30:52,508 - INFO - Validated that VN ctest-vn-43150353 is not found in API Server 2024-11-10 19:30:52,520 - DEBUG - VN ctest-vn-43150353 is not present in Agent 10.0.0.56 2024-11-10 19:30:52,520 - INFO - Validated that VN ctest-vn-43150353 is not in any agent 2024-11-10 19:30:52,537 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43150353 info 2024-11-10 19:30:52,796 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 19:30:52,797 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-11-10 19:30:52,797 - INFO - -------------------------------------------------------------------------------- 2024-11-10 19:30:53,661 - INFO - Deleted project: ctest-TestBasicPolicy-16575001, ID : 21084be0-8a72-4561-9061-3a2190611ccf