2024-08-27 13:04:36,003 - INFO - Domain Default found not creating 2024-08-27 13:04:36,207 - INFO - Project ctest-TestBasicPolicy-76692309 not found, creating it 2024-08-27 13:04:36,726 - INFO - Created Project:ctest-TestBasicPolicy-76692309, ID : 7796c159-35d9-47a7-8045-48f3855651be 2024-08-27 13:04:38,499 - INFO - ================================================================================ 2024-08-27 13:04:38,499 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-27 13:04:38,499 - 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-08-27 13:04:38,769 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.18': '0'}} with 2024-08-27 13:04:38,769 - INFO - Initial checks done. Running the testcase now 2024-08-27 13:04:38,769 - INFO - 2024-08-27 13:04:39,404 - DEBUG - Response for create_network : {'network': {'id': 'a269d0f3-04cb-40a4-99d2-a9bea0f97143', 'name': 'ctest-vn-06183303', 'tenant_id': '7796c15935d947a7804548f3855651be', 'project_id': '7796c15935d947a7804548f3855651be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-vn-06183303'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 13:04:39,596 - DEBUG - Response for create_subnet : {'subnet': {'id': '65cee03b-534b-410f-822d-0c95f6297796', 'name': '', 'tenant_id': '7796c15935d947a7804548f3855651be', 'network_id': 'a269d0f3-04cb-40a4-99d2-a9bea0f97143', 'ip_version': 4, 'cidr': '165.14.230.0/26', 'allocation_pools': [{'start': '165.14.230.2', 'end': '165.14.230.62'}], 'gateway_ip': '165.14.230.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.14.230.2', 'tags': [], 'project_id': '7796c15935d947a7804548f3855651be'}} 2024-08-27 13:04:39,622 - INFO - Created VN ctest-vn-06183303 2024-08-27 13:04:39,675 - DEBUG - VN ctest-vn-06183303 UUID is a269d0f3-04cb-40a4-99d2-a9bea0f97143 2024-08-27 13:04:40,025 - DEBUG - Response for create_network : {'network': {'id': 'b4f09878-be98-4746-aa21-aa02f81798fb', 'name': 'ctest-vn-42259255', 'tenant_id': '7796c15935d947a7804548f3855651be', 'project_id': '7796c15935d947a7804548f3855651be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-vn-42259255'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 13:04:40,188 - DEBUG - Response for create_subnet : {'subnet': {'id': '49c10725-5c55-4df6-ae2c-34c4226a3f36', 'name': '', 'tenant_id': '7796c15935d947a7804548f3855651be', 'network_id': 'b4f09878-be98-4746-aa21-aa02f81798fb', 'ip_version': 4, 'cidr': '52.123.61.0/26', 'allocation_pools': [{'start': '52.123.61.2', 'end': '52.123.61.62'}], 'gateway_ip': '52.123.61.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.123.61.2', 'tags': [], 'project_id': '7796c15935d947a7804548f3855651be'}} 2024-08-27 13:04:40,209 - INFO - Created VN ctest-vn-42259255 2024-08-27 13:04:40,259 - DEBUG - VN ctest-vn-42259255 UUID is b4f09878-be98-4746-aa21-aa02f81798fb 2024-08-27 13:04:40,383 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303, 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-76692309:ctest-vn-42259255, 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-08-27 13:04:40,697 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a269d0f3-04cb-40a4-99d2-a9bea0f97143', 'name': 'ctest-vn-06183303', 'tenant_id': '7796c15935d947a7804548f3855651be', 'project_id': '7796c15935d947a7804548f3855651be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65cee03b-534b-410f-822d-0c95f6297796'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-vn-06183303'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-policy-allow-all-78811369']], 'subnet_ipam': [{'subnet_cidr': '165.14.230.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 13:04:41,000 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4f09878-be98-4746-aa21-aa02f81798fb', 'name': 'ctest-vn-42259255', 'tenant_id': '7796c15935d947a7804548f3855651be', 'project_id': '7796c15935d947a7804548f3855651be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49c10725-5c55-4df6-ae2c-34c4226a3f36'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-vn-42259255'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-policy-allow-all-78811369']], 'subnet_ipam': [{'subnet_cidr': '52.123.61.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 13:04:41,163 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 13:04:41,508 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 13:04:41,543 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1118b2a8-8c68-4e06-bd33-6b85d7d65f45 2024-08-27 13:04:41,559 - DEBUG - Requesting: http://10.0.0.45:8082/project/7796c159-35d9-47a7-8045-48f3855651be 2024-08-27 13:04:41,637 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/a269d0f3-04cb-40a4-99d2-a9bea0f97143 2024-08-27 13:04:41,648 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/a269d0f3-04cb-40a4-99d2-a9bea0f97143 2024-08-27 13:04:41,657 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/a93c1af1-eee3-4451-80da-17233f824e36 2024-08-27 13:04:41,665 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/a93c1af1-eee3-4451-80da-17233f824e36 2024-08-27 13:04:41,672 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/f38f1a97-893c-4d0a-a941-a85d82cf3fe1 2024-08-27 13:04:41,681 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 13:04:41,682 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/a269d0f3-04cb-40a4-99d2-a9bea0f97143 2024-08-27 13:04:41,691 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/a93c1af1-eee3-4451-80da-17233f824e36 2024-08-27 13:04:41,706 - INFO - Verified VN network id 8 for VN a269d0f3-04cb-40a4-99d2-a9bea0f97143 2024-08-27 13:04:41,706 - INFO - Verifications in API Server for VN ctest-vn-06183303 passed 2024-08-27 13:04:41,706 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/a269d0f3-04cb-40a4-99d2-a9bea0f97143 2024-08-27 13:04:41,716 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/a93c1af1-eee3-4451-80da-17233f824e36 2024-08-27 13:04:41,724 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/a93c1af1-eee3-4451-80da-17233f824e36 2024-08-27 13:04:41,731 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/f38f1a97-893c-4d0a-a941-a85d82cf3fe1 2024-08-27 13:04:41,746 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76692309', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11703114848875004068', 'uuid-lslong': '11084108269121794371'}, 'enable': 'true', 'created': '2024-08-27T13:04:39', 'last-modified': '2024-08-27T13:04:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.076392'} 2024-08-27 13:04:41,756 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 13:04:41,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06183303 passed 2024-08-27 13:04:41,757 - DEBUG - ====Verifying policy data for ctest-vn-06183303 in API_Server ====== 2024-08-27 13:04:41,757 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 13:04:41,765 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1118b2a8-8c68-4e06-bd33-6b85d7d65f45 2024-08-27 13:04:41,779 - DEBUG - Requesting: http://10.0.0.45:8082/project/7796c159-35d9-47a7-8045-48f3855651be 2024-08-27 13:04:41,855 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/a269d0f3-04cb-40a4-99d2-a9bea0f97143 2024-08-27 13:04:41,866 - DEBUG - ==>Verifying data for policy with id: 7afe02ba-e35a-482d-b806-7839aa6cc746, fqn: ['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-policy-allow-all-78811369'] 2024-08-27 13:04:41,866 - INFO - VN ctest-vn-06183303 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 13:04:41,866 - DEBUG - Verifying the vn in opserver 2024-08-27 13:04:41,866 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303 virtual network link through opserver 10.0.0.45 2024-08-27 13:04:41,866 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-08-27 13:04:42,210 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-08-27 13:04:42,287 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303?flat'} 2024-08-27 13:04:42,287 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303 is found in opserver 2024-08-27 13:04:42,300 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 13:04:42,306 - DEBUG - VRF ids for VN ctest-vn-06183303: {} 2024-08-27 13:04:42,306 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 13:04:42,313 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1118b2a8-8c68-4e06-bd33-6b85d7d65f45 2024-08-27 13:04:42,336 - DEBUG - Requesting: http://10.0.0.45:8082/project/7796c159-35d9-47a7-8045-48f3855651be 2024-08-27 13:04:42,420 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/b4f09878-be98-4746-aa21-aa02f81798fb 2024-08-27 13:04:42,432 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/b4f09878-be98-4746-aa21-aa02f81798fb 2024-08-27 13:04:42,443 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e2ceebb6-78bb-4354-beb5-f5c10febe0e8 2024-08-27 13:04:42,452 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e2ceebb6-78bb-4354-beb5-f5c10febe0e8 2024-08-27 13:04:42,460 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/7b0a7402-251c-4e13-a611-ac6bdb77838e 2024-08-27 13:04:42,467 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 13:04:42,467 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/b4f09878-be98-4746-aa21-aa02f81798fb 2024-08-27 13:04:42,476 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e2ceebb6-78bb-4354-beb5-f5c10febe0e8 2024-08-27 13:04:42,489 - INFO - Verified VN network id 9 for VN b4f09878-be98-4746-aa21-aa02f81798fb 2024-08-27 13:04:42,490 - INFO - Verifications in API Server for VN ctest-vn-42259255 passed 2024-08-27 13:04:42,490 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/b4f09878-be98-4746-aa21-aa02f81798fb 2024-08-27 13:04:42,499 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e2ceebb6-78bb-4354-beb5-f5c10febe0e8 2024-08-27 13:04:42,509 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e2ceebb6-78bb-4354-beb5-f5c10febe0e8 2024-08-27 13:04:42,519 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/7b0a7402-251c-4e13-a611-ac6bdb77838e 2024-08-27 13:04:42,534 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-42259255', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76692309', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13038088565598734150', 'uuid-lslong': '12259266590408153339'}, 'enable': 'true', 'created': '2024-08-27T13:04:39', 'last-modified': '2024-08-27T13:04:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.601961'} 2024-08-27 13:04:42,541 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 13:04:42,541 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42259255 passed 2024-08-27 13:04:42,542 - DEBUG - ====Verifying policy data for ctest-vn-42259255 in API_Server ====== 2024-08-27 13:04:42,542 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 13:04:42,548 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1118b2a8-8c68-4e06-bd33-6b85d7d65f45 2024-08-27 13:04:42,561 - DEBUG - Requesting: http://10.0.0.45:8082/project/7796c159-35d9-47a7-8045-48f3855651be 2024-08-27 13:04:42,637 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/b4f09878-be98-4746-aa21-aa02f81798fb 2024-08-27 13:04:42,647 - DEBUG - ==>Verifying data for policy with id: 7afe02ba-e35a-482d-b806-7839aa6cc746, fqn: ['default-domain', 'ctest-TestBasicPolicy-76692309', 'ctest-policy-allow-all-78811369'] 2024-08-27 13:04:42,647 - INFO - VN ctest-vn-42259255 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 13:04:42,647 - DEBUG - Verifying the vn in opserver 2024-08-27 13:04:42,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-42259255 virtual network link through opserver 10.0.0.45 2024-08-27 13:04:42,647 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-08-27 13:04:42,661 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-42259255', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-42259255?flat'} 2024-08-27 13:04:42,661 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-42259255 is found in opserver 2024-08-27 13:04:42,677 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 13:04:42,684 - DEBUG - VRF ids for VN ctest-vn-42259255: {} 2024-08-27 13:04:42,757 - DEBUG - Services list from nova: [, , ] 2024-08-27 13:04:44,037 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1797-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1797-1) 2024-08-27 13:04:45,338 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1797-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1797-1) 2024-08-27 13:04:45,339 - INFO - Waiting for VM ctest-TestBasicPolicy-76692309-60564973 to be up.. 2024-08-27 13:04:45,453 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 13:04:50,557 - DEBUG - VM is in ACTIVE state now 2024-08-27 13:04:50,557 - INFO - VM name : ctest-TestBasicPolicy-76692309-60564973 2024-08-27 13:04:50,657 - DEBUG - VM ctest-TestBasicPolicy-76692309-60564973 ID is e757556a-4c68-4766-b5ea-01572e6847d4 2024-08-27 13:04:50,681 - DEBUG - VM ctest-TestBasicPolicy-76692309-60564973 launched on Node cn-jenkins-deploy-platform-ansible-os-1797-1 2024-08-27 13:04:50,782 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/e757556a-4c68-4766-b5ea-01572e6847d4 2024-08-27 13:04:50,792 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/88b16a4e-105d-43ba-9e6f-2b0de68673fe 2024-08-27 13:04:54,042 - 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 1014ms') 2024-08-27 13:04:54,042 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-76692309-60564973 failed! 2024-08-27 13:04:54,103 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-76692309:ctest-vn-06183303 is 165.14.230.1 and allocation pool is NOT set 2024-08-27 13:04:56,167 - 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=11.4 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.591 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.591/5.991/11.391/5.400 ms') 2024-08-27 13:04:56,167 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-76692309-60564973 passed 2024-08-27 13:04:56,319 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 13:04:56,319 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-76692309-60564973, IP 165.14.230.3, Port 22 2024-08-27 13:04:56,479 - DEBUG - VM ctest-TestBasicPolicy-76692309-60564973 is ready for SSH connections 2024-08-27 13:04:56,480 - INFO - Waiting for VM ctest-TestBasicPolicy-76692309-95548395 to be up.. 2024-08-27 13:04:56,577 - DEBUG - VM is in ACTIVE state now 2024-08-27 13:04:56,577 - INFO - VM name : ctest-TestBasicPolicy-76692309-95548395 2024-08-27 13:04:56,666 - DEBUG - VM ctest-TestBasicPolicy-76692309-95548395 ID is 33ec33c5-2d80-4ff6-bc40-2cc6504d534f 2024-08-27 13:04:56,666 - DEBUG - VM ctest-TestBasicPolicy-76692309-95548395 launched on Node cn-jenkins-deploy-platform-ansible-os-1797-1 2024-08-27 13:04:56,758 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/33ec33c5-2d80-4ff6-bc40-2cc6504d534f 2024-08-27 13:04:56,771 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/81e1c40a-cd37-438b-9bda-e99f7e82a57b 2024-08-27 13:04:58,021 - 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.69 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.35 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 = 3.351/3.520/3.689/0.169 ms') 2024-08-27 13:04:58,021 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-76692309-95548395 passed 2024-08-27 13:04:58,175 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 13:04:58,176 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-76692309-95548395, IP 52.123.61.3, Port 22 2024-08-27 13:04:58,338 - DEBUG - VM ctest-TestBasicPolicy-76692309-95548395 is ready for SSH connections 2024-08-27 13:04:58,339 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 13:04:58,339 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 52.123.61.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2024-08-27 13:04:58,339 - DEBUG - ping -s 56 -c 3 -W 1 52.123.61.3 2024-08-27 13:05:02,467 - DEBUG - PING 52.123.61.3 (52.123.61.3): 56 data bytes 64 bytes from 52.123.61.3: seq=0 ttl=63 time=4.392 ms 64 bytes from 52.123.61.3: seq=1 ttl=63 time=1.078 ms 64 bytes from 52.123.61.3: seq=2 ttl=63 time=0.856 ms --- 52.123.61.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.856/2.108/4.392 ms 2024-08-27 13:05:02,467 - INFO - Ping to IP 52.123.61.3 from VM ctest-TestBasicPolicy-76692309-60564973 passed 2024-08-27 13:05:02,723 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7afe02ba-e35a-482d-b806-7839aa6cc746", "href": "http://10.0.0.45:8082/network-policy/7afe02ba-e35a-482d-b806-7839aa6cc746"}} 2024-08-27 13:05:02,723 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 13:05:02,723 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 52.123.61.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2024-08-27 13:05:02,723 - DEBUG - ping -s 56 -c 3 -W 1 52.123.61.3 2024-08-27 13:05:05,948 - DEBUG - PING 52.123.61.3 (52.123.61.3): 56 data bytes 64 bytes from 52.123.61.3: seq=0 ttl=63 time=1.921 ms --- 52.123.61.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.921/1.921/1.921 ms 2024-08-27 13:05:05,948 - WARNING - Ping to IP 52.123.61.3 from VM ctest-TestBasicPolicy-76692309-60564973 failed 2024-08-27 13:05:05,948 - INFO - Deleting VM ctest-TestBasicPolicy-76692309-95548395 2024-08-27 13:05:06,029 - INFO - Deleting VM ctest-TestBasicPolicy-76692309-60564973 2024-08-27 13:05:06,518 - INFO - Deleted policy ctest-policy-allow-all-78811369 2024-08-27 13:05:06,518 - INFO - Deleting VN ctest-vn-42259255 2024-08-27 13:05:06,566 - DEBUG - VN b4f09878-be98-4746-aa21-aa02f81798fb still in use: Unable to complete operation on network b4f09878-be98-4746-aa21-aa02f81798fb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7e7613c6-16dd-422f-a371-89eac3c354cf'] 2024-08-27 13:05:06,566 - WARNING - Deleting VN ctest-vn-42259255 failed..Will retry 2024-08-27 13:05:08,707 - DEBUG - Response for deleting network () 2024-08-27 13:05:08,708 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e2ceebb6-78bb-4354-beb5-f5c10febe0e8 2024-08-27 13:05:08,715 - DEBUG - Response Code: 404 2024-08-27 13:05:08,715 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 13:05:08,723 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1118b2a8-8c68-4e06-bd33-6b85d7d65f45 2024-08-27 13:05:08,782 - DEBUG - Requesting: http://10.0.0.45:8082/project/7796c159-35d9-47a7-8045-48f3855651be 2024-08-27 13:05:08,861 - INFO - Validated that VN ctest-vn-42259255 is not found in API Server 2024-08-27 13:05:08,874 - DEBUG - VN ctest-vn-42259255 is not present in Agent 10.0.0.45 2024-08-27 13:05:08,874 - INFO - Validated that VN ctest-vn-42259255 is not in any agent 2024-08-27 13:05:08,895 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-42259255 info 2024-08-27 13:05:08,895 - INFO - Deleting VN ctest-vn-06183303 2024-08-27 13:05:09,027 - DEBUG - Response for deleting network () 2024-08-27 13:05:09,027 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/a93c1af1-eee3-4451-80da-17233f824e36 2024-08-27 13:05:09,040 - DEBUG - Response Code: 404 2024-08-27 13:05:09,040 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 13:05:09,048 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1118b2a8-8c68-4e06-bd33-6b85d7d65f45 2024-08-27 13:05:09,065 - DEBUG - Requesting: http://10.0.0.45:8082/project/7796c159-35d9-47a7-8045-48f3855651be 2024-08-27 13:05:09,139 - INFO - Validated that VN ctest-vn-06183303 is not found in API Server 2024-08-27 13:05:09,152 - DEBUG - VN ctest-vn-06183303 is not present in Agent 10.0.0.45 2024-08-27 13:05:09,152 - INFO - Validated that VN ctest-vn-06183303 is not in any agent 2024-08-27 13:05:09,170 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06183303 info 2024-08-27 13:05:09,439 - DEBUG - No XMPP flaps were noticed during the test
2024-08-27 13:05:09,439 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-08-27 13:05:09,439 - INFO - -------------------------------------------------------------------------------- 2024-08-27 13:05:10,587 - INFO - Deleted project: ctest-TestBasicPolicy-76692309, ID : 7796c159-35d9-47a7-8045-48f3855651be