2024-08-29 17:12:12,323 - INFO - Domain Default found not creating 2024-08-29 17:12:12,739 - INFO - Project ctest-TestBasicPolicy-15430872 not found, creating it 2024-08-29 17:12:13,599 - INFO - Created Project:ctest-TestBasicPolicy-15430872, ID : 86413988-d093-4d1f-bb85-437c82ee50c3 2024-08-29 17:12:16,195 - INFO - ================================================================================ 2024-08-29 17:12:16,195 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-29 17:12:16,196 - 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-29 17:12:16,530 - DEBUG - Nothing to compare xmpp stats {'10.0.0.76': {'10.20.0.6': '0'}} with 2024-08-29 17:12:16,530 - INFO - Initial checks done. Running the testcase now 2024-08-29 17:12:16,531 - INFO - 2024-08-29 17:12:17,406 - DEBUG - Response for create_network : {'network': {'id': 'f181d9fb-ef8d-41e9-a478-35774f933d05', 'name': 'ctest-vn-15822999', 'tenant_id': '86413988d0934d1fbb85437c82ee50c3', 'project_id': '86413988d0934d1fbb85437c82ee50c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-vn-15822999'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 17:12:17,673 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b396c99f-f1c5-41cb-b23c-0e640e6c47e4', 'name': '', 'tenant_id': '86413988d0934d1fbb85437c82ee50c3', 'network_id': 'f181d9fb-ef8d-41e9-a478-35774f933d05', 'ip_version': 4, 'cidr': '9.47.64.0/26', 'allocation_pools': [{'start': '9.47.64.2', 'end': '9.47.64.62'}], 'gateway_ip': '9.47.64.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.47.64.2', 'tags': [], 'project_id': '86413988d0934d1fbb85437c82ee50c3'}} 2024-08-29 17:12:17,697 - INFO - Created VN ctest-vn-15822999 2024-08-29 17:12:17,756 - DEBUG - VN ctest-vn-15822999 UUID is f181d9fb-ef8d-41e9-a478-35774f933d05 2024-08-29 17:12:18,127 - DEBUG - Response for create_network : {'network': {'id': 'ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5', 'name': 'ctest-vn-33478557', 'tenant_id': '86413988d0934d1fbb85437c82ee50c3', 'project_id': '86413988d0934d1fbb85437c82ee50c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-vn-33478557'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 17:12:18,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '65be00ea-6948-49e8-9e93-d3acd63c999d', 'name': '', 'tenant_id': '86413988d0934d1fbb85437c82ee50c3', 'network_id': 'ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5', 'ip_version': 4, 'cidr': '114.164.25.64/26', 'allocation_pools': [{'start': '114.164.25.66', 'end': '114.164.25.126'}], 'gateway_ip': '114.164.25.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.164.25.66', 'tags': [], 'project_id': '86413988d0934d1fbb85437c82ee50c3'}} 2024-08-29 17:12:18,429 - INFO - Created VN ctest-vn-33478557 2024-08-29 17:12:18,497 - DEBUG - VN ctest-vn-33478557 UUID is ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5 2024-08-29 17:12:18,691 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999, 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-15430872:ctest-vn-33478557, 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-29 17:12:19,083 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f181d9fb-ef8d-41e9-a478-35774f933d05', 'name': 'ctest-vn-15822999', 'tenant_id': '86413988d0934d1fbb85437c82ee50c3', 'project_id': '86413988d0934d1fbb85437c82ee50c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b396c99f-f1c5-41cb-b23c-0e640e6c47e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-vn-15822999'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-policy-allow-all-11562867']], 'subnet_ipam': [{'subnet_cidr': '9.47.64.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 17:12:19,464 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5', 'name': 'ctest-vn-33478557', 'tenant_id': '86413988d0934d1fbb85437c82ee50c3', 'project_id': '86413988d0934d1fbb85437c82ee50c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65be00ea-6948-49e8-9e93-d3acd63c999d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-vn-33478557'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-policy-allow-all-11562867']], 'subnet_ipam': [{'subnet_cidr': '114.164.25.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 17:12:19,621 - DEBUG - Requesting: http://10.0.0.76:8082/domains 2024-08-29 17:12:19,975 - DEBUG - Requesting: http://10.0.0.76:8082/domains 2024-08-29 17:12:20,036 - DEBUG - Requesting: http://10.0.0.76:8082/domain/2cb46772-2345-462a-943f-06f37f65d1de 2024-08-29 17:12:20,073 - DEBUG - Requesting: http://10.0.0.76:8082/project/86413988-d093-4d1f-bb85-437c82ee50c3 2024-08-29 17:12:20,198 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/f181d9fb-ef8d-41e9-a478-35774f933d05 2024-08-29 17:12:20,224 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/f181d9fb-ef8d-41e9-a478-35774f933d05 2024-08-29 17:12:20,243 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/856be88b-70fb-4cab-a9fb-80bf69983bd4 2024-08-29 17:12:20,261 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/856be88b-70fb-4cab-a9fb-80bf69983bd4 2024-08-29 17:12:20,279 - DEBUG - Requesting: http://10.0.0.76:8082/route-target/99040906-ad0a-41ab-ab5a-7429279d81e6 2024-08-29 17:12:20,297 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 17:12:20,297 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/f181d9fb-ef8d-41e9-a478-35774f933d05 2024-08-29 17:12:20,316 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/856be88b-70fb-4cab-a9fb-80bf69983bd4 2024-08-29 17:12:20,352 - INFO - Verified VN network id 7 for VN f181d9fb-ef8d-41e9-a478-35774f933d05 2024-08-29 17:12:20,352 - INFO - Verifications in API Server for VN ctest-vn-15822999 passed 2024-08-29 17:12:20,353 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/f181d9fb-ef8d-41e9-a478-35774f933d05 2024-08-29 17:12:20,373 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/856be88b-70fb-4cab-a9fb-80bf69983bd4 2024-08-29 17:12:20,386 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/856be88b-70fb-4cab-a9fb-80bf69983bd4 2024-08-29 17:12:20,399 - DEBUG - Requesting: http://10.0.0.76:8082/route-target/99040906-ad0a-41ab-ab5a-7429279d81e6 2024-08-29 17:12:20,428 - DEBUG - Control-node 10.0.0.76 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15430872', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17402430111215337961', 'uuid-lslong': '11851281205977890053'}, 'enable': 'true', 'created': '2024-08-29T17:12:17', 'last-modified': '2024-08-29T17:12:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.397540'} 2024-08-29 17:12:20,442 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 17:12:20,442 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15822999 passed 2024-08-29 17:12:20,442 - DEBUG - ====Verifying policy data for ctest-vn-15822999 in API_Server ====== 2024-08-29 17:12:20,442 - DEBUG - Requesting: http://10.0.0.76:8082/domains 2024-08-29 17:12:20,453 - DEBUG - Requesting: http://10.0.0.76:8082/domain/2cb46772-2345-462a-943f-06f37f65d1de 2024-08-29 17:12:20,479 - DEBUG - Requesting: http://10.0.0.76:8082/project/86413988-d093-4d1f-bb85-437c82ee50c3 2024-08-29 17:12:20,592 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/f181d9fb-ef8d-41e9-a478-35774f933d05 2024-08-29 17:12:20,610 - DEBUG - ==>Verifying data for policy with id: ef765820-9394-4ba0-924b-8eecca893087, fqn: ['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-policy-allow-all-11562867'] 2024-08-29 17:12:20,610 - INFO - VN ctest-vn-15822999 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 17:12:20,610 - DEBUG - Verifying the vn in opserver 2024-08-29 17:12:20,610 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999 virtual network link through opserver 10.0.0.76 2024-08-29 17:12:20,610 - DEBUG - Requesting: http://10.0.0.76:8081/analytics/uves/virtual-networks 2024-08-29 17:12:20,962 - DEBUG - Requesting: http://10.0.0.76:8081/analytics/uves/virtual-networks 2024-08-29 17:12:21,053 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999', 'href': 'http://10.0.0.76:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999?flat'} 2024-08-29 17:12:21,053 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999 is found in opserver 2024-08-29 17:12:21,087 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 17:12:21,101 - DEBUG - VRF ids for VN ctest-vn-15822999: {} 2024-08-29 17:12:21,101 - DEBUG - Requesting: http://10.0.0.76:8082/domains 2024-08-29 17:12:21,115 - DEBUG - Requesting: http://10.0.0.76:8082/domain/2cb46772-2345-462a-943f-06f37f65d1de 2024-08-29 17:12:21,147 - DEBUG - Requesting: http://10.0.0.76:8082/project/86413988-d093-4d1f-bb85-437c82ee50c3 2024-08-29 17:12:21,263 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5 2024-08-29 17:12:21,289 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5 2024-08-29 17:12:21,306 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/edf8f8b8-cf33-4358-852d-e0c9be9ea557 2024-08-29 17:12:21,324 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/edf8f8b8-cf33-4358-852d-e0c9be9ea557 2024-08-29 17:12:21,338 - DEBUG - Requesting: http://10.0.0.76:8082/route-target/d98b744b-3465-4719-aece-8f22941c8f05 2024-08-29 17:12:21,349 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 17:12:21,349 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5 2024-08-29 17:12:21,366 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/edf8f8b8-cf33-4358-852d-e0c9be9ea557 2024-08-29 17:12:21,406 - INFO - Verified VN network id 8 for VN ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5 2024-08-29 17:12:21,406 - INFO - Verifications in API Server for VN ctest-vn-33478557 passed 2024-08-29 17:12:21,407 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5 2024-08-29 17:12:21,432 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/edf8f8b8-cf33-4358-852d-e0c9be9ea557 2024-08-29 17:12:21,446 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/edf8f8b8-cf33-4358-852d-e0c9be9ea557 2024-08-29 17:12:21,459 - DEBUG - Requesting: http://10.0.0.76:8082/route-target/d98b744b-3465-4719-aece-8f22941c8f05 2024-08-29 17:12:21,484 - DEBUG - Control-node 10.0.0.76 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-33478557', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15430872', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12485639525896765753', 'uuid-lslong': '11261620126813890261'}, 'enable': 'true', 'created': '2024-08-29T17:12:18', 'last-modified': '2024-08-29T17:12:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.081895'} 2024-08-29 17:12:21,493 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 17:12:21,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33478557 passed 2024-08-29 17:12:21,493 - DEBUG - ====Verifying policy data for ctest-vn-33478557 in API_Server ====== 2024-08-29 17:12:21,493 - DEBUG - Requesting: http://10.0.0.76:8082/domains 2024-08-29 17:12:21,501 - DEBUG - Requesting: http://10.0.0.76:8082/domain/2cb46772-2345-462a-943f-06f37f65d1de 2024-08-29 17:12:21,529 - DEBUG - Requesting: http://10.0.0.76:8082/project/86413988-d093-4d1f-bb85-437c82ee50c3 2024-08-29 17:12:21,620 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-network/ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5 2024-08-29 17:12:21,633 - DEBUG - ==>Verifying data for policy with id: ef765820-9394-4ba0-924b-8eecca893087, fqn: ['default-domain', 'ctest-TestBasicPolicy-15430872', 'ctest-policy-allow-all-11562867'] 2024-08-29 17:12:21,633 - INFO - VN ctest-vn-33478557 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 17:12:21,633 - DEBUG - Verifying the vn in opserver 2024-08-29 17:12:21,633 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-33478557 virtual network link through opserver 10.0.0.76 2024-08-29 17:12:21,633 - DEBUG - Requesting: http://10.0.0.76:8081/analytics/uves/virtual-networks 2024-08-29 17:12:21,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-33478557', 'href': 'http://10.0.0.76:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-33478557?flat'} 2024-08-29 17:12:21,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-33478557 is found in opserver 2024-08-29 17:12:21,671 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 17:12:21,682 - DEBUG - VRF ids for VN ctest-vn-33478557: {} 2024-08-29 17:12:21,788 - DEBUG - Services list from nova: [, , ] 2024-08-29 17:12:23,286 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1811-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1811-1) 2024-08-29 17:12:24,889 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1811-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1811-1) 2024-08-29 17:12:24,890 - INFO - Waiting for VM ctest-TestBasicPolicy-15430872-16024203 to be up.. 2024-08-29 17:12:25,013 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 17:12:30,224 - DEBUG - VM is in ACTIVE state now 2024-08-29 17:12:30,225 - INFO - VM name : ctest-TestBasicPolicy-15430872-16024203 2024-08-29 17:12:30,366 - DEBUG - VM ctest-TestBasicPolicy-15430872-16024203 ID is d580568f-58fd-4e0e-85f0-72cbd068611f 2024-08-29 17:12:30,402 - DEBUG - VM ctest-TestBasicPolicy-15430872-16024203 launched on Node cn-jenkins-deploy-platform-ansible-os-1811-1 2024-08-29 17:12:30,596 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-machine/d580568f-58fd-4e0e-85f0-72cbd068611f 2024-08-29 17:12:30,618 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-machine-interface/b10af908-e071-4811-b403-e51fa4712965 2024-08-29 17:12:33,962 - 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 1009ms') 2024-08-29 17:12:33,962 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15430872-16024203 failed! 2024-08-29 17:12:34,029 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-15430872:ctest-vn-15822999 is 9.47.64.1 and allocation pool is NOT set 2024-08-29 17:12:36,102 - 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=17.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.30 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 = 1.295/9.603/17.911/8.308 ms') 2024-08-29 17:12:36,102 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15430872-16024203 passed 2024-08-29 17:12:36,275 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:12:36,275 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15430872-16024203, IP 9.47.64.3, Port 22 2024-08-29 17:12:36,457 - DEBUG - VM ctest-TestBasicPolicy-15430872-16024203 is ready for SSH connections 2024-08-29 17:12:36,457 - INFO - Waiting for VM ctest-TestBasicPolicy-15430872-97102819 to be up.. 2024-08-29 17:12:36,590 - DEBUG - VM is in ACTIVE state now 2024-08-29 17:12:36,590 - INFO - VM name : ctest-TestBasicPolicy-15430872-97102819 2024-08-29 17:12:36,723 - DEBUG - VM ctest-TestBasicPolicy-15430872-97102819 ID is f9a2f63d-b62d-45c8-8a0b-916a100f6da2 2024-08-29 17:12:36,723 - DEBUG - VM ctest-TestBasicPolicy-15430872-97102819 launched on Node cn-jenkins-deploy-platform-ansible-os-1811-1 2024-08-29 17:12:36,838 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-machine/f9a2f63d-b62d-45c8-8a0b-916a100f6da2 2024-08-29 17:12:36,852 - DEBUG - Requesting: http://10.0.0.76:8082/virtual-machine-interface/b7da442b-5495-483c-b70f-c5a2386ad045 2024-08-29 17:12:38,110 - 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=5.55 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.54 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 = 1.541/3.544/5.547/2.003 ms') 2024-08-29 17:12:38,111 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-15430872-97102819 passed 2024-08-29 17:12:38,293 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:12:38,293 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15430872-97102819, IP 114.164.25.67, Port 22 2024-08-29 17:12:38,364 - 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-08-29 17:12:38,544 - DEBUG - VM ctest-TestBasicPolicy-15430872-97102819 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-29 17:12:43,546 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:12:43,547 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15430872-97102819, IP 114.164.25.67, Port 22 2024-08-29 17:12:43,759 - DEBUG - VM ctest-TestBasicPolicy-15430872-97102819 is ready for SSH connections 2024-08-29 17:12:43,760 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:12:43,760 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 114.164.25.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.76, gateway password: c0ntrail123 2024-08-29 17:12:43,761 - DEBUG - ping -s 56 -c 3 -W 1 114.164.25.67 2024-08-29 17:12:48,248 - DEBUG - PING 114.164.25.67 (114.164.25.67): 56 data bytes 64 bytes from 114.164.25.67: seq=0 ttl=63 time=8.249 ms 64 bytes from 114.164.25.67: seq=1 ttl=63 time=3.419 ms 64 bytes from 114.164.25.67: seq=2 ttl=63 time=2.062 ms --- 114.164.25.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.062/4.576/8.249 ms 2024-08-29 17:12:48,249 - INFO - Ping to IP 114.164.25.67 from VM ctest-TestBasicPolicy-15430872-16024203 passed 2024-08-29 17:12:48,500 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ef765820-9394-4ba0-924b-8eecca893087", "href": "http://10.0.0.76:8082/network-policy/ef765820-9394-4ba0-924b-8eecca893087"}} 2024-08-29 17:12:48,500 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:12:48,500 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 114.164.25.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.76, gateway password: c0ntrail123 2024-08-29 17:12:48,500 - DEBUG - ping -s 56 -c 3 -W 1 114.164.25.67 2024-08-29 17:12:51,783 - DEBUG - PING 114.164.25.67 (114.164.25.67): 56 data bytes --- 114.164.25.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-29 17:12:51,783 - WARNING - Ping to IP 114.164.25.67 from VM ctest-TestBasicPolicy-15430872-16024203 failed 2024-08-29 17:12:51,783 - INFO - Deleting VM ctest-TestBasicPolicy-15430872-97102819 2024-08-29 17:12:51,888 - INFO - Deleting VM ctest-TestBasicPolicy-15430872-16024203 2024-08-29 17:12:52,358 - INFO - Deleted policy ctest-policy-allow-all-11562867 2024-08-29 17:12:52,358 - INFO - Deleting VN ctest-vn-33478557 2024-08-29 17:12:52,407 - DEBUG - VN ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5 still in use: Unable to complete operation on network ad45e6ff-3ea7-4139-9c49-4fd6b621a6d5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e083fe40-7509-4156-ad95-4f06c5f4cc3a'] 2024-08-29 17:12:52,407 - WARNING - Deleting VN ctest-vn-33478557 failed..Will retry 2024-08-29 17:12:54,610 - DEBUG - Response for deleting network () 2024-08-29 17:12:54,611 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/edf8f8b8-cf33-4358-852d-e0c9be9ea557 2024-08-29 17:12:54,632 - DEBUG - Response Code: 404 2024-08-29 17:12:54,632 - DEBUG - Requesting: http://10.0.0.76:8082/domains 2024-08-29 17:12:54,644 - DEBUG - Requesting: http://10.0.0.76:8082/domain/2cb46772-2345-462a-943f-06f37f65d1de 2024-08-29 17:12:54,671 - DEBUG - Requesting: http://10.0.0.76:8082/project/86413988-d093-4d1f-bb85-437c82ee50c3 2024-08-29 17:12:54,764 - INFO - Validated that VN ctest-vn-33478557 is not found in API Server 2024-08-29 17:12:54,783 - DEBUG - VN ctest-vn-33478557 is not present in Agent 10.0.0.76 2024-08-29 17:12:54,784 - INFO - Validated that VN ctest-vn-33478557 is not in any agent 2024-08-29 17:12:54,805 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33478557 info 2024-08-29 17:12:54,805 - INFO - Deleting VN ctest-vn-15822999 2024-08-29 17:12:54,959 - DEBUG - Response for deleting network () 2024-08-29 17:12:54,959 - DEBUG - Requesting: http://10.0.0.76:8082/routing-instance/856be88b-70fb-4cab-a9fb-80bf69983bd4 2024-08-29 17:12:54,964 - DEBUG - Response Code: 404 2024-08-29 17:12:54,964 - DEBUG - Requesting: http://10.0.0.76:8082/domains 2024-08-29 17:12:54,973 - DEBUG - Requesting: http://10.0.0.76:8082/domain/2cb46772-2345-462a-943f-06f37f65d1de 2024-08-29 17:12:55,030 - DEBUG - Requesting: http://10.0.0.76:8082/project/86413988-d093-4d1f-bb85-437c82ee50c3 2024-08-29 17:12:55,115 - INFO - Validated that VN ctest-vn-15822999 is not found in API Server 2024-08-29 17:12:55,134 - DEBUG - VN ctest-vn-15822999 is not present in Agent 10.0.0.76 2024-08-29 17:12:55,134 - INFO - Validated that VN ctest-vn-15822999 is not in any agent 2024-08-29 17:12:55,163 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-15822999 info 2024-08-29 17:12:55,462 - DEBUG - No XMPP flaps were noticed during the test 2024-08-29 17:12:55,462 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2024-08-29 17:12:55,462 - INFO - -------------------------------------------------------------------------------- 2024-08-29 17:12:56,488 - INFO - Deleted project: ctest-TestBasicPolicy-15430872, ID : 86413988-d093-4d1f-bb85-437c82ee50c3