2024-11-13 09:02:48,175 - INFO - Domain Default found not creating 2024-11-13 09:02:48,356 - INFO - Project ctest-TestBasicPolicy-79496229 not found, creating it 2024-11-13 09:02:48,889 - INFO - Created Project:ctest-TestBasicPolicy-79496229, ID : f1392ac2-0181-4c1e-83f0-83f71d4dc79d 2024-11-13 09:02:50,450 - INFO - ================================================================================ 2024-11-13 09:02:50,450 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-13 09:02:50,450 - 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-13 09:02:50,709 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.5': '0'}} with 2024-11-13 09:02:50,709 - INFO - Initial checks done. Running the testcase now 2024-11-13 09:02:50,710 - INFO - 2024-11-13 09:02:51,283 - DEBUG - Response for create_network : {'network': {'id': '44e660d0-b5e6-4cf4-b416-d077eba5073d', 'name': 'ctest-vn-25656554', 'tenant_id': 'f1392ac201814c1e83f083f71d4dc79d', 'project_id': 'f1392ac201814c1e83f083f71d4dc79d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-vn-25656554'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 09:02:51,518 - DEBUG - Response for create_subnet : {'subnet': {'id': '2801c12b-bdb4-44a3-94ce-bccf52f45cc7', 'name': '', 'tenant_id': 'f1392ac201814c1e83f083f71d4dc79d', 'network_id': '44e660d0-b5e6-4cf4-b416-d077eba5073d', 'ip_version': 4, 'cidr': '167.145.55.0/26', 'allocation_pools': [{'start': '167.145.55.2', 'end': '167.145.55.62'}], 'gateway_ip': '167.145.55.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.145.55.2', 'tags': [], 'project_id': 'f1392ac201814c1e83f083f71d4dc79d'}} 2024-11-13 09:02:51,540 - INFO - Created VN ctest-vn-25656554 2024-11-13 09:02:51,599 - DEBUG - VN ctest-vn-25656554 UUID is 44e660d0-b5e6-4cf4-b416-d077eba5073d 2024-11-13 09:02:51,925 - DEBUG - Response for create_network : {'network': {'id': 'db835f11-eaa3-4198-b0bb-8263489401b8', 'name': 'ctest-vn-87103544', 'tenant_id': 'f1392ac201814c1e83f083f71d4dc79d', 'project_id': 'f1392ac201814c1e83f083f71d4dc79d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-vn-87103544'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 09:02:52,075 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce057e0d-1344-469a-81e2-4fdd40f64303', 'name': '', 'tenant_id': 'f1392ac201814c1e83f083f71d4dc79d', 'network_id': 'db835f11-eaa3-4198-b0bb-8263489401b8', 'ip_version': 4, 'cidr': '44.14.6.64/26', 'allocation_pools': [{'start': '44.14.6.66', 'end': '44.14.6.126'}], 'gateway_ip': '44.14.6.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.14.6.66', 'tags': [], 'project_id': 'f1392ac201814c1e83f083f71d4dc79d'}} 2024-11-13 09:02:52,095 - INFO - Created VN ctest-vn-87103544 2024-11-13 09:02:52,155 - DEBUG - VN ctest-vn-87103544 UUID is db835f11-eaa3-4198-b0bb-8263489401b8 2024-11-13 09:02:52,281 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554, 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-79496229:ctest-vn-87103544, 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-13 09:02:52,670 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44e660d0-b5e6-4cf4-b416-d077eba5073d', 'name': 'ctest-vn-25656554', 'tenant_id': 'f1392ac201814c1e83f083f71d4dc79d', 'project_id': 'f1392ac201814c1e83f083f71d4dc79d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2801c12b-bdb4-44a3-94ce-bccf52f45cc7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-vn-25656554'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-policy-allow-all-86339654']], 'subnet_ipam': [{'subnet_cidr': '167.145.55.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-13 09:02:52,988 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db835f11-eaa3-4198-b0bb-8263489401b8', 'name': 'ctest-vn-87103544', 'tenant_id': 'f1392ac201814c1e83f083f71d4dc79d', 'project_id': 'f1392ac201814c1e83f083f71d4dc79d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce057e0d-1344-469a-81e2-4fdd40f64303'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-vn-87103544'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-policy-allow-all-86339654']], 'subnet_ipam': [{'subnet_cidr': '44.14.6.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-13 09:02:53,139 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-13 09:02:53,454 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-13 09:02:53,488 - DEBUG - Requesting: http://10.0.0.12:8082/domain/37803685-2477-4c40-9a9f-d9b652eac567 2024-11-13 09:02:53,508 - DEBUG - Requesting: http://10.0.0.12:8082/project/f1392ac2-0181-4c1e-83f0-83f71d4dc79d 2024-11-13 09:02:53,599 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/44e660d0-b5e6-4cf4-b416-d077eba5073d 2024-11-13 09:02:53,616 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/44e660d0-b5e6-4cf4-b416-d077eba5073d 2024-11-13 09:02:53,633 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/71a8981d-7b50-460c-87c7-649fc4ae6940 2024-11-13 09:02:53,643 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/71a8981d-7b50-460c-87c7-649fc4ae6940 2024-11-13 09:02:53,653 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d3269d3a-65bf-47bd-a065-5515882c9833 2024-11-13 09:02:53,661 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-13 09:02:53,661 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/44e660d0-b5e6-4cf4-b416-d077eba5073d 2024-11-13 09:02:53,676 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/71a8981d-7b50-460c-87c7-649fc4ae6940 2024-11-13 09:02:53,697 - INFO - Verified VN network id 7 for VN 44e660d0-b5e6-4cf4-b416-d077eba5073d 2024-11-13 09:02:53,697 - INFO - Verifications in API Server for VN ctest-vn-25656554 passed 2024-11-13 09:02:53,697 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/44e660d0-b5e6-4cf4-b416-d077eba5073d 2024-11-13 09:02:53,711 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/71a8981d-7b50-460c-87c7-649fc4ae6940 2024-11-13 09:02:53,721 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/71a8981d-7b50-460c-87c7-649fc4ae6940 2024-11-13 09:02:53,730 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d3269d3a-65bf-47bd-a065-5515882c9833 2024-11-13 09:02:53,746 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79496229', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4964762088743783668', 'uuid-lslong': '12976788589787809597'}, 'enable': 'true', 'created': '2024-11-13T09:02:51', 'last-modified': '2024-11-13T09:02:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.111461'} 2024-11-13 09:02:53,754 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-13 09:02:53,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25656554 passed 2024-11-13 09:02:53,754 - DEBUG - ====Verifying policy data for ctest-vn-25656554 in API_Server ====== 2024-11-13 09:02:53,754 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-13 09:02:53,763 - DEBUG - Requesting: http://10.0.0.12:8082/domain/37803685-2477-4c40-9a9f-d9b652eac567 2024-11-13 09:02:53,779 - DEBUG - Requesting: http://10.0.0.12:8082/project/f1392ac2-0181-4c1e-83f0-83f71d4dc79d 2024-11-13 09:02:53,865 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/44e660d0-b5e6-4cf4-b416-d077eba5073d 2024-11-13 09:02:53,880 - DEBUG - ==>Verifying data for policy with id: 415bb484-1d1a-4fbe-a42c-6c0aa5e3e5c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-policy-allow-all-86339654'] 2024-11-13 09:02:53,880 - INFO - VN ctest-vn-25656554 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-13 09:02:53,881 - DEBUG - Verifying the vn in opserver 2024-11-13 09:02:53,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554 virtual network link through opserver 10.0.0.12 2024-11-13 09:02:53,881 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-13 09:02:54,190 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-13 09:02:54,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554?flat'} 2024-11-13 09:02:54,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554 is found in opserver 2024-11-13 09:02:54,269 - DEBUG - Do not have enough data to verify VN in agent 2024-11-13 09:02:54,274 - DEBUG - VRF ids for VN ctest-vn-25656554: {} 2024-11-13 09:02:54,274 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-13 09:02:54,280 - DEBUG - Requesting: http://10.0.0.12:8082/domain/37803685-2477-4c40-9a9f-d9b652eac567 2024-11-13 09:02:54,295 - DEBUG - Requesting: http://10.0.0.12:8082/project/f1392ac2-0181-4c1e-83f0-83f71d4dc79d 2024-11-13 09:02:54,374 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/db835f11-eaa3-4198-b0bb-8263489401b8 2024-11-13 09:02:54,391 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/db835f11-eaa3-4198-b0bb-8263489401b8 2024-11-13 09:02:54,406 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e82bb5d9-f21c-422d-a348-31b8eaa57538 2024-11-13 09:02:54,416 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e82bb5d9-f21c-422d-a348-31b8eaa57538 2024-11-13 09:02:54,426 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/116b5baa-9c5b-4078-9a68-be0077482334 2024-11-13 09:02:54,434 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-13 09:02:54,434 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/db835f11-eaa3-4198-b0bb-8263489401b8 2024-11-13 09:02:54,449 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e82bb5d9-f21c-422d-a348-31b8eaa57538 2024-11-13 09:02:54,478 - INFO - Verified VN network id 8 for VN db835f11-eaa3-4198-b0bb-8263489401b8 2024-11-13 09:02:54,478 - INFO - Verifications in API Server for VN ctest-vn-87103544 passed 2024-11-13 09:02:54,478 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/db835f11-eaa3-4198-b0bb-8263489401b8 2024-11-13 09:02:54,493 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e82bb5d9-f21c-422d-a348-31b8eaa57538 2024-11-13 09:02:54,502 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e82bb5d9-f21c-422d-a348-31b8eaa57538 2024-11-13 09:02:54,513 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/116b5baa-9c5b-4078-9a68-be0077482334 2024-11-13 09:02:54,530 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-87103544', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79496229', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15817590846810964376', 'uuid-lslong': '12734915734251241912'}, 'enable': 'true', 'created': '2024-11-13T09:02:51', 'last-modified': '2024-11-13T09:02:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.585625'} 2024-11-13 09:02:54,537 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-13 09:02:54,538 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87103544 passed 2024-11-13 09:02:54,538 - DEBUG - ====Verifying policy data for ctest-vn-87103544 in API_Server ====== 2024-11-13 09:02:54,538 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-13 09:02:54,544 - DEBUG - Requesting: http://10.0.0.12:8082/domain/37803685-2477-4c40-9a9f-d9b652eac567 2024-11-13 09:02:54,561 - DEBUG - Requesting: http://10.0.0.12:8082/project/f1392ac2-0181-4c1e-83f0-83f71d4dc79d 2024-11-13 09:02:54,650 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/db835f11-eaa3-4198-b0bb-8263489401b8 2024-11-13 09:02:54,666 - DEBUG - ==>Verifying data for policy with id: 415bb484-1d1a-4fbe-a42c-6c0aa5e3e5c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-79496229', 'ctest-policy-allow-all-86339654'] 2024-11-13 09:02:54,666 - INFO - VN ctest-vn-87103544 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-13 09:02:54,666 - DEBUG - Verifying the vn in opserver 2024-11-13 09:02:54,666 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-87103544 virtual network link through opserver 10.0.0.12 2024-11-13 09:02:54,666 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-13 09:02:54,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-87103544', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-87103544?flat'} 2024-11-13 09:02:54,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-87103544 is found in opserver 2024-11-13 09:02:54,695 - DEBUG - Do not have enough data to verify VN in agent 2024-11-13 09:02:54,701 - DEBUG - VRF ids for VN ctest-vn-87103544: {} 2024-11-13 09:02:54,775 - DEBUG - Services list from nova: [, , ] 2024-11-13 09:02:55,879 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2282-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2282-1) 2024-11-13 09:02:57,247 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2282-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2282-1) 2024-11-13 09:02:57,248 - INFO - Waiting for VM ctest-TestBasicPolicy-79496229-85003832 to be up.. 2024-11-13 09:02:57,331 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-13 09:03:02,420 - DEBUG - VM is in ACTIVE state now 2024-11-13 09:03:02,420 - INFO - VM name : ctest-TestBasicPolicy-79496229-85003832 2024-11-13 09:03:02,512 - DEBUG - VM ctest-TestBasicPolicy-79496229-85003832 ID is 19508d2e-733b-4ca8-a4db-9e8f04c6e3f6 2024-11-13 09:03:02,531 - DEBUG - VM ctest-TestBasicPolicy-79496229-85003832 launched on Node cn-jenkins-deploy-platform-ansible-os-2282-1 2024-11-13 09:03:02,621 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/19508d2e-733b-4ca8-a4db-9e8f04c6e3f6 2024-11-13 09:03:02,632 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/60bc2fcd-320b-4b80-b547-60b8e808103d 2024-11-13 09:03:05,921 - 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-13 09:03:05,922 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79496229-85003832 failed! 2024-11-13 09:03:05,987 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79496229:ctest-vn-25656554 is 167.145.55.1 and allocation pool is NOT set 2024-11-13 09:03:08,053 - 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=9.51 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.504 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.504/5.006/9.509/4.502 ms') 2024-11-13 09:03:08,053 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79496229-85003832 passed 2024-11-13 09:03:08,207 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 09:03:08,207 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79496229-85003832, IP 167.145.55.3, Port 22 2024-11-13 09:03:08,367 - DEBUG - VM ctest-TestBasicPolicy-79496229-85003832 is ready for SSH connections 2024-11-13 09:03:08,367 - INFO - Waiting for VM ctest-TestBasicPolicy-79496229-85521122 to be up.. 2024-11-13 09:03:08,459 - DEBUG - VM is in ACTIVE state now 2024-11-13 09:03:08,459 - INFO - VM name : ctest-TestBasicPolicy-79496229-85521122 2024-11-13 09:03:08,546 - DEBUG - VM ctest-TestBasicPolicy-79496229-85521122 ID is a8dbbd34-bca5-41ac-9b17-ce8540c63a10 2024-11-13 09:03:08,546 - DEBUG - VM ctest-TestBasicPolicy-79496229-85521122 launched on Node cn-jenkins-deploy-platform-ansible-os-2282-1 2024-11-13 09:03:08,635 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/a8dbbd34-bca5-41ac-9b17-ce8540c63a10 2024-11-13 09:03:08,646 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/d5ce9a77-8dac-4857-9f23-02145e6f1ae7 2024-11-13 09:03:09,897 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.75 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.524 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.524/1.634/2.745/1.110 ms') 2024-11-13 09:03:09,897 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-79496229-85521122 passed 2024-11-13 09:03:10,055 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 09:03:10,055 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79496229-85521122, IP 44.14.6.67, Port 22 2024-11-13 09:03:10,211 - DEBUG - VM ctest-TestBasicPolicy-79496229-85521122 is ready for SSH connections 2024-11-13 09:03:10,211 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 09:03:10,211 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 44.14.6.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-13 09:03:10,211 - DEBUG - ping -s 56 -c 3 -W 1 44.14.6.67 2024-11-13 09:03:13,928 - DEBUG - PING 44.14.6.67 (44.14.6.67): 56 data bytes 64 bytes from 44.14.6.67: seq=0 ttl=63 time=4.414 ms 64 bytes from 44.14.6.67: seq=1 ttl=63 time=0.937 ms 64 bytes from 44.14.6.67: seq=2 ttl=63 time=0.925 ms --- 44.14.6.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.925/2.092/4.414 ms 2024-11-13 09:03:13,929 - INFO - Ping to IP 44.14.6.67 from VM ctest-TestBasicPolicy-79496229-85003832 passed 2024-11-13 09:03:14,123 - DEBUG - Policy Update Response {"network-policy": {"uuid": "415bb484-1d1a-4fbe-a42c-6c0aa5e3e5c7", "href": "http://10.0.0.12:8082/network-policy/415bb484-1d1a-4fbe-a42c-6c0aa5e3e5c7"}} 2024-11-13 09:03:14,123 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 09:03:14,123 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 44.14.6.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-13 09:03:14,123 - DEBUG - ping -s 56 -c 3 -W 1 44.14.6.67 2024-11-13 09:03:17,328 - DEBUG - PING 44.14.6.67 (44.14.6.67): 56 data bytes 64 bytes from 44.14.6.67: seq=0 ttl=63 time=2.254 ms --- 44.14.6.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.254/2.254/2.254 ms 2024-11-13 09:03:17,328 - WARNING - Ping to IP 44.14.6.67 from VM ctest-TestBasicPolicy-79496229-85003832 failed 2024-11-13 09:03:17,328 - INFO - Deleting VM ctest-TestBasicPolicy-79496229-85521122 2024-11-13 09:03:17,407 - INFO - Deleting VM ctest-TestBasicPolicy-79496229-85003832 2024-11-13 09:03:17,846 - INFO - Deleted policy ctest-policy-allow-all-86339654 2024-11-13 09:03:17,846 - INFO - Deleting VN ctest-vn-87103544 2024-11-13 09:03:17,892 - DEBUG - VN db835f11-eaa3-4198-b0bb-8263489401b8 still in use: Unable to complete operation on network db835f11-eaa3-4198-b0bb-8263489401b8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2d314391-ccf0-41ea-b034-06ee2ac95125'] 2024-11-13 09:03:17,892 - WARNING - Deleting VN ctest-vn-87103544 failed..Will retry 2024-11-13 09:03:20,015 - DEBUG - Response for deleting network () 2024-11-13 09:03:20,015 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e82bb5d9-f21c-422d-a348-31b8eaa57538 2024-11-13 09:03:20,021 - DEBUG - Response Code: 404 2024-11-13 09:03:20,021 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-13 09:03:20,029 - DEBUG - Requesting: http://10.0.0.12:8082/domain/37803685-2477-4c40-9a9f-d9b652eac567 2024-11-13 09:03:20,086 - DEBUG - Requesting: http://10.0.0.12:8082/project/f1392ac2-0181-4c1e-83f0-83f71d4dc79d 2024-11-13 09:03:20,174 - INFO - Validated that VN ctest-vn-87103544 is not found in API Server 2024-11-13 09:03:20,187 - DEBUG - VN ctest-vn-87103544 is not present in Agent 10.0.0.12 2024-11-13 09:03:20,187 - INFO - Validated that VN ctest-vn-87103544 is not in any agent 2024-11-13 09:03:20,206 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-87103544 info 2024-11-13 09:03:20,206 - INFO - Deleting VN ctest-vn-25656554 2024-11-13 09:03:20,337 - DEBUG - Response for deleting network () 2024-11-13 09:03:20,337 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/71a8981d-7b50-460c-87c7-649fc4ae6940 2024-11-13 09:03:20,344 - DEBUG - Response Code: 404 2024-11-13 09:03:20,344 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-13 09:03:20,351 - DEBUG - Requesting: http://10.0.0.12:8082/domain/37803685-2477-4c40-9a9f-d9b652eac567 2024-11-13 09:03:20,406 - DEBUG - Requesting: http://10.0.0.12:8082/project/f1392ac2-0181-4c1e-83f0-83f71d4dc79d 2024-11-13 09:03:20,494 - INFO - Validated that VN ctest-vn-25656554 is not found in API Server 2024-11-13 09:03:20,508 - DEBUG - VN ctest-vn-25656554 is not present in Agent 10.0.0.12 2024-11-13 09:03:20,508 - INFO - Validated that VN ctest-vn-25656554 is not in any agent 2024-11-13 09:03:20,525 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25656554 info 2024-11-13 09:03:20,780 - DEBUG - No XMPP flaps were noticed during the test
2024-11-13 09:03:20,781 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-11-13 09:03:20,781 - INFO - -------------------------------------------------------------------------------- 2024-11-13 09:03:21,501 - INFO - Deleted project: ctest-TestBasicPolicy-79496229, ID : f1392ac2-0181-4c1e-83f0-83f71d4dc79d