2024-10-31 02:11:36,747 - INFO - Reading existing Domain with UUID 0fc11768-1bc4-4a76-8ff2-b677acb0a6ff 2024-10-31 02:11:36,762 - INFO - Using existing domain ['admin_domain'](0fc11768-1bc4-4a76-8ff2-b677acb0a6ff) 2024-10-31 02:11:37,101 - INFO - Project ctest-TestBasicPolicy-34266765 not found, creating it 2024-10-31 02:11:37,792 - INFO - Created Project:ctest-TestBasicPolicy-34266765, ID : 04d6aa30-76a7-4651-9b21-f2bd3ba1aac3 2024-10-31 02:11:40,006 - INFO - ================================================================================ 2024-10-31 02:11:40,008 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-31 02:11:40,008 - 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-10-31 02:11:40,427 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.0.0.17': '0'}} with 2024-10-31 02:11:40,427 - INFO - Initial checks done. Running the testcase now 2024-10-31 02:11:40,427 - INFO - 2024-10-31 02:11:41,638 - DEBUG - Response for create_network : {'network': {'id': 'e37cf253-e9eb-4a1a-9fc6-75c2b99136fb', 'name': 'ctest-vn-51280434', 'tenant_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'project_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-vn-51280434'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-10-31 02:11:41,926 - DEBUG - Response for create_subnet : {'subnet': {'id': '2dc57d25-99e8-42a2-a4c4-009c7f33f0e5', 'name': '', 'tenant_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'network_id': 'e37cf253-e9eb-4a1a-9fc6-75c2b99136fb', 'ip_version': 4, 'cidr': '35.185.155.0/26', 'allocation_pools': [{'start': '35.185.155.2', 'end': '35.185.155.62'}], 'gateway_ip': '35.185.155.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-10-31T02:11:41.804581', 'updated_at': '2024-10-31T02:11:41.804581', 'dns_server_address': '35.185.155.2', 'tags': [], 'project_id': '04d6aa3076a746519b21f2bd3ba1aac3'}} 2024-10-31 02:11:41,996 - INFO - Created VN ctest-vn-51280434 2024-10-31 02:11:42,065 - DEBUG - VN ctest-vn-51280434 UUID is e37cf253-e9eb-4a1a-9fc6-75c2b99136fb 2024-10-31 02:11:42,714 - DEBUG - Response for create_network : {'network': {'id': '212e8db4-bccb-4028-a448-aa59a67a35c0', 'name': 'ctest-vn-06964615', 'tenant_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'project_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-vn-06964615'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-10-31 02:11:43,046 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fd34911-65b4-4f83-9f0f-298e2e82c34b', 'name': '', 'tenant_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'network_id': '212e8db4-bccb-4028-a448-aa59a67a35c0', 'ip_version': 4, 'cidr': '77.200.174.128/26', 'allocation_pools': [{'start': '77.200.174.130', 'end': '77.200.174.190'}], 'gateway_ip': '77.200.174.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-10-31T02:11:42.893977', 'updated_at': '2024-10-31T02:11:42.893977', 'dns_server_address': '77.200.174.130', 'tags': [], 'project_id': '04d6aa3076a746519b21f2bd3ba1aac3'}} 2024-10-31 02:11:43,120 - INFO - Created VN ctest-vn-06964615 2024-10-31 02:11:43,181 - DEBUG - VN ctest-vn-06964615 UUID is 212e8db4-bccb-4028-a448-aa59a67a35c0 2024-10-31 02:11:43,436 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434, 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-34266765:ctest-vn-06964615, 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-10-31 02:11:43,942 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e37cf253-e9eb-4a1a-9fc6-75c2b99136fb', 'name': 'ctest-vn-51280434', 'tenant_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'project_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2dc57d25-99e8-42a2-a4c4-009c7f33f0e5'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-vn-51280434'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-policy-allow-all-21949204']], 'subnet_ipam': [{'subnet_cidr': '35.185.155.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-10-31T02:11:41.536990', 'updated_at': '2024-10-31T02:11:41.823393'}} 2024-10-31 02:11:44,445 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '212e8db4-bccb-4028-a448-aa59a67a35c0', 'name': 'ctest-vn-06964615', 'tenant_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'project_id': '04d6aa3076a746519b21f2bd3ba1aac3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fd34911-65b4-4f83-9f0f-298e2e82c34b'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-vn-06964615'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-policy-allow-all-21949204']], 'subnet_ipam': [{'subnet_cidr': '77.200.174.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-10-31T02:11:42.617678', 'updated_at': '2024-10-31T02:11:42.920547'}} 2024-10-31 02:11:44,689 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-10-31 02:11:45,136 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-10-31 02:11:45,233 - DEBUG - Requesting: https://10.0.0.17:8082/domain/0fc11768-1bc4-4a76-8ff2-b677acb0a6ff 2024-10-31 02:11:45,294 - DEBUG - Requesting: https://10.0.0.17:8082/project/04d6aa30-76a7-4651-9b21-f2bd3ba1aac3 2024-10-31 02:11:45,391 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/e37cf253-e9eb-4a1a-9fc6-75c2b99136fb 2024-10-31 02:11:45,455 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/e37cf253-e9eb-4a1a-9fc6-75c2b99136fb 2024-10-31 02:11:45,515 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/a8bac159-e305-4323-acff-b4bbdfe24e96 2024-10-31 02:11:45,570 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/a8bac159-e305-4323-acff-b4bbdfe24e96 2024-10-31 02:11:45,626 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/fa18f778-4a13-4a41-9269-6a38280d7cff 2024-10-31 02:11:45,690 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-31 02:11:45,690 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/e37cf253-e9eb-4a1a-9fc6-75c2b99136fb 2024-10-31 02:11:45,761 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/a8bac159-e305-4323-acff-b4bbdfe24e96 2024-10-31 02:11:45,840 - INFO - Verified VN network id 8 for VN e37cf253-e9eb-4a1a-9fc6-75c2b99136fb 2024-10-31 02:11:45,840 - INFO - Verifications in API Server for VN ctest-vn-51280434 passed 2024-10-31 02:11:45,840 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/e37cf253-e9eb-4a1a-9fc6-75c2b99136fb 2024-10-31 02:11:45,908 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/a8bac159-e305-4323-acff-b4bbdfe24e96 2024-10-31 02:11:45,966 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/a8bac159-e305-4323-acff-b4bbdfe24e96 2024-10-31 02:11:46,022 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/fa18f778-4a13-4a41-9269-6a38280d7cff 2024-10-31 02:11:46,138 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34266765', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16392243185942481434', 'uuid-lslong': '11513018976616658683'}, 'enable': 'true', 'created': '2024-10-31T02:11:41', 'last-modified': '2024-10-31T02:11:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.241314'} 2024-10-31 02:11:46,191 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-31 02:11:46,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51280434 passed 2024-10-31 02:11:46,192 - DEBUG - ====Verifying policy data for ctest-vn-51280434 in API_Server ====== 2024-10-31 02:11:46,192 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-10-31 02:11:46,246 - DEBUG - Requesting: https://10.0.0.17:8082/domain/0fc11768-1bc4-4a76-8ff2-b677acb0a6ff 2024-10-31 02:11:46,307 - DEBUG - Requesting: https://10.0.0.17:8082/project/04d6aa30-76a7-4651-9b21-f2bd3ba1aac3 2024-10-31 02:11:46,400 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/e37cf253-e9eb-4a1a-9fc6-75c2b99136fb 2024-10-31 02:11:46,468 - DEBUG - ==>Verifying data for policy with id: a9c7fe53-cab4-4583-96ba-8f5be3fa0ebe, fqn: ['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-policy-allow-all-21949204'] 2024-10-31 02:11:46,468 - INFO - VN ctest-vn-51280434 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-31 02:11:46,468 - DEBUG - Verifying the vn in opserver 2024-10-31 02:11:46,468 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434 virtual network link through opserver 10.0.0.17 2024-10-31 02:11:46,468 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks 2024-10-31 02:11:46,869 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks 2024-10-31 02:11:46,990 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434', 'href': 'https://10.0.0.17:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434?flat'} 2024-10-31 02:11:46,990 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434 is found in opserver 2024-10-31 02:11:47,094 - DEBUG - Do not have enough data to verify VN in agent 2024-10-31 02:11:47,149 - DEBUG - VRF ids for VN ctest-vn-51280434: {} 2024-10-31 02:11:47,150 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-10-31 02:11:47,205 - DEBUG - Requesting: https://10.0.0.17:8082/domain/0fc11768-1bc4-4a76-8ff2-b677acb0a6ff 2024-10-31 02:11:47,271 - DEBUG - Requesting: https://10.0.0.17:8082/project/04d6aa30-76a7-4651-9b21-f2bd3ba1aac3 2024-10-31 02:11:47,363 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/212e8db4-bccb-4028-a448-aa59a67a35c0 2024-10-31 02:11:47,432 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/212e8db4-bccb-4028-a448-aa59a67a35c0 2024-10-31 02:11:47,501 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/ab1b2df6-e867-45ef-b267-61cb4301184e 2024-10-31 02:11:47,559 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/ab1b2df6-e867-45ef-b267-61cb4301184e 2024-10-31 02:11:47,618 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/f76b28e9-9607-4429-896c-62a0e2e20d85 2024-10-31 02:11:47,675 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-31 02:11:47,675 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/212e8db4-bccb-4028-a448-aa59a67a35c0 2024-10-31 02:11:47,743 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/ab1b2df6-e867-45ef-b267-61cb4301184e 2024-10-31 02:11:47,821 - INFO - Verified VN network id 9 for VN 212e8db4-bccb-4028-a448-aa59a67a35c0 2024-10-31 02:11:47,821 - INFO - Verifications in API Server for VN ctest-vn-06964615 passed 2024-10-31 02:11:47,821 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/212e8db4-bccb-4028-a448-aa59a67a35c0 2024-10-31 02:11:47,887 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/ab1b2df6-e867-45ef-b267-61cb4301184e 2024-10-31 02:11:47,946 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/ab1b2df6-e867-45ef-b267-61cb4301184e 2024-10-31 02:11:48,002 - DEBUG - Requesting: https://10.0.0.17:8082/route-target/f76b28e9-9607-4429-896c-62a0e2e20d85 2024-10-31 02:11:48,114 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-06964615', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34266765', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2391004259581378600', 'uuid-lslong': '11837898922565187008'}, 'enable': 'true', 'created': '2024-10-31T02:11:42', 'last-modified': '2024-10-31T02:11:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.763717'} 2024-10-31 02:11:48,167 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-31 02:11:48,167 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06964615 passed 2024-10-31 02:11:48,167 - DEBUG - ====Verifying policy data for ctest-vn-06964615 in API_Server ====== 2024-10-31 02:11:48,167 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-10-31 02:11:48,221 - DEBUG - Requesting: https://10.0.0.17:8082/domain/0fc11768-1bc4-4a76-8ff2-b677acb0a6ff 2024-10-31 02:11:48,282 - DEBUG - Requesting: https://10.0.0.17:8082/project/04d6aa30-76a7-4651-9b21-f2bd3ba1aac3 2024-10-31 02:11:48,383 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-network/212e8db4-bccb-4028-a448-aa59a67a35c0 2024-10-31 02:11:48,448 - DEBUG - ==>Verifying data for policy with id: a9c7fe53-cab4-4583-96ba-8f5be3fa0ebe, fqn: ['admin_domain', 'ctest-TestBasicPolicy-34266765', 'ctest-policy-allow-all-21949204'] 2024-10-31 02:11:48,448 - INFO - VN ctest-vn-06964615 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-31 02:11:48,448 - DEBUG - Verifying the vn in opserver 2024-10-31 02:11:48,448 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-06964615 virtual network link through opserver 10.0.0.17 2024-10-31 02:11:48,448 - DEBUG - Requesting: https://10.0.0.17:8081/analytics/uves/virtual-networks 2024-10-31 02:11:48,510 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-06964615', 'href': 'https://10.0.0.17:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-06964615?flat'} 2024-10-31 02:11:48,510 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-06964615 is found in opserver 2024-10-31 02:11:48,613 - DEBUG - Do not have enough data to verify VN in agent 2024-10-31 02:11:48,666 - DEBUG - VRF ids for VN ctest-vn-06964615: {} 2024-10-31 02:11:48,744 - DEBUG - Services list from nova: [, , ] 2024-10-31 02:11:49,986 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-442-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-442-1) 2024-10-31 02:11:52,261 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-442-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-442-1) 2024-10-31 02:11:52,262 - INFO - Waiting for VM ctest-TestBasicPolicy-34266765-57986343 to be up.. 2024-10-31 02:11:52,455 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-31 02:11:57,607 - DEBUG - VM is in ACTIVE state now 2024-10-31 02:11:57,607 - INFO - VM name : ctest-TestBasicPolicy-34266765-57986343 2024-10-31 02:11:57,755 - DEBUG - VM ctest-TestBasicPolicy-34266765-57986343 ID is c6080e65-5fc1-43e7-a757-d27618ed9086 2024-10-31 02:11:57,802 - DEBUG - VM ctest-TestBasicPolicy-34266765-57986343 launched on Node cn-jenkins-deploy-platform-juju-os-442-1 2024-10-31 02:11:57,966 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine/c6080e65-5fc1-43e7-a757-d27618ed9086 2024-10-31 02:11:58,026 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine-interface/8c1fea5b-079b-4e6e-8152-22674675a806 2024-10-31 02:12:01,538 - 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 1032ms') 2024-10-31 02:12:01,538 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-34266765-57986343 failed! 2024-10-31 02:12:01,605 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-34266765:ctest-vn-51280434 is 35.185.155.1 and allocation pool is NOT set 2024-10-31 02:12:03,692 - 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=3.43 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.455 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 = 0.455/1.940/3.425/1.485 ms') 2024-10-31 02:12:03,692 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-34266765-57986343 passed 2024-10-31 02:12:03,861 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:12:03,861 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34266765-57986343, IP 35.185.155.3, Port 22 2024-10-31 02:12:04,108 - DEBUG - VM ctest-TestBasicPolicy-34266765-57986343 is ready for SSH connections 2024-10-31 02:12:04,108 - INFO - Waiting for VM ctest-TestBasicPolicy-34266765-30616375 to be up.. 2024-10-31 02:12:04,307 - DEBUG - VM is in ACTIVE state now 2024-10-31 02:12:04,307 - INFO - VM name : ctest-TestBasicPolicy-34266765-30616375 2024-10-31 02:12:04,487 - DEBUG - VM ctest-TestBasicPolicy-34266765-30616375 ID is 1c7c6efd-3bd6-4146-a1a5-a56f287e4e04 2024-10-31 02:12:04,487 - DEBUG - VM ctest-TestBasicPolicy-34266765-30616375 launched on Node cn-jenkins-deploy-platform-juju-os-442-1 2024-10-31 02:12:04,683 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine/1c7c6efd-3bd6-4146-a1a5-a56f287e4e04 2024-10-31 02:12:04,758 - DEBUG - Requesting: https://10.0.0.17:8082/virtual-machine-interface/72310a8d-63bd-4bd2-8416-f1fb0b4d0efe 2024-10-31 02:12:06,256 - 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.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.87 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 = 2.874/2.979/3.085/0.105 ms') 2024-10-31 02:12:06,256 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-34266765-30616375 passed 2024-10-31 02:12:06,425 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:12:06,425 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-34266765-30616375, IP 77.200.174.131, Port 22 2024-10-31 02:12:06,654 - DEBUG - VM ctest-TestBasicPolicy-34266765-30616375 is ready for SSH connections 2024-10-31 02:12:06,654 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:12:06,654 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 77.200.174.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-10-31 02:12:06,655 - DEBUG - ping -s 56 -c 3 -W 1 77.200.174.131 2024-10-31 02:12:10,396 - DEBUG - PING 77.200.174.131 (77.200.174.131): 56 data bytes 64 bytes from 77.200.174.131: seq=0 ttl=63 time=4.828 ms 64 bytes from 77.200.174.131: seq=1 ttl=63 time=1.141 ms 64 bytes from 77.200.174.131: seq=2 ttl=63 time=1.122 ms --- 77.200.174.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.122/2.363/4.828 ms 2024-10-31 02:12:10,396 - INFO - Ping to IP 77.200.174.131 from VM ctest-TestBasicPolicy-34266765-57986343 passed 2024-10-31 02:12:10,609 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a9c7fe53-cab4-4583-96ba-8f5be3fa0ebe", "href": "https://10.0.0.17:8082/network-policy/a9c7fe53-cab4-4583-96ba-8f5be3fa0ebe"}} 2024-10-31 02:12:10,609 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:12:10,609 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 77.200.174.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-10-31 02:12:10,609 - DEBUG - ping -s 56 -c 3 -W 1 77.200.174.131 2024-10-31 02:12:13,843 - DEBUG - PING 77.200.174.131 (77.200.174.131): 56 data bytes --- 77.200.174.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-31 02:12:13,844 - WARNING - Ping to IP 77.200.174.131 from VM ctest-TestBasicPolicy-34266765-57986343 failed 2024-10-31 02:12:13,844 - INFO - Deleting VM ctest-TestBasicPolicy-34266765-30616375 2024-10-31 02:12:14,013 - INFO - Deleting VM ctest-TestBasicPolicy-34266765-57986343 2024-10-31 02:12:14,845 - INFO - Deleted policy ctest-policy-allow-all-21949204 2024-10-31 02:12:14,845 - INFO - Deleting VN ctest-vn-06964615 2024-10-31 02:12:14,985 - DEBUG - VN 212e8db4-bccb-4028-a448-aa59a67a35c0 still in use: Unable to complete operation on network 212e8db4-bccb-4028-a448-aa59a67a35c0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d4e9566b-1465-44ab-af2c-400f4272c63d'] 2024-10-31 02:12:14,985 - WARNING - Deleting VN ctest-vn-06964615 failed..Will retry 2024-10-31 02:12:17,180 - DEBUG - Response for deleting network () 2024-10-31 02:12:17,180 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/ab1b2df6-e867-45ef-b267-61cb4301184e 2024-10-31 02:12:17,237 - DEBUG - Response Code: 404 2024-10-31 02:12:17,237 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-10-31 02:12:17,294 - DEBUG - Requesting: https://10.0.0.17:8082/domain/0fc11768-1bc4-4a76-8ff2-b677acb0a6ff 2024-10-31 02:12:17,366 - DEBUG - Requesting: https://10.0.0.17:8082/project/04d6aa30-76a7-4651-9b21-f2bd3ba1aac3 2024-10-31 02:12:17,467 - INFO - Validated that VN ctest-vn-06964615 is not found in API Server 2024-10-31 02:12:17,569 - DEBUG - VN ctest-vn-06964615 is not present in Agent 10.0.0.17 2024-10-31 02:12:17,569 - INFO - Validated that VN ctest-vn-06964615 is not in any agent 2024-10-31 02:12:17,730 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06964615 info 2024-10-31 02:12:17,730 - INFO - Deleting VN ctest-vn-51280434 2024-10-31 02:12:17,928 - DEBUG - Response for deleting network () 2024-10-31 02:12:17,928 - DEBUG - Requesting: https://10.0.0.17:8082/routing-instance/a8bac159-e305-4323-acff-b4bbdfe24e96 2024-10-31 02:12:17,985 - DEBUG - Response Code: 404 2024-10-31 02:12:17,985 - DEBUG - Requesting: https://10.0.0.17:8082/domains 2024-10-31 02:12:18,037 - DEBUG - Requesting: https://10.0.0.17:8082/domain/0fc11768-1bc4-4a76-8ff2-b677acb0a6ff 2024-10-31 02:12:18,098 - DEBUG - Requesting: https://10.0.0.17:8082/project/04d6aa30-76a7-4651-9b21-f2bd3ba1aac3 2024-10-31 02:12:18,186 - INFO - Validated that VN ctest-vn-51280434 is not found in API Server 2024-10-31 02:12:18,293 - DEBUG - VN ctest-vn-51280434 is not present in Agent 10.0.0.17 2024-10-31 02:12:18,293 - INFO - Validated that VN ctest-vn-51280434 is not in any agent 2024-10-31 02:12:18,454 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-51280434 info 2024-10-31 02:12:18,842 - DEBUG - No XMPP flaps were noticed during the test 2024-10-31 02:12:18,842 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38] 2024-10-31 02:12:18,842 - INFO - -------------------------------------------------------------------------------- 2024-10-31 02:12:19,689 - INFO - Deleted project: ctest-TestBasicPolicy-34266765, ID : 04d6aa30-76a7-4651-9b21-f2bd3ba1aac3