2024-11-13 11:52:18,065 - INFO - Domain Default found not creating 2024-11-13 11:52:18,246 - INFO - Project ctest-TestBasicPolicy-10820322 not found, creating it 2024-11-13 11:52:18,746 - INFO - Created Project:ctest-TestBasicPolicy-10820322, ID : 92550011-749f-492b-8833-c4007792bac7 2024-11-13 11:52:20,286 - INFO - ================================================================================ 2024-11-13 11:52:20,286 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-13 11:52:20,286 - 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 11:52:20,546 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.17': '0'}} with 2024-11-13 11:52:20,546 - INFO - Initial checks done. Running the testcase now 2024-11-13 11:52:20,546 - INFO - 2024-11-13 11:52:21,150 - DEBUG - Response for create_network : {'network': {'id': '4901c6e3-da76-4afb-9155-10c18eabf3c9', 'name': 'ctest-vn-03728161', 'tenant_id': '92550011749f492b8833c4007792bac7', 'project_id': '92550011749f492b8833c4007792bac7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-vn-03728161'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 11:52:21,357 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca6d13de-223d-4d0b-bdd9-052f69d9640a', 'name': '', 'tenant_id': '92550011749f492b8833c4007792bac7', 'network_id': '4901c6e3-da76-4afb-9155-10c18eabf3c9', 'ip_version': 4, 'cidr': '109.175.161.64/26', 'allocation_pools': [{'start': '109.175.161.66', 'end': '109.175.161.126'}], 'gateway_ip': '109.175.161.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.175.161.66', 'tags': [], 'project_id': '92550011749f492b8833c4007792bac7'}} 2024-11-13 11:52:21,379 - INFO - Created VN ctest-vn-03728161 2024-11-13 11:52:21,436 - DEBUG - VN ctest-vn-03728161 UUID is 4901c6e3-da76-4afb-9155-10c18eabf3c9 2024-11-13 11:52:21,748 - DEBUG - Response for create_network : {'network': {'id': 'd9fbd898-1e92-45fe-8672-71cad04f66ed', 'name': 'ctest-vn-57905710', 'tenant_id': '92550011749f492b8833c4007792bac7', 'project_id': '92550011749f492b8833c4007792bac7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-vn-57905710'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 11:52:21,902 - DEBUG - Response for create_subnet : {'subnet': {'id': '91a2f603-ef82-4438-b2c9-ea4fcb00cbb1', 'name': '', 'tenant_id': '92550011749f492b8833c4007792bac7', 'network_id': 'd9fbd898-1e92-45fe-8672-71cad04f66ed', 'ip_version': 4, 'cidr': '219.176.169.128/26', 'allocation_pools': [{'start': '219.176.169.130', 'end': '219.176.169.190'}], 'gateway_ip': '219.176.169.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.176.169.130', 'tags': [], 'project_id': '92550011749f492b8833c4007792bac7'}} 2024-11-13 11:52:21,922 - INFO - Created VN ctest-vn-57905710 2024-11-13 11:52:21,984 - DEBUG - VN ctest-vn-57905710 UUID is d9fbd898-1e92-45fe-8672-71cad04f66ed 2024-11-13 11:52:22,108 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161, 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-10820322:ctest-vn-57905710, 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 11:52:22,421 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4901c6e3-da76-4afb-9155-10c18eabf3c9', 'name': 'ctest-vn-03728161', 'tenant_id': '92550011749f492b8833c4007792bac7', 'project_id': '92550011749f492b8833c4007792bac7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca6d13de-223d-4d0b-bdd9-052f69d9640a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-vn-03728161'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-policy-allow-all-25521364']], 'subnet_ipam': [{'subnet_cidr': '109.175.161.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-13 11:52:22,711 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9fbd898-1e92-45fe-8672-71cad04f66ed', 'name': 'ctest-vn-57905710', 'tenant_id': '92550011749f492b8833c4007792bac7', 'project_id': '92550011749f492b8833c4007792bac7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91a2f603-ef82-4438-b2c9-ea4fcb00cbb1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-vn-57905710'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-policy-allow-all-25521364']], 'subnet_ipam': [{'subnet_cidr': '219.176.169.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-13 11:52:22,860 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-13 11:52:23,166 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-13 11:52:23,199 - DEBUG - Requesting: http://10.0.0.31:8082/domain/938998a0-bd48-4e09-9aa0-9fb1ebf86f93 2024-11-13 11:52:23,215 - DEBUG - Requesting: http://10.0.0.31:8082/project/92550011-749f-492b-8833-c4007792bac7 2024-11-13 11:52:23,298 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4901c6e3-da76-4afb-9155-10c18eabf3c9 2024-11-13 11:52:23,315 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4901c6e3-da76-4afb-9155-10c18eabf3c9 2024-11-13 11:52:23,329 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/411e4d3f-e9f2-446e-baa4-0191aaffea55 2024-11-13 11:52:23,341 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/411e4d3f-e9f2-446e-baa4-0191aaffea55 2024-11-13 11:52:23,355 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/a041e40c-6a23-4fb9-9852-4d85f33e7cdf 2024-11-13 11:52:23,366 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-13 11:52:23,366 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4901c6e3-da76-4afb-9155-10c18eabf3c9 2024-11-13 11:52:23,383 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/411e4d3f-e9f2-446e-baa4-0191aaffea55 2024-11-13 11:52:23,406 - INFO - Verified VN network id 8 for VN 4901c6e3-da76-4afb-9155-10c18eabf3c9 2024-11-13 11:52:23,407 - INFO - Verifications in API Server for VN ctest-vn-03728161 passed 2024-11-13 11:52:23,407 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4901c6e3-da76-4afb-9155-10c18eabf3c9 2024-11-13 11:52:23,421 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/411e4d3f-e9f2-446e-baa4-0191aaffea55 2024-11-13 11:52:23,431 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/411e4d3f-e9f2-446e-baa4-0191aaffea55 2024-11-13 11:52:23,440 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/a041e40c-6a23-4fb9-9852-4d85f33e7cdf 2024-11-13 11:52:23,458 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10820322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5260704521670511355', 'uuid-lslong': '10472294932028322761'}, 'enable': 'true', 'created': '2024-11-13T11:52:21', 'last-modified': '2024-11-13T11:52:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.060459'} 2024-11-13 11:52:23,467 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-13 11:52:23,467 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03728161 passed 2024-11-13 11:52:23,467 - DEBUG - ====Verifying policy data for ctest-vn-03728161 in API_Server ====== 2024-11-13 11:52:23,467 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-13 11:52:23,474 - DEBUG - Requesting: http://10.0.0.31:8082/domain/938998a0-bd48-4e09-9aa0-9fb1ebf86f93 2024-11-13 11:52:23,489 - DEBUG - Requesting: http://10.0.0.31:8082/project/92550011-749f-492b-8833-c4007792bac7 2024-11-13 11:52:23,569 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4901c6e3-da76-4afb-9155-10c18eabf3c9 2024-11-13 11:52:23,583 - DEBUG - ==>Verifying data for policy with id: e3dcf5f7-9fa4-409d-80f5-68f640ae4838, fqn: ['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-policy-allow-all-25521364'] 2024-11-13 11:52:23,583 - INFO - VN ctest-vn-03728161 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-13 11:52:23,583 - DEBUG - Verifying the vn in opserver 2024-11-13 11:52:23,583 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161 virtual network link through opserver 10.0.0.31 2024-11-13 11:52:23,583 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-11-13 11:52:23,875 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-11-13 11:52:23,947 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161?flat'} 2024-11-13 11:52:23,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161 is found in opserver 2024-11-13 11:52:23,958 - DEBUG - Do not have enough data to verify VN in agent 2024-11-13 11:52:23,964 - DEBUG - VRF ids for VN ctest-vn-03728161: {} 2024-11-13 11:52:23,964 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-13 11:52:23,971 - DEBUG - Requesting: http://10.0.0.31:8082/domain/938998a0-bd48-4e09-9aa0-9fb1ebf86f93 2024-11-13 11:52:23,985 - DEBUG - Requesting: http://10.0.0.31:8082/project/92550011-749f-492b-8833-c4007792bac7 2024-11-13 11:52:24,070 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d9fbd898-1e92-45fe-8672-71cad04f66ed 2024-11-13 11:52:24,090 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d9fbd898-1e92-45fe-8672-71cad04f66ed 2024-11-13 11:52:24,104 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e2beaff1-720a-485c-b56c-016b6b09403e 2024-11-13 11:52:24,114 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e2beaff1-720a-485c-b56c-016b6b09403e 2024-11-13 11:52:24,124 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/d77a6b51-55f1-472d-aeea-5680081539be 2024-11-13 11:52:24,132 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-13 11:52:24,132 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d9fbd898-1e92-45fe-8672-71cad04f66ed 2024-11-13 11:52:24,149 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e2beaff1-720a-485c-b56c-016b6b09403e 2024-11-13 11:52:24,172 - INFO - Verified VN network id 9 for VN d9fbd898-1e92-45fe-8672-71cad04f66ed 2024-11-13 11:52:24,172 - INFO - Verifications in API Server for VN ctest-vn-57905710 passed 2024-11-13 11:52:24,172 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d9fbd898-1e92-45fe-8672-71cad04f66ed 2024-11-13 11:52:24,187 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e2beaff1-720a-485c-b56c-016b6b09403e 2024-11-13 11:52:24,197 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e2beaff1-720a-485c-b56c-016b6b09403e 2024-11-13 11:52:24,207 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/d77a6b51-55f1-472d-aeea-5680081539be 2024-11-13 11:52:24,221 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-57905710', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10820322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15707386273244268030', 'uuid-lslong': '9687930864319555309'}, 'enable': 'true', 'created': '2024-11-13T11:52:21', 'last-modified': '2024-11-13T11:52:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.572128'} 2024-11-13 11:52:24,228 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-13 11:52:24,228 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57905710 passed 2024-11-13 11:52:24,229 - DEBUG - ====Verifying policy data for ctest-vn-57905710 in API_Server ====== 2024-11-13 11:52:24,229 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-13 11:52:24,235 - DEBUG - Requesting: http://10.0.0.31:8082/domain/938998a0-bd48-4e09-9aa0-9fb1ebf86f93 2024-11-13 11:52:24,250 - DEBUG - Requesting: http://10.0.0.31:8082/project/92550011-749f-492b-8833-c4007792bac7 2024-11-13 11:52:24,334 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d9fbd898-1e92-45fe-8672-71cad04f66ed 2024-11-13 11:52:24,350 - DEBUG - ==>Verifying data for policy with id: e3dcf5f7-9fa4-409d-80f5-68f640ae4838, fqn: ['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-policy-allow-all-25521364'] 2024-11-13 11:52:24,350 - INFO - VN ctest-vn-57905710 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-13 11:52:24,350 - DEBUG - Verifying the vn in opserver 2024-11-13 11:52:24,350 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-57905710 virtual network link through opserver 10.0.0.31 2024-11-13 11:52:24,350 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-11-13 11:52:24,363 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-57905710', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-57905710?flat'} 2024-11-13 11:52:24,363 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-57905710 is found in opserver 2024-11-13 11:52:24,377 - DEBUG - Do not have enough data to verify VN in agent 2024-11-13 11:52:24,382 - DEBUG - VRF ids for VN ctest-vn-57905710: {} 2024-11-13 11:52:24,454 - DEBUG - Services list from nova: [, , ] 2024-11-13 11:52:25,527 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2283-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2283-1) 2024-11-13 11:52:27,036 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2283-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2283-1) 2024-11-13 11:52:27,036 - INFO - Waiting for VM ctest-TestBasicPolicy-10820322-19720144 to be up.. 2024-11-13 11:52:27,141 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-13 11:52:32,231 - DEBUG - VM is in ACTIVE state now 2024-11-13 11:52:32,231 - INFO - VM name : ctest-TestBasicPolicy-10820322-19720144 2024-11-13 11:52:32,315 - DEBUG - VM ctest-TestBasicPolicy-10820322-19720144 ID is f34a4cb7-f710-4970-89f2-6ef8fc602520 2024-11-13 11:52:32,334 - DEBUG - VM ctest-TestBasicPolicy-10820322-19720144 launched on Node cn-jenkins-deploy-platform-ansible-os-2283-1 2024-11-13 11:52:32,416 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/f34a4cb7-f710-4970-89f2-6ef8fc602520 2024-11-13 11:52:32,426 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/bcdeb556-43cc-47ad-83a8-3eda86633c42 2024-11-13 11:52:35,733 - 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 1034ms') 2024-11-13 11:52:35,733 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10820322-19720144 failed! 2024-11-13 11:52:35,796 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161 is 109.175.161.65 and allocation pool is NOT set 2024-11-13 11:52:37,867 - 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.12 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.402 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.402/4.759/9.116/4.357 ms') 2024-11-13 11:52:37,867 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10820322-19720144 passed 2024-11-13 11:52:38,024 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:52:38,024 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10820322-19720144, IP 109.175.161.67, Port 22 2024-11-13 11:52:38,180 - DEBUG - VM ctest-TestBasicPolicy-10820322-19720144 is ready for SSH connections 2024-11-13 11:52:38,180 - INFO - Waiting for VM ctest-TestBasicPolicy-10820322-38476008 to be up.. 2024-11-13 11:52:38,259 - DEBUG - VM is in ACTIVE state now 2024-11-13 11:52:38,259 - INFO - VM name : ctest-TestBasicPolicy-10820322-38476008 2024-11-13 11:52:38,336 - DEBUG - VM ctest-TestBasicPolicy-10820322-38476008 ID is 9334c0e7-71ec-478f-afda-8afd2c1e584e 2024-11-13 11:52:38,336 - DEBUG - VM ctest-TestBasicPolicy-10820322-38476008 launched on Node cn-jenkins-deploy-platform-ansible-os-2283-1 2024-11-13 11:52:38,413 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/9334c0e7-71ec-478f-afda-8afd2c1e584e 2024-11-13 11:52:38,423 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/11d8d8da-ea72-4082-8595-4ba4475201cf 2024-11-13 11:52:39,679 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.580 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.580/2.114/3.649/1.534 ms') 2024-11-13 11:52:39,679 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-10820322-38476008 passed 2024-11-13 11:52:39,836 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:52:39,836 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10820322-38476008, IP 219.176.169.131, Port 22 2024-11-13 11:52:39,892 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-11-13 11:52:39,972 - DEBUG - VM ctest-TestBasicPolicy-10820322-38476008 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-13 11:52:44,973 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:52:44,973 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10820322-38476008, IP 219.176.169.131, Port 22 2024-11-13 11:52:45,135 - DEBUG - VM ctest-TestBasicPolicy-10820322-38476008 is ready for SSH connections 2024-11-13 11:52:45,135 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:52:45,135 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 219.176.169.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-11-13 11:52:45,136 - DEBUG - ping -s 56 -c 3 -W 1 219.176.169.131 2024-11-13 11:52:49,140 - DEBUG - PING 219.176.169.131 (219.176.169.131): 56 data bytes 64 bytes from 219.176.169.131: seq=0 ttl=63 time=4.088 ms 64 bytes from 219.176.169.131: seq=1 ttl=63 time=0.769 ms 64 bytes from 219.176.169.131: seq=2 ttl=63 time=0.800 ms --- 219.176.169.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.769/1.885/4.088 ms 2024-11-13 11:52:49,140 - INFO - Ping to IP 219.176.169.131 from VM ctest-TestBasicPolicy-10820322-19720144 passed 2024-11-13 11:52:49,332 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e3dcf5f7-9fa4-409d-80f5-68f640ae4838", "href": "http://10.0.0.31:8082/network-policy/e3dcf5f7-9fa4-409d-80f5-68f640ae4838"}} 2024-11-13 11:52:49,332 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 11:52:49,332 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 219.176.169.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-11-13 11:52:49,332 - DEBUG - ping -s 56 -c 3 -W 1 219.176.169.131 2024-11-13 11:52:52,539 - DEBUG - PING 219.176.169.131 (219.176.169.131): 56 data bytes 64 bytes from 219.176.169.131: seq=0 ttl=63 time=1.429 ms --- 219.176.169.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.429/1.429/1.429 ms 2024-11-13 11:52:52,539 - WARNING - Ping to IP 219.176.169.131 from VM ctest-TestBasicPolicy-10820322-19720144 failed 2024-11-13 11:52:52,540 - INFO - Deleting VM ctest-TestBasicPolicy-10820322-38476008 2024-11-13 11:52:52,612 - INFO - Deleting VM ctest-TestBasicPolicy-10820322-19720144 2024-11-13 11:52:53,034 - INFO - Deleted policy ctest-policy-allow-all-25521364 2024-11-13 11:52:53,034 - INFO - Deleting VN ctest-vn-57905710 2024-11-13 11:52:53,083 - DEBUG - VN d9fbd898-1e92-45fe-8672-71cad04f66ed still in use: Unable to complete operation on network d9fbd898-1e92-45fe-8672-71cad04f66ed. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-38a73436-a673-491e-8e46-deeab15cbc2d'] 2024-11-13 11:52:53,083 - WARNING - Deleting VN ctest-vn-57905710 failed..Will retry 2024-11-13 11:52:55,196 - DEBUG - Response for deleting network () 2024-11-13 11:52:55,196 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e2beaff1-720a-485c-b56c-016b6b09403e 2024-11-13 11:52:55,203 - DEBUG - Response Code: 404 2024-11-13 11:52:55,203 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-13 11:52:55,209 - DEBUG - Requesting: http://10.0.0.31:8082/domain/938998a0-bd48-4e09-9aa0-9fb1ebf86f93 2024-11-13 11:52:55,266 - DEBUG - Requesting: http://10.0.0.31:8082/project/92550011-749f-492b-8833-c4007792bac7 2024-11-13 11:52:55,344 - INFO - Validated that VN ctest-vn-57905710 is not found in API Server 2024-11-13 11:52:55,355 - DEBUG - VN ctest-vn-57905710 is not present in Agent 10.0.0.31 2024-11-13 11:52:55,355 - INFO - Validated that VN ctest-vn-57905710 is not in any agent 2024-11-13 11:52:55,371 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57905710 info 2024-11-13 11:52:55,371 - INFO - Deleting VN ctest-vn-03728161 2024-11-13 11:52:55,484 - DEBUG - Response for deleting network () 2024-11-13 11:52:55,484 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/411e4d3f-e9f2-446e-baa4-0191aaffea55 2024-11-13 11:52:55,497 - DEBUG - Response Code: 404 2024-11-13 11:52:55,497 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-11-13 11:52:55,505 - DEBUG - Requesting: http://10.0.0.31:8082/domain/938998a0-bd48-4e09-9aa0-9fb1ebf86f93 2024-11-13 11:52:55,562 - DEBUG - Requesting: http://10.0.0.31:8082/project/92550011-749f-492b-8833-c4007792bac7 2024-11-13 11:52:55,644 - INFO - Validated that VN ctest-vn-03728161 is not found in API Server 2024-11-13 11:52:55,657 - DEBUG - VN ctest-vn-03728161 is not present in Agent 10.0.0.31 2024-11-13 11:52:55,657 - INFO - Validated that VN ctest-vn-03728161 is not in any agent 2024-11-13 11:52:55,676 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03728161 info 2024-11-13 11:52:55,938 - DEBUG - No XMPP flaps were noticed during the test
2024-11-13 11:52:55,938 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2024-11-13 11:52:55,938 - INFO - -------------------------------------------------------------------------------- 2024-11-13 11:52:56,632 - INFO - Deleted project: ctest-TestBasicPolicy-10820322, ID : 92550011-749f-492b-8833-c4007792bac7