2024-08-27 04:16:48,722 - INFO - Domain Default found not creating 2024-08-27 04:16:48,937 - INFO - Project ctest-TestBasicPolicy-24824703 not found, creating it 2024-08-27 04:16:49,427 - INFO - Created Project:ctest-TestBasicPolicy-24824703, ID : e6d68760-690f-41d9-b6cf-06032311eae0 2024-08-27 04:16:51,787 - INFO - ================================================================================ 2024-08-27 04:16:51,787 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-27 04:16:51,787 - 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 04:16:52,062 - DEBUG - Nothing to compare xmpp stats {'10.0.0.59': {'10.20.0.10': '0'}} with 2024-08-27 04:16:52,062 - INFO - Initial checks done. Running the testcase now 2024-08-27 04:16:52,062 - INFO - 2024-08-27 04:16:52,627 - DEBUG - Response for create_network : {'network': {'id': 'b1068701-3520-4328-ae8a-fbf0b230ff2e', 'name': 'ctest-vn-22225692', 'tenant_id': 'e6d68760690f41d9b6cf06032311eae0', 'project_id': 'e6d68760690f41d9b6cf06032311eae0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-vn-22225692'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:16:52,832 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6e559ad-4dfc-4c7f-b394-ba39b9cebd98', 'name': '', 'tenant_id': 'e6d68760690f41d9b6cf06032311eae0', 'network_id': 'b1068701-3520-4328-ae8a-fbf0b230ff2e', 'ip_version': 4, 'cidr': '3.229.215.0/26', 'allocation_pools': [{'start': '3.229.215.2', 'end': '3.229.215.62'}], 'gateway_ip': '3.229.215.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.229.215.2', 'tags': [], 'project_id': 'e6d68760690f41d9b6cf06032311eae0'}} 2024-08-27 04:16:52,852 - INFO - Created VN ctest-vn-22225692 2024-08-27 04:16:52,904 - DEBUG - VN ctest-vn-22225692 UUID is b1068701-3520-4328-ae8a-fbf0b230ff2e 2024-08-27 04:16:53,226 - DEBUG - Response for create_network : {'network': {'id': 'ab92be52-c94b-47a5-a094-0551517f06f2', 'name': 'ctest-vn-09089859', 'tenant_id': 'e6d68760690f41d9b6cf06032311eae0', 'project_id': 'e6d68760690f41d9b6cf06032311eae0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-vn-09089859'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:16:53,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '633bf3ee-bd57-49ff-afff-e246ed46ecd6', 'name': '', 'tenant_id': 'e6d68760690f41d9b6cf06032311eae0', 'network_id': 'ab92be52-c94b-47a5-a094-0551517f06f2', 'ip_version': 4, 'cidr': '79.152.58.64/26', 'allocation_pools': [{'start': '79.152.58.66', 'end': '79.152.58.126'}], 'gateway_ip': '79.152.58.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.152.58.66', 'tags': [], 'project_id': 'e6d68760690f41d9b6cf06032311eae0'}} 2024-08-27 04:16:53,471 - INFO - Created VN ctest-vn-09089859 2024-08-27 04:16:53,524 - DEBUG - VN ctest-vn-09089859 UUID is ab92be52-c94b-47a5-a094-0551517f06f2 2024-08-27 04:16:53,641 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692, 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-24824703:ctest-vn-09089859, 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 04:16:53,942 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1068701-3520-4328-ae8a-fbf0b230ff2e', 'name': 'ctest-vn-22225692', 'tenant_id': 'e6d68760690f41d9b6cf06032311eae0', 'project_id': 'e6d68760690f41d9b6cf06032311eae0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6e559ad-4dfc-4c7f-b394-ba39b9cebd98'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-vn-22225692'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-policy-allow-all-89016670']], 'subnet_ipam': [{'subnet_cidr': '3.229.215.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:16:54,230 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab92be52-c94b-47a5-a094-0551517f06f2', 'name': 'ctest-vn-09089859', 'tenant_id': 'e6d68760690f41d9b6cf06032311eae0', 'project_id': 'e6d68760690f41d9b6cf06032311eae0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['633bf3ee-bd57-49ff-afff-e246ed46ecd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-vn-09089859'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-policy-allow-all-89016670']], 'subnet_ipam': [{'subnet_cidr': '79.152.58.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:16:54,384 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-08-27 04:16:54,683 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-08-27 04:16:54,714 - DEBUG - Requesting: http://10.0.0.59:8082/domain/94deac53-4bdf-4d6f-bfa9-73463c00ba54 2024-08-27 04:16:54,728 - DEBUG - Requesting: http://10.0.0.59:8082/project/e6d68760-690f-41d9-b6cf-06032311eae0 2024-08-27 04:16:54,802 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/b1068701-3520-4328-ae8a-fbf0b230ff2e 2024-08-27 04:16:54,815 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/b1068701-3520-4328-ae8a-fbf0b230ff2e 2024-08-27 04:16:54,827 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/76cc1cff-155f-4ec5-b761-99de6cd1d7af 2024-08-27 04:16:54,837 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/76cc1cff-155f-4ec5-b761-99de6cd1d7af 2024-08-27 04:16:54,847 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/672083e3-97c0-42ec-87cb-cf70a8b0f0ff 2024-08-27 04:16:54,855 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 04:16:54,855 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/b1068701-3520-4328-ae8a-fbf0b230ff2e 2024-08-27 04:16:54,866 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/76cc1cff-155f-4ec5-b761-99de6cd1d7af 2024-08-27 04:16:54,883 - INFO - Verified VN network id 7 for VN b1068701-3520-4328-ae8a-fbf0b230ff2e 2024-08-27 04:16:54,883 - INFO - Verifications in API Server for VN ctest-vn-22225692 passed 2024-08-27 04:16:54,883 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/b1068701-3520-4328-ae8a-fbf0b230ff2e 2024-08-27 04:16:54,896 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/76cc1cff-155f-4ec5-b761-99de6cd1d7af 2024-08-27 04:16:54,906 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/76cc1cff-155f-4ec5-b761-99de6cd1d7af 2024-08-27 04:16:54,913 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/672083e3-97c0-42ec-87cb-cf70a8b0f0ff 2024-08-27 04:16:54,926 - DEBUG - Control-node 10.0.0.59 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24824703', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12756031433829532456', 'uuid-lslong': '12577141920585809710'}, 'enable': 'true', 'created': '2024-08-27T04:16:52', 'last-modified': '2024-08-27T04:16:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005379'} 2024-08-27 04:16:54,933 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 04:16:54,933 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22225692 passed 2024-08-27 04:16:54,933 - DEBUG - ====Verifying policy data for ctest-vn-22225692 in API_Server ====== 2024-08-27 04:16:54,933 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-08-27 04:16:54,939 - DEBUG - Requesting: http://10.0.0.59:8082/domain/94deac53-4bdf-4d6f-bfa9-73463c00ba54 2024-08-27 04:16:54,952 - DEBUG - Requesting: http://10.0.0.59:8082/project/e6d68760-690f-41d9-b6cf-06032311eae0 2024-08-27 04:16:55,021 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/b1068701-3520-4328-ae8a-fbf0b230ff2e 2024-08-27 04:16:55,030 - DEBUG - ==>Verifying data for policy with id: b475e077-9128-448e-ab59-4fd4f9409d04, fqn: ['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-policy-allow-all-89016670'] 2024-08-27 04:16:55,030 - INFO - VN ctest-vn-22225692 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 04:16:55,030 - DEBUG - Verifying the vn in opserver 2024-08-27 04:16:55,030 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692 virtual network link through opserver 10.0.0.59 2024-08-27 04:16:55,030 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks 2024-08-27 04:16:55,356 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks 2024-08-27 04:16:55,426 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692', 'href': 'http://10.0.0.59:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692?flat'} 2024-08-27 04:16:55,426 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692 is found in opserver 2024-08-27 04:16:55,440 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 04:16:55,447 - DEBUG - VRF ids for VN ctest-vn-22225692: {} 2024-08-27 04:16:55,447 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-08-27 04:16:55,454 - DEBUG - Requesting: http://10.0.0.59:8082/domain/94deac53-4bdf-4d6f-bfa9-73463c00ba54 2024-08-27 04:16:55,470 - DEBUG - Requesting: http://10.0.0.59:8082/project/e6d68760-690f-41d9-b6cf-06032311eae0 2024-08-27 04:16:55,547 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/ab92be52-c94b-47a5-a094-0551517f06f2 2024-08-27 04:16:55,560 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/ab92be52-c94b-47a5-a094-0551517f06f2 2024-08-27 04:16:55,574 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/0eb49372-5f80-43f4-acdd-12fe908b6b88 2024-08-27 04:16:55,586 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/0eb49372-5f80-43f4-acdd-12fe908b6b88 2024-08-27 04:16:55,595 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/be333eae-abd3-4183-a73b-62905b5a39df 2024-08-27 04:16:55,604 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 04:16:55,604 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/ab92be52-c94b-47a5-a094-0551517f06f2 2024-08-27 04:16:55,614 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/0eb49372-5f80-43f4-acdd-12fe908b6b88 2024-08-27 04:16:55,630 - INFO - Verified VN network id 8 for VN ab92be52-c94b-47a5-a094-0551517f06f2 2024-08-27 04:16:55,630 - INFO - Verifications in API Server for VN ctest-vn-09089859 passed 2024-08-27 04:16:55,630 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/ab92be52-c94b-47a5-a094-0551517f06f2 2024-08-27 04:16:55,641 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/0eb49372-5f80-43f4-acdd-12fe908b6b88 2024-08-27 04:16:55,650 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/0eb49372-5f80-43f4-acdd-12fe908b6b88 2024-08-27 04:16:55,658 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/be333eae-abd3-4183-a73b-62905b5a39df 2024-08-27 04:16:55,673 - DEBUG - Control-node 10.0.0.59 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-09089859', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24824703', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12363153189859182501', 'uuid-lslong': '11570879189439416050'}, 'enable': 'true', 'created': '2024-08-27T04:16:53', 'last-modified': '2024-08-27T04:16:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.509930'} 2024-08-27 04:16:55,680 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 04:16:55,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09089859 passed 2024-08-27 04:16:55,680 - DEBUG - ====Verifying policy data for ctest-vn-09089859 in API_Server ====== 2024-08-27 04:16:55,680 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-08-27 04:16:55,687 - DEBUG - Requesting: http://10.0.0.59:8082/domain/94deac53-4bdf-4d6f-bfa9-73463c00ba54 2024-08-27 04:16:55,703 - DEBUG - Requesting: http://10.0.0.59:8082/project/e6d68760-690f-41d9-b6cf-06032311eae0 2024-08-27 04:16:55,782 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/ab92be52-c94b-47a5-a094-0551517f06f2 2024-08-27 04:16:55,793 - DEBUG - ==>Verifying data for policy with id: b475e077-9128-448e-ab59-4fd4f9409d04, fqn: ['default-domain', 'ctest-TestBasicPolicy-24824703', 'ctest-policy-allow-all-89016670'] 2024-08-27 04:16:55,793 - INFO - VN ctest-vn-09089859 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 04:16:55,793 - DEBUG - Verifying the vn in opserver 2024-08-27 04:16:55,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-09089859 virtual network link through opserver 10.0.0.59 2024-08-27 04:16:55,793 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks 2024-08-27 04:16:55,807 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-09089859', 'href': 'http://10.0.0.59:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-09089859?flat'} 2024-08-27 04:16:55,807 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-09089859 is found in opserver 2024-08-27 04:16:55,820 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 04:16:55,827 - DEBUG - VRF ids for VN ctest-vn-09089859: {} 2024-08-27 04:16:55,889 - DEBUG - Services list from nova: [, , ] 2024-08-27 04:16:56,939 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1788-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1788-1) 2024-08-27 04:16:58,655 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1788-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1788-1) 2024-08-27 04:16:58,655 - INFO - Waiting for VM ctest-TestBasicPolicy-24824703-32306025 to be up.. 2024-08-27 04:16:58,791 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 04:17:03,882 - DEBUG - VM is in ACTIVE state now 2024-08-27 04:17:03,882 - INFO - VM name : ctest-TestBasicPolicy-24824703-32306025 2024-08-27 04:17:03,972 - DEBUG - VM ctest-TestBasicPolicy-24824703-32306025 ID is db94723d-7ff4-4705-82db-9c3c3df5d44a 2024-08-27 04:17:03,993 - DEBUG - VM ctest-TestBasicPolicy-24824703-32306025 launched on Node cn-jenkins-deploy-platform-ansible-os-1788-1 2024-08-27 04:17:04,076 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine/db94723d-7ff4-4705-82db-9c3c3df5d44a 2024-08-27 04:17:04,090 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine-interface/5a0f1fd1-4ac1-4e4d-be0a-9d89e0d365c8 2024-08-27 04:17:07,355 - 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 1025ms') 2024-08-27 04:17:07,356 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-24824703-32306025 failed! 2024-08-27 04:17:07,424 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-24824703:ctest-vn-22225692 is 3.229.215.1 and allocation pool is NOT set 2024-08-27 04:17:09,508 - 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.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.12 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 = 2.787/2.953/3.119/0.166 ms') 2024-08-27 04:17:09,509 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-24824703-32306025 passed 2024-08-27 04:17:09,668 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:17:09,668 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-24824703-32306025, IP 3.229.215.3, Port 22 2024-08-27 04:17:09,724 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-08-27 04:17:09,810 - DEBUG - VM ctest-TestBasicPolicy-24824703-32306025 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-27 04:17:14,810 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:17:14,811 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-24824703-32306025, IP 3.229.215.3, Port 22 2024-08-27 04:17:14,964 - DEBUG - VM ctest-TestBasicPolicy-24824703-32306025 is ready for SSH connections 2024-08-27 04:17:14,964 - INFO - Waiting for VM ctest-TestBasicPolicy-24824703-06508080 to be up.. 2024-08-27 04:17:15,075 - DEBUG - VM is in ACTIVE state now 2024-08-27 04:17:15,076 - INFO - VM name : ctest-TestBasicPolicy-24824703-06508080 2024-08-27 04:17:15,165 - DEBUG - VM ctest-TestBasicPolicy-24824703-06508080 ID is 6a311c5c-87e2-4032-89f0-76ca2a348009 2024-08-27 04:17:15,165 - DEBUG - VM ctest-TestBasicPolicy-24824703-06508080 launched on Node cn-jenkins-deploy-platform-ansible-os-1788-1 2024-08-27 04:17:15,268 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine/6a311c5c-87e2-4032-89f0-76ca2a348009 2024-08-27 04:17:15,280 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine-interface/46d7be2d-c95c-4ef6-8ba1-e3fd317fea83 2024-08-27 04:17:16,527 - 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.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.377 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.377/1.591/2.805/1.214 ms') 2024-08-27 04:17:16,527 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-24824703-06508080 passed 2024-08-27 04:17:16,680 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:17:16,680 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-24824703-06508080, IP 79.152.58.67, Port 22 2024-08-27 04:17:16,835 - DEBUG - VM ctest-TestBasicPolicy-24824703-06508080 is ready for SSH connections 2024-08-27 04:17:16,835 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:17:16,835 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 79.152.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.59, gateway password: c0ntrail123 2024-08-27 04:17:16,835 - DEBUG - ping -s 56 -c 3 -W 1 79.152.58.67 2024-08-27 04:17:20,887 - DEBUG - PING 79.152.58.67 (79.152.58.67): 56 data bytes 64 bytes from 79.152.58.67: seq=0 ttl=63 time=3.814 ms 64 bytes from 79.152.58.67: seq=1 ttl=63 time=0.938 ms 64 bytes from 79.152.58.67: seq=2 ttl=63 time=0.789 ms --- 79.152.58.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.789/1.847/3.814 ms 2024-08-27 04:17:20,887 - INFO - Ping to IP 79.152.58.67 from VM ctest-TestBasicPolicy-24824703-32306025 passed 2024-08-27 04:17:21,080 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b475e077-9128-448e-ab59-4fd4f9409d04", "href": "http://10.0.0.59:8082/network-policy/b475e077-9128-448e-ab59-4fd4f9409d04"}} 2024-08-27 04:17:21,080 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:17:21,080 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 79.152.58.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.59, gateway password: c0ntrail123 2024-08-27 04:17:21,080 - DEBUG - ping -s 56 -c 3 -W 1 79.152.58.67 2024-08-27 04:17:24,319 - DEBUG - PING 79.152.58.67 (79.152.58.67): 56 data bytes --- 79.152.58.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-27 04:17:24,320 - WARNING - Ping to IP 79.152.58.67 from VM ctest-TestBasicPolicy-24824703-32306025 failed 2024-08-27 04:17:24,320 - INFO - Deleting VM ctest-TestBasicPolicy-24824703-06508080 2024-08-27 04:17:24,977 - INFO - Deleting VM ctest-TestBasicPolicy-24824703-32306025 2024-08-27 04:17:25,411 - INFO - Deleted policy ctest-policy-allow-all-89016670 2024-08-27 04:17:25,411 - INFO - Deleting VN ctest-vn-09089859 2024-08-27 04:17:25,458 - DEBUG - VN ab92be52-c94b-47a5-a094-0551517f06f2 still in use: Unable to complete operation on network ab92be52-c94b-47a5-a094-0551517f06f2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-666e7217-afdb-4ac9-bbe5-dbbe1e082a77'] 2024-08-27 04:17:25,458 - WARNING - Deleting VN ctest-vn-09089859 failed..Will retry 2024-08-27 04:17:27,500 - DEBUG - VN ab92be52-c94b-47a5-a094-0551517f06f2 still in use: Unable to complete operation on network ab92be52-c94b-47a5-a094-0551517f06f2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-22200830-e943-4802-9ba3-63218725016d'] 2024-08-27 04:17:27,500 - WARNING - Deleting VN ctest-vn-09089859 failed..Will retry 2024-08-27 04:17:31,697 - DEBUG - Response for deleting network () 2024-08-27 04:17:31,697 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/0eb49372-5f80-43f4-acdd-12fe908b6b88 2024-08-27 04:17:31,713 - DEBUG - Response Code: 404 2024-08-27 04:17:31,713 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-08-27 04:17:31,721 - DEBUG - Requesting: http://10.0.0.59:8082/domain/94deac53-4bdf-4d6f-bfa9-73463c00ba54 2024-08-27 04:17:31,747 - DEBUG - Requesting: http://10.0.0.59:8082/project/e6d68760-690f-41d9-b6cf-06032311eae0 2024-08-27 04:17:31,828 - INFO - Validated that VN ctest-vn-09089859 is not found in API Server 2024-08-27 04:17:31,842 - DEBUG - VN ctest-vn-09089859 is not present in Agent 10.0.0.59 2024-08-27 04:17:31,842 - INFO - Validated that VN ctest-vn-09089859 is not in any agent 2024-08-27 04:17:31,862 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-09089859 info 2024-08-27 04:17:31,863 - INFO - Deleting VN ctest-vn-22225692 2024-08-27 04:17:31,990 - DEBUG - Response for deleting network () 2024-08-27 04:17:31,990 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/76cc1cff-155f-4ec5-b761-99de6cd1d7af 2024-08-27 04:17:31,997 - DEBUG - Response Code: 404 2024-08-27 04:17:31,997 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2024-08-27 04:17:32,008 - DEBUG - Requesting: http://10.0.0.59:8082/domain/94deac53-4bdf-4d6f-bfa9-73463c00ba54 2024-08-27 04:17:32,066 - DEBUG - Requesting: http://10.0.0.59:8082/project/e6d68760-690f-41d9-b6cf-06032311eae0 2024-08-27 04:17:32,144 - INFO - Validated that VN ctest-vn-22225692 is not found in API Server 2024-08-27 04:17:32,156 - DEBUG - VN ctest-vn-22225692 is not present in Agent 10.0.0.59 2024-08-27 04:17:32,156 - INFO - Validated that VN ctest-vn-22225692 is not in any agent 2024-08-27 04:17:32,175 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22225692 info 2024-08-27 04:17:32,431 - DEBUG - No XMPP flaps were noticed during the test
2024-08-27 04:17:32,431 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:41]
2024-08-27 04:17:32,431 - INFO - -------------------------------------------------------------------------------- 2024-08-27 04:17:33,111 - INFO - Deleted project: ctest-TestBasicPolicy-24824703, ID : e6d68760-690f-41d9-b6cf-06032311eae0