2025-04-25 07:07:00,073 - INFO - Domain Default found not creating 2025-04-25 07:07:00,236 - INFO - Project ctest-TestBasicPolicy-17813948 not found, creating it 2025-04-25 07:07:00,723 - INFO - Created Project:ctest-TestBasicPolicy-17813948, ID : 4079a99e-397f-4fb4-ad98-fe36b066f38d 2025-04-25 07:07:02,339 - INFO - ================================================================================ 2025-04-25 07:07:02,339 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-25 07:07:02,339 - 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-04-25 07:07:02,597 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-25 07:07:02,597 - INFO - Initial checks done. Running the testcase now 2025-04-25 07:07:02,597 - INFO - 2025-04-25 07:07:03,201 - DEBUG - Response for create_network : {'network': {'id': '96b90668-b235-4b9c-bdf4-7ab9eff500cf', 'name': 'ctest-vn-79556554', 'tenant_id': '4079a99e397f4fb4ad98fe36b066f38d', 'project_id': '4079a99e397f4fb4ad98fe36b066f38d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-vn-79556554'], 'port_security_enabled': True, 'description': ''}} 2025-04-25 07:07:03,422 - DEBUG - Response for create_subnet : {'subnet': {'id': '4310546b-ce9c-4589-ae5c-f256f36bbeff', 'name': '', 'tenant_id': '4079a99e397f4fb4ad98fe36b066f38d', 'network_id': '96b90668-b235-4b9c-bdf4-7ab9eff500cf', 'ip_version': 4, 'cidr': '97.59.196.128/26', 'allocation_pools': [{'start': '97.59.196.130', 'end': '97.59.196.190'}], 'gateway_ip': '97.59.196.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.59.196.130', 'tags': [], 'project_id': '4079a99e397f4fb4ad98fe36b066f38d'}} 2025-04-25 07:07:03,441 - INFO - Created VN ctest-vn-79556554 2025-04-25 07:07:03,496 - DEBUG - VN ctest-vn-79556554 UUID is 96b90668-b235-4b9c-bdf4-7ab9eff500cf 2025-04-25 07:07:03,812 - DEBUG - Response for create_network : {'network': {'id': '5f59e526-bb40-42a4-b989-dcb700a0ffcb', 'name': 'ctest-vn-08142127', 'tenant_id': '4079a99e397f4fb4ad98fe36b066f38d', 'project_id': '4079a99e397f4fb4ad98fe36b066f38d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-vn-08142127'], 'port_security_enabled': True, 'description': ''}} 2025-04-25 07:07:04,320 - DEBUG - Response for create_subnet : {'subnet': {'id': '7bfc9e4c-33a4-4f9c-950b-d8889c8406ec', 'name': '', 'tenant_id': '4079a99e397f4fb4ad98fe36b066f38d', 'network_id': '5f59e526-bb40-42a4-b989-dcb700a0ffcb', 'ip_version': 4, 'cidr': '4.225.38.0/26', 'allocation_pools': [{'start': '4.225.38.2', 'end': '4.225.38.62'}], 'gateway_ip': '4.225.38.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.225.38.2', 'tags': [], 'project_id': '4079a99e397f4fb4ad98fe36b066f38d'}} 2025-04-25 07:07:04,347 - INFO - Created VN ctest-vn-08142127 2025-04-25 07:07:04,404 - DEBUG - VN ctest-vn-08142127 UUID is 5f59e526-bb40-42a4-b989-dcb700a0ffcb 2025-04-25 07:07:04,629 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554, 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-17813948:ctest-vn-08142127, 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-04-25 07:07:05,003 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96b90668-b235-4b9c-bdf4-7ab9eff500cf', 'name': 'ctest-vn-79556554', 'tenant_id': '4079a99e397f4fb4ad98fe36b066f38d', 'project_id': '4079a99e397f4fb4ad98fe36b066f38d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4310546b-ce9c-4589-ae5c-f256f36bbeff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-vn-79556554'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-policy-allow-all-02435182']], 'subnet_ipam': [{'subnet_cidr': '97.59.196.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-25 07:07:05,245 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f59e526-bb40-42a4-b989-dcb700a0ffcb', 'name': 'ctest-vn-08142127', 'tenant_id': '4079a99e397f4fb4ad98fe36b066f38d', 'project_id': '4079a99e397f4fb4ad98fe36b066f38d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7bfc9e4c-33a4-4f9c-950b-d8889c8406ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-vn-08142127'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-policy-allow-all-02435182']], 'subnet_ipam': [{'subnet_cidr': '4.225.38.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-25 07:07:05,408 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-25 07:07:05,749 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-25 07:07:05,779 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0480e13b-3aaf-4876-a0a7-b290bb807a58 2025-04-25 07:07:05,793 - DEBUG - Requesting: http://10.0.0.254:8082/project/4079a99e-397f-4fb4-ad98-fe36b066f38d 2025-04-25 07:07:05,877 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96b90668-b235-4b9c-bdf4-7ab9eff500cf 2025-04-25 07:07:05,892 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96b90668-b235-4b9c-bdf4-7ab9eff500cf 2025-04-25 07:07:05,903 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd90dc34-652c-4819-824d-8eabee107020 2025-04-25 07:07:05,911 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd90dc34-652c-4819-824d-8eabee107020 2025-04-25 07:07:05,919 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fcf02316-778e-4f00-833d-c32997b35c0f 2025-04-25 07:07:05,927 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-25 07:07:05,927 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96b90668-b235-4b9c-bdf4-7ab9eff500cf 2025-04-25 07:07:05,938 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd90dc34-652c-4819-824d-8eabee107020 2025-04-25 07:07:05,955 - INFO - Verified VN network id 9 for VN 96b90668-b235-4b9c-bdf4-7ab9eff500cf 2025-04-25 07:07:05,955 - INFO - Verifications in API Server for VN ctest-vn-79556554 passed 2025-04-25 07:07:05,955 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96b90668-b235-4b9c-bdf4-7ab9eff500cf 2025-04-25 07:07:05,965 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd90dc34-652c-4819-824d-8eabee107020 2025-04-25 07:07:05,973 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd90dc34-652c-4819-824d-8eabee107020 2025-04-25 07:07:05,981 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fcf02316-778e-4f00-833d-c32997b35c0f 2025-04-25 07:07:05,994 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17813948', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10860719023116864412', 'uuid-lslong': '13687700106499129551'}, 'enable': 'true', 'created': '2025-04-25T07:07:03', 'last-modified': '2025-04-25T07:07:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020430'} 2025-04-25 07:07:06,001 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-25 07:07:06,001 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79556554 passed 2025-04-25 07:07:06,002 - DEBUG - ====Verifying policy data for ctest-vn-79556554 in API_Server ====== 2025-04-25 07:07:06,002 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-25 07:07:06,009 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0480e13b-3aaf-4876-a0a7-b290bb807a58 2025-04-25 07:07:06,022 - DEBUG - Requesting: http://10.0.0.254:8082/project/4079a99e-397f-4fb4-ad98-fe36b066f38d 2025-04-25 07:07:06,098 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96b90668-b235-4b9c-bdf4-7ab9eff500cf 2025-04-25 07:07:06,109 - DEBUG - ==>Verifying data for policy with id: 5820fbab-bf88-4b2d-921d-b607dadf00c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-policy-allow-all-02435182'] 2025-04-25 07:07:06,109 - INFO - VN ctest-vn-79556554 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-25 07:07:06,109 - DEBUG - Verifying the vn in opserver 2025-04-25 07:07:06,109 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554 virtual network link through opserver 10.0.0.254 2025-04-25 07:07:06,110 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-25 07:07:06,445 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-25 07:07:06,510 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554?flat'} 2025-04-25 07:07:06,510 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554 is found in opserver 2025-04-25 07:07:06,524 - DEBUG - Do not have enough data to verify VN in agent 2025-04-25 07:07:06,529 - DEBUG - VRF ids for VN ctest-vn-79556554: {} 2025-04-25 07:07:06,529 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-25 07:07:06,536 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0480e13b-3aaf-4876-a0a7-b290bb807a58 2025-04-25 07:07:06,548 - DEBUG - Requesting: http://10.0.0.254:8082/project/4079a99e-397f-4fb4-ad98-fe36b066f38d 2025-04-25 07:07:06,627 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5f59e526-bb40-42a4-b989-dcb700a0ffcb 2025-04-25 07:07:06,642 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5f59e526-bb40-42a4-b989-dcb700a0ffcb 2025-04-25 07:07:06,654 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3885278-73ca-421c-817f-6cce3d72dfb4 2025-04-25 07:07:06,663 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3885278-73ca-421c-817f-6cce3d72dfb4 2025-04-25 07:07:06,672 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dacfc17c-ba21-4f8c-8827-f652b6683062 2025-04-25 07:07:06,680 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-25 07:07:06,680 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5f59e526-bb40-42a4-b989-dcb700a0ffcb 2025-04-25 07:07:06,692 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3885278-73ca-421c-817f-6cce3d72dfb4 2025-04-25 07:07:06,708 - INFO - Verified VN network id 10 for VN 5f59e526-bb40-42a4-b989-dcb700a0ffcb 2025-04-25 07:07:06,708 - INFO - Verifications in API Server for VN ctest-vn-08142127 passed 2025-04-25 07:07:06,708 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5f59e526-bb40-42a4-b989-dcb700a0ffcb 2025-04-25 07:07:06,720 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3885278-73ca-421c-817f-6cce3d72dfb4 2025-04-25 07:07:06,727 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3885278-73ca-421c-817f-6cce3d72dfb4 2025-04-25 07:07:06,735 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dacfc17c-ba21-4f8c-8827-f652b6683062 2025-04-25 07:07:06,748 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-08142127', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17813948', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6870774661043471012', 'uuid-lslong': '13369459647373705163'}, 'enable': 'true', 'created': '2025-04-25T07:07:03', 'last-modified': '2025-04-25T07:07:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530079'} 2025-04-25 07:07:06,756 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-25 07:07:06,756 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08142127 passed 2025-04-25 07:07:06,757 - DEBUG - ====Verifying policy data for ctest-vn-08142127 in API_Server ====== 2025-04-25 07:07:06,757 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-25 07:07:06,763 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0480e13b-3aaf-4876-a0a7-b290bb807a58 2025-04-25 07:07:06,776 - DEBUG - Requesting: http://10.0.0.254:8082/project/4079a99e-397f-4fb4-ad98-fe36b066f38d 2025-04-25 07:07:06,854 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5f59e526-bb40-42a4-b989-dcb700a0ffcb 2025-04-25 07:07:06,871 - DEBUG - ==>Verifying data for policy with id: 5820fbab-bf88-4b2d-921d-b607dadf00c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-17813948', 'ctest-policy-allow-all-02435182'] 2025-04-25 07:07:06,871 - INFO - VN ctest-vn-08142127 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-25 07:07:06,871 - DEBUG - Verifying the vn in opserver 2025-04-25 07:07:06,871 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-08142127 virtual network link through opserver 10.0.0.254 2025-04-25 07:07:06,871 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-25 07:07:06,884 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-08142127', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-08142127?flat'} 2025-04-25 07:07:06,884 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-08142127 is found in opserver 2025-04-25 07:07:06,896 - DEBUG - Do not have enough data to verify VN in agent 2025-04-25 07:07:06,902 - DEBUG - VRF ids for VN ctest-vn-08142127: {} 2025-04-25 07:07:06,960 - DEBUG - Services list from nova: [, , ] 2025-04-25 07:07:08,097 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3213-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3213-1) 2025-04-25 07:07:09,454 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3213-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3213-1) 2025-04-25 07:07:09,455 - INFO - Waiting for VM ctest-TestBasicPolicy-17813948-54414063 to be up.. 2025-04-25 07:07:09,542 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-25 07:07:14,628 - DEBUG - VM is in ACTIVE state now 2025-04-25 07:07:14,628 - INFO - VM name : ctest-TestBasicPolicy-17813948-54414063 2025-04-25 07:07:14,716 - DEBUG - VM ctest-TestBasicPolicy-17813948-54414063 ID is 82a6913c-d025-4208-9995-97f5024dc2bf 2025-04-25 07:07:14,737 - DEBUG - VM ctest-TestBasicPolicy-17813948-54414063 launched on Node cn-jenkins-deploy-platform-ansible-os-3213-1 2025-04-25 07:07:14,822 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/82a6913c-d025-4208-9995-97f5024dc2bf 2025-04-25 07:07:14,832 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/e6f4257a-1e44-40d8-b7de-aa2d701db8bf 2025-04-25 07:07:18,108 - 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 1023ms') 2025-04-25 07:07:18,108 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17813948-54414063 failed! 2025-04-25 07:07:18,164 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-17813948:ctest-vn-79556554 is 97.59.196.129 and allocation pool is NOT set 2025-04-25 07:07:20,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=9.22 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.463 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.463/4.841/9.220/4.378 ms') 2025-04-25 07:07:20,227 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17813948-54414063 passed 2025-04-25 07:07:20,380 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 07:07:20,380 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17813948-54414063, IP 97.59.196.131, Port 22 2025-04-25 07:07:20,560 - DEBUG - VM ctest-TestBasicPolicy-17813948-54414063 is ready for SSH connections 2025-04-25 07:07:20,560 - INFO - Waiting for VM ctest-TestBasicPolicy-17813948-94493003 to be up.. 2025-04-25 07:07:20,642 - DEBUG - VM is in ACTIVE state now 2025-04-25 07:07:20,642 - INFO - VM name : ctest-TestBasicPolicy-17813948-94493003 2025-04-25 07:07:20,725 - DEBUG - VM ctest-TestBasicPolicy-17813948-94493003 ID is d9e80b8e-a77c-4cad-8ead-b7e4267611ad 2025-04-25 07:07:20,725 - DEBUG - VM ctest-TestBasicPolicy-17813948-94493003 launched on Node cn-jenkins-deploy-platform-ansible-os-3213-1 2025-04-25 07:07:20,807 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/d9e80b8e-a77c-4cad-8ead-b7e4267611ad 2025-04-25 07:07:20,817 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/96058370-4a32-49c8-b917-e10441935b3a 2025-04-25 07:07:22,076 - 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.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.26 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 = 1.263/2.985/4.707/1.722 ms') 2025-04-25 07:07:22,076 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-17813948-94493003 passed 2025-04-25 07:07:22,232 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 07:07:22,232 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17813948-94493003, IP 4.225.38.3, Port 22 2025-04-25 07:07:22,388 - DEBUG - VM ctest-TestBasicPolicy-17813948-94493003 is ready for SSH connections 2025-04-25 07:07:22,388 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 07:07:22,388 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 4.225.38.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-25 07:07:22,388 - DEBUG - ping -s 56 -c 3 -W 1 4.225.38.3 2025-04-25 07:07:26,497 - DEBUG - PING 4.225.38.3 (4.225.38.3): 56 data bytes 64 bytes from 4.225.38.3: seq=0 ttl=63 time=3.767 ms 64 bytes from 4.225.38.3: seq=1 ttl=63 time=0.801 ms 64 bytes from 4.225.38.3: seq=2 ttl=63 time=0.983 ms --- 4.225.38.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.801/1.850/3.767 ms 2025-04-25 07:07:26,497 - INFO - Ping to IP 4.225.38.3 from VM ctest-TestBasicPolicy-17813948-54414063 passed 2025-04-25 07:07:26,680 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5820fbab-bf88-4b2d-921d-b607dadf00c3", "href": "http://10.0.0.254:8082/network-policy/5820fbab-bf88-4b2d-921d-b607dadf00c3"}} 2025-04-25 07:07:26,680 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-25 07:07:26,680 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 4.225.38.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-25 07:07:26,680 - DEBUG - ping -s 56 -c 3 -W 1 4.225.38.3 2025-04-25 07:07:29,927 - DEBUG - PING 4.225.38.3 (4.225.38.3): 56 data bytes 64 bytes from 4.225.38.3: seq=0 ttl=63 time=1.543 ms --- 4.225.38.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.543/1.543/1.543 ms 2025-04-25 07:07:29,928 - WARNING - Ping to IP 4.225.38.3 from VM ctest-TestBasicPolicy-17813948-54414063 failed 2025-04-25 07:07:29,928 - INFO - Deleting VM ctest-TestBasicPolicy-17813948-94493003 2025-04-25 07:07:30,000 - INFO - Deleting VM ctest-TestBasicPolicy-17813948-54414063 2025-04-25 07:07:30,438 - INFO - Deleted policy ctest-policy-allow-all-02435182 2025-04-25 07:07:30,438 - INFO - Deleting VN ctest-vn-08142127 2025-04-25 07:07:30,482 - DEBUG - VN 5f59e526-bb40-42a4-b989-dcb700a0ffcb still in use: Unable to complete operation on network 5f59e526-bb40-42a4-b989-dcb700a0ffcb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2eee01ed-2a81-4776-abd5-89fafd3d068c'] 2025-04-25 07:07:30,482 - WARNING - Deleting VN ctest-vn-08142127 failed..Will retry 2025-04-25 07:07:32,595 - DEBUG - Response for deleting network () 2025-04-25 07:07:32,595 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3885278-73ca-421c-817f-6cce3d72dfb4 2025-04-25 07:07:32,606 - DEBUG - Response Code: 404 2025-04-25 07:07:32,606 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-25 07:07:32,613 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0480e13b-3aaf-4876-a0a7-b290bb807a58 2025-04-25 07:07:32,676 - DEBUG - Requesting: http://10.0.0.254:8082/project/4079a99e-397f-4fb4-ad98-fe36b066f38d 2025-04-25 07:07:32,758 - INFO - Validated that VN ctest-vn-08142127 is not found in API Server 2025-04-25 07:07:32,775 - DEBUG - VN ctest-vn-08142127 is not present in Agent 10.0.0.254 2025-04-25 07:07:32,775 - INFO - Validated that VN ctest-vn-08142127 is not in any agent 2025-04-25 07:07:32,797 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08142127 info 2025-04-25 07:07:32,797 - INFO - Deleting VN ctest-vn-79556554 2025-04-25 07:07:32,912 - DEBUG - Response for deleting network () 2025-04-25 07:07:32,912 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bd90dc34-652c-4819-824d-8eabee107020 2025-04-25 07:07:32,922 - DEBUG - Response Code: 404 2025-04-25 07:07:32,923 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-25 07:07:32,929 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0480e13b-3aaf-4876-a0a7-b290bb807a58 2025-04-25 07:07:32,982 - DEBUG - Requesting: http://10.0.0.254:8082/project/4079a99e-397f-4fb4-ad98-fe36b066f38d 2025-04-25 07:07:33,063 - INFO - Validated that VN ctest-vn-79556554 is not found in API Server 2025-04-25 07:07:33,076 - DEBUG - VN ctest-vn-79556554 is not present in Agent 10.0.0.254 2025-04-25 07:07:33,076 - INFO - Validated that VN ctest-vn-79556554 is not in any agent 2025-04-25 07:07:33,093 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79556554 info 2025-04-25 07:07:33,352 - DEBUG - No XMPP flaps were noticed during the test
2025-04-25 07:07:33,352 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2025-04-25 07:07:33,353 - INFO - -------------------------------------------------------------------------------- 2025-04-25 07:07:34,101 - INFO - Deleted project: ctest-TestBasicPolicy-17813948, ID : 4079a99e-397f-4fb4-ad98-fe36b066f38d