2024-08-29 13:25:41,762 - INFO - Domain Default found not creating 2024-08-29 13:25:41,964 - INFO - Project ctest-TestBasicPolicy-82317975 not found, creating it 2024-08-29 13:25:42,483 - INFO - Created Project:ctest-TestBasicPolicy-82317975, ID : dfd98e34-273b-498b-8d25-30aa0847824e 2024-08-29 13:25:44,280 - INFO - ================================================================================ 2024-08-29 13:25:44,280 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-29 13:25:44,280 - 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 13:25:44,545 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.13': '0'}} with 2024-08-29 13:25:44,545 - INFO - Initial checks done. Running the testcase now 2024-08-29 13:25:44,545 - INFO - 2024-08-29 13:25:45,207 - DEBUG - Response for create_network : {'network': {'id': 'fa7eb375-7175-4c2a-ba12-637408303eb7', 'name': 'ctest-vn-08328732', 'tenant_id': 'dfd98e34273b498b8d2530aa0847824e', 'project_id': 'dfd98e34273b498b8d2530aa0847824e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-vn-08328732'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 13:25:45,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '91e0ce75-9f79-417c-9d77-49e38ba70e98', 'name': '', 'tenant_id': 'dfd98e34273b498b8d2530aa0847824e', 'network_id': 'fa7eb375-7175-4c2a-ba12-637408303eb7', 'ip_version': 4, 'cidr': '203.189.213.64/26', 'allocation_pools': [{'start': '203.189.213.66', 'end': '203.189.213.126'}], 'gateway_ip': '203.189.213.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.189.213.66', 'tags': [], 'project_id': 'dfd98e34273b498b8d2530aa0847824e'}} 2024-08-29 13:25:45,458 - INFO - Created VN ctest-vn-08328732 2024-08-29 13:25:45,514 - DEBUG - VN ctest-vn-08328732 UUID is fa7eb375-7175-4c2a-ba12-637408303eb7 2024-08-29 13:25:45,843 - DEBUG - Response for create_network : {'network': {'id': '8efd81a9-322d-4383-9f29-ce0c6752adb4', 'name': 'ctest-vn-10511997', 'tenant_id': 'dfd98e34273b498b8d2530aa0847824e', 'project_id': 'dfd98e34273b498b8d2530aa0847824e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-vn-10511997'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 13:25:46,022 - DEBUG - Response for create_subnet : {'subnet': {'id': '46cee7de-ed83-4ec2-8dda-6cea78103b62', 'name': '', 'tenant_id': 'dfd98e34273b498b8d2530aa0847824e', 'network_id': '8efd81a9-322d-4383-9f29-ce0c6752adb4', 'ip_version': 4, 'cidr': '172.226.226.0/26', 'allocation_pools': [{'start': '172.226.226.2', 'end': '172.226.226.62'}], 'gateway_ip': '172.226.226.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.226.226.2', 'tags': [], 'project_id': 'dfd98e34273b498b8d2530aa0847824e'}} 2024-08-29 13:25:46,048 - INFO - Created VN ctest-vn-10511997 2024-08-29 13:25:46,101 - DEBUG - VN ctest-vn-10511997 UUID is 8efd81a9-322d-4383-9f29-ce0c6752adb4 2024-08-29 13:25:46,237 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732, 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-82317975:ctest-vn-10511997, 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 13:25:46,552 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa7eb375-7175-4c2a-ba12-637408303eb7', 'name': 'ctest-vn-08328732', 'tenant_id': 'dfd98e34273b498b8d2530aa0847824e', 'project_id': 'dfd98e34273b498b8d2530aa0847824e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91e0ce75-9f79-417c-9d77-49e38ba70e98'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-vn-08328732'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-policy-allow-all-93172904']], 'subnet_ipam': [{'subnet_cidr': '203.189.213.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 13:25:46,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8efd81a9-322d-4383-9f29-ce0c6752adb4', 'name': 'ctest-vn-10511997', 'tenant_id': 'dfd98e34273b498b8d2530aa0847824e', 'project_id': 'dfd98e34273b498b8d2530aa0847824e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['46cee7de-ed83-4ec2-8dda-6cea78103b62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-vn-10511997'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-policy-allow-all-93172904']], 'subnet_ipam': [{'subnet_cidr': '172.226.226.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 13:25:47,014 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-08-29 13:25:47,366 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-08-29 13:25:47,403 - DEBUG - Requesting: http://10.0.0.35:8082/domain/daa32fdc-c9af-4a80-961c-5d1dcf65ef5a 2024-08-29 13:25:47,419 - DEBUG - Requesting: http://10.0.0.35:8082/project/dfd98e34-273b-498b-8d25-30aa0847824e 2024-08-29 13:25:47,494 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa7eb375-7175-4c2a-ba12-637408303eb7 2024-08-29 13:25:47,508 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa7eb375-7175-4c2a-ba12-637408303eb7 2024-08-29 13:25:47,524 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/01e375dd-abdf-4255-b42a-aee29638eacb 2024-08-29 13:25:47,535 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/01e375dd-abdf-4255-b42a-aee29638eacb 2024-08-29 13:25:47,545 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/070d47cc-eb11-4f89-b938-9360b2a75481 2024-08-29 13:25:47,555 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 13:25:47,555 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa7eb375-7175-4c2a-ba12-637408303eb7 2024-08-29 13:25:47,566 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/01e375dd-abdf-4255-b42a-aee29638eacb 2024-08-29 13:25:47,584 - INFO - Verified VN network id 8 for VN fa7eb375-7175-4c2a-ba12-637408303eb7 2024-08-29 13:25:47,584 - INFO - Verifications in API Server for VN ctest-vn-08328732 passed 2024-08-29 13:25:47,584 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa7eb375-7175-4c2a-ba12-637408303eb7 2024-08-29 13:25:47,599 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/01e375dd-abdf-4255-b42a-aee29638eacb 2024-08-29 13:25:47,610 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/01e375dd-abdf-4255-b42a-aee29638eacb 2024-08-29 13:25:47,620 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/070d47cc-eb11-4f89-b938-9360b2a75481 2024-08-29 13:25:47,640 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82317975', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18050061673543584810', 'uuid-lslong': '13407888390640123575'}, 'enable': 'true', 'created': '2024-08-29T13:25:45', 'last-modified': '2024-08-29T13:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.109633'} 2024-08-29 13:25:47,649 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 13:25:47,649 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08328732 passed 2024-08-29 13:25:47,650 - DEBUG - ====Verifying policy data for ctest-vn-08328732 in API_Server ====== 2024-08-29 13:25:47,650 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-08-29 13:25:47,657 - DEBUG - Requesting: http://10.0.0.35:8082/domain/daa32fdc-c9af-4a80-961c-5d1dcf65ef5a 2024-08-29 13:25:47,672 - DEBUG - Requesting: http://10.0.0.35:8082/project/dfd98e34-273b-498b-8d25-30aa0847824e 2024-08-29 13:25:47,753 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/fa7eb375-7175-4c2a-ba12-637408303eb7 2024-08-29 13:25:47,766 - DEBUG - ==>Verifying data for policy with id: 1aa6cb36-9cf0-4c12-9fdf-f1c0b6987d60, fqn: ['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-policy-allow-all-93172904'] 2024-08-29 13:25:47,766 - INFO - VN ctest-vn-08328732 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 13:25:47,766 - DEBUG - Verifying the vn in opserver 2024-08-29 13:25:47,766 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732 virtual network link through opserver 10.0.0.35 2024-08-29 13:25:47,766 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-08-29 13:25:48,114 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-08-29 13:25:48,188 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732?flat'} 2024-08-29 13:25:48,189 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732 is found in opserver 2024-08-29 13:25:48,203 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 13:25:48,209 - DEBUG - VRF ids for VN ctest-vn-08328732: {} 2024-08-29 13:25:48,209 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-08-29 13:25:48,218 - DEBUG - Requesting: http://10.0.0.35:8082/domain/daa32fdc-c9af-4a80-961c-5d1dcf65ef5a 2024-08-29 13:25:48,235 - DEBUG - Requesting: http://10.0.0.35:8082/project/dfd98e34-273b-498b-8d25-30aa0847824e 2024-08-29 13:25:48,311 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/8efd81a9-322d-4383-9f29-ce0c6752adb4 2024-08-29 13:25:48,324 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/8efd81a9-322d-4383-9f29-ce0c6752adb4 2024-08-29 13:25:48,335 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a2a9e622-1d51-42a5-9031-dae8c32ce004 2024-08-29 13:25:48,344 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a2a9e622-1d51-42a5-9031-dae8c32ce004 2024-08-29 13:25:48,353 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/21221a25-b791-4d15-b1c1-9d5b3e4dd4dd 2024-08-29 13:25:48,361 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 13:25:48,361 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/8efd81a9-322d-4383-9f29-ce0c6752adb4 2024-08-29 13:25:48,371 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a2a9e622-1d51-42a5-9031-dae8c32ce004 2024-08-29 13:25:48,386 - INFO - Verified VN network id 9 for VN 8efd81a9-322d-4383-9f29-ce0c6752adb4 2024-08-29 13:25:48,386 - INFO - Verifications in API Server for VN ctest-vn-10511997 passed 2024-08-29 13:25:48,387 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/8efd81a9-322d-4383-9f29-ce0c6752adb4 2024-08-29 13:25:48,397 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a2a9e622-1d51-42a5-9031-dae8c32ce004 2024-08-29 13:25:48,406 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a2a9e622-1d51-42a5-9031-dae8c32ce004 2024-08-29 13:25:48,414 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/21221a25-b791-4d15-b1c1-9d5b3e4dd4dd 2024-08-29 13:25:48,429 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-10511997', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82317975', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10303534086184846211', 'uuid-lslong': '11468924478744079796'}, 'enable': 'true', 'created': '2024-08-29T13:25:45', 'last-modified': '2024-08-29T13:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.651723'} 2024-08-29 13:25:48,437 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 13:25:48,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10511997 passed 2024-08-29 13:25:48,437 - DEBUG - ====Verifying policy data for ctest-vn-10511997 in API_Server ====== 2024-08-29 13:25:48,437 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-08-29 13:25:48,444 - DEBUG - Requesting: http://10.0.0.35:8082/domain/daa32fdc-c9af-4a80-961c-5d1dcf65ef5a 2024-08-29 13:25:48,459 - DEBUG - Requesting: http://10.0.0.35:8082/project/dfd98e34-273b-498b-8d25-30aa0847824e 2024-08-29 13:25:48,534 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/8efd81a9-322d-4383-9f29-ce0c6752adb4 2024-08-29 13:25:48,544 - DEBUG - ==>Verifying data for policy with id: 1aa6cb36-9cf0-4c12-9fdf-f1c0b6987d60, fqn: ['default-domain', 'ctest-TestBasicPolicy-82317975', 'ctest-policy-allow-all-93172904'] 2024-08-29 13:25:48,544 - INFO - VN ctest-vn-10511997 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 13:25:48,545 - DEBUG - Verifying the vn in opserver 2024-08-29 13:25:48,545 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-10511997 virtual network link through opserver 10.0.0.35 2024-08-29 13:25:48,545 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-08-29 13:25:48,558 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-10511997', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-10511997?flat'} 2024-08-29 13:25:48,558 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-10511997 is found in opserver 2024-08-29 13:25:48,571 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 13:25:48,577 - DEBUG - VRF ids for VN ctest-vn-10511997: {} 2024-08-29 13:25:48,645 - DEBUG - Services list from nova: [, , ] 2024-08-29 13:25:49,820 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1808-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1808-1) 2024-08-29 13:25:51,284 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1808-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1808-1) 2024-08-29 13:25:51,284 - INFO - Waiting for VM ctest-TestBasicPolicy-82317975-55201749 to be up.. 2024-08-29 13:25:51,404 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 13:25:56,500 - DEBUG - VM is in ACTIVE state now 2024-08-29 13:25:56,500 - INFO - VM name : ctest-TestBasicPolicy-82317975-55201749 2024-08-29 13:25:56,599 - DEBUG - VM ctest-TestBasicPolicy-82317975-55201749 ID is 0ed98761-b55d-4b31-be96-d50915a3e116 2024-08-29 13:25:56,621 - DEBUG - VM ctest-TestBasicPolicy-82317975-55201749 launched on Node cn-jenkins-deploy-platform-ansible-os-1808-1 2024-08-29 13:25:56,713 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/0ed98761-b55d-4b31-be96-d50915a3e116 2024-08-29 13:25:56,724 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/33409302-4688-439b-8e0c-13567ba8daa4 2024-08-29 13:25:59,989 - 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 1018ms') 2024-08-29 13:25:59,989 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82317975-55201749 failed! 2024-08-29 13:26:00,045 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-82317975:ctest-vn-08328732 is 203.189.213.65 and allocation pool is NOT set 2024-08-29 13:26:02,114 - 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=8.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.01 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 = 3.009/5.791/8.573/2.782 ms') 2024-08-29 13:26:02,114 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82317975-55201749 passed 2024-08-29 13:26:02,265 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 13:26:02,266 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82317975-55201749, IP 203.189.213.67, Port 22 2024-08-29 13:26:02,435 - DEBUG - VM ctest-TestBasicPolicy-82317975-55201749 is ready for SSH connections 2024-08-29 13:26:02,435 - INFO - Waiting for VM ctest-TestBasicPolicy-82317975-89076514 to be up.. 2024-08-29 13:26:02,564 - DEBUG - VM is in ACTIVE state now 2024-08-29 13:26:02,564 - INFO - VM name : ctest-TestBasicPolicy-82317975-89076514 2024-08-29 13:26:02,667 - DEBUG - VM ctest-TestBasicPolicy-82317975-89076514 ID is fe535222-c8f2-4af4-8fd7-b12a6656ff77 2024-08-29 13:26:02,667 - DEBUG - VM ctest-TestBasicPolicy-82317975-89076514 launched on Node cn-jenkins-deploy-platform-ansible-os-1808-1 2024-08-29 13:26:02,758 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/fe535222-c8f2-4af4-8fd7-b12a6656ff77 2024-08-29 13:26:02,769 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/de0f95b5-1cc1-4ef3-bb02-1c6fc10f0ac9 2024-08-29 13:26:04,014 - 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.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.611 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.611/1.821/3.031/1.210 ms') 2024-08-29 13:26:04,014 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-82317975-89076514 passed 2024-08-29 13:26:04,165 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 13:26:04,166 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82317975-89076514, IP 172.226.226.3, Port 22 2024-08-29 13:26:04,325 - DEBUG - VM ctest-TestBasicPolicy-82317975-89076514 is ready for SSH connections 2024-08-29 13:26:04,325 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 13:26:04,325 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 172.226.226.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-08-29 13:26:04,325 - DEBUG - ping -s 56 -c 3 -W 1 172.226.226.3 2024-08-29 13:26:08,467 - DEBUG - PING 172.226.226.3 (172.226.226.3): 56 data bytes 64 bytes from 172.226.226.3: seq=0 ttl=63 time=3.971 ms 64 bytes from 172.226.226.3: seq=1 ttl=63 time=0.972 ms 64 bytes from 172.226.226.3: seq=2 ttl=63 time=0.858 ms --- 172.226.226.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.858/1.933/3.971 ms 2024-08-29 13:26:08,467 - INFO - Ping to IP 172.226.226.3 from VM ctest-TestBasicPolicy-82317975-55201749 passed 2024-08-29 13:26:08,653 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1aa6cb36-9cf0-4c12-9fdf-f1c0b6987d60", "href": "http://10.0.0.35:8082/network-policy/1aa6cb36-9cf0-4c12-9fdf-f1c0b6987d60"}} 2024-08-29 13:26:08,653 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 13:26:08,654 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 172.226.226.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-08-29 13:26:08,654 - DEBUG - ping -s 56 -c 3 -W 1 172.226.226.3 2024-08-29 13:26:11,895 - DEBUG - PING 172.226.226.3 (172.226.226.3): 56 data bytes 64 bytes from 172.226.226.3: seq=0 ttl=63 time=1.661 ms --- 172.226.226.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.661/1.661/1.661 ms 2024-08-29 13:26:11,895 - WARNING - Ping to IP 172.226.226.3 from VM ctest-TestBasicPolicy-82317975-55201749 failed 2024-08-29 13:26:11,895 - INFO - Deleting VM ctest-TestBasicPolicy-82317975-89076514 2024-08-29 13:26:11,973 - INFO - Deleting VM ctest-TestBasicPolicy-82317975-55201749 2024-08-29 13:26:12,418 - INFO - Deleted policy ctest-policy-allow-all-93172904 2024-08-29 13:26:12,418 - INFO - Deleting VN ctest-vn-10511997 2024-08-29 13:26:12,463 - DEBUG - VN 8efd81a9-322d-4383-9f29-ce0c6752adb4 still in use: Unable to complete operation on network 8efd81a9-322d-4383-9f29-ce0c6752adb4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-98495057-0648-4b62-af48-158d923322a2'] 2024-08-29 13:26:12,463 - WARNING - Deleting VN ctest-vn-10511997 failed..Will retry 2024-08-29 13:26:14,589 - DEBUG - Response for deleting network () 2024-08-29 13:26:14,589 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/a2a9e622-1d51-42a5-9031-dae8c32ce004 2024-08-29 13:26:14,601 - DEBUG - Response Code: 404 2024-08-29 13:26:14,601 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-08-29 13:26:14,607 - DEBUG - Requesting: http://10.0.0.35:8082/domain/daa32fdc-c9af-4a80-961c-5d1dcf65ef5a 2024-08-29 13:26:14,670 - DEBUG - Requesting: http://10.0.0.35:8082/project/dfd98e34-273b-498b-8d25-30aa0847824e 2024-08-29 13:26:14,747 - INFO - Validated that VN ctest-vn-10511997 is not found in API Server 2024-08-29 13:26:14,761 - DEBUG - VN ctest-vn-10511997 is not present in Agent 10.0.0.35 2024-08-29 13:26:14,761 - INFO - Validated that VN ctest-vn-10511997 is not in any agent 2024-08-29 13:26:14,781 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10511997 info 2024-08-29 13:26:14,781 - INFO - Deleting VN ctest-vn-08328732 2024-08-29 13:26:14,914 - DEBUG - Response for deleting network () 2024-08-29 13:26:14,914 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/01e375dd-abdf-4255-b42a-aee29638eacb 2024-08-29 13:26:14,921 - DEBUG - Response Code: 404 2024-08-29 13:26:14,922 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-08-29 13:26:14,930 - DEBUG - Requesting: http://10.0.0.35:8082/domain/daa32fdc-c9af-4a80-961c-5d1dcf65ef5a 2024-08-29 13:26:14,988 - DEBUG - Requesting: http://10.0.0.35:8082/project/dfd98e34-273b-498b-8d25-30aa0847824e 2024-08-29 13:26:15,063 - INFO - Validated that VN ctest-vn-08328732 is not found in API Server 2024-08-29 13:26:15,077 - DEBUG - VN ctest-vn-08328732 is not present in Agent 10.0.0.35 2024-08-29 13:26:15,077 - INFO - Validated that VN ctest-vn-08328732 is not in any agent 2024-08-29 13:26:15,098 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08328732 info 2024-08-29 13:26:15,366 - DEBUG - No XMPP flaps were noticed during the test 2024-08-29 13:26:15,366 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-08-29 13:26:15,366 - INFO - -------------------------------------------------------------------------------- 2024-08-29 13:26:16,689 - INFO - Deleted project: ctest-TestBasicPolicy-82317975, ID : dfd98e34-273b-498b-8d25-30aa0847824e