2025-03-27 10:51:21,254 - INFO - Domain Default found not creating 2025-03-27 10:51:21,423 - INFO - Project ctest-TestBasicPolicy-60380783 not found, creating it 2025-03-27 10:51:21,932 - INFO - Created Project:ctest-TestBasicPolicy-60380783, ID : 6850f68f-a59e-4e6d-a4a8-fda7a701b905 2025-03-27 10:51:23,637 - INFO - ================================================================================ 2025-03-27 10:51:23,637 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-27 10:51:23,637 - 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-27 10:51:23,896 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.24': '0'}} with 2025-03-27 10:51:23,896 - INFO - Initial checks done. Running the testcase now 2025-03-27 10:51:23,896 - INFO - 2025-03-27 10:51:24,871 - DEBUG - Response for create_network : {'network': {'id': 'ec21f749-e9f7-4859-95df-8f44dab883c5', 'name': 'ctest-vn-48167731', 'tenant_id': '6850f68fa59e4e6da4a8fda7a701b905', 'project_id': '6850f68fa59e4e6da4a8fda7a701b905', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-vn-48167731'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 10:51:25,117 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a796d42d-87c2-42d5-a793-492b11c13105', 'name': '', 'tenant_id': '6850f68fa59e4e6da4a8fda7a701b905', 'network_id': 'ec21f749-e9f7-4859-95df-8f44dab883c5', 'ip_version': 4, 'cidr': '180.48.227.0/26', 'allocation_pools': [{'start': '180.48.227.2', 'end': '180.48.227.62'}], 'gateway_ip': '180.48.227.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.48.227.2', 'tags': [], 'project_id': '6850f68fa59e4e6da4a8fda7a701b905'}} 2025-03-27 10:51:25,142 - INFO - Created VN ctest-vn-48167731 2025-03-27 10:51:25,200 - DEBUG - VN ctest-vn-48167731 UUID is ec21f749-e9f7-4859-95df-8f44dab883c5 2025-03-27 10:51:25,522 - DEBUG - Response for create_network : {'network': {'id': '3ce4cf97-0d48-4e92-b359-1776d5ef85cc', 'name': 'ctest-vn-82060410', 'tenant_id': '6850f68fa59e4e6da4a8fda7a701b905', 'project_id': '6850f68fa59e4e6da4a8fda7a701b905', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-vn-82060410'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 10:51:25,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b2aac60-fef1-4f84-b047-1723a0c8bcef', 'name': '', 'tenant_id': '6850f68fa59e4e6da4a8fda7a701b905', 'network_id': '3ce4cf97-0d48-4e92-b359-1776d5ef85cc', 'ip_version': 4, 'cidr': '125.134.59.0/26', 'allocation_pools': [{'start': '125.134.59.2', 'end': '125.134.59.62'}], 'gateway_ip': '125.134.59.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.134.59.2', 'tags': [], 'project_id': '6850f68fa59e4e6da4a8fda7a701b905'}} 2025-03-27 10:51:25,754 - INFO - Created VN ctest-vn-82060410 2025-03-27 10:51:25,807 - DEBUG - VN ctest-vn-82060410 UUID is 3ce4cf97-0d48-4e92-b359-1776d5ef85cc 2025-03-27 10:51:25,933 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731, 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-60380783:ctest-vn-82060410, 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-27 10:51:26,263 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec21f749-e9f7-4859-95df-8f44dab883c5', 'name': 'ctest-vn-48167731', 'tenant_id': '6850f68fa59e4e6da4a8fda7a701b905', 'project_id': '6850f68fa59e4e6da4a8fda7a701b905', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a796d42d-87c2-42d5-a793-492b11c13105'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-vn-48167731'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-policy-allow-all-99853269']], 'subnet_ipam': [{'subnet_cidr': '180.48.227.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 10:51:26,524 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ce4cf97-0d48-4e92-b359-1776d5ef85cc', 'name': 'ctest-vn-82060410', 'tenant_id': '6850f68fa59e4e6da4a8fda7a701b905', 'project_id': '6850f68fa59e4e6da4a8fda7a701b905', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b2aac60-fef1-4f84-b047-1723a0c8bcef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-vn-82060410'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-policy-allow-all-99853269']], 'subnet_ipam': [{'subnet_cidr': '125.134.59.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 10:51:26,704 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-03-27 10:51:27,051 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-03-27 10:51:27,088 - DEBUG - Requesting: http://10.0.0.30:8082/domain/58022dde-00c0-40ec-bce8-084e3cec1619 2025-03-27 10:51:27,105 - DEBUG - Requesting: http://10.0.0.30:8082/project/6850f68f-a59e-4e6d-a4a8-fda7a701b905 2025-03-27 10:51:27,190 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ec21f749-e9f7-4859-95df-8f44dab883c5 2025-03-27 10:51:27,204 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ec21f749-e9f7-4859-95df-8f44dab883c5 2025-03-27 10:51:27,215 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0fce6a0c-a98e-4eb4-aeac-d07e70c2394d 2025-03-27 10:51:27,225 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0fce6a0c-a98e-4eb4-aeac-d07e70c2394d 2025-03-27 10:51:27,233 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/8d203041-9443-4f5e-8fab-ea907b6dfab0 2025-03-27 10:51:27,241 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 10:51:27,242 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ec21f749-e9f7-4859-95df-8f44dab883c5 2025-03-27 10:51:27,255 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0fce6a0c-a98e-4eb4-aeac-d07e70c2394d 2025-03-27 10:51:27,275 - INFO - Verified VN network id 8 for VN ec21f749-e9f7-4859-95df-8f44dab883c5 2025-03-27 10:51:27,275 - INFO - Verifications in API Server for VN ctest-vn-48167731 passed 2025-03-27 10:51:27,276 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ec21f749-e9f7-4859-95df-8f44dab883c5 2025-03-27 10:51:27,292 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0fce6a0c-a98e-4eb4-aeac-d07e70c2394d 2025-03-27 10:51:27,304 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0fce6a0c-a98e-4eb4-aeac-d07e70c2394d 2025-03-27 10:51:27,312 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/8d203041-9443-4f5e-8fab-ea907b6dfab0 2025-03-27 10:51:27,330 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60380783', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17015152764012415065', 'uuid-lslong': '10799507957347812293'}, 'enable': 'true', 'created': '2025-03-27T10:51:24', 'last-modified': '2025-03-27T10:51:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.096840'} 2025-03-27 10:51:27,338 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 10:51:27,338 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48167731 passed 2025-03-27 10:51:27,338 - DEBUG - ====Verifying policy data for ctest-vn-48167731 in API_Server ====== 2025-03-27 10:51:27,338 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-03-27 10:51:27,346 - DEBUG - Requesting: http://10.0.0.30:8082/domain/58022dde-00c0-40ec-bce8-084e3cec1619 2025-03-27 10:51:27,360 - DEBUG - Requesting: http://10.0.0.30:8082/project/6850f68f-a59e-4e6d-a4a8-fda7a701b905 2025-03-27 10:51:27,445 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ec21f749-e9f7-4859-95df-8f44dab883c5 2025-03-27 10:51:27,457 - DEBUG - ==>Verifying data for policy with id: 7cba4764-98fb-47d3-ad15-753c5588b21a, fqn: ['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-policy-allow-all-99853269'] 2025-03-27 10:51:27,457 - INFO - VN ctest-vn-48167731 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 10:51:27,457 - DEBUG - Verifying the vn in opserver 2025-03-27 10:51:27,457 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731 virtual network link through opserver 10.0.0.30 2025-03-27 10:51:27,457 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-03-27 10:51:27,792 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-03-27 10:51:27,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731?flat'} 2025-03-27 10:51:27,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731 is found in opserver 2025-03-27 10:51:27,873 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 10:51:27,880 - DEBUG - VRF ids for VN ctest-vn-48167731: {} 2025-03-27 10:51:27,880 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-03-27 10:51:27,888 - DEBUG - Requesting: http://10.0.0.30:8082/domain/58022dde-00c0-40ec-bce8-084e3cec1619 2025-03-27 10:51:27,903 - DEBUG - Requesting: http://10.0.0.30:8082/project/6850f68f-a59e-4e6d-a4a8-fda7a701b905 2025-03-27 10:51:27,980 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/3ce4cf97-0d48-4e92-b359-1776d5ef85cc 2025-03-27 10:51:27,996 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/3ce4cf97-0d48-4e92-b359-1776d5ef85cc 2025-03-27 10:51:28,012 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1a7e6aa3-03b3-4e11-b04e-25d02ab3830b 2025-03-27 10:51:28,020 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1a7e6aa3-03b3-4e11-b04e-25d02ab3830b 2025-03-27 10:51:28,030 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/70e6430f-ccdc-4d10-bc2d-003fc307d395 2025-03-27 10:51:28,039 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 10:51:28,039 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/3ce4cf97-0d48-4e92-b359-1776d5ef85cc 2025-03-27 10:51:28,051 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1a7e6aa3-03b3-4e11-b04e-25d02ab3830b 2025-03-27 10:51:28,070 - INFO - Verified VN network id 9 for VN 3ce4cf97-0d48-4e92-b359-1776d5ef85cc 2025-03-27 10:51:28,070 - INFO - Verifications in API Server for VN ctest-vn-82060410 passed 2025-03-27 10:51:28,070 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/3ce4cf97-0d48-4e92-b359-1776d5ef85cc 2025-03-27 10:51:28,083 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1a7e6aa3-03b3-4e11-b04e-25d02ab3830b 2025-03-27 10:51:28,092 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1a7e6aa3-03b3-4e11-b04e-25d02ab3830b 2025-03-27 10:51:28,100 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/70e6430f-ccdc-4d10-bc2d-003fc307d395 2025-03-27 10:51:28,117 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-82060410', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60380783', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4387860184635559570', 'uuid-lslong': '12923386404879173068'}, 'enable': 'true', 'created': '2025-03-27T10:51:25', 'last-modified': '2025-03-27T10:51:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.617304'} 2025-03-27 10:51:28,126 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 10:51:28,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82060410 passed 2025-03-27 10:51:28,126 - DEBUG - ====Verifying policy data for ctest-vn-82060410 in API_Server ====== 2025-03-27 10:51:28,126 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-03-27 10:51:28,134 - DEBUG - Requesting: http://10.0.0.30:8082/domain/58022dde-00c0-40ec-bce8-084e3cec1619 2025-03-27 10:51:28,153 - DEBUG - Requesting: http://10.0.0.30:8082/project/6850f68f-a59e-4e6d-a4a8-fda7a701b905 2025-03-27 10:51:28,228 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/3ce4cf97-0d48-4e92-b359-1776d5ef85cc 2025-03-27 10:51:28,242 - DEBUG - ==>Verifying data for policy with id: 7cba4764-98fb-47d3-ad15-753c5588b21a, fqn: ['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-policy-allow-all-99853269'] 2025-03-27 10:51:28,242 - INFO - VN ctest-vn-82060410 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 10:51:28,242 - DEBUG - Verifying the vn in opserver 2025-03-27 10:51:28,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-82060410 virtual network link through opserver 10.0.0.30 2025-03-27 10:51:28,243 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-03-27 10:51:28,255 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-82060410', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-82060410?flat'} 2025-03-27 10:51:28,255 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-82060410 is found in opserver 2025-03-27 10:51:28,268 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 10:51:28,273 - DEBUG - VRF ids for VN ctest-vn-82060410: {} 2025-03-27 10:51:28,333 - DEBUG - Services list from nova: [, , ] 2025-03-27 10:51:29,475 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2969-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2969-1) 2025-03-27 10:51:30,853 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2969-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2969-1) 2025-03-27 10:51:30,853 - INFO - Waiting for VM ctest-TestBasicPolicy-60380783-83825886 to be up.. 2025-03-27 10:51:30,953 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 10:51:36,049 - DEBUG - VM is in ACTIVE state now 2025-03-27 10:51:36,049 - INFO - VM name : ctest-TestBasicPolicy-60380783-83825886 2025-03-27 10:51:36,143 - DEBUG - VM ctest-TestBasicPolicy-60380783-83825886 ID is 65bbccb7-90e0-478c-ae46-93e99885dfd8 2025-03-27 10:51:36,172 - DEBUG - VM ctest-TestBasicPolicy-60380783-83825886 launched on Node cn-jenkins-deploy-platform-ansible-os-2969-1 2025-03-27 10:51:36,270 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/65bbccb7-90e0-478c-ae46-93e99885dfd8 2025-03-27 10:51:36,285 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/fc5ddd7d-b0d5-4792-a004-27dcd69f3275 2025-03-27 10:51:39,573 - 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 1025ms') 2025-03-27 10:51:39,574 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60380783-83825886 failed! 2025-03-27 10:51:39,636 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731 is 180.48.227.1 and allocation pool is NOT set 2025-03-27 10:51:41,697 - 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.93 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.73 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 = 1.730/5.328/8.926/3.598 ms') 2025-03-27 10:51:41,698 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60380783-83825886 passed 2025-03-27 10:51:41,856 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 10:51:41,856 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60380783-83825886, IP 180.48.227.3, Port 22 2025-03-27 10:51:42,011 - DEBUG - VM ctest-TestBasicPolicy-60380783-83825886 is ready for SSH connections 2025-03-27 10:51:42,012 - INFO - Waiting for VM ctest-TestBasicPolicy-60380783-29076244 to be up.. 2025-03-27 10:51:42,103 - DEBUG - VM is in ACTIVE state now 2025-03-27 10:51:42,103 - INFO - VM name : ctest-TestBasicPolicy-60380783-29076244 2025-03-27 10:51:42,188 - DEBUG - VM ctest-TestBasicPolicy-60380783-29076244 ID is 54af9a16-12a1-47a8-bfb1-1a6eafa02a04 2025-03-27 10:51:42,188 - DEBUG - VM ctest-TestBasicPolicy-60380783-29076244 launched on Node cn-jenkins-deploy-platform-ansible-os-2969-1 2025-03-27 10:51:42,278 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/54af9a16-12a1-47a8-bfb1-1a6eafa02a04 2025-03-27 10:51:42,290 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/9858b89a-04bb-4086-85d9-bcc390d6b2e4 2025-03-27 10:51:43,548 - 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.36 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.05 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.045/3.201/4.357/1.156 ms') 2025-03-27 10:51:43,548 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-60380783-29076244 passed 2025-03-27 10:51:43,707 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 10:51:43,708 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60380783-29076244, IP 125.134.59.3, Port 22 2025-03-27 10:51:43,774 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-03-27 10:51:43,877 - DEBUG - VM ctest-TestBasicPolicy-60380783-29076244 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-27 10:51:48,877 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 10:51:48,877 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60380783-29076244, IP 125.134.59.3, Port 22 2025-03-27 10:51:49,035 - DEBUG - VM ctest-TestBasicPolicy-60380783-29076244 is ready for SSH connections 2025-03-27 10:51:49,035 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 10:51:49,036 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 125.134.59.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2025-03-27 10:51:49,036 - DEBUG - ping -s 56 -c 3 -W 1 125.134.59.3 2025-03-27 10:51:52,819 - DEBUG - PING 125.134.59.3 (125.134.59.3): 56 data bytes 64 bytes from 125.134.59.3: seq=0 ttl=63 time=3.877 ms 64 bytes from 125.134.59.3: seq=1 ttl=63 time=0.956 ms 64 bytes from 125.134.59.3: seq=2 ttl=63 time=0.878 ms --- 125.134.59.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.878/1.903/3.877 ms 2025-03-27 10:51:52,819 - INFO - Ping to IP 125.134.59.3 from VM ctest-TestBasicPolicy-60380783-83825886 passed 2025-03-27 10:51:53,019 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7cba4764-98fb-47d3-ad15-753c5588b21a", "href": "http://10.0.0.30:8082/network-policy/7cba4764-98fb-47d3-ad15-753c5588b21a"}} 2025-03-27 10:51:53,019 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 10:51:53,019 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 125.134.59.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2025-03-27 10:51:53,020 - DEBUG - ping -s 56 -c 3 -W 1 125.134.59.3 2025-03-27 10:51:56,262 - DEBUG - PING 125.134.59.3 (125.134.59.3): 56 data bytes 64 bytes from 125.134.59.3: seq=0 ttl=63 time=2.110 ms --- 125.134.59.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.110/2.110/2.110 ms 2025-03-27 10:51:56,262 - WARNING - Ping to IP 125.134.59.3 from VM ctest-TestBasicPolicy-60380783-83825886 failed 2025-03-27 10:51:56,262 - INFO - Deleting VM ctest-TestBasicPolicy-60380783-29076244 2025-03-27 10:51:56,350 - INFO - Deleting VM ctest-TestBasicPolicy-60380783-83825886 2025-03-27 10:51:56,829 - INFO - Deleted policy ctest-policy-allow-all-99853269 2025-03-27 10:51:56,829 - INFO - Deleting VN ctest-vn-82060410 2025-03-27 10:51:56,868 - DEBUG - VN 3ce4cf97-0d48-4e92-b359-1776d5ef85cc still in use: Unable to complete operation on network 3ce4cf97-0d48-4e92-b359-1776d5ef85cc. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d8f69fc4-de23-4ad3-84d4-dd34a1db85f2'] 2025-03-27 10:51:56,869 - WARNING - Deleting VN ctest-vn-82060410 failed..Will retry 2025-03-27 10:51:58,993 - DEBUG - Response for deleting network () 2025-03-27 10:51:58,993 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1a7e6aa3-03b3-4e11-b04e-25d02ab3830b 2025-03-27 10:51:59,000 - DEBUG - Response Code: 404 2025-03-27 10:51:59,000 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-03-27 10:51:59,007 - DEBUG - Requesting: http://10.0.0.30:8082/domain/58022dde-00c0-40ec-bce8-084e3cec1619 2025-03-27 10:51:59,066 - DEBUG - Requesting: http://10.0.0.30:8082/project/6850f68f-a59e-4e6d-a4a8-fda7a701b905 2025-03-27 10:51:59,140 - INFO - Validated that VN ctest-vn-82060410 is not found in API Server 2025-03-27 10:51:59,154 - DEBUG - VN ctest-vn-82060410 is not present in Agent 10.0.0.30 2025-03-27 10:51:59,154 - INFO - Validated that VN ctest-vn-82060410 is not in any agent 2025-03-27 10:51:59,172 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82060410 info 2025-03-27 10:51:59,172 - INFO - Deleting VN ctest-vn-48167731 2025-03-27 10:51:59,296 - DEBUG - Response for deleting network () 2025-03-27 10:51:59,296 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0fce6a0c-a98e-4eb4-aeac-d07e70c2394d 2025-03-27 10:51:59,305 - DEBUG - Response Code: 404 2025-03-27 10:51:59,305 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-03-27 10:51:59,312 - DEBUG - Requesting: http://10.0.0.30:8082/domain/58022dde-00c0-40ec-bce8-084e3cec1619 2025-03-27 10:51:59,370 - DEBUG - Requesting: http://10.0.0.30:8082/project/6850f68f-a59e-4e6d-a4a8-fda7a701b905 2025-03-27 10:51:59,451 - INFO - Validated that VN ctest-vn-48167731 is not found in API Server 2025-03-27 10:51:59,466 - DEBUG - VN ctest-vn-48167731 is not present in Agent 10.0.0.30 2025-03-27 10:51:59,466 - INFO - Validated that VN ctest-vn-48167731 is not in any agent 2025-03-27 10:51:59,484 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48167731 info 2025-03-27 10:51:59,750 - DEBUG - No XMPP flaps were noticed during the test
2025-03-27 10:51:59,750 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-03-27 10:51:59,750 - INFO - -------------------------------------------------------------------------------- 2025-03-27 10:52:00,474 - INFO - Deleted project: ctest-TestBasicPolicy-60380783, ID : 6850f68f-a59e-4e6d-a4a8-fda7a701b905