2024-09-02 18:29:25,462 - INFO - Reading existing Domain with UUID 58dce124-eb0a-40d6-909d-474de86f8e9d 2024-09-02 18:29:25,475 - INFO - Using existing domain ['admin_domain'](58dce124-eb0a-40d6-909d-474de86f8e9d) 2024-09-02 18:29:25,656 - INFO - Project ctest-TestBasicPolicy-07579284 not found, creating it 2024-09-02 18:29:26,153 - INFO - Created Project:ctest-TestBasicPolicy-07579284, ID : 25c4d633-e4fc-4e65-b0b7-8f6a3dff3863 2024-09-02 18:29:27,775 - INFO - ================================================================================ 2024-09-02 18:29:27,776 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-02 18:29:27,776 - 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-09-02 18:29:28,148 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with 2024-09-02 18:29:28,148 - INFO - Initial checks done. Running the testcase now 2024-09-02 18:29:28,148 - INFO - 2024-09-02 18:29:28,864 - DEBUG - Response for create_network : {'network': {'id': 'b0a2bf17-549f-4349-80c2-fc2fa805e540', 'name': 'ctest-vn-28812815', 'tenant_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'project_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-vn-28812815'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-02 18:29:29,080 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ee837ef-d300-4898-8bf2-d18827e8d600', 'name': '', 'tenant_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'network_id': 'b0a2bf17-549f-4349-80c2-fc2fa805e540', 'ip_version': 4, 'cidr': '51.103.31.192/26', 'allocation_pools': [{'start': '51.103.31.194', 'end': '51.103.31.254'}], 'gateway_ip': '51.103.31.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T18:29:28.977427', 'updated_at': '2024-09-02T18:29:28.977427', 'dns_server_address': '51.103.31.194', 'tags': [], 'project_id': '25c4d633e4fc4e65b0b78f6a3dff3863'}} 2024-09-02 18:29:29,145 - INFO - Created VN ctest-vn-28812815 2024-09-02 18:29:29,195 - DEBUG - VN ctest-vn-28812815 UUID is b0a2bf17-549f-4349-80c2-fc2fa805e540 2024-09-02 18:29:29,671 - DEBUG - Response for create_network : {'network': {'id': 'fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54', 'name': 'ctest-vn-91639257', 'tenant_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'project_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-vn-91639257'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-02 18:29:29,899 - DEBUG - Response for create_subnet : {'subnet': {'id': '11b7c088-d824-4146-a2a7-744adc2d65d8', 'name': '', 'tenant_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'network_id': 'fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54', 'ip_version': 4, 'cidr': '96.98.230.128/26', 'allocation_pools': [{'start': '96.98.230.130', 'end': '96.98.230.190'}], 'gateway_ip': '96.98.230.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-02T18:29:29.805924', 'updated_at': '2024-09-02T18:29:29.805924', 'dns_server_address': '96.98.230.130', 'tags': [], 'project_id': '25c4d633e4fc4e65b0b78f6a3dff3863'}} 2024-09-02 18:29:29,961 - INFO - Created VN ctest-vn-91639257 2024-09-02 18:29:30,015 - DEBUG - VN ctest-vn-91639257 UUID is fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54 2024-09-02 18:29:30,223 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-91639257, 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-09-02 18:29:30,631 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0a2bf17-549f-4349-80c2-fc2fa805e540', 'name': 'ctest-vn-28812815', 'tenant_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'project_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ee837ef-d300-4898-8bf2-d18827e8d600'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-vn-28812815'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-policy-allow-all-11040665']], 'subnet_ipam': [{'subnet_cidr': '51.103.31.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-02T18:29:28.788671', 'updated_at': '2024-09-02T18:29:28.991712'}} 2024-09-02 18:29:31,035 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54', 'name': 'ctest-vn-91639257', 'tenant_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'project_id': '25c4d633e4fc4e65b0b78f6a3dff3863', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['11b7c088-d824-4146-a2a7-744adc2d65d8'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-vn-91639257'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-policy-allow-all-11040665']], 'subnet_ipam': [{'subnet_cidr': '96.98.230.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-02T18:29:29.597434', 'updated_at': '2024-09-02T18:29:29.818416'}} 2024-09-02 18:29:31,223 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2024-09-02 18:29:31,559 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2024-09-02 18:29:31,636 - DEBUG - Requesting: https://10.0.0.33:8082/domain/58dce124-eb0a-40d6-909d-474de86f8e9d 2024-09-02 18:29:31,692 - DEBUG - Requesting: https://10.0.0.33:8082/project/25c4d633-e4fc-4e65-b0b7-8f6a3dff3863 2024-09-02 18:29:31,769 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/b0a2bf17-549f-4349-80c2-fc2fa805e540 2024-09-02 18:29:31,877 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/b0a2bf17-549f-4349-80c2-fc2fa805e540 2024-09-02 18:29:31,953 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/51c4a605-ddc3-4e26-b737-a67df3161cd9 2024-09-02 18:29:32,008 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/51c4a605-ddc3-4e26-b737-a67df3161cd9 2024-09-02 18:29:32,060 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/0b9b5060-cfcd-47f5-8fb2-831460aa1d4d 2024-09-02 18:29:32,112 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-02 18:29:32,112 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/b0a2bf17-549f-4349-80c2-fc2fa805e540 2024-09-02 18:29:32,169 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/51c4a605-ddc3-4e26-b737-a67df3161cd9 2024-09-02 18:29:32,235 - INFO - Verified VN network id 8 for VN b0a2bf17-549f-4349-80c2-fc2fa805e540 2024-09-02 18:29:32,235 - INFO - Verifications in API Server for VN ctest-vn-28812815 passed 2024-09-02 18:29:32,235 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/b0a2bf17-549f-4349-80c2-fc2fa805e540 2024-09-02 18:29:32,293 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/51c4a605-ddc3-4e26-b737-a67df3161cd9 2024-09-02 18:29:32,344 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/51c4a605-ddc3-4e26-b737-a67df3161cd9 2024-09-02 18:29:32,400 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/0b9b5060-cfcd-47f5-8fb2-831460aa1d4d 2024-09-02 18:29:32,500 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07579284', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12727945603827319625', 'uuid-lslong': '9278255463949264192'}, 'enable': 'true', 'created': '2024-09-02T18:29:28', 'last-modified': '2024-09-02T18:29:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.902730'} 2024-09-02 18:29:32,553 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-02 18:29:32,553 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28812815 passed 2024-09-02 18:29:32,553 - DEBUG - ====Verifying policy data for ctest-vn-28812815 in API_Server ====== 2024-09-02 18:29:32,553 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2024-09-02 18:29:32,607 - DEBUG - Requesting: https://10.0.0.33:8082/domain/58dce124-eb0a-40d6-909d-474de86f8e9d 2024-09-02 18:29:32,664 - DEBUG - Requesting: https://10.0.0.33:8082/project/25c4d633-e4fc-4e65-b0b7-8f6a3dff3863 2024-09-02 18:29:32,737 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/b0a2bf17-549f-4349-80c2-fc2fa805e540 2024-09-02 18:29:32,793 - DEBUG - ==>Verifying data for policy with id: 810acda3-3545-439f-83ed-494a1ca01e51, fqn: ['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-policy-allow-all-11040665'] 2024-09-02 18:29:32,793 - INFO - VN ctest-vn-28812815 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-02 18:29:32,793 - DEBUG - Verifying the vn in opserver 2024-09-02 18:29:32,793 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815 virtual network link through opserver 10.0.0.33 2024-09-02 18:29:32,794 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-02 18:29:33,133 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-02 18:29:33,252 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815?flat'} 2024-09-02 18:29:33,252 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815 is found in opserver 2024-09-02 18:29:33,348 - DEBUG - Do not have enough data to verify VN in agent 2024-09-02 18:29:33,400 - DEBUG - VRF ids for VN ctest-vn-28812815: {} 2024-09-02 18:29:33,400 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2024-09-02 18:29:33,451 - DEBUG - Requesting: https://10.0.0.33:8082/domain/58dce124-eb0a-40d6-909d-474de86f8e9d 2024-09-02 18:29:33,508 - DEBUG - Requesting: https://10.0.0.33:8082/project/25c4d633-e4fc-4e65-b0b7-8f6a3dff3863 2024-09-02 18:29:33,585 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54 2024-09-02 18:29:33,641 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54 2024-09-02 18:29:33,697 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a21b4c2d-1416-4f5f-b536-0cd0bd491dcc 2024-09-02 18:29:33,748 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a21b4c2d-1416-4f5f-b536-0cd0bd491dcc 2024-09-02 18:29:33,800 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/9e146626-2c0f-49cb-b32f-87392ed39973 2024-09-02 18:29:33,852 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-02 18:29:33,852 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54 2024-09-02 18:29:33,905 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a21b4c2d-1416-4f5f-b536-0cd0bd491dcc 2024-09-02 18:29:33,962 - INFO - Verified VN network id 9 for VN fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54 2024-09-02 18:29:33,962 - INFO - Verifications in API Server for VN ctest-vn-91639257 passed 2024-09-02 18:29:33,963 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54 2024-09-02 18:29:34,021 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a21b4c2d-1416-4f5f-b536-0cd0bd491dcc 2024-09-02 18:29:34,072 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a21b4c2d-1416-4f5f-b536-0cd0bd491dcc 2024-09-02 18:29:34,128 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/9e146626-2c0f-49cb-b32f-87392ed39973 2024-09-02 18:29:34,236 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-91639257', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07579284', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18207882549745961605', 'uuid-lslong': '13536714750395555668'}, 'enable': 'true', 'created': '2024-09-02T18:29:29', 'last-modified': '2024-09-02T18:29:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.267668'} 2024-09-02 18:29:34,289 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-02 18:29:34,289 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91639257 passed 2024-09-02 18:29:34,289 - DEBUG - ====Verifying policy data for ctest-vn-91639257 in API_Server ====== 2024-09-02 18:29:34,289 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2024-09-02 18:29:34,340 - DEBUG - Requesting: https://10.0.0.33:8082/domain/58dce124-eb0a-40d6-909d-474de86f8e9d 2024-09-02 18:29:34,397 - DEBUG - Requesting: https://10.0.0.33:8082/project/25c4d633-e4fc-4e65-b0b7-8f6a3dff3863 2024-09-02 18:29:34,473 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54 2024-09-02 18:29:34,564 - DEBUG - ==>Verifying data for policy with id: 810acda3-3545-439f-83ed-494a1ca01e51, fqn: ['admin_domain', 'ctest-TestBasicPolicy-07579284', 'ctest-policy-allow-all-11040665'] 2024-09-02 18:29:34,564 - INFO - VN ctest-vn-91639257 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-02 18:29:34,564 - DEBUG - Verifying the vn in opserver 2024-09-02 18:29:34,564 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-91639257 virtual network link through opserver 10.0.0.33 2024-09-02 18:29:34,564 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-02 18:29:34,628 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-91639257', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-91639257?flat'} 2024-09-02 18:29:34,628 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-91639257 is found in opserver 2024-09-02 18:29:34,724 - DEBUG - Do not have enough data to verify VN in agent 2024-09-02 18:29:34,780 - DEBUG - VRF ids for VN ctest-vn-91639257: {} 2024-09-02 18:29:34,841 - DEBUG - Services list from nova: [, , ] 2024-09-02 18:29:35,985 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-396-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-396-1) 2024-09-02 18:29:37,172 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-396-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-396-1) 2024-09-02 18:29:37,172 - INFO - Waiting for VM ctest-TestBasicPolicy-07579284-89155310 to be up.. 2024-09-02 18:29:37,310 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-02 18:29:42,442 - DEBUG - VM is in ACTIVE state now 2024-09-02 18:29:42,442 - INFO - VM name : ctest-TestBasicPolicy-07579284-89155310 2024-09-02 18:29:42,572 - DEBUG - VM ctest-TestBasicPolicy-07579284-89155310 ID is afefdc32-3946-4a9d-9ece-cf6ee7d49572 2024-09-02 18:29:42,593 - DEBUG - VM ctest-TestBasicPolicy-07579284-89155310 launched on Node cn-jenkins-deploy-platform-juju-os-396-1 2024-09-02 18:29:42,730 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine/afefdc32-3946-4a9d-9ece-cf6ee7d49572 2024-09-02 18:29:42,788 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine-interface/61467698-ec13-431c-96c2-b5db18b66882 2024-09-02 18:29:46,273 - 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 1029ms') 2024-09-02 18:29:46,273 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07579284-89155310 failed! 2024-09-02 18:29:46,347 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-07579284:ctest-vn-28812815 is 51.103.31.193 and allocation pool is NOT set 2024-09-02 18:29:48,436 - 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=5.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.43 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 = 2.428/3.753/5.079/1.325 ms') 2024-09-02 18:29:48,437 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07579284-89155310 passed 2024-09-02 18:29:48,587 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 18:29:48,587 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07579284-89155310, IP 51.103.31.195, Port 22 2024-09-02 18:29:48,797 - DEBUG - VM ctest-TestBasicPolicy-07579284-89155310 is ready for SSH connections 2024-09-02 18:29:48,797 - INFO - Waiting for VM ctest-TestBasicPolicy-07579284-65268937 to be up.. 2024-09-02 18:29:48,931 - DEBUG - VM is in ACTIVE state now 2024-09-02 18:29:48,931 - INFO - VM name : ctest-TestBasicPolicy-07579284-65268937 2024-09-02 18:29:49,060 - DEBUG - VM ctest-TestBasicPolicy-07579284-65268937 ID is de6def00-6de4-4915-8a60-0bd83c1c77bb 2024-09-02 18:29:49,060 - DEBUG - VM ctest-TestBasicPolicy-07579284-65268937 launched on Node cn-jenkins-deploy-platform-juju-os-396-1 2024-09-02 18:29:49,196 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine/de6def00-6de4-4915-8a60-0bd83c1c77bb 2024-09-02 18:29:49,248 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-machine-interface/f1045be1-088f-46f0-8c8d-c05a9d3aa819 2024-09-02 18:29:50,713 - 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.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.374 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.374/1.580/2.786/1.206 ms') 2024-09-02 18:29:50,713 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-07579284-65268937 passed 2024-09-02 18:29:50,871 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 18:29:50,871 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07579284-65268937, IP 96.98.230.131, Port 22 2024-09-02 18:29:51,075 - DEBUG - VM ctest-TestBasicPolicy-07579284-65268937 is ready for SSH connections 2024-09-02 18:29:51,076 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 18:29:51,076 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 96.98.230.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-02 18:29:51,076 - DEBUG - ping -s 56 -c 3 -W 1 96.98.230.131 2024-09-02 18:29:54,767 - DEBUG - PING 96.98.230.131 (96.98.230.131): 56 data bytes 64 bytes from 96.98.230.131: seq=0 ttl=63 time=3.482 ms 64 bytes from 96.98.230.131: seq=1 ttl=63 time=0.740 ms 64 bytes from 96.98.230.131: seq=2 ttl=63 time=0.873 ms --- 96.98.230.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.740/1.698/3.482 ms 2024-09-02 18:29:54,767 - INFO - Ping to IP 96.98.230.131 from VM ctest-TestBasicPolicy-07579284-89155310 passed 2024-09-02 18:29:54,947 - DEBUG - Policy Update Response {"network-policy": {"uuid": "810acda3-3545-439f-83ed-494a1ca01e51", "href": "https://10.0.0.33:8082/network-policy/810acda3-3545-439f-83ed-494a1ca01e51"}} 2024-09-02 18:29:54,947 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-02 18:29:54,947 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 96.98.230.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-02 18:29:54,947 - DEBUG - ping -s 56 -c 3 -W 1 96.98.230.131 2024-09-02 18:29:58,165 - DEBUG - PING 96.98.230.131 (96.98.230.131): 56 data bytes --- 96.98.230.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-02 18:29:58,166 - WARNING - Ping to IP 96.98.230.131 from VM ctest-TestBasicPolicy-07579284-89155310 failed 2024-09-02 18:29:58,166 - INFO - Deleting VM ctest-TestBasicPolicy-07579284-65268937 2024-09-02 18:29:58,259 - INFO - Deleting VM ctest-TestBasicPolicy-07579284-89155310 2024-09-02 18:29:58,955 - INFO - Deleted policy ctest-policy-allow-all-11040665 2024-09-02 18:29:58,955 - INFO - Deleting VN ctest-vn-91639257 2024-09-02 18:29:59,095 - DEBUG - VN fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54 still in use: Unable to complete operation on network fcaf64b5-a1a4-4a85-bbdc-12584b1e1f54. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fcae4819-da27-4b33-8c3b-e9189ea4b92e'] 2024-09-02 18:29:59,095 - WARNING - Deleting VN ctest-vn-91639257 failed..Will retry 2024-09-02 18:30:01,272 - DEBUG - Response for deleting network () 2024-09-02 18:30:01,273 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a21b4c2d-1416-4f5f-b536-0cd0bd491dcc 2024-09-02 18:30:01,327 - DEBUG - Response Code: 404 2024-09-02 18:30:01,327 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2024-09-02 18:30:01,379 - DEBUG - Requesting: https://10.0.0.33:8082/domain/58dce124-eb0a-40d6-909d-474de86f8e9d 2024-09-02 18:30:01,436 - DEBUG - Requesting: https://10.0.0.33:8082/project/25c4d633-e4fc-4e65-b0b7-8f6a3dff3863 2024-09-02 18:30:01,513 - INFO - Validated that VN ctest-vn-91639257 is not found in API Server 2024-09-02 18:30:01,612 - DEBUG - VN ctest-vn-91639257 is not present in Agent 10.0.0.33 2024-09-02 18:30:01,612 - INFO - Validated that VN ctest-vn-91639257 is not in any agent 2024-09-02 18:30:01,756 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91639257 info 2024-09-02 18:30:01,756 - INFO - Deleting VN ctest-vn-28812815 2024-09-02 18:30:01,921 - DEBUG - Response for deleting network () 2024-09-02 18:30:01,922 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/51c4a605-ddc3-4e26-b737-a67df3161cd9 2024-09-02 18:30:01,975 - DEBUG - Response Code: 404 2024-09-02 18:30:01,975 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2024-09-02 18:30:02,028 - DEBUG - Requesting: https://10.0.0.33:8082/domain/58dce124-eb0a-40d6-909d-474de86f8e9d 2024-09-02 18:30:02,084 - DEBUG - Requesting: https://10.0.0.33:8082/project/25c4d633-e4fc-4e65-b0b7-8f6a3dff3863 2024-09-02 18:30:02,164 - INFO - Validated that VN ctest-vn-28812815 is not found in API Server 2024-09-02 18:30:02,268 - DEBUG - VN ctest-vn-28812815 is not present in Agent 10.0.0.33 2024-09-02 18:30:02,268 - INFO - Validated that VN ctest-vn-28812815 is not in any agent 2024-09-02 18:30:02,416 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28812815 info 2024-09-02 18:30:02,808 - DEBUG - No XMPP flaps were noticed during the test
2024-09-02 18:30:02,808 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2024-09-02 18:30:02,808 - INFO - -------------------------------------------------------------------------------- 2024-09-02 18:30:03,514 - INFO - Deleted project: ctest-TestBasicPolicy-07579284, ID : 25c4d633-e4fc-4e65-b0b7-8f6a3dff3863