2024-12-26 01:56:39,197 - INFO - Reading existing Domain with UUID e87579be-da4b-4b50-b3a2-8e191a3368e1 2024-12-26 01:56:39,210 - INFO - Using existing domain ['admin_domain'](e87579be-da4b-4b50-b3a2-8e191a3368e1) 2024-12-26 01:56:39,417 - INFO - Project ctest-TestBasicPolicy-04918215 not found, creating it 2024-12-26 01:56:39,938 - INFO - Created Project:ctest-TestBasicPolicy-04918215, ID : 1862ca63-f480-42a3-8a24-f593345f70bc 2024-12-26 01:56:41,725 - INFO - ================================================================================ 2024-12-26 01:56:41,726 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-12-26 01:56:41,726 - 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-12-26 01:56:42,115 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.0.0.29': '0'}} with 2024-12-26 01:56:42,115 - INFO - Initial checks done. Running the testcase now 2024-12-26 01:56:42,116 - INFO - 2024-12-26 01:56:42,935 - DEBUG - Response for create_network : {'network': {'id': 'c4638ccf-5fa8-4be3-81c1-1890d34bef78', 'name': 'ctest-vn-15617161', 'tenant_id': '1862ca63f48042a38a24f593345f70bc', 'project_id': '1862ca63f48042a38a24f593345f70bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-vn-15617161'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-12-26 01:56:43,183 - DEBUG - Response for create_subnet : {'subnet': {'id': '6baf0eab-0c88-46a1-b1d1-2f90527db1c7', 'name': '', 'tenant_id': '1862ca63f48042a38a24f593345f70bc', 'network_id': 'c4638ccf-5fa8-4be3-81c1-1890d34bef78', 'ip_version': 4, 'cidr': '141.95.247.64/26', 'allocation_pools': [{'start': '141.95.247.66', 'end': '141.95.247.126'}], 'gateway_ip': '141.95.247.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-12-26T01:56:43.077404', 'updated_at': '2024-12-26T01:56:43.077404', 'dns_server_address': '141.95.247.66', 'tags': [], 'project_id': '1862ca63f48042a38a24f593345f70bc'}} 2024-12-26 01:56:43,248 - INFO - Created VN ctest-vn-15617161 2024-12-26 01:56:43,310 - DEBUG - VN ctest-vn-15617161 UUID is c4638ccf-5fa8-4be3-81c1-1890d34bef78 2024-12-26 01:56:43,892 - DEBUG - Response for create_network : {'network': {'id': 'c87d31f6-badf-4232-a2b5-b97748602f29', 'name': 'ctest-vn-37468131', 'tenant_id': '1862ca63f48042a38a24f593345f70bc', 'project_id': '1862ca63f48042a38a24f593345f70bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-vn-37468131'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-12-26 01:56:44,185 - DEBUG - Response for create_subnet : {'subnet': {'id': '4bca74ac-d1b3-41d8-86db-c183c0c71563', 'name': '', 'tenant_id': '1862ca63f48042a38a24f593345f70bc', 'network_id': 'c87d31f6-badf-4232-a2b5-b97748602f29', 'ip_version': 4, 'cidr': '31.180.240.0/26', 'allocation_pools': [{'start': '31.180.240.2', 'end': '31.180.240.62'}], 'gateway_ip': '31.180.240.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-12-26T01:56:44.069774', 'updated_at': '2024-12-26T01:56:44.069774', 'dns_server_address': '31.180.240.2', 'tags': [], 'project_id': '1862ca63f48042a38a24f593345f70bc'}} 2024-12-26 01:56:44,253 - INFO - Created VN ctest-vn-37468131 2024-12-26 01:56:44,314 - DEBUG - VN ctest-vn-37468131 UUID is c87d31f6-badf-4232-a2b5-b97748602f29 2024-12-26 01:56:44,543 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161, 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-04918215:ctest-vn-37468131, 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-12-26 01:56:44,986 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c4638ccf-5fa8-4be3-81c1-1890d34bef78', 'name': 'ctest-vn-15617161', 'tenant_id': '1862ca63f48042a38a24f593345f70bc', 'project_id': '1862ca63f48042a38a24f593345f70bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6baf0eab-0c88-46a1-b1d1-2f90527db1c7'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-vn-15617161'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-policy-allow-all-74175625']], 'subnet_ipam': [{'subnet_cidr': '141.95.247.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-12-26T01:56:42.858762', 'updated_at': '2024-12-26T01:56:43.091167'}} 2024-12-26 01:56:45,438 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c87d31f6-badf-4232-a2b5-b97748602f29', 'name': 'ctest-vn-37468131', 'tenant_id': '1862ca63f48042a38a24f593345f70bc', 'project_id': '1862ca63f48042a38a24f593345f70bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4bca74ac-d1b3-41d8-86db-c183c0c71563'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-vn-37468131'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-policy-allow-all-74175625']], 'subnet_ipam': [{'subnet_cidr': '31.180.240.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-12-26T01:56:43.785366', 'updated_at': '2024-12-26T01:56:44.085871'}} 2024-12-26 01:56:45,643 - DEBUG - Requesting: https://10.0.0.29:8082/domains 2024-12-26 01:56:45,993 - DEBUG - Requesting: https://10.0.0.29:8082/domains 2024-12-26 01:56:46,083 - DEBUG - Requesting: https://10.0.0.29:8082/domain/e87579be-da4b-4b50-b3a2-8e191a3368e1 2024-12-26 01:56:46,147 - DEBUG - Requesting: https://10.0.0.29:8082/project/1862ca63-f480-42a3-8a24-f593345f70bc 2024-12-26 01:56:46,240 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c4638ccf-5fa8-4be3-81c1-1890d34bef78 2024-12-26 01:56:46,301 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c4638ccf-5fa8-4be3-81c1-1890d34bef78 2024-12-26 01:56:46,360 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/4f0876a3-e84a-4a83-8851-32c68c052dc1 2024-12-26 01:56:46,415 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/4f0876a3-e84a-4a83-8851-32c68c052dc1 2024-12-26 01:56:46,472 - DEBUG - Requesting: https://10.0.0.29:8082/route-target/13d6a5ea-cbf3-4066-923c-50e40d7c90a2 2024-12-26 01:56:46,527 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-12-26 01:56:46,527 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c4638ccf-5fa8-4be3-81c1-1890d34bef78 2024-12-26 01:56:46,585 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/4f0876a3-e84a-4a83-8851-32c68c052dc1 2024-12-26 01:56:46,648 - INFO - Verified VN network id 7 for VN c4638ccf-5fa8-4be3-81c1-1890d34bef78 2024-12-26 01:56:46,648 - INFO - Verifications in API Server for VN ctest-vn-15617161 passed 2024-12-26 01:56:46,648 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c4638ccf-5fa8-4be3-81c1-1890d34bef78 2024-12-26 01:56:46,704 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/4f0876a3-e84a-4a83-8851-32c68c052dc1 2024-12-26 01:56:46,760 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/4f0876a3-e84a-4a83-8851-32c68c052dc1 2024-12-26 01:56:46,812 - DEBUG - Requesting: https://10.0.0.29:8082/route-target/13d6a5ea-cbf3-4066-923c-50e40d7c90a2 2024-12-26 01:56:46,927 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04918215', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14151309276419214307', 'uuid-lslong': '9349781311697186680'}, 'enable': 'true', 'created': '2024-12-26T01:56:42', 'last-modified': '2024-12-26T01:56:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.975331'} 2024-12-26 01:56:46,984 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-12-26 01:56:46,985 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15617161 passed 2024-12-26 01:56:46,985 - DEBUG - ====Verifying policy data for ctest-vn-15617161 in API_Server ====== 2024-12-26 01:56:46,985 - DEBUG - Requesting: https://10.0.0.29:8082/domains 2024-12-26 01:56:47,039 - DEBUG - Requesting: https://10.0.0.29:8082/domain/e87579be-da4b-4b50-b3a2-8e191a3368e1 2024-12-26 01:56:47,100 - DEBUG - Requesting: https://10.0.0.29:8082/project/1862ca63-f480-42a3-8a24-f593345f70bc 2024-12-26 01:56:47,184 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c4638ccf-5fa8-4be3-81c1-1890d34bef78 2024-12-26 01:56:47,241 - DEBUG - ==>Verifying data for policy with id: d49b18b8-d79b-4f8c-b267-941f22c340b6, fqn: ['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-policy-allow-all-74175625'] 2024-12-26 01:56:47,241 - INFO - VN ctest-vn-15617161 Policy verification: verify_vn_policy_in_api_server, status: True 2024-12-26 01:56:47,241 - DEBUG - Verifying the vn in opserver 2024-12-26 01:56:47,241 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161 virtual network link through opserver 10.0.0.29 2024-12-26 01:56:47,241 - DEBUG - Requesting: https://10.0.0.29:8081/analytics/uves/virtual-networks 2024-12-26 01:56:47,594 - DEBUG - Requesting: https://10.0.0.29:8081/analytics/uves/virtual-networks 2024-12-26 01:56:47,724 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161', 'href': 'https://10.0.0.29:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161?flat'} 2024-12-26 01:56:47,724 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161 is found in opserver 2024-12-26 01:56:47,832 - DEBUG - Do not have enough data to verify VN in agent 2024-12-26 01:56:47,884 - DEBUG - VRF ids for VN ctest-vn-15617161: {} 2024-12-26 01:56:47,884 - DEBUG - Requesting: https://10.0.0.29:8082/domains 2024-12-26 01:56:47,943 - DEBUG - Requesting: https://10.0.0.29:8082/domain/e87579be-da4b-4b50-b3a2-8e191a3368e1 2024-12-26 01:56:48,011 - DEBUG - Requesting: https://10.0.0.29:8082/project/1862ca63-f480-42a3-8a24-f593345f70bc 2024-12-26 01:56:48,096 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c87d31f6-badf-4232-a2b5-b97748602f29 2024-12-26 01:56:48,157 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c87d31f6-badf-4232-a2b5-b97748602f29 2024-12-26 01:56:48,212 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/62b8928f-77b3-427a-ab00-b07517959ee9 2024-12-26 01:56:48,268 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/62b8928f-77b3-427a-ab00-b07517959ee9 2024-12-26 01:56:48,323 - DEBUG - Requesting: https://10.0.0.29:8082/route-target/0c6bee71-63b9-4a38-93ee-e8ddcf1fa80c 2024-12-26 01:56:48,375 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-12-26 01:56:48,375 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c87d31f6-badf-4232-a2b5-b97748602f29 2024-12-26 01:56:48,436 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/62b8928f-77b3-427a-ab00-b07517959ee9 2024-12-26 01:56:48,500 - INFO - Verified VN network id 8 for VN c87d31f6-badf-4232-a2b5-b97748602f29 2024-12-26 01:56:48,500 - INFO - Verifications in API Server for VN ctest-vn-37468131 passed 2024-12-26 01:56:48,501 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c87d31f6-badf-4232-a2b5-b97748602f29 2024-12-26 01:56:48,561 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/62b8928f-77b3-427a-ab00-b07517959ee9 2024-12-26 01:56:48,623 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/62b8928f-77b3-427a-ab00-b07517959ee9 2024-12-26 01:56:48,679 - DEBUG - Requesting: https://10.0.0.29:8082/route-target/0c6bee71-63b9-4a38-93ee-e8ddcf1fa80c 2024-12-26 01:56:48,796 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-37468131', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04918215', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14446758115441328690', 'uuid-lslong': '11724481126895464233'}, 'enable': 'true', 'created': '2024-12-26T01:56:43', 'last-modified': '2024-12-26T01:56:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.458447'} 2024-12-26 01:56:48,852 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-12-26 01:56:48,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37468131 passed 2024-12-26 01:56:48,852 - DEBUG - ====Verifying policy data for ctest-vn-37468131 in API_Server ====== 2024-12-26 01:56:48,853 - DEBUG - Requesting: https://10.0.0.29:8082/domains 2024-12-26 01:56:48,915 - DEBUG - Requesting: https://10.0.0.29:8082/domain/e87579be-da4b-4b50-b3a2-8e191a3368e1 2024-12-26 01:56:48,975 - DEBUG - Requesting: https://10.0.0.29:8082/project/1862ca63-f480-42a3-8a24-f593345f70bc 2024-12-26 01:56:49,056 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c87d31f6-badf-4232-a2b5-b97748602f29 2024-12-26 01:56:49,113 - DEBUG - ==>Verifying data for policy with id: d49b18b8-d79b-4f8c-b267-941f22c340b6, fqn: ['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-policy-allow-all-74175625'] 2024-12-26 01:56:49,113 - INFO - VN ctest-vn-37468131 Policy verification: verify_vn_policy_in_api_server, status: True 2024-12-26 01:56:49,113 - DEBUG - Verifying the vn in opserver 2024-12-26 01:56:49,113 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-37468131 virtual network link through opserver 10.0.0.29 2024-12-26 01:56:49,113 - DEBUG - Requesting: https://10.0.0.29:8081/analytics/uves/virtual-networks 2024-12-26 01:56:49,175 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-37468131', 'href': 'https://10.0.0.29:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-37468131?flat'} 2024-12-26 01:56:49,175 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-37468131 is found in opserver 2024-12-26 01:56:49,283 - DEBUG - Do not have enough data to verify VN in agent 2024-12-26 01:56:49,335 - DEBUG - VRF ids for VN ctest-vn-37468131: {} 2024-12-26 01:56:49,404 - DEBUG - Services list from nova: [, , ] 2024-12-26 01:56:50,493 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-459-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-459-1) 2024-12-26 01:56:51,940 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-459-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-459-1) 2024-12-26 01:56:51,940 - INFO - Waiting for VM ctest-TestBasicPolicy-04918215-29402877 to be up.. 2024-12-26 01:56:52,086 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-12-26 01:56:57,224 - DEBUG - VM is in ACTIVE state now 2024-12-26 01:56:57,225 - INFO - VM name : ctest-TestBasicPolicy-04918215-29402877 2024-12-26 01:56:57,379 - DEBUG - VM ctest-TestBasicPolicy-04918215-29402877 ID is 3c528236-c758-47a4-9b0a-350b65234988 2024-12-26 01:56:57,416 - DEBUG - VM ctest-TestBasicPolicy-04918215-29402877 launched on Node cn-jenkins-deploy-platform-juju-os-459-1 2024-12-26 01:56:57,557 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-machine/3c528236-c758-47a4-9b0a-350b65234988 2024-12-26 01:56:57,616 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-machine-interface/79ceb2b8-7bbc-48b0-a08c-68529322759b 2024-12-26 01:57:01,087 - 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 1014ms') 2024-12-26 01:57:01,087 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04918215-29402877 failed! 2024-12-26 01:57:01,142 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161 is 141.95.247.65 and allocation pool is NOT set 2024-12-26 01:57:03,227 - 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=4.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.23 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.227/3.534/4.841/1.307 ms') 2024-12-26 01:57:03,227 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04918215-29402877 passed 2024-12-26 01:57:03,382 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-26 01:57:03,382 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04918215-29402877, IP 141.95.247.67, Port 22 2024-12-26 01:57:03,472 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-12-26 01:57:03,649 - DEBUG - VM ctest-TestBasicPolicy-04918215-29402877 is NOT ready for SSH connections, VM status: ACTIVE 2024-12-26 01:57:08,650 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-26 01:57:08,650 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04918215-29402877, IP 141.95.247.67, Port 22 2024-12-26 01:57:08,861 - DEBUG - VM ctest-TestBasicPolicy-04918215-29402877 is ready for SSH connections 2024-12-26 01:57:08,861 - INFO - Waiting for VM ctest-TestBasicPolicy-04918215-29355277 to be up.. 2024-12-26 01:57:09,114 - DEBUG - VM is in ACTIVE state now 2024-12-26 01:57:09,115 - INFO - VM name : ctest-TestBasicPolicy-04918215-29355277 2024-12-26 01:57:09,265 - DEBUG - VM ctest-TestBasicPolicy-04918215-29355277 ID is 6128f7c8-e858-42ef-be76-cc322a9dfec6 2024-12-26 01:57:09,266 - DEBUG - VM ctest-TestBasicPolicy-04918215-29355277 launched on Node cn-jenkins-deploy-platform-juju-os-459-1 2024-12-26 01:57:09,419 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-machine/6128f7c8-e858-42ef-be76-cc322a9dfec6 2024-12-26 01:57:09,483 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-machine-interface/b3db6b9f-afb7-48cb-8e55-69b62d8f22d6 2024-12-26 01:57:10,956 - 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.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.498 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.498/1.728/2.958/1.230 ms') 2024-12-26 01:57:10,956 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-04918215-29355277 passed 2024-12-26 01:57:11,110 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-26 01:57:11,110 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04918215-29355277, IP 31.180.240.3, Port 22 2024-12-26 01:57:11,324 - DEBUG - VM ctest-TestBasicPolicy-04918215-29355277 is ready for SSH connections 2024-12-26 01:57:11,324 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-26 01:57:11,324 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.180.240.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-12-26 01:57:11,325 - DEBUG - ping -s 56 -c 3 -W 1 31.180.240.3 2024-12-26 01:57:15,009 - DEBUG - PING 31.180.240.3 (31.180.240.3): 56 data bytes 64 bytes from 31.180.240.3: seq=0 ttl=63 time=3.835 ms 64 bytes from 31.180.240.3: seq=1 ttl=63 time=0.942 ms 64 bytes from 31.180.240.3: seq=2 ttl=63 time=0.941 ms --- 31.180.240.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.941/1.906/3.835 ms 2024-12-26 01:57:15,009 - INFO - Ping to IP 31.180.240.3 from VM ctest-TestBasicPolicy-04918215-29402877 passed 2024-12-26 01:57:15,198 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d49b18b8-d79b-4f8c-b267-941f22c340b6", "href": "https://10.0.0.29:8082/network-policy/d49b18b8-d79b-4f8c-b267-941f22c340b6"}} 2024-12-26 01:57:15,198 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-26 01:57:15,198 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.180.240.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-12-26 01:57:15,198 - DEBUG - ping -s 56 -c 3 -W 1 31.180.240.3 2024-12-26 01:57:18,398 - DEBUG - PING 31.180.240.3 (31.180.240.3): 56 data bytes --- 31.180.240.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-12-26 01:57:18,399 - WARNING - Ping to IP 31.180.240.3 from VM ctest-TestBasicPolicy-04918215-29402877 failed 2024-12-26 01:57:18,399 - INFO - Deleting VM ctest-TestBasicPolicy-04918215-29355277 2024-12-26 01:57:18,606 - INFO - Deleting VM ctest-TestBasicPolicy-04918215-29402877 2024-12-26 01:57:19,400 - INFO - Deleted policy ctest-policy-allow-all-74175625 2024-12-26 01:57:19,400 - INFO - Deleting VN ctest-vn-37468131 2024-12-26 01:57:19,541 - DEBUG - VN c87d31f6-badf-4232-a2b5-b97748602f29 still in use: Unable to complete operation on network c87d31f6-badf-4232-a2b5-b97748602f29. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-11eccaa9-108a-4e50-ada7-798ca0f00833'] 2024-12-26 01:57:19,541 - WARNING - Deleting VN ctest-vn-37468131 failed..Will retry 2024-12-26 01:57:21,730 - DEBUG - Response for deleting network () 2024-12-26 01:57:21,730 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/62b8928f-77b3-427a-ab00-b07517959ee9 2024-12-26 01:57:21,786 - DEBUG - Response Code: 404 2024-12-26 01:57:21,786 - DEBUG - Requesting: https://10.0.0.29:8082/domains 2024-12-26 01:57:21,839 - DEBUG - Requesting: https://10.0.0.29:8082/domain/e87579be-da4b-4b50-b3a2-8e191a3368e1 2024-12-26 01:57:21,899 - DEBUG - Requesting: https://10.0.0.29:8082/project/1862ca63-f480-42a3-8a24-f593345f70bc 2024-12-26 01:57:21,985 - INFO - Validated that VN ctest-vn-37468131 is not found in API Server 2024-12-26 01:57:22,087 - DEBUG - VN ctest-vn-37468131 is not present in Agent 10.0.0.29 2024-12-26 01:57:22,087 - INFO - Validated that VN ctest-vn-37468131 is not in any agent 2024-12-26 01:57:22,239 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-37468131 info 2024-12-26 01:57:22,240 - INFO - Deleting VN ctest-vn-15617161 2024-12-26 01:57:22,412 - DEBUG - Response for deleting network () 2024-12-26 01:57:22,412 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/4f0876a3-e84a-4a83-8851-32c68c052dc1 2024-12-26 01:57:22,471 - DEBUG - Response Code: 404 2024-12-26 01:57:22,471 - DEBUG - Requesting: https://10.0.0.29:8082/domains 2024-12-26 01:57:22,523 - DEBUG - Requesting: https://10.0.0.29:8082/domain/e87579be-da4b-4b50-b3a2-8e191a3368e1 2024-12-26 01:57:22,586 - DEBUG - Requesting: https://10.0.0.29:8082/project/1862ca63-f480-42a3-8a24-f593345f70bc 2024-12-26 01:57:22,672 - INFO - Validated that VN ctest-vn-15617161 is not found in API Server 2024-12-26 01:57:22,771 - DEBUG - VN ctest-vn-15617161 is not present in Agent 10.0.0.29 2024-12-26 01:57:22,771 - INFO - Validated that VN ctest-vn-15617161 is not in any agent 2024-12-26 01:57:22,924 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-15617161 info 2024-12-26 01:57:23,307 - DEBUG - No XMPP flaps were noticed during the test 2024-12-26 01:57:23,307 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:42] 2024-12-26 01:57:23,307 - INFO - -------------------------------------------------------------------------------- 2024-12-26 01:57:24,077 - INFO - Deleted project: ctest-TestBasicPolicy-04918215, ID : 1862ca63-f480-42a3-8a24-f593345f70bc