2024-11-10 18:12:48,422 - INFO - Domain Default found not creating 2024-11-10 18:12:48,577 - INFO - Project ctest-TestBasicPolicy-29306247 not found, creating it 2024-11-10 18:12:49,074 - INFO - Created Project:ctest-TestBasicPolicy-29306247, ID : 933b2607-fbbf-4c8d-a369-7ab39f13e404 2024-11-10 18:12:50,583 - INFO - ================================================================================ 2024-11-10 18:12:50,583 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-10 18:12:50,583 - 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 18:12:50,850 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.27': '0'}} with 2024-11-10 18:12:50,850 - INFO - Initial checks done. Running the testcase now 2024-11-10 18:12:50,850 - INFO - 2024-11-10 18:12:51,419 - DEBUG - Response for create_network : {'network': {'id': '270041b7-51ca-4ae1-8f63-db6c4d088625', 'name': 'ctest-vn-15961764', 'tenant_id': '933b2607fbbf4c8da3697ab39f13e404', 'project_id': '933b2607fbbf4c8da3697ab39f13e404', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-vn-15961764'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:12:51,634 - DEBUG - Response for create_subnet : {'subnet': {'id': 'acc500ff-75e7-40a4-acca-0e133f841534', 'name': '', 'tenant_id': '933b2607fbbf4c8da3697ab39f13e404', 'network_id': '270041b7-51ca-4ae1-8f63-db6c4d088625', 'ip_version': 4, 'cidr': '171.242.92.0/26', 'allocation_pools': [{'start': '171.242.92.2', 'end': '171.242.92.62'}], 'gateway_ip': '171.242.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.242.92.2', 'tags': [], 'project_id': '933b2607fbbf4c8da3697ab39f13e404'}} 2024-11-10 18:12:51,652 - INFO - Created VN ctest-vn-15961764 2024-11-10 18:12:51,708 - DEBUG - VN ctest-vn-15961764 UUID is 270041b7-51ca-4ae1-8f63-db6c4d088625 2024-11-10 18:12:52,049 - DEBUG - Response for create_network : {'network': {'id': '19629f57-762b-4ef3-a398-a74e3bd92a70', 'name': 'ctest-vn-14833435', 'tenant_id': '933b2607fbbf4c8da3697ab39f13e404', 'project_id': '933b2607fbbf4c8da3697ab39f13e404', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-vn-14833435'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:12:52,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c1d680d-77b8-40fb-9daf-ffd74727bcd1', 'name': '', 'tenant_id': '933b2607fbbf4c8da3697ab39f13e404', 'network_id': '19629f57-762b-4ef3-a398-a74e3bd92a70', 'ip_version': 4, 'cidr': '86.19.154.0/26', 'allocation_pools': [{'start': '86.19.154.2', 'end': '86.19.154.62'}], 'gateway_ip': '86.19.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.19.154.2', 'tags': [], 'project_id': '933b2607fbbf4c8da3697ab39f13e404'}} 2024-11-10 18:12:52,280 - INFO - Created VN ctest-vn-14833435 2024-11-10 18:12:52,340 - DEBUG - VN ctest-vn-14833435 UUID is 19629f57-762b-4ef3-a398-a74e3bd92a70 2024-11-10 18:12:52,461 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764, 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-29306247:ctest-vn-14833435, 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 18:12:52,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '270041b7-51ca-4ae1-8f63-db6c4d088625', 'name': 'ctest-vn-15961764', 'tenant_id': '933b2607fbbf4c8da3697ab39f13e404', 'project_id': '933b2607fbbf4c8da3697ab39f13e404', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['acc500ff-75e7-40a4-acca-0e133f841534'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-vn-15961764'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-policy-allow-all-04704422']], 'subnet_ipam': [{'subnet_cidr': '171.242.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:12:53,037 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19629f57-762b-4ef3-a398-a74e3bd92a70', 'name': 'ctest-vn-14833435', 'tenant_id': '933b2607fbbf4c8da3697ab39f13e404', 'project_id': '933b2607fbbf4c8da3697ab39f13e404', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c1d680d-77b8-40fb-9daf-ffd74727bcd1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-vn-14833435'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-policy-allow-all-04704422']], 'subnet_ipam': [{'subnet_cidr': '86.19.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:12:53,220 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-10 18:12:53,525 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-10 18:12:53,558 - DEBUG - Requesting: http://10.0.0.35:8082/domain/5fbc21cc-9c14-4840-9024-747686178006 2024-11-10 18:12:53,575 - DEBUG - Requesting: http://10.0.0.35:8082/project/933b2607-fbbf-4c8d-a369-7ab39f13e404 2024-11-10 18:12:53,670 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/270041b7-51ca-4ae1-8f63-db6c4d088625 2024-11-10 18:12:53,688 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/270041b7-51ca-4ae1-8f63-db6c4d088625 2024-11-10 18:12:53,701 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/543b2b52-1272-43e6-b87b-8bae326a8004 2024-11-10 18:12:53,710 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/543b2b52-1272-43e6-b87b-8bae326a8004 2024-11-10 18:12:53,720 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/5230414b-8200-4879-b4f1-853a0594eb83 2024-11-10 18:12:53,727 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 18:12:53,727 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/270041b7-51ca-4ae1-8f63-db6c4d088625 2024-11-10 18:12:53,741 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/543b2b52-1272-43e6-b87b-8bae326a8004 2024-11-10 18:12:53,765 - INFO - Verified VN network id 7 for VN 270041b7-51ca-4ae1-8f63-db6c4d088625 2024-11-10 18:12:53,765 - INFO - Verifications in API Server for VN ctest-vn-15961764 passed 2024-11-10 18:12:53,765 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/270041b7-51ca-4ae1-8f63-db6c4d088625 2024-11-10 18:12:53,780 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/543b2b52-1272-43e6-b87b-8bae326a8004 2024-11-10 18:12:53,789 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/543b2b52-1272-43e6-b87b-8bae326a8004 2024-11-10 18:12:53,798 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/5230414b-8200-4879-b4f1-853a0594eb83 2024-11-10 18:12:53,816 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29306247', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2810318423086222049', 'uuid-lslong': '10332343228313404965'}, 'enable': 'true', 'created': '2024-11-10T18:12:51', 'last-modified': '2024-11-10T18:12:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.062722'} 2024-11-10 18:12:53,823 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 18:12:53,823 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15961764 passed 2024-11-10 18:12:53,824 - DEBUG - ====Verifying policy data for ctest-vn-15961764 in API_Server ====== 2024-11-10 18:12:53,824 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-10 18:12:53,830 - DEBUG - Requesting: http://10.0.0.35:8082/domain/5fbc21cc-9c14-4840-9024-747686178006 2024-11-10 18:12:53,843 - DEBUG - Requesting: http://10.0.0.35:8082/project/933b2607-fbbf-4c8d-a369-7ab39f13e404 2024-11-10 18:12:53,923 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/270041b7-51ca-4ae1-8f63-db6c4d088625 2024-11-10 18:12:53,936 - DEBUG - ==>Verifying data for policy with id: 4b0463c2-ef43-4e19-91d0-54a458381718, fqn: ['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-policy-allow-all-04704422'] 2024-11-10 18:12:53,936 - INFO - VN ctest-vn-15961764 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 18:12:53,936 - DEBUG - Verifying the vn in opserver 2024-11-10 18:12:53,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764 virtual network link through opserver 10.0.0.35 2024-11-10 18:12:53,937 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-11-10 18:12:54,251 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-11-10 18:12:54,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764?flat'} 2024-11-10 18:12:54,314 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764 is found in opserver 2024-11-10 18:12:54,325 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 18:12:54,330 - DEBUG - VRF ids for VN ctest-vn-15961764: {} 2024-11-10 18:12:54,330 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-10 18:12:54,336 - DEBUG - Requesting: http://10.0.0.35:8082/domain/5fbc21cc-9c14-4840-9024-747686178006 2024-11-10 18:12:54,350 - DEBUG - Requesting: http://10.0.0.35:8082/project/933b2607-fbbf-4c8d-a369-7ab39f13e404 2024-11-10 18:12:54,431 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19629f57-762b-4ef3-a398-a74e3bd92a70 2024-11-10 18:12:54,449 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19629f57-762b-4ef3-a398-a74e3bd92a70 2024-11-10 18:12:54,463 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/30586c09-ad02-42cf-a8cf-d8fbeaea7466 2024-11-10 18:12:54,473 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/30586c09-ad02-42cf-a8cf-d8fbeaea7466 2024-11-10 18:12:54,481 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/43d39cc1-c9b8-4a40-84f1-c265c6fb61f6 2024-11-10 18:12:54,488 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 18:12:54,488 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19629f57-762b-4ef3-a398-a74e3bd92a70 2024-11-10 18:12:54,502 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/30586c09-ad02-42cf-a8cf-d8fbeaea7466 2024-11-10 18:12:54,522 - INFO - Verified VN network id 8 for VN 19629f57-762b-4ef3-a398-a74e3bd92a70 2024-11-10 18:12:54,522 - INFO - Verifications in API Server for VN ctest-vn-14833435 passed 2024-11-10 18:12:54,522 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19629f57-762b-4ef3-a398-a74e3bd92a70 2024-11-10 18:12:54,537 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/30586c09-ad02-42cf-a8cf-d8fbeaea7466 2024-11-10 18:12:54,547 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/30586c09-ad02-42cf-a8cf-d8fbeaea7466 2024-11-10 18:12:54,556 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/43d39cc1-c9b8-4a40-84f1-c265c6fb61f6 2024-11-10 18:12:54,568 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-14833435', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29306247', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1829199596659363571', 'uuid-lslong': '11788355979095648880'}, 'enable': 'true', 'created': '2024-11-10T18:12:52', 'last-modified': '2024-11-10T18:12:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.560941'} 2024-11-10 18:12:54,576 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 18:12:54,576 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14833435 passed 2024-11-10 18:12:54,576 - DEBUG - ====Verifying policy data for ctest-vn-14833435 in API_Server ====== 2024-11-10 18:12:54,576 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-10 18:12:54,583 - DEBUG - Requesting: http://10.0.0.35:8082/domain/5fbc21cc-9c14-4840-9024-747686178006 2024-11-10 18:12:54,597 - DEBUG - Requesting: http://10.0.0.35:8082/project/933b2607-fbbf-4c8d-a369-7ab39f13e404 2024-11-10 18:12:54,678 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19629f57-762b-4ef3-a398-a74e3bd92a70 2024-11-10 18:12:54,693 - DEBUG - ==>Verifying data for policy with id: 4b0463c2-ef43-4e19-91d0-54a458381718, fqn: ['default-domain', 'ctest-TestBasicPolicy-29306247', 'ctest-policy-allow-all-04704422'] 2024-11-10 18:12:54,693 - INFO - VN ctest-vn-14833435 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 18:12:54,693 - DEBUG - Verifying the vn in opserver 2024-11-10 18:12:54,693 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-14833435 virtual network link through opserver 10.0.0.35 2024-11-10 18:12:54,693 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-11-10 18:12:54,704 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-14833435', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-14833435?flat'} 2024-11-10 18:12:54,704 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-14833435 is found in opserver 2024-11-10 18:12:54,716 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 18:12:54,725 - DEBUG - VRF ids for VN ctest-vn-14833435: {} 2024-11-10 18:12:54,778 - DEBUG - Services list from nova: [, , ] 2024-11-10 18:12:55,796 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2260-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2260-1) 2024-11-10 18:12:57,032 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2260-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2260-1) 2024-11-10 18:12:57,032 - INFO - Waiting for VM ctest-TestBasicPolicy-29306247-83868434 to be up.. 2024-11-10 18:12:57,127 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 18:13:02,210 - DEBUG - VM is in ACTIVE state now 2024-11-10 18:13:02,210 - INFO - VM name : ctest-TestBasicPolicy-29306247-83868434 2024-11-10 18:13:02,294 - DEBUG - VM ctest-TestBasicPolicy-29306247-83868434 ID is 8d4f34e7-e501-4457-b654-e3b72105aa51 2024-11-10 18:13:02,313 - DEBUG - VM ctest-TestBasicPolicy-29306247-83868434 launched on Node cn-jenkins-deploy-platform-ansible-os-2260-1 2024-11-10 18:13:02,424 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/8d4f34e7-e501-4457-b654-e3b72105aa51 2024-11-10 18:13:02,434 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/af973b95-cb81-48b2-9c66-cadaa69ce942 2024-11-10 18:13:05,698 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1007ms') 2024-11-10 18:13:05,698 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29306247-83868434 failed! 2024-11-10 18:13:05,760 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29306247:ctest-vn-15961764 is 171.242.92.1 and allocation pool is NOT set 2024-11-10 18:13:07,825 - 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=2.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.387 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.387/1.606/2.825/1.219 ms') 2024-11-10 18:13:07,825 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29306247-83868434 passed 2024-11-10 18:13:07,984 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:13:07,984 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29306247-83868434, IP 171.242.92.3, Port 22 2024-11-10 18:13:08,139 - DEBUG - VM ctest-TestBasicPolicy-29306247-83868434 is ready for SSH connections 2024-11-10 18:13:08,140 - INFO - Waiting for VM ctest-TestBasicPolicy-29306247-69856070 to be up.. 2024-11-10 18:13:08,214 - DEBUG - VM is in ACTIVE state now 2024-11-10 18:13:08,214 - INFO - VM name : ctest-TestBasicPolicy-29306247-69856070 2024-11-10 18:13:08,287 - DEBUG - VM ctest-TestBasicPolicy-29306247-69856070 ID is d0b2a54b-5f5c-4740-8fd6-e904b0b56018 2024-11-10 18:13:08,287 - DEBUG - VM ctest-TestBasicPolicy-29306247-69856070 launched on Node cn-jenkins-deploy-platform-ansible-os-2260-1 2024-11-10 18:13:08,361 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/d0b2a54b-5f5c-4740-8fd6-e904b0b56018 2024-11-10 18:13:08,370 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/e3512e26-babb-4ed2-aecc-78cbbf77d015 2024-11-10 18:13:09,614 - 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.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.535 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.535/1.786/3.037/1.251 ms') 2024-11-10 18:13:09,615 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-29306247-69856070 passed 2024-11-10 18:13:09,784 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:13:09,784 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29306247-69856070, IP 86.19.154.3, Port 22 2024-11-10 18:13:09,939 - DEBUG - VM ctest-TestBasicPolicy-29306247-69856070 is ready for SSH connections 2024-11-10 18:13:09,940 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:13:09,940 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 86.19.154.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-11-10 18:13:09,940 - DEBUG - ping -s 56 -c 3 -W 1 86.19.154.3 2024-11-10 18:13:13,897 - DEBUG - PING 86.19.154.3 (86.19.154.3): 56 data bytes 64 bytes from 86.19.154.3: seq=0 ttl=63 time=3.026 ms 64 bytes from 86.19.154.3: seq=1 ttl=63 time=0.821 ms 64 bytes from 86.19.154.3: seq=2 ttl=63 time=0.735 ms --- 86.19.154.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.735/1.527/3.026 ms 2024-11-10 18:13:13,897 - INFO - Ping to IP 86.19.154.3 from VM ctest-TestBasicPolicy-29306247-83868434 passed 2024-11-10 18:13:14,084 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4b0463c2-ef43-4e19-91d0-54a458381718", "href": "http://10.0.0.35:8082/network-policy/4b0463c2-ef43-4e19-91d0-54a458381718"}} 2024-11-10 18:13:14,084 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:13:14,084 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 86.19.154.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-11-10 18:13:14,084 - DEBUG - ping -s 56 -c 3 -W 1 86.19.154.3 2024-11-10 18:13:17,279 - DEBUG - PING 86.19.154.3 (86.19.154.3): 56 data bytes 64 bytes from 86.19.154.3: seq=0 ttl=63 time=1.771 ms --- 86.19.154.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.771/1.771/1.771 ms 2024-11-10 18:13:17,279 - WARNING - Ping to IP 86.19.154.3 from VM ctest-TestBasicPolicy-29306247-83868434 failed 2024-11-10 18:13:17,279 - INFO - Deleting VM ctest-TestBasicPolicy-29306247-69856070 2024-11-10 18:13:17,342 - INFO - Deleting VM ctest-TestBasicPolicy-29306247-83868434 2024-11-10 18:13:17,797 - INFO - Deleted policy ctest-policy-allow-all-04704422 2024-11-10 18:13:17,797 - INFO - Deleting VN ctest-vn-14833435 2024-11-10 18:13:17,846 - DEBUG - VN 19629f57-762b-4ef3-a398-a74e3bd92a70 still in use: Unable to complete operation on network 19629f57-762b-4ef3-a398-a74e3bd92a70. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-137dafc1-8c24-47c1-861b-d80965f28a3c'] 2024-11-10 18:13:17,846 - WARNING - Deleting VN ctest-vn-14833435 failed..Will retry 2024-11-10 18:13:19,959 - DEBUG - Response for deleting network () 2024-11-10 18:13:19,959 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/30586c09-ad02-42cf-a8cf-d8fbeaea7466 2024-11-10 18:13:19,966 - DEBUG - Response Code: 404 2024-11-10 18:13:19,966 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-10 18:13:19,973 - DEBUG - Requesting: http://10.0.0.35:8082/domain/5fbc21cc-9c14-4840-9024-747686178006 2024-11-10 18:13:20,030 - DEBUG - Requesting: http://10.0.0.35:8082/project/933b2607-fbbf-4c8d-a369-7ab39f13e404 2024-11-10 18:13:20,112 - INFO - Validated that VN ctest-vn-14833435 is not found in API Server 2024-11-10 18:13:20,124 - DEBUG - VN ctest-vn-14833435 is not present in Agent 10.0.0.35 2024-11-10 18:13:20,124 - INFO - Validated that VN ctest-vn-14833435 is not in any agent 2024-11-10 18:13:20,140 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-14833435 info 2024-11-10 18:13:20,140 - INFO - Deleting VN ctest-vn-15961764 2024-11-10 18:13:20,249 - DEBUG - Response for deleting network () 2024-11-10 18:13:20,249 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/543b2b52-1272-43e6-b87b-8bae326a8004 2024-11-10 18:13:20,256 - DEBUG - Response Code: 404 2024-11-10 18:13:20,256 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-10 18:13:20,261 - DEBUG - Requesting: http://10.0.0.35:8082/domain/5fbc21cc-9c14-4840-9024-747686178006 2024-11-10 18:13:20,314 - DEBUG - Requesting: http://10.0.0.35:8082/project/933b2607-fbbf-4c8d-a369-7ab39f13e404 2024-11-10 18:13:20,395 - INFO - Validated that VN ctest-vn-15961764 is not found in API Server 2024-11-10 18:13:20,405 - DEBUG - VN ctest-vn-15961764 is not present in Agent 10.0.0.35 2024-11-10 18:13:20,405 - INFO - Validated that VN ctest-vn-15961764 is not in any agent 2024-11-10 18:13:20,420 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-15961764 info 2024-11-10 18:13:20,675 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 18:13:20,675 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-11-10 18:13:20,675 - INFO - -------------------------------------------------------------------------------- 2024-11-10 18:13:21,385 - INFO - Deleted project: ctest-TestBasicPolicy-29306247, ID : 933b2607-fbbf-4c8d-a369-7ab39f13e404