2025-03-28 11:12:36,836 - INFO - Domain Default found not creating 2025-03-28 11:12:37,032 - INFO - Project ctest-TestBasicPolicy-25940352 not found, creating it 2025-03-28 11:12:37,588 - INFO - Created Project:ctest-TestBasicPolicy-25940352, ID : 05b34adc-8ec0-4a46-b9be-d61721b3a157 2025-03-28 11:12:39,365 - INFO - ================================================================================ 2025-03-28 11:12:39,365 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-28 11:12:39,365 - 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 2025-03-28 11:12:39,658 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.8': '0'}} with 2025-03-28 11:12:39,658 - INFO - Initial checks done. Running the testcase now 2025-03-28 11:12:39,658 - INFO - 2025-03-28 11:12:40,244 - DEBUG - Response for create_network : {'network': {'id': '54ad9af7-9e7d-4004-b560-3105ba50ab7d', 'name': 'ctest-vn-48987593', 'tenant_id': '05b34adc8ec04a46b9bed61721b3a157', 'project_id': '05b34adc8ec04a46b9bed61721b3a157', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-vn-48987593'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 11:12:40,460 - DEBUG - Response for create_subnet : {'subnet': {'id': '8003d83b-07a5-4334-b01e-3a60e009d443', 'name': '', 'tenant_id': '05b34adc8ec04a46b9bed61721b3a157', 'network_id': '54ad9af7-9e7d-4004-b560-3105ba50ab7d', 'ip_version': 4, 'cidr': '56.196.126.192/26', 'allocation_pools': [{'start': '56.196.126.194', 'end': '56.196.126.254'}], 'gateway_ip': '56.196.126.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.196.126.194', 'tags': [], 'project_id': '05b34adc8ec04a46b9bed61721b3a157'}} 2025-03-28 11:12:40,482 - INFO - Created VN ctest-vn-48987593 2025-03-28 11:12:40,541 - DEBUG - VN ctest-vn-48987593 UUID is 54ad9af7-9e7d-4004-b560-3105ba50ab7d 2025-03-28 11:12:40,872 - DEBUG - Response for create_network : {'network': {'id': '4c008d90-e918-4ede-b0ac-1d786aad33a5', 'name': 'ctest-vn-54179984', 'tenant_id': '05b34adc8ec04a46b9bed61721b3a157', 'project_id': '05b34adc8ec04a46b9bed61721b3a157', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-vn-54179984'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 11:12:41,081 - DEBUG - Response for create_subnet : {'subnet': {'id': '282319a8-13e1-4944-967f-d94c2a25c855', 'name': '', 'tenant_id': '05b34adc8ec04a46b9bed61721b3a157', 'network_id': '4c008d90-e918-4ede-b0ac-1d786aad33a5', 'ip_version': 4, 'cidr': '173.198.215.128/26', 'allocation_pools': [{'start': '173.198.215.130', 'end': '173.198.215.190'}], 'gateway_ip': '173.198.215.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.198.215.130', 'tags': [], 'project_id': '05b34adc8ec04a46b9bed61721b3a157'}} 2025-03-28 11:12:41,101 - INFO - Created VN ctest-vn-54179984 2025-03-28 11:12:41,157 - DEBUG - VN ctest-vn-54179984 UUID is 4c008d90-e918-4ede-b0ac-1d786aad33a5 2025-03-28 11:12:41,280 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593, 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-25940352:ctest-vn-54179984, 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] 2025-03-28 11:12:41,634 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54ad9af7-9e7d-4004-b560-3105ba50ab7d', 'name': 'ctest-vn-48987593', 'tenant_id': '05b34adc8ec04a46b9bed61721b3a157', 'project_id': '05b34adc8ec04a46b9bed61721b3a157', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8003d83b-07a5-4334-b01e-3a60e009d443'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-vn-48987593'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-policy-allow-all-65548375']], 'subnet_ipam': [{'subnet_cidr': '56.196.126.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 11:12:41,868 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c008d90-e918-4ede-b0ac-1d786aad33a5', 'name': 'ctest-vn-54179984', 'tenant_id': '05b34adc8ec04a46b9bed61721b3a157', 'project_id': '05b34adc8ec04a46b9bed61721b3a157', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['282319a8-13e1-4944-967f-d94c2a25c855'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-vn-54179984'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-policy-allow-all-65548375']], 'subnet_ipam': [{'subnet_cidr': '173.198.215.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 11:12:42,045 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-28 11:12:42,354 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-28 11:12:42,392 - DEBUG - Requesting: http://10.0.0.24:8082/domain/8830b808-73f4-4e1e-aa4c-1af1b27ec375 2025-03-28 11:12:42,407 - DEBUG - Requesting: http://10.0.0.24:8082/project/05b34adc-8ec0-4a46-b9be-d61721b3a157 2025-03-28 11:12:42,489 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/54ad9af7-9e7d-4004-b560-3105ba50ab7d 2025-03-28 11:12:42,504 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/54ad9af7-9e7d-4004-b560-3105ba50ab7d 2025-03-28 11:12:42,516 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/695f7312-4dc2-4228-8852-94737ca1d005 2025-03-28 11:12:42,527 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/695f7312-4dc2-4228-8852-94737ca1d005 2025-03-28 11:12:42,536 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/0c971344-dfeb-4cc4-9c11-ee9e4ca230b5 2025-03-28 11:12:42,545 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 11:12:42,545 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/54ad9af7-9e7d-4004-b560-3105ba50ab7d 2025-03-28 11:12:42,557 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/695f7312-4dc2-4228-8852-94737ca1d005 2025-03-28 11:12:42,576 - INFO - Verified VN network id 9 for VN 54ad9af7-9e7d-4004-b560-3105ba50ab7d 2025-03-28 11:12:42,576 - INFO - Verifications in API Server for VN ctest-vn-48987593 passed 2025-03-28 11:12:42,576 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/54ad9af7-9e7d-4004-b560-3105ba50ab7d 2025-03-28 11:12:42,590 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/695f7312-4dc2-4228-8852-94737ca1d005 2025-03-28 11:12:42,601 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/695f7312-4dc2-4228-8852-94737ca1d005 2025-03-28 11:12:42,610 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/0c971344-dfeb-4cc4-9c11-ee9e4ca230b5 2025-03-28 11:12:42,628 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25940352', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6101703458463498244', 'uuid-lslong': '13069500019299625853'}, 'enable': 'true', 'created': '2025-03-28T11:12:40', 'last-modified': '2025-03-28T11:12:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028943'} 2025-03-28 11:12:42,636 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 11:12:42,636 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48987593 passed 2025-03-28 11:12:42,636 - DEBUG - ====Verifying policy data for ctest-vn-48987593 in API_Server ====== 2025-03-28 11:12:42,636 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-28 11:12:42,645 - DEBUG - Requesting: http://10.0.0.24:8082/domain/8830b808-73f4-4e1e-aa4c-1af1b27ec375 2025-03-28 11:12:42,659 - DEBUG - Requesting: http://10.0.0.24:8082/project/05b34adc-8ec0-4a46-b9be-d61721b3a157 2025-03-28 11:12:42,735 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/54ad9af7-9e7d-4004-b560-3105ba50ab7d 2025-03-28 11:12:42,747 - DEBUG - ==>Verifying data for policy with id: f9a51511-8e3a-49e1-8369-b5a52a47b654, fqn: ['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-policy-allow-all-65548375'] 2025-03-28 11:12:42,747 - INFO - VN ctest-vn-48987593 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 11:12:42,747 - DEBUG - Verifying the vn in opserver 2025-03-28 11:12:42,747 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593 virtual network link through opserver 10.0.0.24 2025-03-28 11:12:42,747 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-03-28 11:12:43,048 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-03-28 11:12:43,144 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593?flat'} 2025-03-28 11:12:43,144 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593 is found in opserver 2025-03-28 11:12:43,167 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 11:12:43,177 - DEBUG - VRF ids for VN ctest-vn-48987593: {} 2025-03-28 11:12:43,177 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-28 11:12:43,188 - DEBUG - Requesting: http://10.0.0.24:8082/domain/8830b808-73f4-4e1e-aa4c-1af1b27ec375 2025-03-28 11:12:43,205 - DEBUG - Requesting: http://10.0.0.24:8082/project/05b34adc-8ec0-4a46-b9be-d61721b3a157 2025-03-28 11:12:43,291 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/4c008d90-e918-4ede-b0ac-1d786aad33a5 2025-03-28 11:12:43,317 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/4c008d90-e918-4ede-b0ac-1d786aad33a5 2025-03-28 11:12:43,329 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/5c61ace4-b421-417b-bb8e-35fd7a84751e 2025-03-28 11:12:43,339 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/5c61ace4-b421-417b-bb8e-35fd7a84751e 2025-03-28 11:12:43,348 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/ba713308-a2f4-4f2a-bcf1-5632d87a9ab5 2025-03-28 11:12:43,357 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 11:12:43,357 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/4c008d90-e918-4ede-b0ac-1d786aad33a5 2025-03-28 11:12:43,369 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/5c61ace4-b421-417b-bb8e-35fd7a84751e 2025-03-28 11:12:43,392 - INFO - Verified VN network id 10 for VN 4c008d90-e918-4ede-b0ac-1d786aad33a5 2025-03-28 11:12:43,393 - INFO - Verifications in API Server for VN ctest-vn-54179984 passed 2025-03-28 11:12:43,393 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/4c008d90-e918-4ede-b0ac-1d786aad33a5 2025-03-28 11:12:43,408 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/5c61ace4-b421-417b-bb8e-35fd7a84751e 2025-03-28 11:12:43,419 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/5c61ace4-b421-417b-bb8e-35fd7a84751e 2025-03-28 11:12:43,427 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/ba713308-a2f4-4f2a-bcf1-5632d87a9ab5 2025-03-28 11:12:43,444 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-54179984', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25940352', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5476532800408014558', 'uuid-lslong': '12730582649692566437'}, 'enable': 'true', 'created': '2025-03-28T11:12:40', 'last-modified': '2025-03-28T11:12:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.600518'} 2025-03-28 11:12:43,453 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 11:12:43,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54179984 passed 2025-03-28 11:12:43,453 - DEBUG - ====Verifying policy data for ctest-vn-54179984 in API_Server ====== 2025-03-28 11:12:43,453 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-28 11:12:43,464 - DEBUG - Requesting: http://10.0.0.24:8082/domain/8830b808-73f4-4e1e-aa4c-1af1b27ec375 2025-03-28 11:12:43,481 - DEBUG - Requesting: http://10.0.0.24:8082/project/05b34adc-8ec0-4a46-b9be-d61721b3a157 2025-03-28 11:12:43,570 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/4c008d90-e918-4ede-b0ac-1d786aad33a5 2025-03-28 11:12:43,584 - DEBUG - ==>Verifying data for policy with id: f9a51511-8e3a-49e1-8369-b5a52a47b654, fqn: ['default-domain', 'ctest-TestBasicPolicy-25940352', 'ctest-policy-allow-all-65548375'] 2025-03-28 11:12:43,584 - INFO - VN ctest-vn-54179984 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 11:12:43,584 - DEBUG - Verifying the vn in opserver 2025-03-28 11:12:43,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-54179984 virtual network link through opserver 10.0.0.24 2025-03-28 11:12:43,584 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-03-28 11:12:43,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-54179984', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-54179984?flat'} 2025-03-28 11:12:43,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-54179984 is found in opserver 2025-03-28 11:12:43,611 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 11:12:43,618 - DEBUG - VRF ids for VN ctest-vn-54179984: {} 2025-03-28 11:12:43,688 - DEBUG - Services list from nova: [, , ] 2025-03-28 11:12:44,911 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2987-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2987-1) 2025-03-28 11:12:46,133 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2987-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2987-1) 2025-03-28 11:12:46,134 - INFO - Waiting for VM ctest-TestBasicPolicy-25940352-05478489 to be up.. 2025-03-28 11:12:46,217 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-28 11:12:51,303 - DEBUG - VM is in ACTIVE state now 2025-03-28 11:12:51,304 - INFO - VM name : ctest-TestBasicPolicy-25940352-05478489 2025-03-28 11:12:51,400 - DEBUG - VM ctest-TestBasicPolicy-25940352-05478489 ID is e6fd05d3-afc1-4a5b-89fa-fd39f0653a4f 2025-03-28 11:12:51,424 - DEBUG - VM ctest-TestBasicPolicy-25940352-05478489 launched on Node cn-jenkins-deploy-platform-ansible-os-2987-1 2025-03-28 11:12:51,508 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/e6fd05d3-afc1-4a5b-89fa-fd39f0653a4f 2025-03-28 11:12:51,521 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/dc06061c-aca6-43aa-b9fe-89901b47c248 2025-03-28 11:12:54,798 - 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 1031ms') 2025-03-28 11:12:54,798 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25940352-05478489 failed! 2025-03-28 11:12:54,853 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25940352:ctest-vn-48987593 is 56.196.126.193 and allocation pool is NOT set 2025-03-28 11:12:56,921 - 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.99 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.38 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.378/5.683/8.988/3.305 ms') 2025-03-28 11:12:56,921 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25940352-05478489 passed 2025-03-28 11:12:57,077 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 11:12:57,077 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25940352-05478489, IP 56.196.126.195, Port 22 2025-03-28 11:12:57,143 - 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': ''} 2025-03-28 11:12:57,261 - DEBUG - VM ctest-TestBasicPolicy-25940352-05478489 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-28 11:13:02,262 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 11:13:02,262 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25940352-05478489, IP 56.196.126.195, Port 22 2025-03-28 11:13:02,421 - DEBUG - VM ctest-TestBasicPolicy-25940352-05478489 is ready for SSH connections 2025-03-28 11:13:02,421 - INFO - Waiting for VM ctest-TestBasicPolicy-25940352-14849782 to be up.. 2025-03-28 11:13:02,510 - DEBUG - VM is in ACTIVE state now 2025-03-28 11:13:02,510 - INFO - VM name : ctest-TestBasicPolicy-25940352-14849782 2025-03-28 11:13:02,604 - DEBUG - VM ctest-TestBasicPolicy-25940352-14849782 ID is cdcf6b86-3c45-4e1a-8522-ba50423a908c 2025-03-28 11:13:02,605 - DEBUG - VM ctest-TestBasicPolicy-25940352-14849782 launched on Node cn-jenkins-deploy-platform-ansible-os-2987-1 2025-03-28 11:13:02,706 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/cdcf6b86-3c45-4e1a-8522-ba50423a908c 2025-03-28 11:13:02,719 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/483e5e4f-08ab-4d84-8ad7-0d47bbd5cc28 2025-03-28 11:13:03,971 - 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=4.40 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.511 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.511/2.454/4.397/1.943 ms') 2025-03-28 11:13:03,971 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-25940352-14849782 passed 2025-03-28 11:13:04,133 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 11:13:04,133 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25940352-14849782, IP 173.198.215.131, Port 22 2025-03-28 11:13:04,303 - DEBUG - VM ctest-TestBasicPolicy-25940352-14849782 is ready for SSH connections 2025-03-28 11:13:04,303 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 11:13:04,304 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 173.198.215.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-03-28 11:13:04,304 - DEBUG - ping -s 56 -c 3 -W 1 173.198.215.131 2025-03-28 11:13:08,375 - DEBUG - PING 173.198.215.131 (173.198.215.131): 56 data bytes 64 bytes from 173.198.215.131: seq=0 ttl=63 time=3.526 ms 64 bytes from 173.198.215.131: seq=1 ttl=63 time=1.110 ms 64 bytes from 173.198.215.131: seq=2 ttl=63 time=0.915 ms --- 173.198.215.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.915/1.850/3.526 ms 2025-03-28 11:13:08,375 - INFO - Ping to IP 173.198.215.131 from VM ctest-TestBasicPolicy-25940352-05478489 passed 2025-03-28 11:13:08,565 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f9a51511-8e3a-49e1-8369-b5a52a47b654", "href": "http://10.0.0.24:8082/network-policy/f9a51511-8e3a-49e1-8369-b5a52a47b654"}} 2025-03-28 11:13:08,565 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 11:13:08,565 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 173.198.215.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-03-28 11:13:08,565 - DEBUG - ping -s 56 -c 3 -W 1 173.198.215.131 2025-03-28 11:13:11,798 - DEBUG - PING 173.198.215.131 (173.198.215.131): 56 data bytes 64 bytes from 173.198.215.131: seq=0 ttl=63 time=1.456 ms --- 173.198.215.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.456/1.456/1.456 ms 2025-03-28 11:13:11,798 - WARNING - Ping to IP 173.198.215.131 from VM ctest-TestBasicPolicy-25940352-05478489 failed 2025-03-28 11:13:11,798 - INFO - Deleting VM ctest-TestBasicPolicy-25940352-14849782 2025-03-28 11:13:11,877 - INFO - Deleting VM ctest-TestBasicPolicy-25940352-05478489 2025-03-28 11:13:12,303 - INFO - Deleted policy ctest-policy-allow-all-65548375 2025-03-28 11:13:12,303 - INFO - Deleting VN ctest-vn-54179984 2025-03-28 11:13:12,351 - DEBUG - VN 4c008d90-e918-4ede-b0ac-1d786aad33a5 still in use: Unable to complete operation on network 4c008d90-e918-4ede-b0ac-1d786aad33a5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-000add70-fce0-487a-bb86-988d7770b380'] 2025-03-28 11:13:12,352 - WARNING - Deleting VN ctest-vn-54179984 failed..Will retry 2025-03-28 11:13:14,479 - DEBUG - Response for deleting network () 2025-03-28 11:13:14,479 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/5c61ace4-b421-417b-bb8e-35fd7a84751e 2025-03-28 11:13:14,485 - DEBUG - Response Code: 404 2025-03-28 11:13:14,485 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-28 11:13:14,492 - DEBUG - Requesting: http://10.0.0.24:8082/domain/8830b808-73f4-4e1e-aa4c-1af1b27ec375 2025-03-28 11:13:14,549 - DEBUG - Requesting: http://10.0.0.24:8082/project/05b34adc-8ec0-4a46-b9be-d61721b3a157 2025-03-28 11:13:14,628 - INFO - Validated that VN ctest-vn-54179984 is not found in API Server 2025-03-28 11:13:14,640 - DEBUG - VN ctest-vn-54179984 is not present in Agent 10.0.0.24 2025-03-28 11:13:14,640 - INFO - Validated that VN ctest-vn-54179984 is not in any agent 2025-03-28 11:13:14,659 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54179984 info 2025-03-28 11:13:14,659 - INFO - Deleting VN ctest-vn-48987593 2025-03-28 11:13:14,779 - DEBUG - Response for deleting network () 2025-03-28 11:13:14,779 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/695f7312-4dc2-4228-8852-94737ca1d005 2025-03-28 11:13:14,785 - DEBUG - Response Code: 404 2025-03-28 11:13:14,785 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-28 11:13:14,798 - DEBUG - Requesting: http://10.0.0.24:8082/domain/8830b808-73f4-4e1e-aa4c-1af1b27ec375 2025-03-28 11:13:14,856 - DEBUG - Requesting: http://10.0.0.24:8082/project/05b34adc-8ec0-4a46-b9be-d61721b3a157 2025-03-28 11:13:14,933 - INFO - Validated that VN ctest-vn-48987593 is not found in API Server 2025-03-28 11:13:14,945 - DEBUG - VN ctest-vn-48987593 is not present in Agent 10.0.0.24 2025-03-28 11:13:14,945 - INFO - Validated that VN ctest-vn-48987593 is not in any agent 2025-03-28 11:13:14,965 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48987593 info 2025-03-28 11:13:15,224 - DEBUG - No XMPP flaps were noticed during the test
2025-03-28 11:13:15,224 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-03-28 11:13:15,224 - INFO - -------------------------------------------------------------------------------- 2025-03-28 11:13:15,962 - INFO - Deleted project: ctest-TestBasicPolicy-25940352, ID : 05b34adc-8ec0-4a46-b9be-d61721b3a157